|
1 | 1 | interface IPlatformService extends NodeJS.EventEmitter { |
2 | 2 | cleanPlatforms(platforms: string[], platformTemplate: string, projectData: IProjectData, platformSpecificData: IPlatformSpecificData, framework?: string): Promise<void>; |
3 | | - |
| 3 | + |
4 | 4 | addPlatforms(platforms: string[], platformTemplate: string, projectData: IProjectData, platformSpecificData: IPlatformSpecificData, frameworkPath?: string): Promise<void>; |
5 | 5 |
|
6 | 6 | /** |
@@ -143,28 +143,37 @@ interface IPlatformService extends NodeJS.EventEmitter { |
143 | 143 | /** |
144 | 144 | * Returns information about the latest built application for device in the current project. |
145 | 145 | * @param {IPlatformData} platformData Data describing the current platform. |
| 146 | + * @param {IBuildConfig} buildConfig Defines if the build is for release configuration. |
146 | 147 | * @returns {IApplicationPackage} Information about latest built application. |
147 | 148 | */ |
148 | | - getLatestApplicationPackageForDevice(platformData: IPlatformData): IApplicationPackage; |
| 149 | + getLatestApplicationPackageForDevice(platformData: IPlatformData, buildConfig: IBuildConfig): IApplicationPackage; |
149 | 150 |
|
150 | 151 | /** |
151 | 152 | * Returns information about the latest built application for simulator in the current project. |
152 | 153 | * @param {IPlatformData} platformData Data describing the current platform. |
| 154 | + * @param {IBuildConfig} buildConfig Defines if the build is for release configuration. |
153 | 155 | * @returns {IApplicationPackage} Information about latest built application. |
154 | 156 | */ |
155 | | - getLatestApplicationPackageForEmulator(platformData: IPlatformData): IApplicationPackage; |
| 157 | + getLatestApplicationPackageForEmulator(platformData: IPlatformData, buildConfig: IBuildConfig): IApplicationPackage; |
156 | 158 |
|
157 | 159 | /** |
158 | 160 | * Copies latest build output to a specified location. |
159 | 161 | * @param {string} platform Mobile platform - Android, iOS. |
160 | 162 | * @param {string} targetPath Destination where the build artifact should be copied. |
161 | | - * @param {{isForDevice: boolean}} settings Defines if the searched artifact should be for simulator. |
| 163 | + * @param {IBuildConfig} buildConfig Defines if the searched artifact should be for simulator and is it built for release. |
162 | 164 | * @param {IProjectData} projectData DTO with information about the project. |
163 | 165 | * @returns {void} |
164 | 166 | */ |
165 | | - copyLastOutput(platform: string, targetPath: string, settings: {isForDevice: boolean}, projectData: IProjectData): void; |
| 167 | + copyLastOutput(platform: string, targetPath: string, buildConfig: IBuildConfig, projectData: IProjectData): void; |
166 | 168 |
|
167 | | - lastOutputPath(platform: string, settings: { isForDevice: boolean }, projectData: IProjectData): string; |
| 169 | + /** |
| 170 | + * Gets the latest build output. |
| 171 | + * @param {string} platform Mobile platform - Android, iOS. |
| 172 | + * @param {IBuildConfig} buildConfig Defines if the searched artifact should be for simulator and is it built for release. |
| 173 | + * @param {IProjectData} projectData DTO with information about the project. |
| 174 | + * @returns {string} The path to latest built artifact. |
| 175 | + */ |
| 176 | + lastOutputPath(platform: string, buildConfig: IBuildConfig, projectData: IProjectData): string; |
168 | 177 |
|
169 | 178 | /** |
170 | 179 | * Reads contents of a file on device. |
@@ -209,8 +218,7 @@ interface IPlatformData { |
209 | 218 | appDestinationDirectoryPath: string; |
210 | 219 | deviceBuildOutputPath: string; |
211 | 220 | emulatorBuildOutputPath?: string; |
212 | | - validPackageNamesForDevice: string[]; |
213 | | - validPackageNamesForEmulator?: string[]; |
| 221 | + getValidPackageNames(buildOptions: { isReleaseBuild?: boolean, isForDevice?: boolean }): string[]; |
214 | 222 | frameworkFilesExtensions: string[]; |
215 | 223 | frameworkDirectoriesExtensions?: string[]; |
216 | 224 | frameworkDirectoriesNames?: string[]; |
|
0 commit comments