Migrate dependencies to TOML catalog

Migrate dependencies to TOML catalog.

* Add `gradle/libs.versions.toml` file to define all dependencies, plugins, and build versions.
* Modify `build.gradle` to apply the `libs.versions.toml` file for dependency management and update the `classpath` dependencies.
* Modify `core.gradle` to apply the `libs.versions.toml` file for dependency management and update the `dependencies` block.
* Modify `app/build.gradle` to apply the `libs.versions.toml` file for dependency management and update the `dependencies` block.
* Modify `base/build.gradle` to apply the `libs.versions.toml` file for dependency management and update the `dependencies` block.
* Modify `albumlist/build.gradle` to apply the `libs.versions.toml` file for dependency management.
* Modify `photolist/build.gradle` to apply the `libs.versions.toml` file for dependency management.
* Modify `testing/build.gradle` to apply the `libs.versions.toml` file for dependency management and update the `dependencies` block.
* Delete `versions.gradle` and `base/versions.gradle` files.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/imcarlost/Friendlists?shareId=XXXX-XXXX-XXXX-XXXX).
This commit is contained in:
Carlos Martinez
2024-10-01 14:07:34 -03:00
parent 18f53543d4
commit d6241ca6eb
10 changed files with 124 additions and 183 deletions

64
gradle/libs.versions.toml Normal file
View File

@@ -0,0 +1,64 @@
[versions]
kotlin = "1.3.41"
androidx_appcompat = "1.1.0"
androidx_core = "1.1.0"
androidx_constraint_layout = "1.1.3"
androidx_lifecycle = "2.2.0"
androidx_recycler_view = "1.1.0"
androidx_navigation = "2.2.0"
okhttp_logging_interceptor = "4.3.1"
retrofit = "2.7.1"
timber = "4.7.1"
room = "2.2.3"
koin = "2.0.1"
rx_core = "2.2.17"
rx_android = "2.1.1"
junit = "4.13"
test = "1.2.0"
test_ext = "1.1.1"
espresso = "3.2.0"
lottie = "3.3.1"
picasso = "2.71828"
gradle = "3.5.3"
[plugins]
kotlin = { id = "org.jetbrains.kotlin.kotlin-gradle-plugin", version.ref = "kotlin" }
gradle = { id = "com.android.tools.build.gradle", version.ref = "gradle" }
[libraries]
kotlin_std_lib = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib-jdk7", version.ref = "kotlin" }
androidx_appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "androidx_appcompat" }
androidx_core_ktx = { group = "androidx.core", name = "core-ktx", version.ref = "androidx_core" }
androidx_constraint_layout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "androidx_constraint_layout" }
androidx_lifecycle_ext = { group = "androidx.lifecycle", name = "lifecycle-extensions", version.ref = "androidx_lifecycle" }
androidx_lifecycle_viewmodel = { group = "androidx.lifecycle", name = "lifecycle-viewmodel-ktx", version.ref = "androidx_lifecycle" }
androidx_recycler_view = { group = "androidx.recyclerview", name = "recyclerview", version.ref = "androidx_recycler_view" }
androidx_navigation_fragment = { group = "androidx.navigation", name = "navigation-fragment-ktx", version.ref = "androidx_navigation" }
androidx_navigation_ui = { group = "androidx.navigation", name = "navigation-ui-ktx", version.ref = "androidx_navigation" }
retrofit_runtime = { group = "com.squareup.retrofit2", name = "retrofit", version.ref = "retrofit" }
retrofit_gson = { group = "com.squareup.retrofit2", name = "converter-gson", version.ref = "retrofit" }
retrofit_mock = { group = "com.squareup.retrofit2", name = "retrofit-mock", version.ref = "retrofit" }
retrofit_rx = { group = "com.squareup.retrofit2", name = "adapter-rxjava2", version.ref = "retrofit" }
room_runtime = { group = "androidx.room", name = "room-runtime", version.ref = "room" }
room_compiler = { group = "androidx.room", name = "room-compiler", version.ref = "room" }
koin_core = { group = "org.koin", name = "koin-android", version.ref = "koin" }
koin_scope = { group = "org.koin", name = "koin-androidx-scope", version.ref = "koin" }
koin_viewmodel = { group = "org.koin", name = "koin-androidx-viewmodel", version.ref = "koin" }
rx_core = { group = "io.reactivex.rxjava2", name = "rxjava", version.ref = "rx_core" }
rx_android = { group = "io.reactivex.rxjava2", name = "rxandroid", version.ref = "rx_android" }
testing_junit = { group = "junit", name = "junit", version.ref = "junit" }
testing_core = { group = "androidx.test", name = "core", version.ref = "test" }
testing_rules = { group = "androidx.test", name = "rules", version.ref = "test" }
testing_runner = { group = "androidx.test", name = "runner", version.ref = "test" }
testing_ext = { group = "androidx.test.ext", name = "junit", version.ref = "test_ext" }
testing_koin = { group = "org.koin", name = "koin-test", version.ref = "koin" }
testing_espresso = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espresso" }
okhttp_logging_interceptor = { group = "com.squareup.okhttp3", name = "logging-interceptor", version.ref = "okhttp_logging_interceptor" }
timber = { group = "com.jakewharton.timber", name = "timber", version.ref = "timber" }
lottie = { group = "com.airbnb.android", name = "lottie", version.ref = "lottie" }
picasso = { group = "com.squareup.picasso", name = "picasso", version.ref = "picasso" }
[build_versions]
min_sdk = 21
target_sdk = 29
build_tools = "29.0.3"