1 /* 2 * Copyright (C) 2016 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 apply plugin: 'com.android.application' 18 19 project.ext.noDocs = true 20 21 android { 22 compileSdkVersion tools.current_sdk 23 buildToolsVersion tools.build_tools_version 24 25 defaultConfig { 26 applicationId "android.arch.lifecycle.testapp" 27 minSdkVersion flatfoot.min_sdk 28 targetSdkVersion tools.current_sdk 29 versionCode 1 30 versionName "1.0" 31 32 testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" 33 } 34 35 testOptions { 36 unitTests.returnDefaultValues = true 37 } 38 39 compileOptions { 40 sourceCompatibility JavaVersion.VERSION_1_8 41 targetCompatibility JavaVersion.VERSION_1_8 42 } 43 buildTypes { 44 // test coverage does not work w/ jack 45 debug { 46 testCoverageEnabled = false 47 } 48 release { 49 testCoverageEnabled = false 50 } 51 } 52 } 53 54 dependencies { 55 // IJ canont figure out transitive dependencies so need to declare them. 56 compile project(":lifecycle:common") 57 compile project(":lifecycle:runtime") 58 compile project(":lifecycle:extensions") 59 annotationProcessor project(":lifecycle:compiler") 60 androidTestAnnotationProcessor project(":lifecycle:compiler") 61 androidTestCompile(libs.test_runner) { 62 exclude module: 'support-annotations' 63 } 64 androidTestCompile(libs.espresso_core, { 65 exclude group: 'com.android.support', module: 'support-annotations' 66 }) 67 testCompile libs.junit 68 } 69 createAndroidCheckstyle(project) 70 71 tasks['check'].dependsOn(tasks['connectedCheck']) 72 73 uploadArchives.enabled = false 74