Skip to content

Instantly share code, notes, and snippets.

@cb1kenobi
Created August 4, 2014 17:23
Show Gist options
  • Save cb1kenobi/a4336d745ea2daf62f69 to your computer and use it in GitHub Desktop.
Save cb1kenobi/a4336d745ea2daf62f69 to your computer and use it in GitHub Desktop.
Titanium CLI hook that changes the app id
/* 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