jnichol | b25f3c0 | 2021-09-15 17:15:06 +0100 | [diff] [blame] | 1 | /* |
| 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 Song | ee0da74 | 2024-01-03 14:08:46 -0800 | [diff] [blame] | 17 | /** |
| 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 Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame^] | 24 | import androidx.build.LibraryType |
jnichol | b25f3c0 | 2021-09-15 17:15:06 +0100 | [diff] [blame] | 25 | |
| 26 | plugins { |
| 27 | id("AndroidXPlugin") |
| 28 | id("com.android.library") |
| 29 | id("org.jetbrains.kotlin.android") |
| 30 | } |
| 31 | |
| 32 | dependencies { |
| 33 | api("androidx.annotation:annotation:1.1.0") |
Alex Clarke | 7cc8de7 | 2021-09-17 14:42:54 +0100 | [diff] [blame] | 34 | api(project(":wear:watchface:watchface-complications")) |
jnichol | b25f3c0 | 2021-09-15 17:15:06 +0100 | [diff] [blame] | 35 | 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 Liutikas | 759f968 | 2022-10-05 07:01:37 -0700 | [diff] [blame] | 43 | testImplementation(libs.mockitoCore4) |
Oded Niv | 07ba2f7 | 2023-02-07 11:19:20 +0000 | [diff] [blame] | 44 | testImplementation(libs.mockitoKotlin4) |
jnichol | b25f3c0 | 2021-09-15 17:15:06 +0100 | [diff] [blame] | 45 | testImplementation(libs.truth) |
Aurimas Liutikas | b20296a | 2021-12-21 15:56:47 -0800 | [diff] [blame] | 46 | testImplementation(libs.junit) |
Oded Niv | 7d28241 | 2023-02-07 10:26:11 +0000 | [diff] [blame] | 47 | testImplementation(libs.kotlinTest) |
jnichol | b25f3c0 | 2021-09-15 17:15:06 +0100 | [diff] [blame] | 48 | } |
| 49 | |
| 50 | android { |
| 51 | buildFeatures { |
| 52 | aidl = true |
| 53 | } |
| 54 | defaultConfig { |
| 55 | minSdkVersion 26 |
| 56 | } |
| 57 | |
| 58 | // Use Robolectric 4.+ |
| 59 | testOptions.unitTests.includeAndroidResources = true |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 60 | namespace "androidx.wear.watchface.complications.datasource" |
jnichol | b25f3c0 | 2021-09-15 17:15:06 +0100 | [diff] [blame] | 61 | } |
| 62 | |
| 63 | androidx { |
| 64 | name = "Android Wear Complications Data Source" |
Omar Ismail | 86e6606 | 2024-05-03 16:10:50 +0100 | [diff] [blame^] | 65 | type = LibraryType.PUBLISHED_LIBRARY |
jnichol | b25f3c0 | 2021-09-15 17:15:06 +0100 | [diff] [blame] | 66 | inceptionYear = "2020" |
| 67 | description = "Android Wear Complications Data Source" |
Jinseong Jeon | 999075e | 2023-08-22 00:40:11 -0700 | [diff] [blame] | 68 | metalavaK2UastEnabled = true |
jnichol | b25f3c0 | 2021-09-15 17:15:06 +0100 | [diff] [blame] | 69 | } |