Skip to content

Commit

Permalink
test: guard adb path generation to android platform
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtcoolguy committed Dec 15, 2020
1 parent 05514c0 commit 0eb0524
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/plugins/mocha.test.support/hooks/hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ exports.init = (logger, config, cli) => {
ANDROID_SDK = cli.argv['android-sdk'];
}

// Set ADB path
ADB_PATH = path.join(ANDROID_SDK, 'platform-tools', 'adb');

cli.on('build.pre.compile', async (builder, done) => {
if (builder.platformName === 'android') {
// Set ADB path
ADB_PATH = path.join(ANDROID_SDK, 'platform-tools', 'adb');
}
builder.tiapp.properties['Ti.version'] = { type: 'string', value: builder.titaniumSdkVersion };
builder.tiapp.properties['js.encrypted'] = { type: 'bool', value: builder.encryptJS };
done();
Expand Down

0 comments on commit 0eb0524

Please sign in to comment.