Jamie Garside | dd597a3 | 2020-10-21 18:18:35 +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 | |
Jamie Garside | dd597a3 | 2020-10-21 18:18:35 +0100 | [diff] [blame] | 17 | import androidx.build.LibraryType |
Jamie Garside | dd597a3 | 2020-10-21 18:18:35 +0100 | [diff] [blame] | 18 | |
| 19 | plugins { |
| 20 | id("AndroidXPlugin") |
| 21 | id("com.android.library") |
| 22 | } |
| 23 | |
| 24 | dependencies { |
Neda Topoljanac | fe395d7 | 2021-12-15 14:57:39 +0000 | [diff] [blame] | 25 | api("androidx.annotation:annotation:1.2.0") |
Neda Topoljanac | 9a4b682 | 2021-05-07 11:01:31 +0000 | [diff] [blame] | 26 | api(libs.guavaListenableFuture) |
Jamie Garside | 8c9f0de | 2021-02-16 22:09:47 +0000 | [diff] [blame] | 27 | |
Neda Topoljanac | fe395d7 | 2021-12-15 14:57:39 +0000 | [diff] [blame] | 28 | implementation("androidx.annotation:annotation-experimental:1.2.0") |
Jamie Garside | b19653d | 2021-08-17 18:15:52 +0100 | [diff] [blame] | 29 | implementation(project(path: ":wear:tiles:tiles-proto")) |
Jamie Garside | 38b1627 | 2021-01-18 13:45:49 +0000 | [diff] [blame] | 30 | |
Neda Topoljanac | 9a4b682 | 2021-05-07 11:01:31 +0000 | [diff] [blame] | 31 | compileOnly(libs.kotlinStdlib) // For annotation-experimental |
Googler | f1bb7a0 | 2021-04-13 15:32:06 +0100 | [diff] [blame] | 32 | |
Neda Topoljanac | 9a4b682 | 2021-05-07 11:01:31 +0000 | [diff] [blame] | 33 | testImplementation(libs.testExtJunit) |
| 34 | testImplementation(libs.testExtTruth) |
| 35 | testImplementation(libs.testCore) |
| 36 | testImplementation(libs.testRunner) |
| 37 | testImplementation(libs.testRules) |
Jamie Garside | 192292f | 2021-04-26 11:08:29 +0100 | [diff] [blame] | 38 | testImplementation("androidx.concurrent:concurrent-futures:1.1.0") |
Neda Topoljanac | 9a4b682 | 2021-05-07 11:01:31 +0000 | [diff] [blame] | 39 | testImplementation(libs.robolectric) |
| 40 | testImplementation(libs.mockitoCore) |
Jamie Garside | dd597a3 | 2020-10-21 18:18:35 +0100 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | android { |
| 44 | defaultConfig { |
Flavio Lerda | 7ea6fcb | 2021-02-06 18:33:45 +0000 | [diff] [blame] | 45 | minSdkVersion 25 |
Jamie Garside | dd597a3 | 2020-10-21 18:18:35 +0100 | [diff] [blame] | 46 | } |
Jamie Garside | 0930177 | 2021-01-14 10:26:32 +0000 | [diff] [blame] | 47 | buildFeatures { |
| 48 | aidl = true |
| 49 | } |
Jamie Garside | d20dba5 | 2021-04-13 14:47:17 +0100 | [diff] [blame] | 50 | buildTypes.all { |
| 51 | consumerProguardFiles "proguard-rules.pro" |
| 52 | } |
Jamie Garside | dd597a3 | 2020-10-21 18:18:35 +0100 | [diff] [blame] | 53 | |
| 54 | // Use Robolectric 4.+ |
| 55 | testOptions.unitTests.includeAndroidResources = true |
Aurimas Liutikas | dcfa035 | 2022-03-14 16:05:33 -0700 | [diff] [blame] | 56 | namespace "androidx.wear.tiles" |
Jamie Garside | dd597a3 | 2020-10-21 18:18:35 +0100 | [diff] [blame] | 57 | } |
| 58 | |
| 59 | androidx { |
| 60 | name = "Android Wear Tiles" |
| 61 | type = LibraryType.PUBLISHED_LIBRARY |
Jamie Garside | ecb6221 | 2021-03-17 14:02:06 +0000 | [diff] [blame] | 62 | mavenGroup = LibraryGroups.WEAR_TILES |
Jamie Garside | dd597a3 | 2020-10-21 18:18:35 +0100 | [diff] [blame] | 63 | inceptionYear = "2020" |
| 64 | description = "Android Wear Tiles" |
Jamie Garside | dd597a3 | 2020-10-21 18:18:35 +0100 | [diff] [blame] | 65 | } |