blob: 472e8199c73cba86411eb3879161fa29bb96e588 [file] [log] [blame]
/*
* Copyright 2019 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.
*/
/**
* This file was created using the `create_project.py` script located in the
* `<AndroidX root>/development/project-creator` directory.
*
* Please use that script when creating a new project, rather than copying an existing project and
* modifying its settings.
*/
import androidx.build.KotlinTarget
import androidx.build.LibraryType
import androidx.build.PlatformIdentifier
plugins {
id("AndroidXPlugin")
id("AndroidXComposePlugin")
}
androidXMultiplatform {
androidLibrary {
namespace = "androidx.compose.ui.tooling.data"
withAndroidTestOnDeviceBuilder {
it.compilationName = "instrumentedTest"
it.defaultSourceSetName = "androidInstrumentedTest"
it.sourceSetTreeName = "test"
}
withAndroidTestOnJvmBuilder {
it.defaultSourceSetName = "androidUnitTest"
}
compileSdk = 35
aarMetadata.minCompileSdk = 35
}
jvmStubs()
defaultPlatform(PlatformIdentifier.ANDROID)
sourceSets {
commonMain {
dependencies {
implementation(libs.kotlinStdlib)
api(project(":compose:runtime:runtime"))
api(project(":compose:ui:ui"))
}
}
commonTest {
dependencies {
implementation(kotlin("test-junit"))
}
}
jvmMain {
dependsOn(commonMain)
dependencies {
}
}
androidMain {
dependsOn(jvmMain)
dependencies {
api("androidx.annotation:annotation:1.8.1")
api("androidx.annotation:annotation-experimental:1.4.1")
}
}
jvmStubsMain {
dependsOn(jvmMain)
dependencies {
}
}
androidInstrumentedTest {
dependsOn(commonTest)
dependencies {
implementation(project(":compose:ui:ui-test-junit4"))
implementation(libs.junit)
implementation(libs.testCore)
implementation(libs.testRunner)
implementation(libs.testRules)
implementation(libs.truth)
implementation(project(":compose:foundation:foundation-layout"))
implementation(project(":compose:foundation:foundation"))
implementation(project(":compose:material:material"))
implementation("androidx.activity:activity-compose:1.3.1")
}
}
androidUnitTest {
dependsOn(commonTest)
dependencies {
implementation(libs.truth)
}
}
}
}
androidx {
name = "Compose Tooling Data"
type = LibraryType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS
inceptionYear = "2021"
description = "Compose tooling library data. This library provides data about compose" +
" for different tooling purposes."
legacyDisableKotlinStrictApiMode = true
kotlinTarget = KotlinTarget.KOTLIN_1_9
}