@@ -2,7 +2,6 @@ import * as path from "path";
2
2
import * as shell from "shelljs" ;
3
3
import * as constants from "../constants" ;
4
4
import * as helpers from "../common/helpers" ;
5
- import { exportedPromise } from "../common/decorators" ;
6
5
import * as semver from "semver" ;
7
6
import { AppFilesUpdater } from "./app-files-updater" ;
8
7
import * as temp from "temp" ;
@@ -23,7 +22,6 @@ export class PlatformService implements IPlatformService {
23
22
constructor ( private $devicesService : Mobile . IDevicesService ,
24
23
private $errors : IErrors ,
25
24
private $fs : IFileSystem ,
26
- private $projectData : IProjectData ,
27
25
private $logger : ILogger ,
28
26
private $npmInstallationManager : INpmInstallationManager ,
29
27
private $platformsData : IPlatformsData ,
@@ -358,14 +356,6 @@ export class PlatformService implements IPlatformService {
358
356
}
359
357
}
360
358
361
- @exportedPromise ( "platformService" )
362
- public async build ( platform : string , platformBuildOptions : IPlatformBuildData , platformTemplate ?: string ) : Promise < string > {
363
- this . $projectData . initializeProjectData ( platformBuildOptions . projectDir ) ;
364
- await this . preparePlatform ( platform , platformBuildOptions , platformTemplate , this . $projectData , undefined ) ;
365
- await this . buildPlatform ( platform , platformBuildOptions , this . $projectData ) ;
366
- return this . lastOutputPath ( platform , { isForDevice : platformBuildOptions . buildForDevice } , this . $projectData ) ;
367
- }
368
-
369
359
public async buildPlatform ( platform : string , buildConfig : IBuildConfig , projectData : IProjectData ) : Promise < void > {
370
360
this . $logger . out ( "Building project..." ) ;
371
361
0 commit comments