File tree 1 file changed +13
-13
lines changed
1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -78,19 +78,6 @@ export class PlatformService extends EventEmitter implements IPlatformService {
78
78
}
79
79
}
80
80
81
- private isPlatformAdded ( platform : string , platformPath : string , projectData : IProjectData ) : boolean {
82
- if ( ! this . $fs . exists ( platformPath ) ) {
83
- return false ;
84
- }
85
-
86
- const prepareInfo = this . $projectChangesService . getPrepareInfo ( platform , projectData ) ;
87
- if ( ! prepareInfo ) {
88
- return true ;
89
- }
90
-
91
- return prepareInfo . nativePlatformStatus !== constants . NativePlatformStatus . requiresPlatformAdd ;
92
- }
93
-
94
81
public getCurrentPlatformVersion ( platform : string , projectData : IProjectData ) : string {
95
82
const platformData = this . $platformsData . getPlatformData ( platform , projectData ) ;
96
83
const currentPlatformData : any = this . $projectDataService . getNSValue ( projectData . projectDir , platformData . frameworkPackageName ) ;
@@ -979,6 +966,19 @@ export class PlatformService extends EventEmitter implements IPlatformService {
979
966
980
967
return null ;
981
968
}
969
+
970
+ private isPlatformAdded ( platform : string , platformPath : string , projectData : IProjectData ) : boolean {
971
+ if ( ! this . $fs . exists ( platformPath ) ) {
972
+ return false ;
973
+ }
974
+
975
+ const prepareInfo = this . $projectChangesService . getPrepareInfo ( platform , projectData ) ;
976
+ if ( ! prepareInfo ) {
977
+ return true ;
978
+ }
979
+
980
+ return prepareInfo . nativePlatformStatus !== constants . NativePlatformStatus . requiresPlatformAdd ;
981
+ }
982
982
}
983
983
984
984
$injector . register ( "platformService" , PlatformService ) ;
You can’t perform that action at this time.
0 commit comments