nativescript 9.2.0-alpha.0 → 9.2.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -105,7 +105,12 @@ class BuildAndroidCommand extends BuildCommandBase {
105
105
  let canExecute = await super.canExecuteCommandBase(platform);
106
106
  if (canExecute) {
107
107
  if (this.$options.release && !(0, helpers_1.hasValidAndroidSigning)(this.$options)) {
108
- this.$errors.failWithHelp(constants_1.ANDROID_RELEASE_BUILD_ERROR_MESSAGE);
108
+ if (!this.$options.compiled) {
109
+ this.$errors.failWithHelp(constants_1.ANDROID_RELEASE_BUILD_ERROR_MESSAGE);
110
+ }
111
+ else if (this.$options.aab) {
112
+ this.$errors.failWithHelp(constants_1.ANDROID_APP_BUNDLE_SIGNING_ERROR_MESSAGE);
113
+ }
109
114
  }
110
115
  canExecute = await super.validateArgs(args, platform);
111
116
  }
@@ -46,10 +46,10 @@ class DeployOnDeviceCommand extends command_base_1.ValidatePlatformCommandBase {
46
46
  if (this.$mobileHelper.isAndroidPlatform(platform) &&
47
47
  (this.$options.release || this.$options.aab) &&
48
48
  !(0, helpers_1.hasValidAndroidSigning)(this.$options)) {
49
- if (this.$options.release) {
49
+ if (this.$options.release && !this.$options.compiled) {
50
50
  this.$errors.failWithHelp(constants_1.ANDROID_RELEASE_BUILD_ERROR_MESSAGE);
51
51
  }
52
- else {
52
+ else if (this.$options.aab) {
53
53
  this.$errors.failWithHelp(constants_1.ANDROID_APP_BUNDLE_SIGNING_ERROR_MESSAGE);
54
54
  }
55
55
  }
@@ -122,10 +122,10 @@ class RunAndroidCommand {
122
122
  }
123
123
  if ((this.$options.release || this.$options.aab) &&
124
124
  !(0, helpers_1.hasValidAndroidSigning)(this.$options)) {
125
- if (this.$options.release) {
125
+ if (this.$options.release && !this.$options.compiled) {
126
126
  this.$errors.failWithHelp(constants_2.ANDROID_RELEASE_BUILD_ERROR_MESSAGE);
127
127
  }
128
- else {
128
+ else if (this.$options.aab) {
129
129
  this.$errors.failWithHelp(constants_2.ANDROID_APP_BUNDLE_SIGNING_ERROR_MESSAGE);
130
130
  }
131
131
  }
@@ -341,6 +341,9 @@ class CompiledReleaseService {
341
341
  finally {
342
342
  capture.stop();
343
343
  }
344
+ if (!buildData.keyStorePath) {
345
+ this.$logger.warn("No --key-store-* options: signed with the debug key, which installs for testing but no store accepts.");
346
+ }
344
347
  const outputName = projectData.projectName;
345
348
  return buildData.androidBundle
346
349
  ? path.join(projectRoot, "build", "outputs", "bundle", "release", `${outputName}-release.aab`)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nativescript",
3
3
  "main": "./lib/nativescript-cli-lib.js",
4
- "version": "9.2.0-alpha.0",
4
+ "version": "9.2.0-alpha.1",
5
5
  "author": "NativeScript <oss@nativescript.org>",
6
6
  "description": "Command-line interface for building NativeScript projects",
7
7
  "bin": {