Foundation milestone (REDI-78, REDI-79):
- Multi-module skeleton: :app, :core:{domain,data,presentation,design-system},
:feature:characters:{domain,data,presentation,presentation-compose,presentation-views},
:feature:about:presentation, plus the :build-logic composite build.
- gradle/libs.versions.toml as the single source of truth ([versions]/[libraries]/
[bundles]/[plugins]); no inline versions in any build file.
- Convention plugins: architecture.android.{application,library,feature,feature.views},
domain.module, compose, koin, ktor, kotlinx.serialization.
- Pure-Kotlin domain modules; presentation-compose uses android.feature;
presentation-views uses android.feature.views (ViewBinding on, Compose off);
the UI-agnostic :presentation has neither Compose nor Views deps.
- Toolchain: AGP 9.0.1, Kotlin 2.3.20, Gradle 9.1.0, compileSdk 36, minSdk 24, Java 17.
- Minimal MainActivity placeholder; CI (assembleDebug) via GitHub Actions.
Verified: ./gradlew projects lists the full tree and ./gradlew assemble is green.
165 lines
8.3 KiB
TOML
165 lines
8.3 KiB
TOML
[versions]
|
||
# Build / language
|
||
agp = "9.0.1"
|
||
kotlin = "2.3.20"
|
||
|
||
# AndroidX – core / lifecycle / activity / views
|
||
androidxCore = "1.18.0"
|
||
androidxLifecycle = "2.10.0"
|
||
androidxActivity = "1.13.0"
|
||
androidxAppcompat = "1.7.0"
|
||
androidxFragment = "1.8.5"
|
||
androidxRecyclerview = "1.4.0"
|
||
androidxNavigation = "2.9.0"
|
||
|
||
# Compose (BOM-managed)
|
||
composeBom = "2026.03.01"
|
||
|
||
# Async / serialization
|
||
coroutines = "1.10.2"
|
||
kotlinxSerialization = "1.8.1"
|
||
|
||
# DI
|
||
koin = "4.1.0"
|
||
|
||
# Networking
|
||
ktor = "3.1.3"
|
||
|
||
# Image loading
|
||
coil = "3.1.0"
|
||
|
||
# Logging
|
||
kermit = "2.0.5"
|
||
|
||
# Material Components (Views renderer)
|
||
material = "1.12.0"
|
||
|
||
# Testing
|
||
junit4 = "4.13.2"
|
||
junitJupiter = "5.11.4"
|
||
androidJunit5 = "1.11.4"
|
||
turbine = "1.2.0"
|
||
assertk = "0.28.1"
|
||
androidxTest = "1.7.0"
|
||
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-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-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" }
|
||
|
||
# --- 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" }
|
||
koin-test-junit5 = { module = "io.insert-koin:koin-test-junit5" }
|
||
|
||
# --- 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 ---
|
||
kermit = { module = "co.touchlab:kermit", version.ref = "kermit" }
|
||
|
||
# --- Testing ---
|
||
junit4 = { module = "junit:junit", version.ref = "junit4" }
|
||
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" }
|
||
junit-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junitJupiter" }
|
||
turbine = { module = "app.cash.turbine:turbine", version.ref = "turbine" }
|
||
assertk = { module = "com.willowtreeapps.assertk:assertk", version.ref = "assertk" }
|
||
androidx-test-core = { module = "androidx.test:core", version.ref = "androidxTest" }
|
||
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-ui-tooling-preview",
|
||
"androidx-compose-material3",
|
||
]
|
||
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"]
|
||
|
||
[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" }
|
||
# Declared for milestone 5 (ViewModel/Compose tests on Android); wired when tests land.
|
||
android-junit5 = { id = "de.mannodermaus.android-junit5", version.ref = "androidJunit5" }
|
||
|
||
# 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-compose = { id = "architecture.compose" }
|
||
architecture-koin = { id = "architecture.koin" }
|
||
architecture-ktor = { id = "architecture.ktor" }
|
||
architecture-kotlinx-serialization = { id = "architecture.kotlinx.serialization" }
|