@@ -9,7 +9,6 @@ export abstract class BuildCommandBase extends ValidatePlatformCommandBase {
99 protected $devicePlatformsConstants : Mobile . IDevicePlatformsConstants ,
1010 protected $buildController : IBuildController ,
1111 $platformValidationService : IPlatformValidationService ,
12- private $bundleValidatorHelper : IBundleValidatorHelper ,
1312 private $buildDataService : IBuildDataService ,
1413 protected $logger : ILogger ) {
1514 super ( $options , $platformsDataService , $platformValidationService , $projectData ) ;
@@ -33,8 +32,6 @@ export abstract class BuildCommandBase extends ValidatePlatformCommandBase {
3332 if ( ! this . $platformValidationService . isPlatformSupportedForOS ( platform , this . $projectData ) ) {
3433 this . $errors . fail ( `Applications for platform ${ platform } can not be built on this OS` ) ;
3534 }
36-
37- this . $bundleValidatorHelper . validate ( this . $projectData ) ;
3835 }
3936
4037 protected async validateArgs ( args : string [ ] , platform : string ) : Promise < ICanExecuteCommandOutput > {
@@ -65,10 +62,9 @@ export class BuildIosCommand extends BuildCommandBase implements ICommand {
6562 $devicePlatformsConstants : Mobile . IDevicePlatformsConstants ,
6663 $buildController : IBuildController ,
6764 $platformValidationService : IPlatformValidationService ,
68- $bundleValidatorHelper : IBundleValidatorHelper ,
6965 $logger : ILogger ,
7066 $buildDataService : IBuildDataService ) {
71- super ( $options , $errors , $projectData , $platformsDataService , $devicePlatformsConstants , $buildController , $platformValidationService , $bundleValidatorHelper , $ buildDataService, $logger ) ;
67+ super ( $options , $errors , $projectData , $platformsDataService , $devicePlatformsConstants , $buildController , $platformValidationService , $buildDataService , $logger ) ;
7268 }
7369
7470 public async execute ( args : string [ ] ) : Promise < void > {
@@ -101,11 +97,10 @@ export class BuildAndroidCommand extends BuildCommandBase implements ICommand {
10197 $devicePlatformsConstants : Mobile . IDevicePlatformsConstants ,
10298 $buildController : IBuildController ,
10399 $platformValidationService : IPlatformValidationService ,
104- $bundleValidatorHelper : IBundleValidatorHelper ,
105100 protected $androidBundleValidatorHelper : IAndroidBundleValidatorHelper ,
106101 $buildDataService : IBuildDataService ,
107102 protected $logger : ILogger ) {
108- super ( $options , $errors , $projectData , platformsDataService , $devicePlatformsConstants , $buildController , $platformValidationService , $bundleValidatorHelper , $ buildDataService, $logger ) ;
103+ super ( $options , $errors , $projectData , platformsDataService , $devicePlatformsConstants , $buildController , $platformValidationService , $buildDataService , $logger ) ;
109104 }
110105
111106 public async execute ( args : string [ ] ) : Promise < void > {
@@ -122,7 +117,6 @@ export class BuildAndroidCommand extends BuildCommandBase implements ICommand {
122117
123118 public async canExecute ( args : string [ ] ) : Promise < boolean | ICanExecuteCommandOutput > {
124119 const platform = this . $devicePlatformsConstants . Android ;
125- super . validatePlatform ( platform ) ;
126120 this . $androidBundleValidatorHelper . validateRuntimeVersion ( this . $projectData ) ;
127121 let result = await super . canExecuteCommandBase ( platform , { notConfiguredEnvOptions : { hideSyncToPreviewAppOption : true } } ) ;
128122 if ( result . canExecute ) {
0 commit comments