UNPKG

nativescript-remote-builds

Version:

Run NativeScript apps with local LiveSync without any local Android/iOS setup.

25 lines (21 loc) 798 B
const RemoteBuildsService = require("../services/remote-builds-service").RemoteBuildsService; module.exports = (platform) => { return (hookArgs, $staticConfig, $childProcess, $fs, $logger, $cleanupService, $platformsDataService, $settingsService, $httpClient) => { if ((hookArgs.buildData || hookArgs.androidBuildData || hookArgs.iOSBuildData).env.local) { // let the local build return; } const buildService = new RemoteBuildsService({ $staticConfig, $childProcess, $fs, $logger, $platformsDataService, $settingsService, $httpClient, $cleanupService, platform }); return buildService.build.bind(buildService); } }