Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
logger.log.init(function () {
function next(result) {
if (result !== false) {
// no error, load the tiapp.xml plugins
ti.loadPlugins(logger, config, cli, cli.argv['project-dir'], function () {
finished(result);
});
} else {
finished(result);
}
}
// loads the platform specific bulid command and runs its validate() function
const result = ti.validatePlatformOptions(logger, config, cli, 'build');
if (result && typeof result === 'function') {
result(next);
} else {
next(result);
}
});
};
logger.log.init(function () {
const result = ti.validatePlatformOptions(logger, config, cli, 'cleanModule');
if (result && typeof result === 'function') {
result(finished);
} else {
finished(result);
}
});
};
logger.log.init(function () {
const result = ti.validatePlatformOptions(logger, config, cli, 'buildModule');
if (result && typeof result === 'function') {
result(finished);
} else {
finished(result);
}
});
};