1/* 2 * Copyright 2020 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/** 18 * This file was created using the `create_project.py` script located in the 19 * `<AndroidX root>/development/project-creator` directory. 20 * 21 * Please use that script when creating a new project, rather than copying an existing project and 22 * modifying its settings. 23 */ 24 25import androidx.build.PlatformIdentifier 26import androidx.build.SoftwareType 27 28plugins { 29 id("AndroidXPlugin") 30 id("com.android.library") 31} 32 33androidXMultiplatform { 34 androidTarget() 35 desktop() 36 mac() 37 linux() 38 ios() 39 40 defaultPlatform(PlatformIdentifier.ANDROID) 41 42 sourceSets { 43 commonMain { 44 dependencies { 45 api(libs.kotlinStdlib) 46 api(project(":lifecycle:lifecycle-runtime")) 47 } 48 } 49 50 commonTest { 51 dependencies { 52 implementation(libs.kotlinCoroutinesTest) 53 implementation(libs.kotlinTest) 54 implementation(project(":kruth:kruth")) 55 } 56 } 57 58 androidInstrumentedTest { 59 dependencies { 60 implementation(libs.truth) 61 implementation(libs.testExtJunit) 62 implementation(libs.testCore) 63 implementation(libs.testRunner) 64 implementation(libs.kotlinCoroutinesTest) 65 } 66 } 67 } 68} 69 70dependencies { 71 lintPublish(project(":lifecycle:lifecycle-runtime-testing-lint")) 72} 73 74androidx { 75 name = "Lifecycle Runtime Testing" 76 type = SoftwareType.PUBLISHED_TEST_LIBRARY 77 inceptionYear = "2019" 78 description = "Testing utilities for 'lifecycle' artifact" 79} 80 81android { 82 namespace "androidx.lifecycle.testing" 83} 84