@@ -43,7 +43,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
4343 super ( ) ;
4444 }
4545
46- public async cleanPlatforms ( platforms : string [ ] , platformTemplate : string , projectData : IProjectData , config : IAddPlatformCoreOptions , framworkPath ?: string ) : Promise < void > {
46+ public async cleanPlatforms ( platforms : string [ ] , platformTemplate : string , projectData : IProjectData , config : IPlatformOptions , framworkPath ?: string ) : Promise < void > {
4747 for ( let platform of platforms ) {
4848 let version : string = this . getCurrentPlatformVersion ( platform , projectData ) ;
4949
@@ -57,7 +57,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
5757 }
5858 }
5959
60- public async addPlatforms ( platforms : string [ ] , platformTemplate : string , projectData : IProjectData , config : IAddPlatformCoreOptions , frameworkPath ?: string ) : Promise < void > {
60+ public async addPlatforms ( platforms : string [ ] , platformTemplate : string , projectData : IProjectData , config : IPlatformOptions , frameworkPath ?: string ) : Promise < void > {
6161 const platformsDir = projectData . platformsDir ;
6262 this . $fs . ensureDirectoryExists ( platformsDir ) ;
6363
@@ -84,7 +84,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
8484 return version ;
8585 }
8686
87- private async addPlatform ( platformParam : string , platformTemplate : string , projectData : IProjectData , config : IAddPlatformCoreOptions , frameworkPath ?: string , nativePrepare ?: INativePrepare ) : Promise < void > {
87+ private async addPlatform ( platformParam : string , platformTemplate : string , projectData : IProjectData , config : IPlatformOptions , frameworkPath ?: string , nativePrepare ?: INativePrepare ) : Promise < void > {
8888 let data = platformParam . split ( "@" ) ,
8989 platform = data [ 0 ] . toLowerCase ( ) ,
9090 version = data [ 1 ] ;
@@ -137,7 +137,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
137137 this . $logger . out ( "Project successfully created." ) ;
138138 }
139139
140- private async addPlatformCore ( platformData : IPlatformData , frameworkDir : string , platformTemplate : string , projectData : IProjectData , config : IAddPlatformCoreOptions , nativePrepare ?: INativePrepare ) : Promise < string > {
140+ private async addPlatformCore ( platformData : IPlatformData , frameworkDir : string , platformTemplate : string , projectData : IProjectData , config : IPlatformOptions , nativePrepare ?: INativePrepare ) : Promise < string > {
141141 const coreModuleData = this . $fs . readJson ( path . join ( frameworkDir , ".." , "package.json" ) ) ;
142142 const installedVersion = coreModuleData . version ;
143143 const customTemplateOptions = await this . getPathToPlatformTemplate ( platformTemplate , platformData . frameworkPackageName , projectData . projectDir ) ;
@@ -159,7 +159,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
159159
160160 }
161161
162- private async addPlatformCoreNative ( platformData : IPlatformData , frameworkDir : string , installedVersion : string , projectData : IProjectData , config : IAddPlatformCoreOptions ) : Promise < void > {
162+ private async addPlatformCoreNative ( platformData : IPlatformData , frameworkDir : string , installedVersion : string , projectData : IProjectData , config : IPlatformOptions ) : Promise < void > {
163163 await platformData . platformProjectService . createProject ( path . resolve ( frameworkDir ) , installedVersion , projectData , config ) ;
164164 platformData . platformProjectService . ensureConfigurationFileInAppResources ( projectData ) ;
165165 await platformData . platformProjectService . interpolateData ( projectData , config ) ;
@@ -213,7 +213,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
213213 public getPreparedPlatforms ( projectData : IProjectData ) : string [ ] {
214214 return _ . filter ( this . $platformsData . platformsNames , p => { return this . isPlatformPrepared ( p , projectData ) ; } ) ;
215215 }
216- public async preparePlatform ( platform : string , appFilesUpdaterOptions : IAppFilesUpdaterOptions , platformTemplate : string , projectData : IProjectData , config : IAddPlatformCoreOptions , filesToSync ?: Array < String > , nativePrepare ?: INativePrepare ) : Promise < boolean > {
216+ public async preparePlatform ( platform : string , appFilesUpdaterOptions : IAppFilesUpdaterOptions , platformTemplate : string , projectData : IProjectData , config : IPlatformOptions , filesToSync ?: Array < String > , nativePrepare ?: INativePrepare ) : Promise < boolean > {
217217 const platformData = this . $platformsData . getPlatformData ( platform , projectData ) ;
218218 const changesInfo = await this . initialPrepare ( platform , platformData , appFilesUpdaterOptions , platformTemplate , projectData , config , nativePrepare ) ;
219219 const requiresNativePrepare = ( ! nativePrepare || ! nativePrepare . skipNativePrepare ) && changesInfo . nativePlatformStatus === constants . NativePlatformStatus . requiresPrepare ;
@@ -265,7 +265,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
265265 }
266266 }
267267
268- private async initialPrepare ( platform : string , platformData : IPlatformData , appFilesUpdaterOptions : IAppFilesUpdaterOptions , platformTemplate : string , projectData : IProjectData , config : IAddPlatformCoreOptions , nativePrepare ?: INativePrepare ) : Promise < IProjectChangesInfo > {
268+ private async initialPrepare ( platform : string , platformData : IPlatformData , appFilesUpdaterOptions : IAppFilesUpdaterOptions , platformTemplate : string , projectData : IProjectData , config : IPlatformOptions , nativePrepare ?: INativePrepare ) : Promise < IProjectChangesInfo > {
269269 this . validatePlatform ( platform , projectData ) ;
270270
271271 await this . trackProjectType ( projectData ) ;
@@ -532,7 +532,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
532532 this . $logger . out ( `Successfully installed on device with identifier '${ device . deviceInfo . identifier } '.` ) ;
533533 }
534534
535- public async deployPlatform ( platform : string , appFilesUpdaterOptions : IAppFilesUpdaterOptions , deployOptions : IDeployPlatformOptions , projectData : IProjectData , config : IAddPlatformCoreOptions ) : Promise < void > {
535+ public async deployPlatform ( platform : string , appFilesUpdaterOptions : IAppFilesUpdaterOptions , deployOptions : IDeployPlatformOptions , projectData : IProjectData , config : IPlatformOptions ) : Promise < void > {
536536 await this . preparePlatform ( platform , appFilesUpdaterOptions , deployOptions . platformTemplate , projectData , config ) ;
537537 let options : Mobile . IDevicesServicesInitializationOptions = {
538538 platform : platform , deviceId : deployOptions . device , emulator : deployOptions . emulator
@@ -623,7 +623,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
623623 return null ;
624624 }
625625
626- public async cleanDestinationApp ( platform : string , appFilesUpdaterOptions : IAppFilesUpdaterOptions , platformTemplate : string , projectData : IProjectData , config : IAddPlatformCoreOptions ) : Promise < void > {
626+ public async cleanDestinationApp ( platform : string , appFilesUpdaterOptions : IAppFilesUpdaterOptions , platformTemplate : string , projectData : IProjectData , config : IPlatformOptions ) : Promise < void > {
627627 await this . ensurePlatformInstalled ( platform , platformTemplate , projectData , config ) ;
628628
629629 const appSourceDirectoryPath = path . join ( projectData . projectDir , constants . APP_FOLDER_NAME ) ;
@@ -679,7 +679,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
679679 }
680680 }
681681
682- public async updatePlatforms ( platforms : string [ ] , platformTemplate : string , projectData : IProjectData , config : IAddPlatformCoreOptions ) : Promise < void > {
682+ public async updatePlatforms ( platforms : string [ ] , platformTemplate : string , projectData : IProjectData , config : IPlatformOptions ) : Promise < void > {
683683 for ( let platformParam of platforms ) {
684684 let data = platformParam . split ( "@" ) ,
685685 platform = data [ 0 ] ,
@@ -736,7 +736,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
736736 }
737737 }
738738
739- public async ensurePlatformInstalled ( platform : string , platformTemplate : string , projectData : IProjectData , config : IAddPlatformCoreOptions , nativePrepare ?: INativePrepare ) : Promise < void > {
739+ public async ensurePlatformInstalled ( platform : string , platformTemplate : string , projectData : IProjectData , config : IPlatformOptions , nativePrepare ?: INativePrepare ) : Promise < void > {
740740 let requiresNativePlatformAdd = false ;
741741
742742 if ( ! this . isPlatformInstalled ( platform , projectData ) ) {
@@ -808,7 +808,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
808808 return this . getLatestApplicationPackage ( outputPath || platformData . emulatorBuildOutputPath || platformData . deviceBuildOutputPath , platformData . getValidPackageNames ( { isForDevice : false , isReleaseBuild : buildConfig . release } ) ) ;
809809 }
810810
811- private async updatePlatform ( platform : string , version : string , platformTemplate : string , projectData : IProjectData , config : IAddPlatformCoreOptions ) : Promise < void > {
811+ private async updatePlatform ( platform : string , version : string , platformTemplate : string , projectData : IProjectData , config : IPlatformOptions ) : Promise < void > {
812812 let platformData = this . $platformsData . getPlatformData ( platform , projectData ) ;
813813
814814 let data = this . $projectDataService . getNSValue ( projectData . projectDir , platformData . frameworkPackageName ) ;
@@ -841,7 +841,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
841841
842842 }
843843
844- private async updatePlatformCore ( platformData : IPlatformData , updateOptions : IUpdatePlatformOptions , projectData : IProjectData , config : IAddPlatformCoreOptions ) : Promise < void > {
844+ private async updatePlatformCore ( platformData : IPlatformData , updateOptions : IUpdatePlatformOptions , projectData : IProjectData , config : IPlatformOptions ) : Promise < void > {
845845 let packageName = platformData . normalizedPlatformName . toLowerCase ( ) ;
846846 await this . removePlatforms ( [ packageName ] , projectData ) ;
847847 packageName = updateOptions . newVersion ? `${ packageName } @${ updateOptions . newVersion } ` : packageName ;
0 commit comments