parse.com - How should I handle secret tokens for open source android projects? -


i learning build android app parse. instructed, need initialize parse sdk following method in application.java:

parse.initialize(context context, string applicationid, string clientkey) 

and question how should handle applicationid , clientkey in android project not expose them on github?

for web projects, there app.conf.example copy app.conf, listed in .gitignore. when setting local or production environments, need put correct secret tokens in app.conf manually.

i wanna know there android app development?

thank much!

short solution :

i think can put that, e.g :

parse.initialize(context context, string applicationid, string clientkey)

on application.java.

commit as-is, , use correct applicationid , clientkey locally.

this because there no notable changes application.java class, in case need change something, remove correct code, edit class, push github, , put correct code locally.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -