oday
12/10/2022, 5:37 PMJohn O'Reilly
12/10/2022, 5:39 PModay
12/10/2022, 5:41 PModay
12/10/2022, 5:41 PModay
12/10/2022, 5:44 PMJohn O'Reilly
12/10/2022, 5:48 PModay
12/10/2022, 5:53 PModay
12/10/2022, 6:01 PModay
12/10/2022, 6:01 PModay
12/10/2022, 6:04 PMplugins {
//trick: for the same plugin versions in all sub-modules
id("com.android.application").version("7.3.0").apply(false)
id("com.android.library").version("7.3.0").apply(false)
kotlin("android").version("1.7.20").apply(false)
kotlin("multiplatform").version("1.7.20").apply(false)
}
do you know how I can abstract away the version number and be able to pass it to version()
? it takes a Provider, but that’s an interface, and I am not sure where I could find an impl of that as an exampleoday
12/10/2022, 6:05 PMorg.gradle.api.provider
ephemient
12/11/2022, 2:34 AM// gradle/libs.versions.toml
[versions]
android-gradle = "7.3.0"
[plugins]
android-application = { id = "com.android.application", version.ref = "android-gradle" }
// build.gradle.kts
plugins {
alias(libs.plugins.android.application) apply false
etc.ephemient
12/11/2022, 2:40 AMsettings.gradle.kts
,
pluginManagement {
plugins {
resolutionStrategy {
eachPlugin {
if (requested.id.id.startsWith("com.android.")) useVersion("7.3.0")