@@ -9,12 +9,14 @@ export abstract class BuildCommandBase extends ValidatePlatformCommandBase {
9
9
protected $devicePlatformsConstants : Mobile . IDevicePlatformsConstants ,
10
10
$platformService : IPlatformService ,
11
11
private $bundleValidatorHelper : IBundleValidatorHelper ,
12
- protected $logger : ILogger ) {
13
- super ( $options , $platformsData , $platformService , $projectData ) ;
14
- this . $projectData . initializeProjectData ( ) ;
12
+ protected $logger : ILogger ,
13
+ protected $workflowService : IWorkflowService ) {
14
+ super ( $options , $platformsData , $platformService , $projectData ) ;
15
+ this . $projectData . initializeProjectData ( ) ;
15
16
}
16
17
17
18
public async executeCore ( args : string [ ] ) : Promise < string > {
19
+ await this . $workflowService . handleLegacyWorkflow ( { projectDir : this . $projectData . projectDir , settings : this . $options , skipWarnings : true } ) ;
18
20
const platform = args [ 0 ] . toLowerCase ( ) ;
19
21
const appFilesUpdaterOptions : IAppFilesUpdaterOptions = {
20
22
bundle : ! ! this . $options . bundle ,
@@ -63,7 +65,7 @@ export abstract class BuildCommandBase extends ValidatePlatformCommandBase {
63
65
this . $errors . fail ( `Applications for platform ${ platform } can not be built on this OS` ) ;
64
66
}
65
67
66
- this . $bundleValidatorHelper . validate ( ) ;
68
+ this . $bundleValidatorHelper . validate ( this . $projectData ) ;
67
69
}
68
70
69
71
protected async validateArgs ( args : string [ ] , platform : string ) : Promise < ICanExecuteCommandOutput > {
@@ -94,8 +96,9 @@ export class BuildIosCommand extends BuildCommandBase implements ICommand {
94
96
$devicePlatformsConstants : Mobile . IDevicePlatformsConstants ,
95
97
$platformService : IPlatformService ,
96
98
$bundleValidatorHelper : IBundleValidatorHelper ,
97
- $logger : ILogger ) {
98
- super ( $options , $errors , $projectData , $platformsData , $devicePlatformsConstants , $platformService , $bundleValidatorHelper , $logger ) ;
99
+ $logger : ILogger ,
100
+ $workflowService : IWorkflowService ) {
101
+ super ( $options , $errors , $projectData , $platformsData , $devicePlatformsConstants , $platformService , $bundleValidatorHelper , $logger , $workflowService ) ;
99
102
}
100
103
101
104
public async execute ( args : string [ ] ) : Promise < void > {
@@ -107,7 +110,7 @@ export class BuildIosCommand extends BuildCommandBase implements ICommand {
107
110
108
111
super . validatePlatform ( platform ) ;
109
112
110
- let result = await super . canExecuteCommandBase ( platform , { notConfiguredEnvOptions : { hideSyncToPreviewAppOption : true } } ) ;
113
+ let result = await super . canExecuteCommandBase ( platform , { notConfiguredEnvOptions : { hideSyncToPreviewAppOption : true } } ) ;
111
114
if ( result . canExecute ) {
112
115
result = await super . validateArgs ( args , platform ) ;
113
116
}
@@ -129,8 +132,9 @@ export class BuildAndroidCommand extends BuildCommandBase implements ICommand {
129
132
$platformService : IPlatformService ,
130
133
$bundleValidatorHelper : IBundleValidatorHelper ,
131
134
protected $androidBundleValidatorHelper : IAndroidBundleValidatorHelper ,
132
- protected $logger : ILogger ) {
133
- super ( $options , $errors , $projectData , $platformsData , $devicePlatformsConstants , $platformService , $bundleValidatorHelper , $logger ) ;
135
+ protected $logger : ILogger ,
136
+ $workflowService : IWorkflowService ) {
137
+ super ( $options , $errors , $projectData , $platformsData , $devicePlatformsConstants , $platformService , $bundleValidatorHelper , $logger , $workflowService ) ;
134
138
}
135
139
136
140
public async execute ( args : string [ ] ) : Promise < void > {
@@ -149,7 +153,7 @@ export class BuildAndroidCommand extends BuildCommandBase implements ICommand {
149
153
const platform = this . $devicePlatformsConstants . Android ;
150
154
super . validatePlatform ( platform ) ;
151
155
this . $androidBundleValidatorHelper . validateRuntimeVersion ( this . $projectData ) ;
152
- let result = await super . canExecuteCommandBase ( platform , { notConfiguredEnvOptions : { hideSyncToPreviewAppOption : true } } ) ;
156
+ let result = await super . canExecuteCommandBase ( platform , { notConfiguredEnvOptions : { hideSyncToPreviewAppOption : true } } ) ;
153
157
if ( result . canExecute ) {
154
158
if ( this . $options . release && ( ! this . $options . keyStorePath || ! this . $options . keyStorePassword || ! this . $options . keyStoreAlias || ! this . $options . keyStoreAliasPassword ) ) {
155
159
this . $errors . fail ( ANDROID_RELEASE_BUILD_ERROR_MESSAGE ) ;
0 commit comments