1/* 2 * Copyright (C) 2019 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// TO debug processor, run: 17//./gradlew :r:in:k:clean :r:in:k:cC --no-daemon 18// -Dorg.gradle.debug=true 19// -Dkotlin.compiler.execution.strategy="in-process" 20 21plugins { 22 id("AndroidXPlugin") 23 id("com.android.application") 24 id("org.jetbrains.kotlin.android") 25} 26 27dependencies { 28 implementation(project(":lifecycle:lifecycle-runtime-ktx")) 29 implementation("androidx.activity:activity:1.2.0") { 30 exclude group: "androidx.lifecycle" 31 } 32 implementation(project(":lifecycle:lifecycle-viewmodel-savedstate")) { 33 because "Used by :activity:activity" 34 } 35 36 testImplementation(libs.junit) 37 testImplementation(libs.truth) 38 testImplementation(libs.kotlinCoroutinesAndroid) 39 testImplementation(libs.kotlinCoroutinesTest) 40 testImplementation(project(":lifecycle:lifecycle-runtime-testing")) 41 42 androidTestImplementation(project(":lifecycle:lifecycle-runtime-testing")) 43 androidTestImplementation(libs.testCore) 44 androidTestImplementation(libs.kotlinCoroutinesTest) 45 androidTestImplementation(libs.kotlinCoroutinesAndroid) 46 androidTestImplementation(libs.testExtJunitKtx) 47 androidTestImplementation(libs.truth) 48 androidTestImplementation(libs.testRunner) 49 androidTestImplementation(libs.espressoCore) 50} 51 52android { 53 sourceSets { 54 test.java.srcDirs += "src/test-common/java" 55 androidTest.java.srcDirs += "src/test-common/java" 56 } 57 namespace = "androidx.lifecycle.kotlintestapp" 58} 59