1
1
interface IPlatformService extends NodeJS . EventEmitter {
2
- cleanPlatforms ( platforms : string [ ] , platformTemplate : string , projectData : IProjectData , platformSpecificData : IPlatformSpecificData , framework ?: string ) : Promise < void > ;
2
+ cleanPlatforms ( platforms : string [ ] , platformTemplate : string , projectData : IProjectData , config : IAddPlatformCoreOptions , framework ?: string ) : Promise < void > ;
3
3
4
- addPlatforms ( platforms : string [ ] , platformTemplate : string , projectData : IProjectData , platformSpecificData : IPlatformSpecificData , frameworkPath ?: string ) : Promise < void > ;
4
+ addPlatforms ( platforms : string [ ] , platformTemplate : string , projectData : IProjectData , config : IAddPlatformCoreOptions , frameworkPath ?: string ) : Promise < void > ;
5
5
6
6
/**
7
7
* Gets list of all installed platforms (the ones for which <project dir>/platforms/<platform> exists).
@@ -32,7 +32,7 @@ interface IPlatformService extends NodeJS.EventEmitter {
32
32
*/
33
33
removePlatforms ( platforms : string [ ] , projectData : IProjectData ) : Promise < void > ;
34
34
35
- updatePlatforms ( platforms : string [ ] , platformTemplate : string , projectData : IProjectData , platformSpecificData : IPlatformSpecificData ) : Promise < void > ;
35
+ updatePlatforms ( platforms : string [ ] , platformTemplate : string , projectData : IProjectData , config : IAddPlatformCoreOptions ) : Promise < void > ;
36
36
37
37
/**
38
38
* Ensures that the specified platform and its dependencies are installed.
@@ -43,11 +43,11 @@ interface IPlatformService extends NodeJS.EventEmitter {
43
43
* @param {IAppFilesUpdaterOptions } appFilesUpdaterOptions Options needed to instantiate AppFilesUpdater class.
44
44
* @param {string } platformTemplate The name of the platform template.
45
45
* @param {IProjectData } projectData DTO with information about the project.
46
- * @param {IPlatformSpecificData } platformSpecificData Platform specific data required for project preparation.
46
+ * @param {IAddPlatformCoreOptions } config Options required for project preparation/creation .
47
47
* @param {Array } filesToSync Files about to be synced to device.
48
48
* @returns {boolean } true indicates that the platform was prepared.
49
49
*/
50
- preparePlatform ( platform : string , appFilesUpdaterOptions : IAppFilesUpdaterOptions , platformTemplate : string , projectData : IProjectData , platformSpecificData : IPlatformSpecificData , filesToSync ?: Array < String > ) : Promise < boolean > ;
50
+ preparePlatform ( platform : string , appFilesUpdaterOptions : IAppFilesUpdaterOptions , platformTemplate : string , projectData : IProjectData , config : IAddPlatformCoreOptions , filesToSync ?: Array < String > ) : Promise < boolean > ;
51
51
52
52
/**
53
53
* Determines whether a build is necessary. A build is necessary when one of the following is true:
@@ -106,10 +106,10 @@ interface IPlatformService extends NodeJS.EventEmitter {
106
106
* @param {IAppFilesUpdaterOptions } appFilesUpdaterOptions Options needed to instantiate AppFilesUpdater class.
107
107
* @param {IDeployPlatformOptions } deployOptions Various options that can manage the deploy operation.
108
108
* @param {IProjectData } projectData DTO with information about the project.
109
- * @param {any } platformSpecificData Platform specific data required for project preparation.
109
+ * @param {IAddPlatformCoreOptions } config Options required for project preparation/creation .
110
110
* @returns {void }
111
111
*/
112
- deployPlatform ( platform : string , appFilesUpdaterOptions : IAppFilesUpdaterOptions , deployOptions : IDeployPlatformOptions , projectData : IProjectData , platformSpecificData : IPlatformSpecificData ) : Promise < void > ;
112
+ deployPlatform ( platform : string , appFilesUpdaterOptions : IAppFilesUpdaterOptions , deployOptions : IDeployPlatformOptions , projectData : IProjectData , config : IAddPlatformCoreOptions ) : Promise < void > ;
113
113
114
114
/**
115
115
* Runs the application on specified platform. Assumes that the application is already build and installed. Fails if this is not true.
@@ -126,12 +126,12 @@ interface IPlatformService extends NodeJS.EventEmitter {
126
126
* @param {IAppFilesUpdaterOptions } appFilesUpdaterOptions Options needed to instantiate AppFilesUpdater class.
127
127
* @param {IEmulatePlatformOptions } emulateOptions Various options that can manage the emulate operation.
128
128
* @param {IProjectData } projectData DTO with information about the project.
129
- * @param {any } platformSpecificData Platform specific data required for project preparation.
129
+ * @param {IAddPlatformCoreOptions } config Options required for project preparation/creation .
130
130
* @returns {void }
131
131
*/
132
- emulatePlatform ( platform : string , appFilesUpdaterOptions : IAppFilesUpdaterOptions , emulateOptions : IEmulatePlatformOptions , projectData : IProjectData , platformSpecificData : IPlatformSpecificData ) : Promise < void > ;
132
+ emulatePlatform ( platform : string , appFilesUpdaterOptions : IAppFilesUpdaterOptions , emulateOptions : IEmulatePlatformOptions , projectData : IProjectData , config : IAddPlatformCoreOptions ) : Promise < void > ;
133
133
134
- cleanDestinationApp ( platform : string , appFilesUpdaterOptions : IAppFilesUpdaterOptions , platformTemplate : string , projectData : IProjectData , platformSpecificData : IPlatformSpecificData ) : Promise < void > ;
134
+ cleanDestinationApp ( platform : string , appFilesUpdaterOptions : IAppFilesUpdaterOptions , platformTemplate : string , projectData : IProjectData , config : IAddPlatformCoreOptions ) : Promise < void > ;
135
135
validatePlatformInstalled ( platform : string , projectData : IProjectData ) : void ;
136
136
137
137
/**
@@ -201,6 +201,8 @@ interface IPlatformService extends NodeJS.EventEmitter {
201
201
trackActionForPlatform ( actionData : ITrackPlatformAction ) : Promise < void > ;
202
202
}
203
203
204
+ interface IAddPlatformCoreOptions extends IPlatformSpecificData , ICreateProjectOptions { }
205
+
204
206
/**
205
207
* Platform specific data required for project preparation.
206
208
*/
0 commit comments