Files
faceclaw/scripts/hooks/faceclaw-kotlin.before-prepare.js
T

12 lines
513 B
JavaScript

const { buildKotlin, checkAndroidRuntime } = require('../../scripts/kotlin-build.cjs');
const { buildGoSsh } = require('../../scripts/go-ssh-build.cjs');
module.exports = function (hookArgs) {
// NativeScript parses hooks with an older JavaScript parser; avoid optional chaining.
const { platform, release } = hookArgs.prepareData;
if (platform === 'android') checkAndroidRuntime();
return buildKotlin(platform, release ? 'release' : 'debug').then(function () {
return buildGoSsh(platform);
});
};