File tree Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Expand file tree Collapse file tree 3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
import { CONNECTED_STATUS } from "../common/constants" ;
2
2
import { isInteractive } from "../common/helpers" ;
3
+ import { cache } from "../common/decorators" ;
3
4
import { DebugCommandErrors } from "../constants" ;
4
5
5
6
export class DebugPlatformCommand implements ICommand {
@@ -117,6 +118,8 @@ export class DebugPlatformCommand implements ICommand {
117
118
}
118
119
119
120
export class DebugIOSCommand implements ICommand {
121
+
122
+ @cache ( )
120
123
private get debugPlatformCommand ( ) : DebugPlatformCommand {
121
124
return this . $injector . resolve < DebugPlatformCommand > ( DebugPlatformCommand , { debugService : this . $iOSDebugService , platform : this . platform } ) ;
122
125
}
@@ -158,6 +161,8 @@ export class DebugIOSCommand implements ICommand {
158
161
$injector . registerCommand ( "debug|ios" , DebugIOSCommand ) ;
159
162
160
163
export class DebugAndroidCommand implements ICommand {
164
+
165
+ @cache ( )
161
166
private get debugPlatformCommand ( ) : DebugPlatformCommand {
162
167
return this . $injector . resolve < DebugPlatformCommand > ( DebugPlatformCommand , { debugService : this . $androidDebugService , platform : this . platform } ) ;
163
168
}
Original file line number Diff line number Diff line change 1
1
import { ERROR_NO_VALID_SUBCOMMAND_FORMAT } from "../common/constants" ;
2
+ import { cache } from "../common/decorators" ;
2
3
3
4
export class RunCommandBase implements ICommand {
4
5
protected platform : string ;
@@ -66,6 +67,8 @@ export class RunCommandBase implements ICommand {
66
67
$injector . registerCommand ( "run|*all" , RunCommandBase ) ;
67
68
68
69
export class RunIosCommand implements ICommand {
70
+
71
+ @cache ( )
69
72
private get runCommand ( ) : RunCommandBase {
70
73
return this . $injector . resolve < RunCommandBase > ( RunCommandBase ) ;
71
74
}
@@ -100,6 +103,8 @@ export class RunIosCommand implements ICommand {
100
103
$injector . registerCommand ( "run|ios" , RunIosCommand ) ;
101
104
102
105
export class RunAndroidCommand implements ICommand {
106
+
107
+ @cache ( )
103
108
private get runCommand ( ) : RunCommandBase {
104
109
return this . $injector . resolve < RunCommandBase > ( RunCommandBase ) ;
105
110
}
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ export class ProjectChangesService implements IProjectChangesService {
147
147
}
148
148
}
149
149
150
- public ensurePrepareInfo ( platform : string , projectData : IProjectData , projectChangesOptions : IProjectChangesOptions ) : boolean {
150
+ private ensurePrepareInfo ( platform : string , projectData : IProjectData , projectChangesOptions : IProjectChangesOptions ) : boolean {
151
151
this . _prepareInfo = this . getPrepareInfo ( platform , projectData ) ;
152
152
if ( this . _prepareInfo ) {
153
153
this . _prepareInfo . nativePlatformStatus = this . _prepareInfo . nativePlatformStatus && this . _prepareInfo . nativePlatformStatus < projectChangesOptions . nativePlatformStatus ?
You can’t perform that action at this time.
0 commit comments