Skip to content

Instantly share code, notes, and snippets.

@b-abctech
Last active August 29, 2015 14:02
Show Gist options
  • Save b-abctech/4db1f636496025720a81 to your computer and use it in GitHub Desktop.
Save b-abctech/4db1f636496025720a81 to your computer and use it in GitHub Desktop.
serepate config for adhoc and production with titanium
// in config.json ------------------------------------------------------------------
{
"global": {
"dev": {
"feedback_mailto": "[email protected]",
"feedback_api": "http://kua.abcmedia.no/feedback/send"
},
"qa": {
"feedback_mailto": "[email protected]",
"feedback_api": "http://kua.abcmedia.no/feedback/send"
},
"production": {
"feedback_mailto": "",
"feedback_api": "http://abcmedia.no/feedback/send"
}
},
"env:development": {},
"env:test": {},
"env:production": {},
"os:android": {},
"os:blackberry": {},
"os:ios": {},
"os:mobileweb": {},
"dependencies": {
"com.jolicode.pullToRefresh": "1.0"
}
}
// in alloy.js ---------------------------------------------------------------------
Alloy.Globals.appConfig = Alloy.CFG.qa;
alert( 'mail to is ' + Alloy.Globals.appConfig.feedback_mailto );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment