{"action":"created","issue":{"url":"https://api.github.com/repos/Appboy/appboy-android-sdk/issues/65","repository_url":"https://api.github.com/repos/Appboy/appboy-android-sdk","labels_url":"https://api.github.com/repos/Appboy/appboy-android-sdk/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/Appboy/appboy-android-sdk/issues/65/comments","events_url":"https://api.github.com/repos/Appboy/appboy-android-sdk/issues/65/events","html_url":"https://github.com/Appboy/appboy-android-sdk/issues/65","id":192982343,"number":65,"title":"How to switch API keys in different build variants?","user":{"login":"virtualandy","id":203683,"avatar_url":"https://avatars.githubusercontent.com/u/203683?v=3","gravatar_id":"","url":"https://api.github.com/users/virtualandy","html_url":"https://github.com/virtualandy","followers_url":"https://api.github.com/users/virtualandy/followers","following_url":"https://api.github.com/users/virtualandy/following{/other_user}","gists_url":"https://api.github.com/users/virtualandy/gists{/gist_id}","starred_url":"https://api.github.com/users/virtualandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/virtualandy/subscriptions","organizations_url":"https://api.github.com/users/virtualandy/orgs","repos_url":"https://api.github.com/users/virtualandy/repos","events_url":"https://api.github.com/users/virtualandy/events{/privacy}","received_events_url":"https://api.github.com/users/virtualandy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-01T22:37:44Z","updated_at":"2016-12-01T22:44:57Z","closed_at":null,"body":"Lowly question - I want to use a different API key in different build variants of our app, i.e. dev/staging use one Appboy key, production uses another.\r\n\r\nSince the key goes in `res/values/appboy.xml` I'm a bit confused as to how to do that properly. Any ideas?"},"comment":{"url":"https://api.github.com/repos/Appboy/appboy-android-sdk/issues/comments/264319093","html_url":"https://github.com/Appboy/appboy-android-sdk/issues/65#issuecomment-264319093","issue_url":"https://api.github.com/repos/Appboy/appboy-android-sdk/issues/65","id":264319093,"user":{"login":"radixdev","id":2373546,"avatar_url":"https://avatars.githubusercontent.com/u/2373546?v=3","gravatar_id":"","url":"https://api.github.com/users/radixdev","html_url":"https://github.com/radixdev","followers_url":"https://api.github.com/users/radixdev/followers","following_url":"https://api.github.com/users/radixdev/following{/other_user}","gists_url":"https://api.github.com/users/radixdev/gists{/gist_id}","starred_url":"https://api.github.com/users/radixdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radixdev/subscriptions","organizations_url":"https://api.github.com/users/radixdev/orgs","repos_url":"https://api.github.com/users/radixdev/repos","events_url":"https://api.github.com/users/radixdev/events{/privacy}","received_events_url":"https://api.github.com/users/radixdev/received_events","type":"User","site_admin":false},"created_at":"2016-12-01T22:44:57Z","updated_at":"2016-12-01T22:44:57Z","body":"Hey @virtualandy,\r\n\r\nThe recommended way to change your API key in different variants is to use the Appboy.configure() method. You can provide a different API key based on the flavor. See our [configure() javadocs for more info](http://appboy.github.io/appboy-android-sdk/javadocs/com/appboy/Appboy.html#configure-android.content.Context-java.lang.String-). Additionally, see our Droidboy sample app for [an example](https://github.com/Appboy/appboy-android-sdk/blob/master/droidboy/src/com/appboy/sample/DroidboyApplication.java#L47) of how we set a different API key based on the build flavor. \r\n\r\nLet me know if this solves your use case and if you have any further questions.\r\n\r\nThanks,\r\nAppboy Android Team"}}
{"actor":{"display_login":"radixdev"}}