@@ -9,12 +9,14 @@ export abstract class BuildCommandBase extends ValidatePlatformCommandBase {
99 protected $devicePlatformsConstants : Mobile . IDevicePlatformsConstants ,
1010 $platformService : IPlatformService ,
1111 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 ( ) ;
1516 }
1617
1718 public async executeCore ( args : string [ ] ) : Promise < string > {
19+ await this . $workflowService . handleLegacyWorkflow ( { projectDir : this . $projectData . projectDir , settings : this . $options , skipWarnings : true } ) ;
1820 const platform = args [ 0 ] . toLowerCase ( ) ;
1921 const appFilesUpdaterOptions : IAppFilesUpdaterOptions = {
2022 bundle : ! ! this . $options . bundle ,
@@ -63,7 +65,7 @@ export abstract class BuildCommandBase extends ValidatePlatformCommandBase {
6365 this . $errors . fail ( `Applications for platform ${ platform } can not be built on this OS` ) ;
6466 }
6567
66- this . $bundleValidatorHelper . validate ( ) ;
68+ this . $bundleValidatorHelper . validate ( this . $projectData ) ;
6769 }
6870
6971 protected async validateArgs ( args : string [ ] , platform : string ) : Promise < ICanExecuteCommandOutput > {
@@ -94,8 +96,9 @@ export class BuildIosCommand extends BuildCommandBase implements ICommand {
9496 $devicePlatformsConstants : Mobile . IDevicePlatformsConstants ,
9597 $platformService : IPlatformService ,
9698 $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 ) ;
99102 }
100103
101104 public async execute ( args : string [ ] ) : Promise < void > {
@@ -107,7 +110,7 @@ export class BuildIosCommand extends BuildCommandBase implements ICommand {
107110
108111 super . validatePlatform ( platform ) ;
109112
110- let result = await super . canExecuteCommandBase ( platform , { notConfiguredEnvOptions : { hideSyncToPreviewAppOption : true } } ) ;
113+ let result = await super . canExecuteCommandBase ( platform , { notConfiguredEnvOptions : { hideSyncToPreviewAppOption : true } } ) ;
111114 if ( result . canExecute ) {
112115 result = await super . validateArgs ( args , platform ) ;
113116 }
@@ -129,8 +132,9 @@ export class BuildAndroidCommand extends BuildCommandBase implements ICommand {
129132 $platformService : IPlatformService ,
130133 $bundleValidatorHelper : IBundleValidatorHelper ,
131134 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 ) ;
134138 }
135139
136140 public async execute ( args : string [ ] ) : Promise < void > {
@@ -149,7 +153,7 @@ export class BuildAndroidCommand extends BuildCommandBase implements ICommand {
149153 const platform = this . $devicePlatformsConstants . Android ;
150154 super . validatePlatform ( platform ) ;
151155 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 } } ) ;
153157 if ( result . canExecute ) {
154158 if ( this . $options . release && ( ! this . $options . keyStorePath || ! this . $options . keyStorePassword || ! this . $options . keyStoreAlias || ! this . $options . keyStoreAliasPassword ) ) {
155159 this . $errors . fail ( ANDROID_RELEASE_BUILD_ERROR_MESSAGE ) ;
0 commit comments