Skip to content

Commit

Permalink
Merge pull request #7868 from feons/TIMOB-20595-5_3_X
Browse files Browse the repository at this point in the history
[TIMOB-20595] Module Build: Update pre and post compile hooks event name 5_3_X
  • Loading branch information
cb1kenobi committed Mar 19, 2016
2 parents dc92abf + 192e6f6 commit 36ca333
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
8 changes: 4 additions & 4 deletions android/cli/commands/_buildModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,15 @@ AndroidModuleBuilder.prototype.run = function run(logger, config, cli, finished)

appc.async.series(this, [
function (next) {
cli.emit('build.pre.construct', this, next);
cli.emit('build.module.pre.construct', this, next);
},

'doAnalytics',
'initialize',
'loginfo',

function (next) {
cli.emit('build.pre.compile', this, next);
cli.emit('build.module.pre.compile', this, next);
},

'compileAidlFiles',
Expand All @@ -204,10 +204,10 @@ AndroidModuleBuilder.prototype.run = function run(logger, config, cli, finished)
'runModule',

function (next) {
cli.emit('build.post.compile', this, next);
cli.emit('build.module.post.compile', this, next);
}
], function (err) {
cli.emit('build.finalize', this, function () {
cli.emit('build.module.finalize', this, function () {
finished(err);
});
});
Expand Down
15 changes: 12 additions & 3 deletions iphone/cli/commands/_buildModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,22 +85,31 @@ iOSModuleBuilder.prototype.run = function run(logger, config, cli, finished) {

series(this, [
function (next) {
cli.emit('build.pre.construct', this, next);
cli.emit('build.module.pre.construct', this, next);
},

'doAnalytics',
'initialize',
'loginfo',

function (next) {
cli.emit('build.module.pre.compile', this, next);
},

'processLicense',
'processTiXcconfig',
'compileJS',
'buildModule',
'createUniBinary',
'verifyBuildArch',
'packageModule',
'runModule'
'runModule',

function (next) {
cli.emit('build.module.post.compile', this, next);
}
], function (err) {
cli.emit('build.finalize', this, function () {
cli.emit('build.module.finalize', this, function () {
finished(err);
});
});
Expand Down

0 comments on commit 36ca333

Please sign in to comment.