Closed awaik closed 1 year ago
@awaik Flavors provide a way for building different versions of the app from the same code base with different build configurations. Unfortunately, when using external modules it may not be as simple as adding the flavors from XCode. For example, when using firebase more configuration is required: https://codewithandrea.com/articles/flutter-flavors-for-firebase-apps/#:~:text=What%20are%20Flutter%20Flavors%3F,app%20icons%20for%20each%20configuration.
This is a high level reference, especially for ios schema updates.
The gradle build and project.pbxproj as well as ios schema might need to be configured correctly for different flavors.
I will look into this when I get a chance, however, this falls under application-side configuration.
Also, instead of flavors, you can use test flight for your test version of the app and then make a live config and test that on test flight too before releasing it to the app store. For Android, there are Alpha and Beta options available to have different test and live configurations for testing.
@BitcoinZavior Thank you for the detailed answer.
Under Android the package works well with flavors.
For ios, yes, I made different settings for Firebase. But the reason for this setting is not the error in an external module, but for different key configurations. Without these settings Firebase code works well, just can't connect to the backend.
We use flavors to create different apps with one code base, so we can't give up on them.
I guess, there is some setting on the external modules path or something like this. It would be great if you will have a chance to check.
Thank you!
Maybe this would help? https://github.com/fzyzcjy/flutter_rust_bridge/issues/250
@awaik Would you be able to test flavors with hotfixes-flutter-flavors
branch and see if it builds?
@BitcoinZavior Sure, will test tomorrow. Thanks!
@BitcoinZavior Yep, it works - the issue is fixed.
Thanks for checking, this will make it into the next release
Hi!
When I try to run the example app under iOS I got an error
Code that returns the error
Error
How to reproduce the error