Skip to content

Commit

Permalink
TIMOB-20469 fix for hyperloop compiler to allow us to hook into the n…
Browse files Browse the repository at this point in the history
…ative build toolchain
  • Loading branch information
jhaynie committed Apr 27, 2016
1 parent e0ac5a8 commit 4a8b9dc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions android/cli/commands/_build.js
Expand Up @@ -1653,9 +1653,19 @@ AndroidBuilder.prototype.run = function run(logger, config, cli, finished) {
'generateAndroidManifest',
'packageApp',

// provide a hook event before javac
function (next) {
cli.emit('build.pre.build', this, next);
},

// we only need to compile java classes if any files in src or gen changed
'compileJavaClasses',

// provide a hook event after javac
function (next) {
cli.emit('build.post.build', this, next);
},

// we only need to run proguard if any java classes have changed
'runProguard',

Expand Down
10 changes: 10 additions & 0 deletions iphone/cli/commands/_build.js
Expand Up @@ -1986,9 +1986,19 @@ iOSBuilder.prototype.run = function (logger, config, cli, finished) {
'removeFiles',
'optimizeFiles',

// provide a hook event before xcodebuild
function (next) {
cli.emit('build.pre.build', this, next);
},

// build baby, build
'invokeXcodeBuild',

// provide a hook event after xcodebuild
function (next) {
cli.emit('build.post.build', this, next);
},

// finalize
'writeBuildManifest',

Expand Down

0 comments on commit 4a8b9dc

Please sign in to comment.