louis993546 / Loft-Android

Living with roommates make easy (on Android)
GNU General Public License v3.0
1 stars 0 forks source link

How to handle secret key in an open source project #21

Open louis993546 opened 6 years ago

louis993546 commented 6 years ago

I will probably want to use Firebase (esp. Crashlytics) at some point, and I need to find a way to have google-services.json available for CI (#10), but not exposing it publicly.

Possible solutions

louis993546 commented 6 years ago

X-post #10

louis993546 commented 6 years ago

From more practical perspective: This short Q&A clarifies why in different google projects, some has google-services.json included, some don't. It mostly comes down to the intention: if you don't really expect someone else to host their own version, and you are (probably) the only one that actually builds and deliver the app, it probably isn't necessary to hide it.

And this thing goes super deep into how the json is being used by the google service gradle plugin

Last but not least, obviously this question have been asked before on stack overflow