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 17plugins { 18 id("AndroidXPlugin") 19 id("com.android.application") 20 id("org.jetbrains.kotlin.android") 21} 22 23dependencies { 24 api(libs.jspecify) 25 implementation(libs.kotlinStdlib) 26 implementation("androidx.fragment:fragment:1.3.0") { 27 exclude group: "androidx.lifecycle", module: "lifecycle-runtime" 28 } 29 implementation(project(":lifecycle:lifecycle-process")) 30 implementation(project(":lifecycle:lifecycle-common")) 31 implementation(project(":lifecycle:lifecycle-runtime")) 32 annotationProcessor(project(":lifecycle:lifecycle-compiler")) 33 34 androidTestAnnotationProcessor(project(":lifecycle:lifecycle-compiler")) 35 androidTestImplementation(project(":lifecycle:lifecycle-common")) // Added for b/155802460 36 androidTestImplementation(libs.testExtJunit) 37 androidTestImplementation(libs.testCore) 38 androidTestImplementation(libs.testRunner) 39 androidTestImplementation(libs.testRules) 40 androidTestImplementation(libs.espressoCore) 41 androidTestImplementation(libs.truth) 42 43 testImplementation(libs.junit) 44 testImplementation(libs.mockitoCore4) 45 testAnnotationProcessor(project(":lifecycle:lifecycle-compiler")) 46} 47 48android { 49 namespace = "androidx.lifecycle.testapp" 50} 51