Skip to content

Commit

Permalink
fix(deps): update dependency androidx.work:work-runtime-ktx to v2.9.0 (
Browse files Browse the repository at this point in the history
…#1131)

* fix(deps): update dependency androidx.work:work-runtime-ktx to v2.9.0

* fix: change workmanager config to be a val instead of fun

Update to fix compilation issue due to new workmanager version

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Troy Rijkaard <[email protected]>
  • Loading branch information
renovate[bot] and Chesire committed Feb 25, 2024
1 parent c44f91d commit 57a07d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions app/src/main/java/com/chesire/nekome/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ class App : Application(), Configuration.Provider {
@Inject
lateinit var dataRefreshNotifier: DataRefreshNotifier

override val workManagerConfiguration: Configuration
get() = Configuration.Builder()
.setWorkerFactory(workerFactory)
.build()

@OptIn(DelicateCoroutinesApi::class)
override fun onCreate() {
super.onCreate()
Expand All @@ -59,11 +64,6 @@ class App : Application(), Configuration.Provider {
}
}

override fun getWorkManagerConfiguration() =
Configuration.Builder()
.setWorkerFactory(workerFactory)
.build()

private fun startStrictMode() {
StrictMode.setThreadPolicy(
StrictMode.ThreadPolicy.Builder()
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ androidx-test-espresso-core = { module = "androidx.test.espresso:espresso-core",
androidx-test-espresso-intents = { module = "androidx.test.espresso:espresso-intents", version.ref = "androidx-espresso" }
androidx-test-ext-junit = { module = "androidx.test.ext:junit", version = "1.1.5" }
androidx-test-rules = { module = "androidx.test:rules", version = "1.5.0" }
androidx-work-runtime = { module = "androidx.work:work-runtime-ktx", version = "2.8.1" }
androidx-work-runtime = { module = "androidx.work:work-runtime-ktx", version = "2.9.0" }
coil = { module = "io.coil-kt:coil", version.ref = "coil" }
coil-compose = { module = "io.coil-kt:coil-compose", version.ref = "coil" }
detekt-compose = { module = "io.nlopez.compose.rules:detekt", version = "0.3.11" }
Expand Down

0 comments on commit 57a07d2

Please sign in to comment.