My team uses #serialization and loads this type of config from JSON at runtime. Not quite as safe as Android’s build configs and the properties aren’t constants, but it works quite well for us.
l
louiscad
08/14/2019, 2:56 PM
The same technique should work for Android. For JS, I think nothing exists for that. For #kotlin-native, I don't think it's supported, but I know there's a DEBUG vs RELEASE notion as you can see here: https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html
You could create a feature request for that on kotl.in/issue, you'll definitely not be the last person to want this.