blob: 0b326a26969a3580f9279beec53414e90d7f3ed1 [file] [log] [blame]
/*
* Copyright 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import androidx.build.LibraryType
import androidx.build.PlatformIdentifier
plugins {
id("AndroidXPlugin")
id("AndroidXComposePlugin")
}
androidXMultiplatform {
androidLibrary {
namespace = "androidx.compose.runtime.testutils"
withAndroidTestOnDeviceBuilder {
it.compilationName = "instrumentedTest"
it.defaultSourceSetName = "androidInstrumentedTest"
it.sourceSetTreeName = "test"
}
withAndroidTestOnJvmBuilder {
it.defaultSourceSetName = "androidUnitTest"
}
}
jvmStubs()
linuxX64Stubs()
defaultPlatform(PlatformIdentifier.ANDROID)
sourceSets {
commonMain {
dependencies {
implementation(libs.kotlinStdlibCommon)
implementation(project(":compose:runtime:runtime"))
implementation kotlin("test")
implementation(libs.kotlinCoroutinesTest)
implementation(libs.kotlinReflect)
}
}
jvmMain {
dependsOn(commonMain)
dependencies {
}
}
androidMain {
dependsOn(jvmMain)
dependencies {
}
}
commonStubsMain {
dependsOn(commonMain)
}
jvmStubsMain {
dependsOn(jvmMain)
}
linuxx64StubsMain {
dependsOn(commonStubsMain)
}
}
}
androidx {
// This library is consumed by Kotlin CI to run Compose runtime test with the latest compiler.
name = "Compose Internal Test Utils"
type = LibraryType.SNAPSHOT_ONLY_LIBRARY
inceptionYear = "2024"
description = "Compose runtime test utils shared between runtime and compiler tests."
}