Last active
August 29, 2015 14:02
-
-
Save b-abctech/4db1f636496025720a81 to your computer and use it in GitHub Desktop.
serepate config for adhoc and production with titanium
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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