blob: e3453ebf0c031d5846e72aee60488731d9ee7610 [file] [log] [blame]
jnicholb25f3c02021-09-15 17:15:06 +01001/*
2 * Copyright 2020 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Tiem Songee0da742024-01-03 14:08:46 -080017/**
18 * This file was created using the `create_project.py` script located in the
19 * `<AndroidX root>/development/project-creator` directory.
20 *
21 * Please use that script when creating a new project, rather than copying an existing project and
22 * modifying its settings.
23 */
Omar Ismail86e66062024-05-03 16:10:50 +010024import androidx.build.LibraryType
jnicholb25f3c02021-09-15 17:15:06 +010025
26plugins {
27 id("AndroidXPlugin")
28 id("com.android.library")
29 id("org.jetbrains.kotlin.android")
30}
31
32dependencies {
33 api("androidx.annotation:annotation:1.1.0")
Alex Clarke7cc8de72021-09-17 14:42:54 +010034 api(project(":wear:watchface:watchface-complications"))
jnicholb25f3c02021-09-15 17:15:06 +010035 api(project(":wear:watchface:watchface-complications-data"))
36
37 implementation("androidx.core:core:1.1.0")
38 implementation("androidx.preference:preference:1.1.0")
39 testImplementation(libs.testCore)
40 testImplementation(libs.testRunner)
41 testImplementation(libs.testRules)
42 testImplementation(libs.robolectric)
Aurimas Liutikas759f9682022-10-05 07:01:37 -070043 testImplementation(libs.mockitoCore4)
Oded Niv07ba2f72023-02-07 11:19:20 +000044 testImplementation(libs.mockitoKotlin4)
jnicholb25f3c02021-09-15 17:15:06 +010045 testImplementation(libs.truth)
Aurimas Liutikasb20296a2021-12-21 15:56:47 -080046 testImplementation(libs.junit)
Oded Niv7d282412023-02-07 10:26:11 +000047 testImplementation(libs.kotlinTest)
jnicholb25f3c02021-09-15 17:15:06 +010048}
49
50android {
51 buildFeatures {
52 aidl = true
53 }
54 defaultConfig {
55 minSdkVersion 26
56 }
57
58 // Use Robolectric 4.+
59 testOptions.unitTests.includeAndroidResources = true
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070060 namespace "androidx.wear.watchface.complications.datasource"
jnicholb25f3c02021-09-15 17:15:06 +010061}
62
63androidx {
64 name = "Android Wear Complications Data Source"
Omar Ismail86e66062024-05-03 16:10:50 +010065 type = LibraryType.PUBLISHED_LIBRARY
jnicholb25f3c02021-09-15 17:15:06 +010066 inceptionYear = "2020"
67 description = "Android Wear Complications Data Source"
Jinseong Jeon999075e2023-08-22 00:40:11 -070068 metalavaK2UastEnabled = true
Aurimas Liutikas5c5419a2024-05-29 15:26:58 -070069 legacyDisableKotlinStrictApiMode = true
jnicholb25f3c02021-09-15 17:15:06 +010070}