Skip to content

Commit 0cfa719

Browse files
committed
Fix startup crash when running in release mode
1 parent 9308c4c commit 0cfa719

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Jetsnack/app/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ dependencies {
124124
implementation(libs.androidx.navigation3.runtime)
125125
implementation(libs.androidx.lifecycle.viewmodel.navigation3)
126126
implementation(libs.kotlinx.serialization.json)
127+
implementation(libs.androidx.startup)
128+
implementation(libs.androidx.work.runtime.ktx)
129+
implementation(libs.androidx.room.runtime)
130+
implementation(libs.androidx.room.ktx)
127131

128132
implementation(libs.androidx.compose.runtime)
129133
implementation(libs.androidx.compose.foundation)

Jetsnack/gradle/libs.versions.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ androidx-lifecycle-runtime-compose = "2.10.0"
1515
androidx-navigation3 = "1.1.0-alpha04"
1616
androidx-lifecycle-navigation3 = "2.10.0"
1717
androidx-palette = "1.0.0"
18+
androidx-startup = "1.2.0"
1819
androidx-test = "1.7.0"
1920
androidx-test-espresso = "3.7.0"
2021
androidx-test-ext-junit = "1.3.0"
@@ -56,6 +57,7 @@ spotless = "8.2.1"
5657
targetSdk = "36"
5758
version-catalog-update = "1.0.1"
5859
navigation3 = "1.0.0"
60+
work = "2.9.1"
5961

6062
[libraries]
6163
accompanist-adaptive = { module = "com.google.accompanist:accompanist-adaptive", version.ref = "accompanist" }
@@ -107,6 +109,7 @@ androidx-palette = { module = "androidx.palette:palette", version.ref = "android
107109
androidx-room-compiler = { module = "androidx.room:room-compiler", version.ref = "room" }
108110
androidx-room-ktx = { module = "androidx.room:room-ktx", version.ref = "room" }
109111
androidx-room-runtime = { module = "androidx.room:room-runtime", version.ref = "room" }
112+
androidx-startup = { module = "androidx.startup:startup-runtime", version.ref = "androidx-startup" }
110113
androidx-test-core = { module = "androidx.test:core", version.ref = "androidx-test" }
111114
androidx-test-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "androidx-test-espresso" }
112115
androidx-test-ext-junit = { module = "androidx.test.ext:junit", version.ref = "androidx-test-ext-junit" }
@@ -122,6 +125,7 @@ androidx-wear-compose-navigation = { module = "androidx.wear.compose:compose-nav
122125
androidx-wear-compose-ui-tooling = { module = "androidx.wear.compose:compose-ui-tooling", version.ref = "androidx-wear-compose" }
123126
androidx-window = { module = "androidx.window:window", version.ref = "androidx-window" }
124127
androidx-window-core = { module = "androidx.window:window-core", version.ref = "androidx-window" }
128+
androidx-work-runtime-ktx = { module = "androidx.work:work-runtime-ktx", version.ref = "work" }
125129
coil-kt-compose = { module = "io.coil-kt:coil-compose", version.ref = "coil" }
126130
core-jdk-desugaring = { module = "com.android.tools:desugar_jdk_libs", version.ref = "jdkDesugar" }
127131
dagger-hiltandroidplugin = { module = "com.google.dagger:hilt-android-gradle-plugin", version.ref = "hilt" }

0 commit comments

Comments
 (0)