Skip to content

request: Add support for custom named google-services-info.json and GoogleServicesInfo.plist #161

@dancamdev

Description

@dancamdev

Is there an existing feature request for this?

  • I have searched the existing issues.

Command

No response

Description

We should have the option to specify custom file names for the google_services_info.json and GoogleServicesInfo.plist files, so that the name doesn't collide with the existing ones.

Reasoning

This is vital in an effort to have the flutterfire_cli supporting multiple app flavors. The flutterfire_cli currently asks the user if they want to replace the files, which is not what users would want when trying to add flavors.

Additional context and comments

The end goal would be for something like this

flutterfire configure `
  --out=lib/firebase_options_dev.dart `
  --platforms=ios,android `
  --ios-bundle-id=com.example.exampledev`
  --android-package-name=com.example.exampledev `
  --google-services-file-suffix=dev `

Which would generate a new firebase project and create the google-services-info-dev.json and GoogleServicesInfoDev.plist files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions