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 17import static androidx.build.dependencies.DependenciesKt.* 18 19plugins { 20 id("SupportAndroidTestAppPlugin") 21} 22 23android { 24 defaultConfig { 25 applicationId "androidx.lifecycle.testapp" 26 } 27 buildTypes { 28 // test coverage does not work w/ jack 29 debug { 30 testCoverageEnabled = false 31 } 32 release { 33 testCoverageEnabled = false 34 } 35 } 36} 37 38dependencies { 39 // IJ canont figure out transitive dependencies so need to declare them. 40 implementation(project(":lifecycle:lifecycle-common")) 41 implementation(project(":lifecycle:lifecycle-runtime")) 42 implementation(project(":lifecycle:lifecycle-extensions")) 43 annotationProcessor(project(":lifecycle:lifecycle-compiler")) 44 45 androidTestAnnotationProcessor(project(":lifecycle:lifecycle-compiler")) 46 androidTestImplementation(TEST_RUNNER) 47 androidTestImplementation(ESPRESSO_CORE) 48 49 testImplementation(JUNIT) 50 testImplementation(MOCKITO_CORE) 51 testAnnotationProcessor(project(":lifecycle:lifecycle-compiler")) 52} 53 54tasks['check'].dependsOn(tasks['connectedCheck']) 55 56uploadArchives.enabled = false 57