fix: use nav3 snapshots

This works around a fatal crash that is triggered during configuration changes
This commit is contained in:
Harsh Shandilya 2025-06-03 01:29:35 +05:30
parent 6badde13b0
commit 669ec2ad09
3 changed files with 23 additions and 5 deletions

View file

@ -60,6 +60,17 @@ composeCompiler {
) )
} }
// TODO: Remove when Nav3 gets a new release
configurations.configureEach {
resolutionStrategy {
eachDependency {
if (requested.group == "androidx.lifecycle") {
useVersion(libs.versions.lifecycle.get())
}
}
}
}
licensee { licensee {
allow("Apache-2.0") allow("Apache-2.0")
allow("MIT") allow("MIT")

View file

@ -15,8 +15,9 @@ konvert = "4.1.0"
kotlin = "2.1.21" kotlin = "2.1.21"
kotlinResult = "2.0.1" kotlinResult = "2.0.1"
leakcanary = "3.0-alpha-8" leakcanary = "3.0-alpha-8"
lifecycle = "2.9.0" lifecycle = "2.10.0-SNAPSHOT"
navigation3 = "1.0.0-alpha02" # TODO: Update lifecycle to stable when next update drops
navigation3 = "1.0.0-SNAPSHOT"
navigation3-material = "1.0.0-SNAPSHOT" navigation3-material = "1.0.0-SNAPSHOT"
retrofit = "3.0.0" retrofit = "3.0.0"
richtext = "1.0.0-alpha02" richtext = "1.0.0-alpha02"

View file

@ -102,10 +102,16 @@ dependencyResolutionManagement {
name = "Compose Compiler Snapshots" name = "Compose Compiler Snapshots"
content { includeGroup("androidx.compose.compiler") } content { includeGroup("androidx.compose.compiler") }
} }
maven("https://androidx.dev/snapshots/builds/13546692/artifacts/repository") { maven("https://androidx.dev/snapshots/builds/13585391/artifacts/repository") {
name = "AndroidX Snapshots" name = "AndroidX Snapshots"
mavenContent { snapshotsOnly() } content {
content { includeGroup("androidx.compose.material3.adaptive") } includeGroup("androidx.activity")
includeGroup("androidx.compose.material3.adaptive")
includeGroup("androidx.lifecycle")
includeGroup("androidx.navigationevent")
includeGroup("androidx.navigation3")
includeGroup("androidx.savedstate")
}
} }
maven("https://oss.sonatype.org/content/repositories/snapshots/") { maven("https://oss.sonatype.org/content/repositories/snapshots/") {
name = "Sonatype Snapshots" name = "Sonatype Snapshots"