Kofi K.
10/26/2023, 5:12 PMflavorDimensions += "pos_type"
productFlavors {
create("nexgo") {
dimension = "pos_type"
applicationIdSuffix = ".nexgo"
versionNameSuffix = "-nexgo"
}
create("pax") {
dimension = "pos_type"
applicationIdSuffix = ".pax"
versionNameSuffix = "-pax"
}
}
dependencies {
paxImplementation(
fileTree(
mapOf(
"dir" to "libs", "include" to listOf(
"*.jar", "*.so"
)
)
)
)
nexgoImplementation(
fileTree(
mapOf(
"dir" to "libs", "include" to listOf(
"*.aar"
)
)
)
)
// common dependencies
}
the weird part is when i try to manually add configurations for the variant implementations like so
configurations {
create("commonImplementation")
create("nexgoImplementation")
create("paxImplementation")
}
gradle flags an error saying these configurations cannot be created since there are existing configurations with the same name..
what am i doing wrong here? i'd appreciate your responseChrimaeon
10/26/2023, 6:33 PM"nexgoImplementation"(...)
. those variants are not created for the kotlin dsl but there is a n extension function on the string invocation.Kofi K.
10/26/2023, 7:06 PM