11[versions ]
2- kotlinVersion = " 1.9.25"
3- androidGradleVersion = " 8.1.4"
4- androidSdkCommonVersion = " 31.1.2"
2+ # --- Runtime versions ---
3+ # Minimum compatibility baseline for library modules (resources, compose, etc.).
4+ # Allows users to use moko-resources WITHOUT forcing them to update their projects.
5+ kotlinVersion = " 2.1.0"
6+ androidGradleVersion = " 8.3.0"
7+ androidSdkCommonVersion = " 31.13.2"
8+
9+ # --- Plugin versions (Tooling only) ---
10+ # Used EXCLUSIVELY in the generator plugin module via 'compileOnly'.
11+ # We use current APIs (available in 8.13.2+) to ensure compatibility with
12+ # the widest range of AGP versions: from the minimum (8.3)
13+ # to the current (9.0+ at this time).
14+ pluginKotlinVersion = " 2.3.0"
15+ pluginAndroidGradleVersion = " 8.13.2"
16+
517
618# kotlinx
719kotlinxSerializationVersion = " 1.6.1"
8- kotlinxCoroutinesVersion = " 1.8 .0"
20+ kotlinxCoroutinesVersion = " 1.9 .0"
921kotlinxBrowserVersion = " 0.3"
1022
1123# android
@@ -55,11 +67,18 @@ commonsCodec = { module = "commons-codec:commons-codec", version.ref = "commonsC
5567icu4j = { module = " com.ibm.icu:icu4j" , version.ref = " icu4jVersion" }
5668
5769# gradle
70+ pluginKotlinGradlePlugin = { module = " org.jetbrains.kotlin:kotlin-gradle-plugin" , version.ref = " pluginKotlinVersion" }
71+ pluginAndroidGradlePlugin = { module = " com.android.tools.build:gradle" , version.ref = " pluginAndroidGradleVersion" }
72+ pluginKotlinCompilerEmbeddable = { module = " org.jetbrains.kotlin:kotlin-compiler-embeddable" , version.ref = " pluginKotlinVersion" }
73+ pluginAndroidMultiplatformLibraryPlugin = { module = " com.android.kotlin.multiplatform.library: com.android.kotlin.multiplatform.library.gradle.plugin" , version.ref = " pluginAndroidGradleVersion" }
74+
5875kotlinGradlePlugin = { module = " org.jetbrains.kotlin:kotlin-gradle-plugin" , version.ref = " kotlinVersion" }
5976androidGradlePlugin = { module = " com.android.tools.build:gradle" , version.ref = " androidGradleVersion" }
6077androidSdkCommon = { module = " com.android.tools:sdk-common" , version.ref = " androidSdkCommonVersion" }
61- kotlinCompilerEmbeddable = { module = " org.jetbrains.kotlin:kotlin-compiler-embeddable" , version.ref = " kotlinVersion" }
6278detektGradlePlugin = { module = " io.gitlab.arturbosch.detekt:detekt-gradle-plugin" , version.ref = " detektVersion" }
6379mokoMultiplatformPlugin = { module = " dev.icerock:mobile-multiplatform" , version.ref = " mokoMultiplatformPluginVersion" }
6480composeJetBrainsPlugin = { module = " org.jetbrains.compose:compose-gradle-plugin" , version.ref = " composeJetbrainsVersion" }
6581nexusPublishing = { module = " io.github.gradle-nexus:publish-plugin" , version = " 2.0.0" }
82+
83+ [plugins ]
84+ composeCompiler = { id = " org.jetbrains.kotlin.plugin.compose" , version.ref = " kotlinVersion" }
0 commit comments