blob: 227b4f81b76cee7c48cc8b16b1b8d2a6e3f7e64d [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
import androidx.build.Publish
plugins {
id("AndroidXPlugin")
id("com.android.library")
id("AndroidXComposePlugin")
}
androidXMultiplatform {
android()
desktop()
defaultPlatform(PlatformIdentifier.ANDROID)
sourceSets {
commonMain {
dependencies {
implementation(libs.kotlinStdlibCommon)
implementation(projectOrArtifact(":compose:runtime:runtime"))
implementation kotlin("test-junit")
implementation(libs.kotlinCoroutinesTest)
implementation(libs.kotlinReflect)
}
}
androidMain.dependencies {
}
jvmMain {
dependsOn(commonMain)
dependencies {
}
}
androidMain {
dependsOn(jvmMain)
dependencies {
}
}
desktopMain {
dependsOn(jvmMain)
dependencies {
}
}
}
}
androidx {
name = "Compose Internal Test Utils"
type = LibraryType.INTERNAL_TEST_LIBRARY
publish = Publish.SNAPSHOT_ONLY
inceptionYear = "2024"
description = "Compose runtime test utils shared between runtime and compiler tests."
}
android {
namespace "androidx.compose.runtime.testutils"
}