Skip to content

Commit

Permalink
Deps & Plugin: Migrated dagger to Version Catalog
Browse files Browse the repository at this point in the history
Co-Authored-By: Petros Paraskevopoulos <[email protected]>
Co-Authored-By: Wojciech Zięba <[email protected]>
  • Loading branch information
3 people committed Jul 5, 2024
1 parent 75d127c commit ff79069
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
14 changes: 7 additions & 7 deletions WordPress/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
id "io.sentry.android.gradle"
id "se.bjurr.violations.violation-comments-to-github-gradle-plugin"
id "com.google.gms.google-services"
id "com.google.dagger.hilt.android"
alias(libs.plugins.dagger)
id "org.jetbrains.kotlinx.kover"
id "com.google.devtools.ksp"
}
Expand Down Expand Up @@ -470,10 +470,10 @@ dependencies {
implementation ("com.google.android.exoplayer:exoplayer:$googleExoPlayerVersion") {
exclude group: 'com.android.support', module: 'support-annotations'
}
implementation "com.google.dagger:dagger-android-support:$gradle.ext.daggerVersion"
ksp "com.google.dagger:dagger-android-processor:$gradle.ext.daggerVersion"
implementation "com.google.dagger:hilt-android:$gradle.ext.daggerVersion"
ksp "com.google.dagger:hilt-compiler:$gradle.ext.daggerVersion"
implementation libs.dagger.android.support
ksp libs.dagger.android.processor
implementation libs.dagger.hilt.android
ksp libs.dagger.hilt.compiler

testImplementation(libs.androidx.coreTesting, {
exclude group: 'com.android.support', module: 'support-compat'
Expand Down Expand Up @@ -526,8 +526,8 @@ dependencies {
}
androidTestImplementation (name:'cloudtestingscreenshotter_lib', ext:'aar') // Screenshots on Firebase Cloud Testing
androidTestImplementation "androidx.work:work-testing:$androidxWorkManagerVersion"
androidTestImplementation "com.google.dagger:hilt-android-testing:$gradle.ext.daggerVersion"
kspAndroidTest "com.google.dagger:hilt-android-compiler:$gradle.ext.daggerVersion"
androidTestImplementation libs.dagger.hilt.android.testing
kspAndroidTest libs.dagger.hilt.android.compiler
// Enables Java 8+ API desugaring support
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:$androidDesugarVersion"
lintChecks "org.wordpress:lint:$wordPressLintVersion"
Expand Down
9 changes: 8 additions & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ androidxFragment = '1.6.2'
androidxLifecycle = '2.6.2'
androidxWebkit = '1.11.0'
automatticRest = '1.0.8'
dagger = '2.50'
glide = '4.16.0'
googlePlayAppUpdate = '2.1.0'
gson = '2.10.1'
Expand Down Expand Up @@ -55,11 +56,17 @@ androidx-lifecycle-viewmodel-savedstate = { group = "androidx.lifecycle", name =
androidx-navigation = { group = "androidx.navigation", name = "navigation-compose", version.ref = "androidxComposeNavigation" }
androidx-webkit = {group = "androidx.webkit", name = "webkit", version.ref = "androidxWebkit"}
automattic-rest = { group = "com.automattic", name = "rest", version.ref = "automatticRest" }
dagger-android-processor = { group = "com.google.dagger", name = "dagger-android-processor", version.ref = "dagger" }
dagger-android-support = { group = "com.google.dagger", name = "dagger-android-support", version.ref = "dagger" }
dagger-hilt-android = { group = "com.google.dagger", name = "hilt-android", version.ref = "dagger" }
dagger-hilt-android-compiler = { group = "com.google.dagger", name = "hilt-android-compiler", version.ref = "dagger" }
dagger-hilt-android-testing = { group = "com.google.dagger", name = "hilt-android-testing", version.ref = "dagger" }
dagger-hilt-compiler = { group = "com.google.dagger", name = "hilt-compiler", version.ref = "dagger" }
glide = { group = "com.github.bumptech.glide", name = "glide", version.ref ="glide" }
glide-ksp = { group = "com.github.bumptech.glide", name = "ksp", version.ref ="glide" }
glide-volley-integration = { group = "com.github.bumptech.glide", name = "volley-integration", version.ref ="glide" }
google-gson = { group = "com.google.code.gson", name = "gson", version.ref = "gson" }
wordPress-persistentEditText = { group = "org.wordpress", name = "persistentedittext", version.ref = "wordPressPersistentEditText" }

[plugins]

dagger = { id = "com.google.dagger.hilt.android", version.ref = "dagger" }
2 changes: 0 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ pluginManagement {
gradle.ext.googleServicesVersion = '4.3.15'
gradle.ext.navigationVersion = '2.7.7'
gradle.ext.sentryVersion = '4.3.1'
gradle.ext.daggerVersion = "2.50"
gradle.ext.detektVersion = '1.23.0'
gradle.ext.violationCommentsVersion = '1.70.0'
gradle.ext.measureBuildsVersion = '2.1.2'
Expand All @@ -27,7 +26,6 @@ pluginManagement {
id "se.bjurr.violations.violation-comments-to-github-gradle-plugin" version gradle.ext.violationCommentsVersion
id 'com.automattic.android.measure-builds' version gradle.ext.measureBuildsVersion
id "org.jetbrains.kotlinx.kover" version gradle.ext.koverVersion
id "com.google.dagger.hilt.android" version gradle.ext.daggerVersion
id "com.google.devtools.ksp" version gradle.ext.kspVersion
id "com.autonomousapps.dependency-analysis" version gradle.ext.dependencyAnalysisVersion
}
Expand Down

0 comments on commit ff79069

Please sign in to comment.