Nick Anthony | 522f2a4 | 2019-05-28 14:28:10 -0400 | [diff] [blame] | 1 | /* |
| 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 | |
| 17 | import static androidx.build.dependencies.DependenciesKt.* |
| 18 | import androidx.build.LibraryGroups |
| 19 | import androidx.build.LibraryVersions |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 20 | import androidx.build.Publish |
Nick Anthony | 522f2a4 | 2019-05-28 14:28:10 -0400 | [diff] [blame] | 21 | |
| 22 | plugins { |
| 23 | id("AndroidXPlugin") |
| 24 | id("com.android.library") |
Nick Anthony | 522f2a4 | 2019-05-28 14:28:10 -0400 | [diff] [blame] | 25 | } |
| 26 | |
| 27 | dependencies { |
Chaohui Wang | 60c374b | 2019-09-05 16:47:40 +0800 | [diff] [blame] | 28 | api("androidx.annotation:annotation:1.1.0") |
Nick Anthony | bf92cbc | 2020-02-10 21:11:51 +0000 | [diff] [blame] | 29 | implementation("androidx.core:core:1.1.0") |
Chaohui Wang | a787419 | 2019-06-17 18:15:51 +0800 | [diff] [blame] | 30 | implementation(AUTO_VALUE_ANNOTATIONS) |
| 31 | annotationProcessor(AUTO_VALUE) |
| 32 | api(GUAVA_LISTENABLE_FUTURE) |
Ian Lake | 0e005915 | 2019-09-27 14:43:23 -0700 | [diff] [blame] | 33 | implementation("androidx.concurrent:concurrent-futures:1.0.0") |
Nick Anthony | 522f2a4 | 2019-05-28 14:28:10 -0400 | [diff] [blame] | 34 | |
Chaohui Wang | a787419 | 2019-06-17 18:15:51 +0800 | [diff] [blame] | 35 | implementation(project(":ads-identifier-common")) |
| 36 | |
Chaohui Wang | f593665 | 2019-09-04 17:40:48 +0800 | [diff] [blame] | 37 | androidTestImplementation(project(":ads-identifier-testing")) |
Chaohui Wang | a787419 | 2019-06-17 18:15:51 +0800 | [diff] [blame] | 38 | androidTestImplementation(JUNIT) |
| 39 | androidTestImplementation(TRUTH) |
Chaohui Wang | a787419 | 2019-06-17 18:15:51 +0800 | [diff] [blame] | 40 | androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT) |
| 41 | androidTestImplementation(ANDROIDX_TEST_CORE) |
| 42 | androidTestImplementation(ANDROIDX_TEST_RUNNER) |
| 43 | androidTestImplementation(ANDROIDX_TEST_RULES) |
Aurimas Liutikas | 9bf4f7e | 2021-04-23 14:17:30 -0700 | [diff] [blame^] | 44 | androidTestImplementation(DEXMAKER_MOCKITO, excludes.bytebuddy) |
Nick Anthony | 522f2a4 | 2019-05-28 14:28:10 -0400 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | android { |
Chaohui Wang | 73974af | 2019-11-04 17:01:11 +0800 | [diff] [blame] | 48 | compileOptions { |
Jim Sproch | 9e38b4f | 2021-01-06 14:21:06 -0800 | [diff] [blame] | 49 | sourceCompatibility(JavaVersion.VERSION_1_7) |
| 50 | targetCompatibility(JavaVersion.VERSION_1_7) |
Chaohui Wang | 73974af | 2019-11-04 17:01:11 +0800 | [diff] [blame] | 51 | } |
Nick Anthony | 522f2a4 | 2019-05-28 14:28:10 -0400 | [diff] [blame] | 52 | } |
| 53 | |
| 54 | androidx { |
| 55 | name = "AndroidX Ads Identifier" |
Chaohui Wang | a787419 | 2019-06-17 18:15:51 +0800 | [diff] [blame] | 56 | publish = Publish.SNAPSHOT_AND_RELEASE |
Nick Anthony | 522f2a4 | 2019-05-28 14:28:10 -0400 | [diff] [blame] | 57 | mavenVersion = LibraryVersions.ADS_IDENTIFIER |
| 58 | mavenGroup = LibraryGroups.ADS |
| 59 | inceptionYear = "2019" |
| 60 | description = "AndroidX Ads Identifier" |
| 61 | } |