Adding to your project
Decompose-Router is published on Maven Central
repositories {
mavenCentral()
// or for snapshot builds
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
With version catalog
[versions]
decompose-router = "<version>"
[libraries]
# For Jetpack Compose / Compose Multiplatform
decompose-router = { module = "io.github.xxfast:decompose-router", version.ref = "decompose-router" }
# For Compose Wear
decompose-router-wear = { module = "io.github.xxfast:decompose-router-wear", version.ref = "decompose-router" }
build.gradle.kts
sourceSets {
// For Compose Multiplatform
val commonMain by getting {
dependencies {
implementation(libs.decompose.router)
}
}
// For Compose Wear
val androidMain by getting {
dependencies {
implementation(libs.decompose.router.wear)
}
}
}
Without version catalog
build.gradle.kts
sourceSets {
// For Compose Multiplatform
val commonMain by getting {
dependencies {
implementation("io.github.xxfast:decompose-router:${versions.decompose-router}")
}
}
// For Compose Wear
val androidMain by getting {
dependencies {
implementation("io.github.xxfast:decompose-router-wear:${versions.decompose-router}")
}
}
}
Last modified: 25 November 2024