Skip to content

Commit

Permalink
Deps: Migrated androidxLifecycle to Version Catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
neeldoshii committed Jul 18, 2024
1 parent 6177e94 commit 6f2ec2c
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 19 deletions.
20 changes: 10 additions & 10 deletions WordPress/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,9 @@ dependencies {
implementation libs.google.gson
implementation libs.androidx.core
implementation libs.androidx.core.ktx
implementation "androidx.lifecycle:lifecycle-common:$androidxLifecycleVersion"
implementation "androidx.lifecycle:lifecycle-runtime:$androidxLifecycleVersion"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$androidxLifecycleVersion"
implementation libs.androidx.lifecycle.common
implementation libs.androidx.lifecycle.runtime
implementation libs.androidx.lifecycle.runtime.ktx
implementation "androidx.activity:activity:$androidxActivityVersion"
implementation "androidx.activity:activity-ktx:$androidxActivityVersion"
implementation "androidx.activity:activity-compose:$androidxActivityVersion"
Expand All @@ -424,12 +424,12 @@ dependencies {
implementation "androidx.work:work-runtime:$androidxWorkManagerVersion"
implementation "androidx.work:work-runtime-ktx:$androidxWorkManagerVersion"
implementation "androidx.constraintlayout:constraintlayout:$androidxConstraintlayoutVersion"
implementation "androidx.lifecycle:lifecycle-viewmodel:$androidxLifecycleVersion"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$androidxLifecycleVersion"
implementation "androidx.lifecycle:lifecycle-livedata-core:$androidxLifecycleVersion"
implementation "androidx.lifecycle:lifecycle-livedata:$androidxLifecycleVersion"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$androidxLifecycleVersion"
implementation "androidx.lifecycle:lifecycle-process:$androidxLifecycleVersion"
implementation libs.androidx.lifecycle.viewmodel
implementation libs.androidx.lifecycle.viewmodel.ktx
implementation libs.androidx.lifecycle.livedata.core
implementation libs.androidx.lifecycle.livedata
implementation libs.androidx.lifecycle.livedata.ktx
implementation libs.androidx.lifecycle.process
implementation "com.android.volley:volley:$androidVolleyVersion"
implementation "com.google.android.play:review:$googlePlayReviewVersion"
implementation "com.google.android.play:review-ktx:$googlePlayReviewVersion"
Expand Down Expand Up @@ -552,7 +552,7 @@ dependencies {
implementation "androidx.compose.ui:ui-tooling-preview"
implementation "androidx.compose.material:material"
// - Jetpack Compose - AndroidX
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$androidxLifecycleVersion"
implementation libs.androidx.lifecycle.viewmodel.compose
implementation "androidx.constraintlayout:constraintlayout-compose:$androidxConstraintlayoutComposeVersion"
// - Jetpack Compose - Other
implementation "io.coil-kt:coil-compose:$coilComposeVersion"
Expand Down
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ ext {
androidxActivityVersion = '1.8.0'
androidxFragmentVersion = '1.8.1'
androidxGridlayoutVersion = '1.0.0'
androidxLifecycleVersion = '2.6.2'
androidxPercentlayoutVersion = '1.0.0'
androidxPreferenceVersion = '1.2.0'
androidxRecyclerviewVersion = '1.3.2'
Expand Down
12 changes: 12 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
androidxArchCore = '2.2.0'
androidxComposeNavigation = '2.7.7'
androidxCore = '1.10.0'
androidxLifecycle = '2.6.2'
androidxWebkit = '1.11.0'
automatticRest = '1.0.8'
googleGson = '2.10.1'
Expand All @@ -21,6 +22,17 @@ androidx-webkit = {group = "androidx.webkit", name = "webkit", version.ref = "an
automattic-rest = { group = "com.automattic", name = "rest", version.ref = "automatticRest" }
google-gson = { group = "com.google.code.gson", name = "gson", version.ref = "googleGson" }
wordPress-persistentEditText = { group = "org.wordpress", name = "persistentedittext", version.ref = "wordPressPersistentEditText" }
androidx-lifecycle-runtime = { group = "androidx.lifecycle", name = "lifecycle-runtime", version.ref = "androidxLifecycle" }
androidx-lifecycle-common = { group = "androidx.lifecycle", name = "lifecycle-common", version.ref = "androidxLifecycle" }
androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "androidxLifecycle" }
androidx-lifecycle-viewmodel = { group = "androidx.lifecycle", name = "lifecycle-viewmodel", version.ref = "androidxLifecycle" }
androidx-lifecycle-viewmodel-ktx = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-ktx", version.ref = "androidxLifecycle" }
androidx-lifecycle-livedata-core = { group = "androidx.lifecycle", name = "lifecycle-livedata-core", version.ref = "androidxLifecycle" }
androidx-lifecycle-livedata = { group = "androidx.lifecycle", name = "lifecycle-livedata", version.ref = "androidxLifecycle" }
androidx-lifecycle-livedata-ktx = { group = "androidx.lifecycle", name = "lifecycle-livedata-ktx", version.ref = "androidxLifecycle" }
androidx-lifecycle-process = { group = "androidx.lifecycle", name = "lifecycle-process", version.ref = "androidxLifecycle" }
androidx-lifecycle-viewmodel-compose = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-compose", version.ref = "androidxLifecycle" }
androidx-lifecycle-viewmodel-savedstate = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-savedstate", version.ref = "androidxLifecycle" }

[plugins]

6 changes: 3 additions & 3 deletions libs/editor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ dependencies {

implementation "org.wordpress:utils:$wordPressUtilsVersion"

implementation "androidx.lifecycle:lifecycle-common:$androidxLifecycleVersion"
implementation "androidx.lifecycle:lifecycle-runtime:$androidxLifecycleVersion"
implementation "androidx.lifecycle:lifecycle-livedata-core:$androidxLifecycleVersion"
implementation libs.androidx.lifecycle.common
implementation libs.androidx.lifecycle.runtime
implementation libs.androidx.lifecycle.livedata.core
implementation libs.androidx.core
implementation "androidx.fragment:fragment:$androidxFragmentVersion"
implementation "androidx.appcompat:appcompat:$androidxAppcompatVersion"
Expand Down
10 changes: 5 additions & 5 deletions libs/image-editor/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ dependencies {
implementation "com.google.android.material:material:$googleMaterialVersion"
implementation "androidx.navigation:navigation-fragment:$gradle.ext.navigationVersion"
implementation "androidx.navigation:navigation-ui:$gradle.ext.navigationVersion"
implementation "androidx.lifecycle:lifecycle-common:$androidxLifecycleVersion"
implementation "androidx.lifecycle:lifecycle-runtime:$androidxLifecycleVersion"
implementation "androidx.lifecycle:lifecycle-viewmodel:$androidxLifecycleVersion"
implementation "androidx.lifecycle:lifecycle-viewmodel-savedstate:$androidxLifecycleVersion"
implementation "androidx.lifecycle:lifecycle-livedata-core:$androidxLifecycleVersion"
implementation libs.androidx.lifecycle.common
implementation libs.androidx.lifecycle.runtime
implementation libs.androidx.lifecycle.viewmodel
implementation libs.androidx.lifecycle.viewmodel.savedstate
implementation libs.androidx.lifecycle.livedata.core
implementation ("com.github.yalantis:ucrop:$uCropVersion") {
exclude group: 'com.squareup.okhttp3'
exclude group: 'androidx.core', module: 'core'
Expand Down

0 comments on commit 6f2ec2c

Please sign in to comment.