Bump the version catalog, Gradle wrapper, and convention plugins to the latest stable releases. Verified with `./gradlew assembleDebug test` (BUILD SUCCESSFUL, 21 unit tests pass). Toolchain: - Gradle 9.1.0 -> 9.5.1 - AGP 9.0.1 -> 9.2.1 - Kotlin 2.3.20 -> 2.4.0 Libraries: - androidx-core 1.18.0 -> 1.19.0, appcompat 1.7.0 -> 1.7.1, fragment 1.8.5 -> 1.8.9, navigation 2.9.0 -> 2.9.8 - compose-bom 2026.03.01 -> 2026.05.01, material 1.12.0 -> 1.14.0 - coroutines 1.10.2 -> 1.11.0, serialization 1.8.1 -> 1.11.0, collections-immutable 0.3.8 -> 0.5.0 - koin 4.1.0 -> 4.2.1, ktor 3.1.3 -> 3.5.0, coil 3.1.0 -> 3.5.0 - JUnit 5.11.4 -> 6.1.0, turbine 1.2.0 -> 1.2.1, mockk 1.14.3 -> 1.14.11 Required side-effect: - compileSdk 36 -> 37 (mandated by androidx.core 1.19.0); targetSdk left at 36. Also refresh stale JUnit 5 / AGP 9.0 / compileSdk 36 references in the README and convention-plugin docs.
178 lines
9.1 KiB
TOML
178 lines
9.1 KiB
TOML
[versions]
|
|
# Build / language
|
|
agp = "9.2.1"
|
|
kotlin = "2.4.0"
|
|
|
|
# AndroidX - core / lifecycle / activity / views
|
|
androidxCore = "1.19.0"
|
|
androidxLifecycle = "2.10.0"
|
|
androidxActivity = "1.13.0"
|
|
androidxAppcompat = "1.7.1"
|
|
androidxFragment = "1.8.9"
|
|
androidxRecyclerview = "1.4.0"
|
|
androidxNavigation = "2.9.8"
|
|
|
|
# Compose (BOM-managed)
|
|
composeBom = "2026.05.01"
|
|
|
|
# Async / serialization
|
|
coroutines = "1.11.0"
|
|
kotlinxSerialization = "1.11.0"
|
|
kotlinxCollectionsImmutable = "0.5.0"
|
|
|
|
# DI
|
|
koin = "4.2.1"
|
|
|
|
# Networking
|
|
ktor = "3.5.0"
|
|
|
|
# Image loading
|
|
coil = "3.5.0"
|
|
|
|
# Logging
|
|
timber = "5.0.1"
|
|
|
|
# Material Components (Views renderer)
|
|
material = "1.14.0"
|
|
|
|
# Testing
|
|
junitJupiter = "6.1.0"
|
|
junitPlatform = "6.1.0"
|
|
turbine = "1.2.1"
|
|
assertk = "0.28.1"
|
|
mockk = "1.14.11"
|
|
androidxTestExt = "1.3.0"
|
|
androidxTestRunner = "1.7.0"
|
|
androidxEspresso = "3.7.0"
|
|
|
|
[libraries]
|
|
# --- Gradle plugin artifacts (consumed by :build-logic convention plugins) ---
|
|
android-gradlePlugin = { module = "com.android.tools.build:gradle", version.ref = "agp" }
|
|
kotlin-gradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
|
|
compose-compiler-gradlePlugin = { module = "org.jetbrains.kotlin:compose-compiler-gradle-plugin", version.ref = "kotlin" }
|
|
|
|
# --- AndroidX core / lifecycle / activity ---
|
|
androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "androidxCore" }
|
|
androidx-activity-compose = { module = "androidx.activity:activity-compose", version.ref = "androidxActivity" }
|
|
androidx-lifecycle-runtime-ktx = { module = "androidx.lifecycle:lifecycle-runtime-ktx", version.ref = "androidxLifecycle" }
|
|
androidx-lifecycle-runtime-compose = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "androidxLifecycle" }
|
|
androidx-lifecycle-viewmodel-ktx = { module = "androidx.lifecycle:lifecycle-viewmodel-ktx", version.ref = "androidxLifecycle" }
|
|
androidx-lifecycle-viewmodel-compose = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "androidxLifecycle" }
|
|
androidx-lifecycle-viewmodel-savedstate = { module = "androidx.lifecycle:lifecycle-viewmodel-savedstate", version.ref = "androidxLifecycle" }
|
|
|
|
# --- Navigation (type-safe Compose Navigation) ---
|
|
androidx-navigation-compose = { module = "androidx.navigation:navigation-compose", version.ref = "androidxNavigation" }
|
|
|
|
# --- Views renderer (Fragment / RecyclerView / Material / AppCompat) ---
|
|
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "androidxAppcompat" }
|
|
androidx-fragment-ktx = { module = "androidx.fragment:fragment-ktx", version.ref = "androidxFragment" }
|
|
androidx-fragment-compose = { module = "androidx.fragment:fragment-compose", version.ref = "androidxFragment" }
|
|
androidx-recyclerview = { module = "androidx.recyclerview:recyclerview", version.ref = "androidxRecyclerview" }
|
|
material = { module = "com.google.android.material:material", version.ref = "material" }
|
|
|
|
# --- Compose (versions via BOM) ---
|
|
androidx-compose-bom = { module = "androidx.compose:compose-bom", version.ref = "composeBom" }
|
|
androidx-compose-ui = { module = "androidx.compose.ui:ui" }
|
|
androidx-compose-ui-graphics = { module = "androidx.compose.ui:ui-graphics" }
|
|
androidx-compose-foundation = { module = "androidx.compose.foundation:foundation" }
|
|
androidx-compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling" }
|
|
androidx-compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview" }
|
|
androidx-compose-ui-test-junit4 = { module = "androidx.compose.ui:ui-test-junit4" }
|
|
androidx-compose-ui-test-manifest = { module = "androidx.compose.ui:ui-test-manifest" }
|
|
androidx-compose-material3 = { module = "androidx.compose.material3:material3" }
|
|
androidx-compose-material-icons-core = { module = "androidx.compose.material:material-icons-core" }
|
|
androidx-compose-material-icons-extended = { module = "androidx.compose.material:material-icons-extended" }
|
|
|
|
# --- Coroutines / serialization ---
|
|
kotlinx-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" }
|
|
kotlinx-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-android", version.ref = "coroutines" }
|
|
kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" }
|
|
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinxSerialization" }
|
|
kotlinx-collections-immutable = { module = "org.jetbrains.kotlinx:kotlinx-collections-immutable", version.ref = "kotlinxCollectionsImmutable" }
|
|
|
|
# --- Koin (versions via BOM) ---
|
|
koin-bom = { module = "io.insert-koin:koin-bom", version.ref = "koin" }
|
|
koin-core = { module = "io.insert-koin:koin-core" }
|
|
koin-android = { module = "io.insert-koin:koin-android" }
|
|
koin-androidx-compose = { module = "io.insert-koin:koin-androidx-compose" }
|
|
koin-test = { module = "io.insert-koin:koin-test" }
|
|
|
|
# --- Ktor ---
|
|
ktor-client-core = { module = "io.ktor:ktor-client-core", version.ref = "ktor" }
|
|
ktor-client-okhttp = { module = "io.ktor:ktor-client-okhttp", version.ref = "ktor" }
|
|
ktor-client-content-negotiation = { module = "io.ktor:ktor-client-content-negotiation", version.ref = "ktor" }
|
|
ktor-serialization-kotlinx-json = { module = "io.ktor:ktor-serialization-kotlinx-json", version.ref = "ktor" }
|
|
ktor-client-logging = { module = "io.ktor:ktor-client-logging", version.ref = "ktor" }
|
|
ktor-client-mock = { module = "io.ktor:ktor-client-mock", version.ref = "ktor" }
|
|
|
|
# --- Coil (image loading) ---
|
|
coil-core = { module = "io.coil-kt.coil3:coil", version.ref = "coil" }
|
|
coil-compose = { module = "io.coil-kt.coil3:coil-compose", version.ref = "coil" }
|
|
coil-network-okhttp = { module = "io.coil-kt.coil3:coil-network-okhttp", version.ref = "coil" }
|
|
|
|
# --- Logging ---
|
|
timber = { module = "com.jakewharton.timber:timber", version.ref = "timber" }
|
|
|
|
# --- Testing ---
|
|
junit-jupiter-api = { module = "org.junit.jupiter:junit-jupiter-api", version.ref = "junitJupiter" }
|
|
junit-jupiter-engine = { module = "org.junit.jupiter:junit-jupiter-engine", version.ref = "junitJupiter" }
|
|
# Gradle 9 no longer bundles the launcher - it must be on the test runtime classpath explicitly.
|
|
junit-platform-launcher = { module = "org.junit.platform:junit-platform-launcher", version.ref = "junitPlatform" }
|
|
turbine = { module = "app.cash.turbine:turbine", version.ref = "turbine" }
|
|
assertk = { module = "com.willowtreeapps.assertk:assertk", version.ref = "assertk" }
|
|
mockk = { module = "io.mockk:mockk", version.ref = "mockk" }
|
|
androidx-test-runner = { module = "androidx.test:runner", version.ref = "androidxTestRunner" }
|
|
androidx-test-ext-junit = { module = "androidx.test.ext:junit", version.ref = "androidxTestExt" }
|
|
androidx-test-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "androidxEspresso" }
|
|
|
|
[bundles]
|
|
compose = [
|
|
"androidx-compose-ui",
|
|
"androidx-compose-ui-graphics",
|
|
"androidx-compose-foundation",
|
|
"androidx-compose-ui-tooling-preview",
|
|
"androidx-compose-material3",
|
|
"androidx-compose-material-icons-core",
|
|
]
|
|
koin = ["koin-core", "koin-android"]
|
|
ktor = [
|
|
"ktor-client-core",
|
|
"ktor-client-okhttp",
|
|
"ktor-client-content-negotiation",
|
|
"ktor-serialization-kotlinx-json",
|
|
"ktor-client-logging",
|
|
]
|
|
lifecycle-compose = ["androidx-lifecycle-runtime-compose", "androidx-lifecycle-viewmodel-compose"]
|
|
views = ["androidx-appcompat", "material", "androidx-recyclerview", "androidx-fragment-ktx"]
|
|
unit-test = ["junit-jupiter-api", "kotlinx-coroutines-test", "turbine", "assertk", "mockk"]
|
|
# Instrumented Compose UI test (androidTest): ComposeTestRule + AndroidJUnit4 runner.
|
|
# espresso-core/runner are pinned to current versions: Compose's test rule drives Espresso's
|
|
# onIdle, and the transitive espresso 3.5.0 calls InputManager.getInstance() (removed on API 34+),
|
|
# which crashes on modern devices. 3.7.0 fixes that reflection.
|
|
compose-ui-test = [
|
|
"androidx-compose-ui-test-junit4",
|
|
"androidx-test-ext-junit",
|
|
"androidx-test-espresso-core",
|
|
"androidx-test-runner",
|
|
]
|
|
|
|
[plugins]
|
|
# Upstream plugins
|
|
android-application = { id = "com.android.application", version.ref = "agp" }
|
|
android-library = { id = "com.android.library", version.ref = "agp" }
|
|
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
|
|
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
|
|
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
|
|
|
|
# Convention plugins (defined in :build-logic, resolved from the included build)
|
|
architecture-android-application = { id = "architecture.android.application" }
|
|
architecture-android-library = { id = "architecture.android.library" }
|
|
architecture-android-feature = { id = "architecture.android.feature" }
|
|
architecture-android-feature-views = { id = "architecture.android.feature.views" }
|
|
architecture-domain-module = { id = "architecture.domain.module" }
|
|
architecture-android-unit-test = { id = "architecture.android.unit.test" }
|
|
architecture-compose = { id = "architecture.compose" }
|
|
architecture-koin = { id = "architecture.koin" }
|
|
architecture-ktor = { id = "architecture.ktor" }
|
|
architecture-kotlinx-serialization = { id = "architecture.kotlinx.serialization" }
|