Add self-contained version catalog
Own gradle/libs.versions.toml so this module carries its own dependency versions instead of relying on a consumer's root catalog having matching alias names — makes it truly drop-in for other projects.
This commit is contained in:
+11
-11
@@ -1,7 +1,7 @@
|
||||
plugins {
|
||||
alias(libs.plugins.android.library)
|
||||
alias(libs.plugins.kotlin.android)
|
||||
alias(libs.plugins.kotlin.compose)
|
||||
alias(commonLibs.plugins.android.library)
|
||||
alias(commonLibs.plugins.kotlin.android)
|
||||
alias(commonLibs.plugins.kotlin.compose)
|
||||
}
|
||||
|
||||
android {
|
||||
@@ -27,12 +27,12 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(libs.androidx.core.ktx)
|
||||
implementation(libs.androidx.lifecycle.runtime.ktx)
|
||||
implementation(libs.androidx.activity.compose)
|
||||
implementation(platform(libs.androidx.compose.bom))
|
||||
implementation(libs.androidx.ui)
|
||||
implementation(libs.androidx.material3)
|
||||
implementation(libs.androidx.splashscreen)
|
||||
implementation(libs.androidx.appcompat)
|
||||
implementation(commonLibs.androidx.core.ktx)
|
||||
implementation(commonLibs.androidx.lifecycle.runtime.ktx)
|
||||
implementation(commonLibs.androidx.activity.compose)
|
||||
implementation(platform(commonLibs.androidx.compose.bom))
|
||||
implementation(commonLibs.androidx.ui)
|
||||
implementation(commonLibs.androidx.material3)
|
||||
implementation(commonLibs.androidx.splashscreen)
|
||||
implementation(commonLibs.androidx.appcompat)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
[versions]
|
||||
agp = "9.2.1"
|
||||
kotlin = "2.2.10"
|
||||
coreKtx = "1.17.0"
|
||||
lifecycleRuntimeKtx = "2.6.1"
|
||||
activityCompose = "1.8.0"
|
||||
composeBom = "2024.09.00"
|
||||
splashscreen = "1.0.1"
|
||||
appcompat = "1.7.0"
|
||||
|
||||
[libraries]
|
||||
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
|
||||
androidx-lifecycle-runtime-ktx = { group = "androidx.lifecycle", name = "lifecycle-runtime-ktx", version.ref = "lifecycleRuntimeKtx" }
|
||||
androidx-activity-compose = { group = "androidx.activity", name = "activity-compose", version.ref = "activityCompose" }
|
||||
androidx-compose-bom = { group = "androidx.compose", name = "compose-bom", version.ref = "composeBom" }
|
||||
androidx-ui = { group = "androidx.compose.ui", name = "ui" }
|
||||
androidx-material3 = { group = "androidx.compose.material3", name = "material3" }
|
||||
androidx-splashscreen = { group = "androidx.core", name = "core-splashscreen", version.ref = "splashscreen" }
|
||||
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
|
||||
|
||||
[plugins]
|
||||
android-library = { id = "com.android.library", version.ref = "agp" }
|
||||
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
|
||||
kotlin-compose = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
|
||||
Reference in New Issue
Block a user