[go: nahoru, domu]

blob: 92fb660f3956a9ed4123ec43dd4f0d73febbfa6d [file] [log] [blame]
Jamie Garsidedd597a32020-10-21 18:18:35 +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
Jamie Garsidedd597a32020-10-21 18:18:35 +010017import androidx.build.LibraryType
Jamie Garsidedd597a32020-10-21 18:18:35 +010018
19plugins {
20 id("AndroidXPlugin")
21 id("com.android.library")
22}
23
24dependencies {
Neda Topoljanacfe395d72021-12-15 14:57:39 +000025 api("androidx.annotation:annotation:1.2.0")
Neda Topoljanac9a4b6822021-05-07 11:01:31 +000026 api(libs.guavaListenableFuture)
Jamie Garside8c9f0de2021-02-16 22:09:47 +000027
Neda Topoljanacfe395d72021-12-15 14:57:39 +000028 implementation("androidx.annotation:annotation-experimental:1.2.0")
Jamie Garsideb19653d2021-08-17 18:15:52 +010029 implementation(project(path: ":wear:tiles:tiles-proto"))
Jamie Garside38b16272021-01-18 13:45:49 +000030
Neda Topoljanac9a4b6822021-05-07 11:01:31 +000031 compileOnly(libs.kotlinStdlib) // For annotation-experimental
Googlerf1bb7a02021-04-13 15:32:06 +010032
Neda Topoljanac9a4b6822021-05-07 11:01:31 +000033 testImplementation(libs.testExtJunit)
34 testImplementation(libs.testExtTruth)
35 testImplementation(libs.testCore)
36 testImplementation(libs.testRunner)
37 testImplementation(libs.testRules)
Jamie Garside192292f2021-04-26 11:08:29 +010038 testImplementation("androidx.concurrent:concurrent-futures:1.1.0")
Neda Topoljanac9a4b6822021-05-07 11:01:31 +000039 testImplementation(libs.robolectric)
40 testImplementation(libs.mockitoCore)
Jamie Garsidedd597a32020-10-21 18:18:35 +010041}
42
43android {
44 defaultConfig {
Flavio Lerda7ea6fcb2021-02-06 18:33:45 +000045 minSdkVersion 25
Jamie Garsidedd597a32020-10-21 18:18:35 +010046 }
Jamie Garside09301772021-01-14 10:26:32 +000047 buildFeatures {
48 aidl = true
49 }
Jamie Garsided20dba52021-04-13 14:47:17 +010050 buildTypes.all {
51 consumerProguardFiles "proguard-rules.pro"
52 }
Jamie Garsidedd597a32020-10-21 18:18:35 +010053
54 // Use Robolectric 4.+
55 testOptions.unitTests.includeAndroidResources = true
Aurimas Liutikasdcfa0352022-03-14 16:05:33 -070056 namespace "androidx.wear.tiles"
Jamie Garsidedd597a32020-10-21 18:18:35 +010057}
58
59androidx {
60 name = "Android Wear Tiles"
61 type = LibraryType.PUBLISHED_LIBRARY
Jamie Garsideecb62212021-03-17 14:02:06 +000062 mavenGroup = LibraryGroups.WEAR_TILES
Jamie Garsidedd597a32020-10-21 18:18:35 +010063 inceptionYear = "2020"
64 description = "Android Wear Tiles"
Jamie Garsidedd597a32020-10-21 18:18:35 +010065}