@@ -38,11 +38,8 @@ export class PlatformService extends EventEmitter implements IPlatformService {
38
38
private $npm : INodePackageManager ,
39
39
private $devicePlatformsConstants : Mobile . IDevicePlatformsConstants ,
40
40
private $deviceAppDataFactory : Mobile . IDeviceAppDataFactory ,
41
- private $projectChangesService : IProjectChangesService ,
42
- private $emulatorPlatformService : IEmulatorPlatformService ,
43
- private $analyticsService : IAnalyticsService ,
44
- private $messages : IMessages ,
45
- private $staticConfig : Config . IStaticConfig ) {
41
+ private $projectChangesService : IProjectChangesService ,
42
+ private $analyticsService : IAnalyticsService ) {
46
43
super ( ) ;
47
44
}
48
45
@@ -528,41 +525,6 @@ export class PlatformService extends EventEmitter implements IPlatformService {
528
525
await this . $devicesService . execute ( action , this . getCanExecuteAction ( platform , runOptions ) ) ;
529
526
}
530
527
531
- public async emulatePlatform ( platform : string , appFilesUpdaterOptions : IAppFilesUpdaterOptions , emulateOptions : IEmulatePlatformOptions , projectData : IProjectData , config : IAddPlatformCoreOptions ) : Promise < void > {
532
- if ( emulateOptions . avd ) {
533
- this . $logger . warn ( `Option --avd is no longer supported. Please use --device instead!` ) ;
534
- return Promise . resolve ( ) ;
535
- }
536
-
537
- if ( emulateOptions . availableDevices ) {
538
- return this . $emulatorPlatformService . listAvailableEmulators ( platform ) ;
539
- }
540
-
541
- if ( emulateOptions . device ) {
542
- let info = await this . $emulatorPlatformService . getEmulatorInfo ( platform , emulateOptions . device ) ;
543
- if ( info ) {
544
- if ( ! info . isRunning ) {
545
- await this . $emulatorPlatformService . startEmulator ( info , projectData ) ;
546
- }
547
-
548
- emulateOptions . device = null ;
549
- } else {
550
- await this . $devicesService . initialize ( { platform : platform , deviceId : emulateOptions . device } ) ;
551
- let found : Mobile . IDeviceInfo [ ] = [ ] ;
552
- if ( this . $devicesService . hasDevices ) {
553
- found = this . $devicesService . getDevices ( ) . filter ( ( deviceInfo : Mobile . IDeviceInfo ) => deviceInfo . identifier === emulateOptions . device ) ;
554
- }
555
-
556
- if ( found . length === 0 ) {
557
- this . $errors . fail ( this . $messages . Devices . NotFoundDeviceByIdentifierErrorMessage , this . $staticConfig . CLIENT_NAME . toLowerCase ( ) ) ;
558
- }
559
- }
560
- }
561
-
562
- await this . deployPlatform ( platform , appFilesUpdaterOptions , emulateOptions , projectData , config ) ;
563
- return this . startApplication ( platform , emulateOptions , projectData . projectId ) ;
564
- }
565
-
566
528
private getBuildOutputPath ( platform : string , platformData : IPlatformData , options : IBuildForDevice ) : string {
567
529
if ( platform . toLowerCase ( ) === this . $devicePlatformsConstants . iOS . toLowerCase ( ) ) {
568
530
return options . buildForDevice ? platformData . deviceBuildOutputPath : platformData . emulatorBuildOutputPath ;
0 commit comments