@@ -9,7 +9,6 @@ export abstract class BuildCommandBase extends ValidatePlatformCommandBase {
9
9
protected $devicePlatformsConstants : Mobile . IDevicePlatformsConstants ,
10
10
protected $buildController : IBuildController ,
11
11
$platformValidationService : IPlatformValidationService ,
12
- private $bundleValidatorHelper : IBundleValidatorHelper ,
13
12
private $buildDataService : IBuildDataService ,
14
13
protected $logger : ILogger ) {
15
14
super ( $options , $platformsDataService , $platformValidationService , $projectData ) ;
@@ -33,8 +32,6 @@ export abstract class BuildCommandBase extends ValidatePlatformCommandBase {
33
32
if ( ! this . $platformValidationService . isPlatformSupportedForOS ( platform , this . $projectData ) ) {
34
33
this . $errors . fail ( `Applications for platform ${ platform } can not be built on this OS` ) ;
35
34
}
36
-
37
- this . $bundleValidatorHelper . validate ( this . $projectData ) ;
38
35
}
39
36
40
37
protected async validateArgs ( args : string [ ] , platform : string ) : Promise < ICanExecuteCommandOutput > {
@@ -65,10 +62,9 @@ export class BuildIosCommand extends BuildCommandBase implements ICommand {
65
62
$devicePlatformsConstants : Mobile . IDevicePlatformsConstants ,
66
63
$buildController : IBuildController ,
67
64
$platformValidationService : IPlatformValidationService ,
68
- $bundleValidatorHelper : IBundleValidatorHelper ,
69
65
$logger : ILogger ,
70
66
$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 ) ;
72
68
}
73
69
74
70
public async execute ( args : string [ ] ) : Promise < void > {
@@ -101,11 +97,10 @@ export class BuildAndroidCommand extends BuildCommandBase implements ICommand {
101
97
$devicePlatformsConstants : Mobile . IDevicePlatformsConstants ,
102
98
$buildController : IBuildController ,
103
99
$platformValidationService : IPlatformValidationService ,
104
- $bundleValidatorHelper : IBundleValidatorHelper ,
105
100
protected $androidBundleValidatorHelper : IAndroidBundleValidatorHelper ,
106
101
$buildDataService : IBuildDataService ,
107
102
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 ) ;
109
104
}
110
105
111
106
public async execute ( args : string [ ] ) : Promise < void > {
@@ -122,7 +117,6 @@ export class BuildAndroidCommand extends BuildCommandBase implements ICommand {
122
117
123
118
public async canExecute ( args : string [ ] ) : Promise < boolean | ICanExecuteCommandOutput > {
124
119
const platform = this . $devicePlatformsConstants . Android ;
125
- super . validatePlatform ( platform ) ;
126
120
this . $androidBundleValidatorHelper . validateRuntimeVersion ( this . $projectData ) ;
127
121
let result = await super . canExecuteCommandBase ( platform , { notConfiguredEnvOptions : { hideSyncToPreviewAppOption : true } } ) ;
128
122
if ( result . canExecute ) {
0 commit comments