@@ -224,6 +224,7 @@ export class PlatformService implements IPlatformService {
224
224
} ) ;
225
225
}
226
226
227
+ this . ensurePlatformInstalled ( platform ) . wait ( ) ;
227
228
return this . preparePlatformCore ( platform ) . wait ( ) ;
228
229
} ) . future < boolean > ( ) ( ) ;
229
230
}
@@ -232,7 +233,6 @@ export class PlatformService implements IPlatformService {
232
233
private preparePlatformCore ( platform : string ) : IFuture < boolean > {
233
234
return ( ( ) => {
234
235
platform = platform . toLowerCase ( ) ;
235
- this . ensurePlatformInstalled ( platform ) . wait ( ) ;
236
236
237
237
let platformData = this . $platformsData . getPlatformData ( platform ) ;
238
238
platformData . platformProjectService . ensureConfigurationFileInAppResources ( ) . wait ( ) ;
@@ -322,7 +322,7 @@ export class PlatformService implements IPlatformService {
322
322
// Replace placeholders in configuration files
323
323
platformData . platformProjectService . interpolateConfigurationFile ( ) . wait ( ) ;
324
324
325
- this . $logger . out ( "Project successfully prepared (" + platform + ")" ) ;
325
+ this . $logger . out ( "Project successfully prepared (" + platform + ")" ) ;
326
326
return true ;
327
327
} ) . future < boolean > ( ) ( ) ;
328
328
}
@@ -337,14 +337,14 @@ export class PlatformService implements IPlatformService {
337
337
}
338
338
339
339
public prepareAndExecute ( platform : string , executeAction : ( ) => IFuture < void > ) : IFuture < void > {
340
- return ( ( ) => {
341
- platform = platform . toLowerCase ( ) ;
342
- if ( ! this . preparePlatform ( platform ) . wait ( ) ) {
343
- this . $errors . failWithoutHelp ( "Verify that listed files are well-formed and try again the operation." ) ;
344
- }
345
- executeAction ( ) . wait ( ) ;
346
- } ) . future < void > ( ) ( ) ;
347
- }
340
+ return ( ( ) => {
341
+ platform = platform . toLowerCase ( ) ;
342
+ if ( ! this . preparePlatform ( platform ) . wait ( ) ) {
343
+ this . $errors . failWithoutHelp ( "Verify that listed files are well-formed and try again the operation." ) ;
344
+ }
345
+ executeAction ( ) . wait ( ) ;
346
+ } ) . future < void > ( ) ( ) ;
347
+ }
348
348
349
349
public buildForDeploy ( platform : string , buildConfig ?: IBuildConfig ) : IFuture < void > {
350
350
return ( ( ) => {
0 commit comments