One google-services.json for multiple flavors OR manage those files through API

576 views
Skip to first unread message

Nicolas Menciere

unread,
Sep 13, 2016, 5:34:03 PM9/13/16
to Firebase Google Group
HI,

We have an Android project with a growing number of flavors. 

My goal is to automate the creation of those flavors as follow:
   - Auto update gradle file to add new flavors
   - Inject resources, update .xml files for each flavors
   - Build with JEnkins or else
   - Push new flavor app to customers

I'm close to achieving this goal but it looks like I need to manually create a google-services.json file by hand in the Firebase console for each of my flavors .

Is it possible to have all my flavors use the same google-services.json file? They all have different package name, so it appears it can't do that.
OR
Is it possible to manage those files through an API: Create them, download them
So I could automate this process and inject them in my project at build time.

Any help would be appreciate on managing hundreds of apps at scale.

Thank you
nicolas

Frank van Puffelen

unread,
Sep 14, 2016, 9:34:09 AM9/14/16
to Firebase Google Group
Cross-post from http://stackoverflow.com/q/39468740/, but might fit better here.
Reply all
Reply to author
Forward
0 new messages