Skip to content

Commit

Permalink
Fix memory leak in Navigation lib by updating to 2.8.0-rc1 + add Leak…
Browse files Browse the repository at this point in the history
…Canary
  • Loading branch information
sebaslogen committed Aug 28, 2024
1 parent 293e29e commit 0a7b01a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ kotlin = '2.0.20'
ksp = '2.0.20-1.0.24'
core-bundle = "1.0.0"
compileSdk = '34'
leakcanaryAndroid = "2.14"
minSdk = '21'
targetSdk = '34'
coroutines = '1.8.1'
material = '1.12.0'
core-ktx = '1.13.1'
navigation = '2.7.7'
navigation = '2.8.0-rc01'
appcompat = '1.7.0'
constraintlayout = '2.1.4'
binary-compatibility-validator = '0.16.3'
Expand All @@ -28,7 +29,7 @@ hilt-navigation-compose = '1.2.0'
# Koin
koin = '4.0.0-RC1'
# Compose Multiplatform
compose-plugin = "1.7.0-alpha02"
compose-plugin = "1.7.0-alpha03"
# Test
junit-version = '4.13.2'
kover = '0.8.3'
Expand All @@ -52,6 +53,8 @@ androidx-lifecycle-runtime-compose = { module = 'org.jetbrains.androidx.lifecycl
androidx-activity-compose = { module = 'androidx.activity:activity-compose', version.ref = 'androidx-activity' }
androidx-navigation-compose = { module = 'androidx.navigation:navigation-compose', version.ref = 'navigation' }
androidx-core-bundle = { module = "org.jetbrains.androidx.core:core-bundle", version.ref = "core-bundle" }
androidx-tracing = { module = "androidx.tracing:tracing", version.ref = "tracing" }
leakcanary-android = { module = "com.squareup.leakcanary:leakcanary-android", version.ref = "leakcanaryAndroid" }

compose-bom = { module = 'androidx.compose:compose-bom', version.ref = 'compose-bom' }
compose-foundation = { module = 'androidx.compose.foundation:foundation' }
Expand All @@ -62,7 +65,6 @@ compose-ui-tooling = { module = 'androidx.compose.ui:ui-tooling' }
compose-ui-toolingPreview = { module = 'androidx.compose.ui:ui-tooling-preview' }
compose-ui-test-junit = { module = 'androidx.compose.ui:ui-test-junit4' }
compose-ui-test-manifest = { module = 'androidx.compose.ui:ui-test-manifest' }
androidx-tracing = { module = "androidx.tracing:tracing", version.ref = "tracing" }

coroutines-android = { module = 'org.jetbrains.kotlinx:kotlinx-coroutines-android', version.ref = 'coroutines' }
kotlin-coroutines-test = { module = 'org.jetbrains.kotlinx:kotlinx-coroutines-test', version.ref = 'coroutines' }
Expand Down
1 change: 1 addition & 0 deletions sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ dependencies {
implementation(libs.androidx.appcompat)
implementation(libs.androidx.constraintlayout)
implementation(libs.android.material)
debugImplementation(libs.leakcanary.android)

// Hilt dependencies
implementation(libs.dagger.hilt)
Expand Down

0 comments on commit 0a7b01a

Please sign in to comment.