Rok Oblak
07/31/2024, 7:39 AMandroidMain
variant since it already contains the Android-specific code. (I guess you would need to add yet another shared module for android, but I wonder if someone has done it somewhere)
My usecase is just to have a separate debug variant app icon and app name string.Skaldebane
07/31/2024, 8:17 AMSkaldebane
07/31/2024, 8:20 AMandroidMain
(e.g. androidRelease
and androidDebug
), but I'm not sure if and how would that work with resources, and I'm not very fond of the extra directories either.Rok Oblak
07/31/2024, 8:52 AMJoel Denke
07/31/2024, 10:29 AMRok Oblak
07/31/2024, 1:06 PMSkaldebane
07/31/2024, 1:53 PMSkaldebane
07/31/2024, 1:55 PMRok Oblak
07/31/2024, 1:59 PMappName
.
Then I set this custom string in my build.gradle.kts in the
android { defaultConfig {
manifestPlaceholders["appName"] = "DEBUG_NAME"
and then in buildTypes { release ...
I can override it just for android release build type:
manifestPlaceholders["appName"] = "RELEASE_NAME"
Rok Oblak
07/31/2024, 2:00 PMSkaldebane
07/31/2024, 2:01 PMmanifestPlaceholders
, that's very neat, thanks for sharing!Joel Denke
07/31/2024, 5:53 PMJoel Denke
08/01/2024, 5:42 AM