nativescript-cloud
Advanced tools
Comparing version 1.20.1 to 1.21.0-pre.1
@@ -83,1 +83,7 @@ "use strict"; | ||
$injector.requireCommand("cloud|clean|workspace", path.join(__dirname, "commands", "clean", "clean-cloud-workspace")); | ||
global.showErrorForStoppedCloudBuilds = () => { | ||
const errors = $injector.resolve("errors"); | ||
return errors.fail("Cloud builds were shut down on May 31st, 2020. " + | ||
"If you need to continue building in the cloud you can follow this tutorial " + | ||
"to migrate to CircleCI: https://www.nativescript.org/blog/migration-of-nativescript-cloud-builds-to-circle-ci"); | ||
}; |
@@ -24,2 +24,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
yield this.$nsCloudEulaCommandHelper.ensureEulaIsAccepted(); | ||
@@ -26,0 +27,0 @@ const myAccounts = yield this.$nsCloudAccountsService.getMyAccounts(); |
@@ -28,2 +28,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
yield this.$nsCloudEulaCommandHelper.ensureEulaIsAccepted(); | ||
@@ -30,0 +31,0 @@ const features = yield this.$nsCloudAccountsService.getAccountFeatures(this.$options.accountId); |
@@ -30,2 +30,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
yield this.$nsCloudEulaCommandHelper.ensureEulaIsAccepted(); | ||
@@ -32,0 +33,0 @@ const usage = yield this.$nsCloudAccountsService.getUsageInfo(this.$options.accountId); |
@@ -41,2 +41,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
const buildData = this.getCloudBuildData(platform); | ||
@@ -49,2 +50,3 @@ buildData.iOSBuildData.buildForDevice = buildConfig.buildForDevice; | ||
getCloudBuildData(platformArg) { | ||
global.showErrorForStoppedCloudBuilds(); | ||
const platform = this.$mobileHelper.validatePlatformName(platformArg); | ||
@@ -99,2 +101,3 @@ this.$logger.info(`Executing cloud build with platform: ${platform}.`); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
let { username, password } = this.getUsernameAndPasswordFromArgs(args); | ||
@@ -115,2 +118,3 @@ if (!username) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
const extendedCredentials = { | ||
@@ -135,2 +139,3 @@ appleApplicationSpecificPassword: options.appleApplicationSpecificPassword, | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
let packagePath; | ||
@@ -137,0 +142,0 @@ const platform = this.$mobileHelper.validatePlatformName(platformArg); |
@@ -31,2 +31,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
yield this.$nsCloudEulaCommandHelper.ensureEulaIsAccepted(); | ||
@@ -33,0 +34,0 @@ if (!args || !args.length) { |
@@ -35,2 +35,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
yield this.$nsCloudEulaCommandHelper.ensureEulaIsAccepted(); | ||
@@ -37,0 +38,0 @@ if (args.length > 2 || (!helpers_1.isInteractive() && args.length < 2)) { |
@@ -33,2 +33,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
yield this.$nsCloudEulaCommandHelper.ensureEulaIsAccepted(); | ||
@@ -35,0 +36,0 @@ this.$nsCloudAndroidBundleValidatorHelper.validateNoAab(); |
@@ -32,2 +32,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
yield this.$nsCloudEulaCommandHelper.ensureEulaIsAccepted(); | ||
@@ -34,0 +35,0 @@ if (args.length > 2 || (!helpers_1.isInteractive() && args.length < 1)) { |
@@ -33,2 +33,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
this.$nsCloudAndroidBundleValidatorHelper.validateNoAab(); | ||
@@ -35,0 +36,0 @@ return true; |
@@ -38,2 +38,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
yield this.$nsCloudEulaCommandHelper.ensureEulaIsAccepted(); | ||
@@ -40,0 +41,0 @@ this.$nsCloudAndroidBundleValidatorHelper.validateNoAab(); |
@@ -24,2 +24,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
const messageHandler = (msg) => __awaiter(this, void 0, void 0, function* () { | ||
@@ -26,0 +27,0 @@ if (msg.type === constants_1.CloudOperationMessageTypes.CLOUD_OPERATION_INPUT_REQUEST) { |
@@ -18,6 +18,10 @@ "use strict"; | ||
getMyAccounts() { | ||
return this.$nsCloudServerAccountsService.getAccounts(); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
return this.$nsCloudServerAccountsService.getAccounts(); | ||
}); | ||
} | ||
getUsageInfo(accountIdOption) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
const account = yield this.getAccountFromOption(accountIdOption); | ||
@@ -29,2 +33,3 @@ return this.$nsCloudServerAccountsService.getUsageInfo(account.id); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
const accounts = yield this.getMyAccounts(); | ||
@@ -50,2 +55,3 @@ if (!accountIdOption) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
const account = yield this.getAccountFromOption(accountIdOption); | ||
@@ -52,0 +58,0 @@ return this.$nsCloudServerAccountsService.getAccountFeatures(account.id); |
@@ -57,2 +57,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
const result = yield this.executeCloudOperation("Cloud build", (cloudOperationId) => __awaiter(this, void 0, void 0, function* () { | ||
@@ -70,2 +71,3 @@ this.$logger.info("Getting accounts information..."); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
const buildInformationString = `Cloud build of '${projectSettings.projectDir}', platform: '${platform}', ` + | ||
@@ -191,2 +193,3 @@ `configuration: '${buildConfiguration}'`; | ||
validateBuildProperties(platform, buildConfiguration, appId, androidBuildData, iOSBuildData) { | ||
global.showErrorForStoppedCloudBuilds(); | ||
return this.$nsCloudBuildPropertiesService.validateBuildProperties(platform, buildConfiguration, appId, androidBuildData, iOSBuildData); | ||
@@ -193,0 +196,0 @@ } |
@@ -20,2 +20,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
const propertyName = this.$nsCloudHashService.getHash(`${this.$nsCloudUserService.getUser().email}_${projectSettings.projectId}`); | ||
@@ -22,0 +23,0 @@ const imageSettings = yield this.getNsCloudEncryptionSettings(); |
@@ -25,2 +25,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
if (this.shouldUseOldPlatformService) { | ||
@@ -36,2 +37,3 @@ const $platformService = this.$injector.resolve("platformService"); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
if (this.shouldUseOldPlatformService) { | ||
@@ -47,2 +49,3 @@ const $platformService = this.$injector.resolve("platformService"); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
const $deployCommandHelper = this.$injector.resolve("deployCommandHelper"); | ||
@@ -66,2 +69,3 @@ if (this.shouldUseOldPlatformService) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
if (this.shouldUseOldPlatformService) { | ||
@@ -77,2 +81,3 @@ const $platformService = this.$injector.resolve("platformService"); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
if (this.shouldUseOldPlatformService) { | ||
@@ -79,0 +84,0 @@ const appFilesUpdaterOptions = { |
@@ -31,2 +31,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
let identifiers; | ||
@@ -33,0 +34,0 @@ const cleanupTaskResults = []; |
@@ -32,2 +32,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
yield this.executeCloudOperation("Cloud publish iOS", (cloudOperationId) => __awaiter(this, void 0, void 0, function* () { | ||
@@ -50,2 +51,3 @@ this.validatePublishData(publishData); | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
yield this.executeCloudOperation("Cloud publish Android", (cloudOperationId) => __awaiter(this, void 0, void 0, function* () { | ||
@@ -52,0 +54,0 @@ this.validatePublishData(publishData); |
@@ -34,2 +34,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
const cloudOperation = this.cloudOperations[message.cloudOperationId]; | ||
@@ -43,2 +44,3 @@ if (!cloudOperation) { | ||
getServerResults(serverResult) { | ||
global.showErrorForStoppedCloudBuilds(); | ||
return []; | ||
@@ -48,2 +50,3 @@ } | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
const cloudOperationId = uuid_1.v4(); | ||
@@ -65,2 +68,3 @@ try { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
global.showErrorForStoppedCloudBuilds(); | ||
const cloudOperationVersion = serverResponse.cloudOperationVersion || CloudService.CLOUD_OPERATION_VERSION_1; | ||
@@ -67,0 +71,0 @@ const cloudOperation = this.$nsCloudOperationFactory.create(cloudOperationVersion, cloudOperationId, serverResponse); |
@@ -12,8 +12,11 @@ "use strict"; | ||
getAccounts() { | ||
global.showErrorForStoppedCloudBuilds(); | ||
return this.sendRequest(constants_1.HTTP_METHODS.GET, "api/accounts", null); | ||
} | ||
getUsageInfo(accountId) { | ||
global.showErrorForStoppedCloudBuilds(); | ||
return this.sendRequest(constants_1.HTTP_METHODS.GET, `api/usage?accountId=${accountId}`, null); | ||
} | ||
getAccountFeatures(accountId) { | ||
global.showErrorForStoppedCloudBuilds(); | ||
return this.sendRequest(constants_1.HTTP_METHODS.GET, `api/features?accountId=${accountId}`, null); | ||
@@ -20,0 +23,0 @@ } |
@@ -13,17 +13,23 @@ "use strict"; | ||
startBuild(buildRequest) { | ||
global.showErrorForStoppedCloudBuilds(); | ||
return this.sendRequest(constants_1.HTTP_METHODS.POST, "api/build", buildRequest); | ||
} | ||
getPresignedUploadUrlObject(fileName) { | ||
global.showErrorForStoppedCloudBuilds(); | ||
return this.sendRequest(constants_1.HTTP_METHODS.GET, `api/upload-url?${querystring.stringify({ fileName })}`, null); | ||
} | ||
getBuildCredentials(buildCredentialRequest) { | ||
global.showErrorForStoppedCloudBuilds(); | ||
return this.sendRequest(constants_1.HTTP_METHODS.POST, "api/build-credentials", buildCredentialRequest); | ||
} | ||
generateCodesignFiles(codesignRequestData) { | ||
global.showErrorForStoppedCloudBuilds(); | ||
return this.sendRequest(constants_1.HTTP_METHODS.POST, "api/codesign", codesignRequestData); | ||
} | ||
publish(publishRequestData) { | ||
global.showErrorForStoppedCloudBuilds(); | ||
return this.sendRequest(constants_1.HTTP_METHODS.POST, "api/publish", publishRequestData); | ||
} | ||
appleLogin(appleLoginRequestData) { | ||
global.showErrorForStoppedCloudBuilds(); | ||
return this.sendRequest(constants_1.HTTP_METHODS.POST, "api/apple-login", appleLoginRequestData); | ||
@@ -30,0 +36,0 @@ } |
@@ -12,2 +12,3 @@ "use strict"; | ||
cleanupProjectData(projectData) { | ||
global.showErrorForStoppedCloudBuilds(); | ||
return this.sendRequest(constants_1.HTTP_METHODS.POST, "api/cleanup-data", projectData); | ||
@@ -14,0 +15,0 @@ } |
{ | ||
"name": "nativescript-cloud", | ||
"version": "1.20.1", | ||
"version": "1.21.0-pre.1", | ||
"description": "Used for cloud support in NativeScript CLI", | ||
@@ -5,0 +5,0 @@ "main": "lib/bootstrap.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
450347
6261
1