Skip to content

Instantly share code, notes, and snippets.

@brentonhouse
Forked from cb1kenobi/appid.js
Created August 5, 2014 16:30
Show Gist options
  • Save brentonhouse/9f8743bb123d290741c4 to your computer and use it in GitHub Desktop.
Save brentonhouse/9f8743bb123d290741c4 to your computer and use it in GitHub Desktop.
/* 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