Created
August 4, 2014 17:23
-
-
Save cb1kenobi/a4336d745ea2daf62f69 to your computer and use it in GitHub Desktop.
Titanium CLI hook that changes the app id
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
/* Put this file in <product dir>/plugins/appid/hooks/ | |
* then add this to your tiapp.xml: | |
* <plugins> | |
* <plugin>appid</plugin> | |
* </plugins> | |
*/ | |
exports.cliVersion = '>=3.2.1'; | |
exports.init = function (logger, config, cli, appc) { | |
cli.on('cli:post-validate', function () { | |
console.log(cli.tiapp.id); | |
cli.tiapp.id = 'com.appcelerator.test'; | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment