blob: 9b235851cb16be8bc3f9cfe6035dc1ddd1fd00a8 [file] [log] [blame]
Jason Monk655a88c2018-04-30 17:48:50 -04001/*
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
17import static androidx.build.dependencies.DependenciesKt.*
18
19import androidx.build.LibraryGroups
20import androidx.build.LibraryVersions
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070021import androidx.build.Publish
Jason Monk655a88c2018-04-30 17:48:50 -040022
23plugins {
Aurimas Liutikascdb9f9f2019-04-08 12:07:49 +010024 id("AndroidXPlugin")
25 id("com.android.library")
Jason Monk655a88c2018-04-30 17:48:50 -040026}
27
28dependencies {
Nick Anthonyac4cf062019-06-04 10:59:29 -040029 implementation("androidx.annotation:annotation:1.1.0")
Nick Anthonyf1c97d62018-11-01 10:39:13 -040030 implementation("androidx.collection:collection:1.0.0")
Jason Monk655a88c2018-04-30 17:48:50 -040031
Dustin Lam3979d962019-04-08 10:40:19 -070032 androidTestImplementation(ANDROIDX_TEST_EXT_JUNIT)
33 androidTestImplementation(ANDROIDX_TEST_CORE)
34 androidTestImplementation(ANDROIDX_TEST_RUNNER)
Jason Monk655a88c2018-04-30 17:48:50 -040035 androidTestImplementation(MOCKITO_CORE, libs.exclude_bytebuddy)
36 androidTestImplementation(DEXMAKER_MOCKITO, libs.exclude_bytebuddy)
Tony Mak8e7b11c2019-04-08 14:34:37 +010037 androidTestImplementation(TRUTH)
Jason Monk9d826882018-05-17 11:22:14 -040038 androidTestAnnotationProcessor project(":versionedparcelable-annotation")
Jason Monk655a88c2018-04-30 17:48:50 -040039}
40
Jason Monkf622ec92018-07-03 12:56:33 -040041android {
Aurimas Liutikas51acbc62019-06-26 15:33:44 -070042 compileOptions {
43 sourceCompatibility = JavaVersion.VERSION_1_7
44 targetCompatibility = JavaVersion.VERSION_1_7
45 }
Jason Monkf622ec92018-07-03 12:56:33 -040046 buildTypes.all {
47 consumerProguardFiles("proguard-rules.pro")
48 }
49}
50
Aurimas Liutikas2ad31612019-04-01 04:23:03 -070051androidx {
Ashley Rosea8f9be52019-07-19 13:29:24 -040052 name = "VersionedParcelable"
Aurimas Liutikas75e93a02019-05-28 16:31:38 -070053 publish = Publish.SNAPSHOT_AND_RELEASE
Jason Monke9ec9c02018-08-04 17:32:45 -040054 mavenVersion = LibraryVersions.VERSIONED_PARCELABLE
Jason Monk8de1fa32018-05-23 14:28:45 -040055 mavenGroup = LibraryGroups.VERSIONEDPARCELABLE
Jason Monk655a88c2018-04-30 17:48:50 -040056 inceptionYear = "2018"
57 description = "Provides a stable but relatively compact binary serialization format that can be passed across processes or persisted safely."
Jason Monk655a88c2018-04-30 17:48:50 -040058 failOnDeprecationWarnings = false
59}