• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
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
17import android.support.LibraryVersions
18import android.support.SupportLibraryExtension
19
20apply plugin: android.support.FlatfootAndroidLibraryPlugin
21
22android {
23    compileSdkVersion tools.current_sdk
24    buildToolsVersion tools.build_tools_version
25
26    defaultConfig {
27        minSdkVersion flatfoot.min_sdk
28        targetSdkVersion tools.current_sdk
29
30        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
31    }
32
33    buildTypes.all {
34        consumerProguardFiles 'proguard-rules.pro'
35    }
36
37    testOptions {
38        unitTests.returnDefaultValues = true
39    }
40}
41dependencies {
42    compile project(":lifecycle:common")
43    compile project(":lifecycle:runtime")
44    compile project(":arch:common")
45    compile project(":arch:runtime")
46    compile libs.support.fragments, libs.support_exclude_config
47
48    annotationProcessor project(":lifecycle:compiler")
49
50    testCompile project(":arch:core-testing")
51    testCompile libs.junit
52    testCompile libs.mockito_core
53
54    androidTestImplementation libs.test_runner,      { exclude module: 'support-annotations' }
55    androidTestImplementation libs.espresso_core,    { exclude module: 'support-annotations' }
56    androidTestImplementation libs.support.app_compat, libs.support_exclude_config
57}
58
59createAndroidCheckstyle(project)
60
61version = LibraryVersions.LIFECYCLES_EXT.toString()
62supportLibrary {
63    name 'Android Lifecycle Extensions'
64    publish true
65    inceptionYear '2017'
66    description "Android Lifecycle Extensions"
67    url SupportLibraryExtension.ARCHITECTURE_URL
68}