Nicolas Verinaud
05/28/2024, 7:50 AMkotlin {
withSourcesJar(publish = false)
androidTarget()
sourceSets {
val commonMain by getting {
}
val commonPrivateVariant by creating {
dependsOn(commonMain)
}
val androidPrivateVariant by creating {
dependsOn(commonPrivateVariant)
}
val androidMain by getting {
dependsOn(commonMain)
}
}
}
android {
flavorDimensions += "sdk"
productFlavors {
create("privateVariant") {
dimension = "sdk"
}
}
}
And my app gradle file which uses my private variant :
android {
defaultConfig {
missingDimensionStrategy("sdk", "privateVariant")
}
}
dependencies {
implementation(project(":shared"))
}
Problem is : I cannot access classes in commonPrivateVariant
from androidPrivateVariant
. Could it be possible ?