blob: e3730f5d98d7cbe9bdaa4653529fd403340c95db [file] [log] [blame]
Nick Anthony522f2a42019-05-28 14:28:10 -04001/*
2 * Copyright 2019 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
17import static androidx.build.dependencies.DependenciesKt.*
18import androidx.build.LibraryGroups
19import androidx.build.LibraryVersions
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070020import androidx.build.Publish
Nick Anthony522f2a42019-05-28 14:28:10 -040021
22plugins {
23 id("AndroidXPlugin")
24 id("com.android.library")
Nick Anthony522f2a42019-05-28 14:28:10 -040025}
26
27dependencies {
Chaohui Wang60c374b2019-09-05 16:47:40 +080028 api("androidx.annotation:annotation:1.1.0")
Nick Anthonybf92cbc2020-02-10 21:11:51 +000029 implementation("androidx.core:core:1.1.0")
Chaohui Wanga7874192019-06-17 18:15:51 +080030 implementation(AUTO_VALUE_ANNOTATIONS)
31 annotationProcessor(AUTO_VALUE)
32 api(GUAVA_LISTENABLE_FUTURE)
Ian Lake0e0059152019-09-27 14:43:23 -070033 implementation("androidx.concurrent:concurrent-futures:1.0.0")
Nick Anthony522f2a42019-05-28 14:28:10 -040034
Chaohui Wanga7874192019-06-17 18:15:51 +080035 implementation(project(":ads-identifier-common"))
36
Chaohui Wangf5936652019-09-04 17:40:48 +080037 androidTestImplementation(project(":ads-identifier-testing"))
Chaohui Wanga7874192019-06-17 18:15:51 +080038 androidTestImplementation(JUNIT)
39 androidTestImplementation(TRUTH)
Chaohui Wanga7874192019-06-17 18:15:51 +080040 androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)
41 androidTestImplementation(ANDROIDX_TEST_CORE)
42 androidTestImplementation(ANDROIDX_TEST_RUNNER)
43 androidTestImplementation(ANDROIDX_TEST_RULES)
Aurimas Liutikas9bf4f7e2021-04-23 14:17:30 -070044 androidTestImplementation(DEXMAKER_MOCKITO, excludes.bytebuddy)
Nick Anthony522f2a42019-05-28 14:28:10 -040045}
46
47android {
Chaohui Wang73974af2019-11-04 17:01:11 +080048 compileOptions {
Jim Sproch9e38b4f2021-01-06 14:21:06 -080049 sourceCompatibility(JavaVersion.VERSION_1_7)
50 targetCompatibility(JavaVersion.VERSION_1_7)
Chaohui Wang73974af2019-11-04 17:01:11 +080051 }
Nick Anthony522f2a42019-05-28 14:28:10 -040052}
53
54androidx {
55 name = "AndroidX Ads Identifier"
Chaohui Wanga7874192019-06-17 18:15:51 +080056 publish = Publish.SNAPSHOT_AND_RELEASE
Nick Anthony522f2a42019-05-28 14:28:10 -040057 mavenVersion = LibraryVersions.ADS_IDENTIFIER
58 mavenGroup = LibraryGroups.ADS
59 inceptionYear = "2019"
60 description = "AndroidX Ads Identifier"
61}