File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
- import { ANDROID_RELEASE_BUILD_ERROR_MESSAGE , AndroidAppBundleMessages , ANDROID_APP_BUNDLE_SIGNING_ERROR_MESSAGE } from "../constants" ;
1
+ import { ANDROID_RELEASE_BUILD_ERROR_MESSAGE , AndroidAppBundleMessages } from "../constants" ;
2
2
import { ValidatePlatformCommandBase } from "./command-base" ;
3
3
import { hasValidAndroidSigning } from "../common/helpers" ;
4
4
@@ -124,12 +124,8 @@ export class BuildAndroidCommand extends BuildCommandBase implements ICommand {
124
124
this . $androidBundleValidatorHelper . validateRuntimeVersion ( this . $projectData ) ;
125
125
let canExecute = await super . canExecuteCommandBase ( platform , { notConfiguredEnvOptions : { hideSyncToPreviewAppOption : true } } ) ;
126
126
if ( canExecute ) {
127
- if ( ( this . $options . release || this . $options . aab ) && ! hasValidAndroidSigning ( this . $options ) ) {
128
- if ( this . $options . release ) {
129
- this . $errors . failWithHelp ( ANDROID_RELEASE_BUILD_ERROR_MESSAGE ) ;
130
- } else {
131
- this . $errors . failWithHelp ( ANDROID_APP_BUNDLE_SIGNING_ERROR_MESSAGE ) ;
132
- }
127
+ if ( this . $options . release && ! hasValidAndroidSigning ( this . $options ) ) {
128
+ this . $errors . failWithHelp ( ANDROID_RELEASE_BUILD_ERROR_MESSAGE ) ;
133
129
}
134
130
135
131
canExecute = await super . validateArgs ( args , platform ) ;
You can’t perform that action at this time.
0 commit comments