blob: af5ba7e9448754d3a170658775955e8a062bb9a5 [file] [log] [blame]
/*
* Copyright 2025 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.SoftwareType
import androidx.build.PlatformIdentifier
import org.jetbrains.kotlin.gradle.plugin.KotlinPlatformType
import org.jetbrains.kotlin.konan.target.Family
plugins {
id("AndroidXPlugin")
id("AndroidXComposePlugin")
}
androidXMultiplatform {
androidLibrary {
compileSdk = 36
namespace = "androidx.navigationevent.compose"
}
jvmStubs()
linuxX64Stubs()
defaultPlatform(PlatformIdentifier.ANDROID)
sourceSets {
commonMain {
dependencies {
api(project(":navigationevent:navigationevent"))
api("androidx.compose.runtime:runtime:1.9.0")
implementation(libs.kotlinStdlib)
implementation(libs.kotlinCoroutinesCore)
}
}
commonTest {
dependencies {
implementation(libs.kotlinTest)
implementation(project(":navigationevent:navigationevent-testing"))
implementation(project(":kruth:kruth"))
}
}
androidMain {
dependsOn(commonMain)
dependencies {
implementation("androidx.compose.ui:ui:1.9.0-rc01") {
because("LocalView")
}
}
}
androidUnitTest {
dependsOn(commonTest)
}
androidInstrumentedTest {
dependsOn(commonTest)
dependencies {
implementation("androidx.compose.material:material:1.9.0-rc01")
implementation("androidx.compose.ui:ui-test:1.9.0-rc01")
implementation("androidx.compose.ui:ui-test-junit4:1.9.0-rc01")
implementation("androidx.compose.ui:ui-test-manifest:1.9.0-rc01")
implementation(libs.testExtJunit)
implementation(libs.testCore)
implementation(libs.testRunner)
implementation(libs.testRules)
}
}
commonStubsMain {
dependsOn(commonMain)
}
jvmStubsMain {
dependsOn(commonStubsMain)
}
linuxx64StubsMain {
dependsOn(commonStubsMain)
}
}
}
androidx {
name = "NavigationEvent Compose"
type = SoftwareType.PUBLISHED_LIBRARY_ONLY_USED_BY_KOTLIN_CONSUMERS
samples(project(":navigationevent:navigationevent-samples"))
inceptionYear = "2025"
description = "Compose integration with NavigationEvent"
}