blob: 79be36c85ac27138505f7676cebb967942421695 [file] [log] [blame]
Aurimas Liutikasbb85fac2017-08-24 13:32:28 -07001/*
2 * Copyright (C) 2017 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
Yigit Boyard3829822017-08-25 16:53:25 -070017import android.support.LibraryVersions
Aurimas Liutikasbb85fac2017-08-24 13:32:28 -070018import android.support.SupportLibraryExtension
19
20apply plugin: android.support.FlatfootAndroidLibraryPlugin
Yigit Boyarb96ccea2016-10-31 17:51:15 -070021
22android {
Yigit Boyar450ed382017-03-02 09:48:25 -080023 compileSdkVersion tools.current_sdk
24 buildToolsVersion tools.build_tools_version
Yigit Boyarb96ccea2016-10-31 17:51:15 -070025
26 defaultConfig {
Yigit Boyar450ed382017-03-02 09:48:25 -080027 minSdkVersion flatfoot.min_sdk
28 targetSdkVersion tools.current_sdk
Yigit Boyarb96ccea2016-10-31 17:51:15 -070029
30 testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Yigit Boyarb96ccea2016-10-31 17:51:15 -070031 }
Sergey Vasilinets1a067872017-06-21 16:27:47 -070032
33 buildTypes.all {
34 consumerProguardFiles 'proguard-rules.pro'
35 }
36
Yigit Boyarc1b53ee2016-11-09 15:33:52 -080037 testOptions {
38 unitTests.returnDefaultValues = true
39 }
40}
Yigit Boyarb96ccea2016-10-31 17:51:15 -070041dependencies {
Yigit Boyar2eb51992016-12-13 15:00:07 -080042 compile project(":lifecycle:runtime")
Chris Craik9fd8e612017-06-23 14:07:04 -070043 compile project(":arch:common")
Yigit Boyar8205ce12017-07-09 23:07:05 -070044 compile project(":arch:runtime")
Sergey Vasilinetscb1c88d2017-09-12 17:21:41 -070045 compile libs.support.fragments, libs.support_exclude_config
Sergey Vasilinetsd069a4c2017-09-21 11:27:31 -070046 compile project(":lifecycle:common")
Sergey Vasilinetsb86bef22017-04-21 17:42:13 -070047
Yigit Boyar64db0cc2017-04-17 13:18:56 -070048 testCompile project(":arch:core-testing")
Yigit Boyar450ed382017-03-02 09:48:25 -080049 testCompile libs.junit
Yigit Boyarb323d282017-06-28 13:58:45 -070050 testCompile libs.mockito_core
Sergey Vasilinetsd7d94612017-03-09 22:29:54 -080051
Aurimas Liutikasbb85fac2017-08-24 13:32:28 -070052 androidTestImplementation libs.test_runner, { exclude module: 'support-annotations' }
53 androidTestImplementation libs.espresso_core, { exclude module: 'support-annotations' }
Sergey Vasilinetscb1c88d2017-09-12 17:21:41 -070054 androidTestImplementation libs.support.app_compat, libs.support_exclude_config
Yigit Boyar19b41102016-11-20 10:46:32 -080055}
56
Sergey Vasilinetsb085e342016-12-05 19:02:59 -080057createAndroidCheckstyle(project)
Aurimas Liutikasbb85fac2017-08-24 13:32:28 -070058
Yigit Boyard3829822017-08-25 16:53:25 -070059version = LibraryVersions.LIFECYCLES_EXT.toString()
Aurimas Liutikasbb85fac2017-08-24 13:32:28 -070060supportLibrary {
61 name 'Android Lifecycle Extensions'
62 publish true
63 inceptionYear '2017'
64 description "Android Lifecycle Extensions"
65 url SupportLibraryExtension.ARCHITECTURE_URL
66}