How can I determine at runtime if the current buil...
# compose-desktop
d
How can I determine at runtime if the current build is a
default
or
release
build?
h
build config, i use https://github.com/yshrsmz/BuildKonfig there are other libraries too
d
I have a build config plugin, but I don’t see a way to set the value from gradle
I’m talking about these gradle tasks: https://kotlinlang.org/docs/multiplatform/compose-native-distribution.html#minification-and-obfuscation How would I tell if the build output is from e.g.
createDistributable
or
createReleaseDistributable
?
h
Copy code
val isRelease = gradle.startParameter.taskNames.any { it.contains("release", ignoreCase = true)}
or whatever task u want of the name where “release” is ur X
d
Thanks, I think that’ll work