Hi, guys! How do you declare flavors for Kotlin/Native?
In Android I have two release types (Debug and Release) and two flavors (Dev and Production) so I have:
I wanted to have these in iOS too but I can't seem to find any configuration so I only have Debug and Release for it.
If I'm missing something, please do point me in the right direction.
Thanks for the thread. I'll take a look at it tomorrow. Basically, we have two environments, one for us and one for end-users and with Android, we switch out URLs, API secrets, etc using flavors and BuildConfigs. Flavors still work on Android using multiplatform but we can't seem to find anything on how to make flavors for iOS (Kotlin/Native target)
11/11/2019, 4:15 PM
Flavours are a feature exclusive to the Android Gradle plugin. What you can do for iOS is to create an entry point in your core module, where you can pass the name/id of the configuration. Then, based on that name/id you can select which configuration you want to sent to the app. I bet in iOS you can send this to gradlew using an environment variable set via different target types in the Xcode project