Firebase CLI configuee multiple flavor #8691
Replies: 11 comments 11 replies
-
| I would also love to hear how others are accomplishing this.  Currently my plan is to create either a prebuild script to copy the env version to override the  | 
Beta Was this translation helpful? Give feedback.
-
| Hi, similar to  | 
Beta Was this translation helpful? Give feedback.
-
| Here I bring my idea and suggestion about adding more config for google_service.json and google_service.plist output for support of multiple flavors. Usage: flutterfire configure [arguments] | 
Beta Was this translation helpful? Give feedback.
-
| Just following it up ✌🏼 | 
Beta Was this translation helpful? Give feedback.
-
| Same problem with me. I want to use 2 different firebase projects simultaneously in my flutter app. flutterfire configure --project="proj1" --platforms="android,ios" --out="lib/firebase_options.dart" -y;
flutterfire configure --project="proj2" --platforms="android,ios" --out="lib/proj2.firebase_options.dart";and want to configure them at the same time with the below code in the main function: import 'firebase_options.dart' as proj1;
import 'proj2.firebase_options.dart' as proj2;
void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Future.wait([
    Firebase.initializeApp(
      options: proj1.DefaultFirebaseOptions.currentPlatform,
    ),
    Firebase.initializeApp(
      name: "Project2",
      options: proj2.DefaultFirebaseOptions.currentPlatform,
    ),
  ]);
  runApp(MyApp());
}
But when I'm trying to run the configure commands it is asking if I want to override the  When I type  Unhandled exception:
FirebaseAppIDAlreadyExistsException: Firebase app ID file {{project_path}}/ios/firebase_app_id_file.json is already up to date.
#0      FirebaseAppIDFile.write (package:flutterfire_cli/src/firebase/firebase_app_id_file.dart:71:11)
<asynchronous suspension> | 
Beta Was this translation helpful? Give feedback.
-
| Just following it up ✌🏼 | 
Beta Was this translation helpful? Give feedback.
-
| so still this cli can't configure the .json and .plist file ? need to go back to that manual setup ? | 
Beta Was this translation helpful? Give feedback.
-
| +1 for clear instructions on how to use flutterfire with flavours. | 
Beta Was this translation helpful? Give feedback.
-
| I was using flavors in Flutter without problem with gradle plugin 4.3.x, where each flavor has its own  | 
Beta Was this translation helpful? Give feedback.
-
| Following up on this also. Seems like it should be reasonable to do, but no accepted method. | 
Beta Was this translation helpful? Give feedback.
-
| Would love to see a response here as well. Could you in the meanwhile help me out with one question: | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello guys, i found that we can customize package name and output file to generate multiple flavor for firebase config. But with dsyms on IOS crashlytics it'll be sended to firebase with firebase_app_id_file.json that will be generated one time per flavors. How can we customize this file output to multiple flavor ?
Beta Was this translation helpful? Give feedback.
All reactions