Skip to content

Commit

Permalink
Update Gradle along with some other dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MasoudFallahpour committed Jan 13, 2024
1 parent 5d518f7 commit 2ba32e5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
17 changes: 10 additions & 7 deletions app/src/main/kotlin/ir/fallahpoor/eks/EksApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,23 @@ class EksApp : Application(), Configuration.Provider {
.setRequiredNetworkType(NetworkType.CONNECTED)
.setRequiresBatteryNotLow(true)
.build()
return PeriodicWorkRequestBuilder<RefreshLibrariesWorker>(1, TimeUnit.DAYS)
return PeriodicWorkRequestBuilder<RefreshLibrariesWorker>(
repeatInterval = 1,
repeatIntervalTimeUnit = TimeUnit.DAYS
)
.setConstraints(constraints)
.setBackoffCriteria(
BackoffPolicy.LINEAR,
1,
TimeUnit.HOURS
backoffPolicy = BackoffPolicy.LINEAR,
backoffDelay = 1,
timeUnit = TimeUnit.HOURS
)
.setInitialDelay(10, TimeUnit.MINUTES)
.setInitialDelay(duration = 10, timeUnit = TimeUnit.MINUTES)
.addTag(getString(R.string.worker_tag))
.build()
}

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

Expand Down
20 changes: 10 additions & 10 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ compileSdk = "34"
minSdk = "21"
targetSdk = "33"

kotlin = "1.9.10"
lifecycle = "2.6.2"
room = "2.6.0"
workManager = "2.8.1"
kotlin = "1.9.22"
lifecycle = "2.7.0"
room = "2.6.1"
workManager = "2.9.0"
composeBom = "2023.10.01"
composeCompiler = "1.5.3"
coroutines = "1.7.1"
composeCompiler = "1.5.8"
coroutines = "1.7.3"
hilt = "2.48.1"
hiltJetpack = "1.0.0"
hiltJetpack = "1.1.0"
espresso = "3.5.1"
mockito = "5.0.0"

Expand All @@ -21,9 +21,9 @@ core = { module = "androidx.core:core-ktx", version = "1.12.0" }
dataStore-preferences = { module = "androidx.datastore:datastore-preferences", version = "1.0.0" }
appCompat = { module = "androidx.appcompat:appcompat", version = "1.6.1" }

activity-compose = { module = "androidx.activity:activity-compose", version = "1.8.0" }
activity-compose = { module = "androidx.activity:activity-compose", version = "1.8.2" }
constraintLayout-compose = { module = "androidx.constraintlayout:constraintlayout-compose", version = "1.0.1" }
material = { module = "com.google.android.material:material", version = "1.10.0" }
material = { module = "com.google.android.material:material", version = "1.11.0" }
timber = { module = "com.jakewharton.timber:timber", version = "5.0.1" }
inject = { module = "javax.inject:javax.inject", version = "1" }
junit = { module = "junit:junit", version = "4.13.2" }
Expand Down Expand Up @@ -81,7 +81,7 @@ composeLintChecks = { module = "com.slack.lint.compose:compose-lint-checks", ver

immutableCollections = { module = "org.jetbrains.kotlinx:kotlinx-collections-immutable", version = "0.3.5" }

plugin-android = { module = "com.android.tools.build:gradle", version = "8.3.0-alpha11" }
plugin-android = { module = "com.android.tools.build:gradle", version = "8.4.0-alpha04" }
plugin-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
plugin-dagger = { module = "com.google.dagger:hilt-android-gradle-plugin", version.ref = "hilt" }
plugin-googleServices = { module = "com.google.gms:google-services", version = "4.4.0" }
Expand Down

0 comments on commit 2ba32e5

Please sign in to comment.