12 Oct 2012 11:18 AM #1
Answered: Sencha + Phonegap how to build an app using different app.json
I wonder if it is possible to build my app using different app.json files.
I am using Sencha + Phonegap + Twitter plugins and the plugins are different for Android/iOS so I was thinking to do:
- Set the app.json an attribute with the platform
- In the app.js check if it is for Android load PluginAndroid if not load PluginIOS
Finally the command should be something like sencha build app [app.json]
Comments are welcome!
The only command that you can specify which package.json to use is sencha package command. Otherwise you cannot specify which json file to use.
14 Oct 2012 10:02 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
The only command that you can specify which package.json to use is sencha package command. Otherwise you cannot specify which json file to use.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services firstname.lastname@example.org
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.