google-services.json for different productFlavors

Update: GCM is deprecated, use FCM

I’m implementing the new Google Cloud Messaging following the guides from the Google Developers page here

I’ve successfully run and test it. But my problem now is I have different product flavors with different applicationId/packageName and different Google Cloud Messaging Project Id. The google-services.json have to be put at the /app/google-services.json not the flavors folder.

Is there any way to make the google-services.json config different for many flavors?

28 s
28

Leave a Comment