![]() In most cases there is a centralįirebase application object that manages the configuration for all the FirebaseĪPIs. Sometimes you need to access different projects using the same APIs - forĮxample, accessing multiple database instances. Use multiple projects in your application Deleting apply plugin: '-services' from your app adle.Deleting the google-services.json from your project.Removing the google-services plugin from your root adle.Option is to add the string resources directly to your app instead of using Which runs before your application code and initializes Firebase APIs usingīecause this provider is just reading resources with known names, another To learn more, see the Google Services Plugin documentation on "release" build flavors, your configuration could be organized like this: app/ For example, if you have "development" and You can have multiple google-services.json files for differentīy placing google-services.json files in dedicated directories named for each Which resources are created in the Google Services Plugin documentation on Resources by the Google Services gradle plugin. In Android, the google-service.json file is processed into Android string Support multiple environments in your Android application Warning: This approach can impact Analytics collection in someĬircumstances, see the reliable analytics section. Guard let fileopts = FirebaseOptions(contentsOfFile: filePath!)Įlse Let filePath = (forResource: "MyGoogleService", ofType: "plist") Then choose at runtime which plist to load. If the builds are part of a single target, the best option is to give bothĬonfiguration files unique names (e.g. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |