Jason Monk | 41c9f81 | 2018-08-03 19:33:21 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2018 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 | |
| 19 | import androidx.build.LibraryGroups |
| 20 | import androidx.build.LibraryVersions |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 21 | import androidx.build.Publish |
Jason Monk | 41c9f81 | 2018-08-03 19:33:21 -0400 | [diff] [blame] | 22 | |
| 23 | plugins { |
Aurimas Liutikas | cdb9f9f | 2019-04-08 12:07:49 +0100 | [diff] [blame] | 24 | id("AndroidXPlugin") |
| 25 | id("com.android.library") |
Jason Monk | 41c9f81 | 2018-08-03 19:33:21 -0400 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | dependencies { |
Nick Anthony | ac4cf06 | 2019-06-04 10:59:29 -0400 | [diff] [blame] | 29 | implementation "androidx.annotation:annotation:1.1.0" |
Jake Wharton | 5c7db04 | 2019-06-05 22:41:22 -0400 | [diff] [blame] | 30 | implementation project(':collection:collection') |
Jason Monk | 41c9f81 | 2018-08-03 19:33:21 -0400 | [diff] [blame] | 31 | |
Dustin Lam | 3979d96 | 2019-04-08 10:40:19 -0700 | [diff] [blame] | 32 | androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT) |
| 33 | androidTestImplementation(ANDROIDX_TEST_CORE) |
| 34 | androidTestImplementation(ANDROIDX_TEST_RUNNER) |
Jason Monk | 41c9f81 | 2018-08-03 19:33:21 -0400 | [diff] [blame] | 35 | androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) |
| 36 | androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) |
| 37 | androidTestAnnotationProcessor project(":remotecallback-processor") |
| 38 | } |
| 39 | |
| 40 | android { |
| 41 | buildTypes.all { |
| 42 | consumerProguardFiles("proguard-rules.pro") |
| 43 | } |
| 44 | } |
| 45 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 46 | androidx { |
Jason Monk | 41c9f81 | 2018-08-03 19:33:21 -0400 | [diff] [blame] | 47 | name = "Remote Callback" |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 48 | publish = Publish.SNAPSHOT_AND_RELEASE |
Jason Monk | 41c9f81 | 2018-08-03 19:33:21 -0400 | [diff] [blame] | 49 | mavenVersion = LibraryVersions.REMOTECALLBACK |
| 50 | mavenGroup = LibraryGroups.REMOTECALLBACK |
| 51 | inceptionYear = "2018" |
| 52 | description = "Wraps PendingIntents in a friendly and easier way to handle remote callbacks" |
Jason Monk | 41c9f81 | 2018-08-03 19:33:21 -0400 | [diff] [blame] | 53 | failOnDeprecationWarnings = false |
| 54 | } |