Jason Monk | 655a88c | 2018-04-30 17:48:50 -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 | 655a88c | 2018-04-30 17:48:50 -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 | 655a88c | 2018-04-30 17:48:50 -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") |
Nick Anthony | f1c97d6 | 2018-11-01 10:39:13 -0400 | [diff] [blame] | 30 | implementation("androidx.collection:collection:1.0.0") |
Jason Monk | 655a88c | 2018-04-30 17:48:50 -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 | 655a88c | 2018-04-30 17:48:50 -0400 | [diff] [blame] | 35 | androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy) |
| 36 | androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy) |
Tony Mak | 8e7b11c | 2019-04-08 14:34:37 +0100 | [diff] [blame] | 37 | androidTestImplementation(TRUTH) |
Jason Monk | 9d82688 | 2018-05-17 11:22:14 -0400 | [diff] [blame] | 38 | androidTestAnnotationProcessor project(":versionedparcelable-annotation") |
Jason Monk | 655a88c | 2018-04-30 17:48:50 -0400 | [diff] [blame] | 39 | } |
| 40 | |
Jason Monk | f622ec9 | 2018-07-03 12:56:33 -0400 | [diff] [blame] | 41 | android { |
Aurimas Liutikas | 51acbc6 | 2019-06-26 15:33:44 -0700 | [diff] [blame] | 42 | compileOptions { |
| 43 | sourceCompatibility = JavaVersion.VERSION_1_7 |
| 44 | targetCompatibility = JavaVersion.VERSION_1_7 |
| 45 | } |
Jason Monk | f622ec9 | 2018-07-03 12:56:33 -0400 | [diff] [blame] | 46 | buildTypes.all { |
| 47 | consumerProguardFiles("proguard-rules.pro") |
| 48 | } |
| 49 | } |
| 50 | |
Aurimas Liutikas | 2ad3161 | 2019-04-01 04:23:03 -0700 | [diff] [blame] | 51 | androidx { |
Ashley Rose | a8f9be5 | 2019-07-19 13:29:24 -0400 | [diff] [blame] | 52 | name = "VersionedParcelable" |
Aurimas Liutikas | 75e93a0 | 2019-05-28 16:31:38 -0700 | [diff] [blame] | 53 | publish = Publish.SNAPSHOT_AND_RELEASE |
Jason Monk | e9ec9c0 | 2018-08-04 17:32:45 -0400 | [diff] [blame] | 54 | mavenVersion = LibraryVersions.VERSIONED_PARCELABLE |
Jason Monk | 8de1fa3 | 2018-05-23 14:28:45 -0400 | [diff] [blame] | 55 | mavenGroup = LibraryGroups.VERSIONEDPARCELABLE |
Jason Monk | 655a88c | 2018-04-30 17:48:50 -0400 | [diff] [blame] | 56 | inceptionYear = "2018" |
| 57 | description = "Provides a stable but relatively compact binary serialization format that can be passed across processes or persisted safely." |
Jason Monk | 655a88c | 2018-04-30 17:48:50 -0400 | [diff] [blame] | 58 | failOnDeprecationWarnings = false |
| 59 | } |