-
Notifications
You must be signed in to change notification settings - Fork 64
feat: Try to Support flavors (android & ios) #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
I opened this PR based on this issue |
|
I've try the PR using the VGV CLI: It produces the following result: I feel like matching the name of the flavor with a folder can produce unexpected results on Android 🤔 |
I think Each flavor must have a folder with its name I tried to fix this by checking if the folder exists before creating |
Co-authored-by: Mike Diarmid <mike.diarmid@gmail.com>
|
any news about this PR? |
|
@ulisseshen, @russellwheatley is currently working on this feature in this PR: #132 |
thanks for response. |
|
Closing as this is no longer necessary. See #132 |
Description
Firebase CLI will try to get all flavors for the android project and variant build configrations for the ios project
and show a prompt to the ser
? Do you want to create a firebase project for each flavor? (y/n)if the user selects "y" for each flavor firebase CLI will create a firebase project with selected platforms
create
firebase_options.dartfor each flavorFor example:
(lib/firebase_options_development.dart,
lib/firebase_options_production.dart,
lib/firebase_options_staging.dart)
create
firebase_app_id_file.jsonfor each flavorFor example:
(ios/firebase_app_id_file_development.json,
ios/firebase_app_id_file_production.json,
ios/firebase_app_id_file_staging.json)
create
google-services.jsonfor each flavorFor example:
(android/app/src/development/google-services.json,
android/app/src/production/google-services.json,
android/app/src/staging/google-services.json)
create
GoogleService-Info.plistfor each flavorFor example:
(ios/Runner/development/GoogleService-Info.plist,
ios/Runner/production/GoogleService-Info.plist,
ios/Runner/staging/GoogleService-Info.plist)
For ios Project add shell script to copy the correct
GoogleService-Info.plistto theBUILT_PRODUCTS_DIRbased on the selected ios schema:Please try it 🙏🚀
Type of Change
feat-- New feature (non-breaking change which adds functionality)fix-- Bug fix (non-breaking change which fixes an issue)!-- Breaking change (fix or feature that would cause existing functionality to change)refactor-- Code refactorci-- Build configuration changedocs-- Documentationchore-- Chore