coachroebuck
11/10/2023, 5:51 PMcoachroebuck
11/10/2023, 5:55 PMproductFlavors {
create("simpsons") {
dimension = "version"
isDefault true
buildConfigField "String", "KEYWORDS", "\" simpsons characters\""
applicationId "com.example.simpsonsviewer"
resValue "string", "app_name", "Simpsons Character Viewer"
}
create("wire") {
dimension = "version"
isDefault true
buildConfigField "String", "KEYWORDS", "\"the wire characters\""
applicationId "com.example.wireviewer"
resValue "string", "app_name", "Wire Character Viewer"
}
}
But I see that copying+pasting this code into my KMM project produces compile errors.
Something doesn't feel rightJeff Lockhart
11/10/2023, 6:13 PMcoachroebuck
11/10/2023, 6:28 PMcoachroebuck
11/10/2023, 6:38 PMcoachroebuck
11/10/2023, 6:39 PMJeff Lockhart
11/10/2023, 6:39 PMcreate those variants in the Android App / iOS modules, and inject those custom fieldsThat's another good option, and actually what I've done myself, just differentiating between debug/release builds.