File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -43,9 +43,10 @@ export class PlatformCommandHelper implements IPlatformCommandHelper {
43
43
44
44
public async cleanPlatforms ( platforms : string [ ] , projectData : IProjectData , framworkPath : string ) : Promise < void > {
45
45
for ( const platform of platforms ) {
46
+ const version : string = this . getCurrentPlatformVersion ( platform , projectData ) ;
47
+
46
48
await this . removePlatforms ( [ platform ] , projectData ) ;
47
49
48
- const version : string = this . getCurrentPlatformVersion ( platform , projectData ) ;
49
50
const platformParam = version ? `${ platform } @${ version } ` : platform ;
50
51
await this . addPlatforms ( [ platformParam ] , projectData , framworkPath ) ;
51
52
}
@@ -103,7 +104,8 @@ export class PlatformCommandHelper implements IPlatformCommandHelper {
103
104
}
104
105
105
106
const subDirs = this . $fs . readDirectory ( projectData . platformsDir ) ;
106
- return _ . filter ( subDirs , p => this . $mobileHelper . platformNames . indexOf ( p ) > - 1 ) ;
107
+ const platforms = this . $mobileHelper . platformNames . map ( p => p . toLowerCase ( ) ) ;
108
+ return _ . filter ( subDirs , p => platforms . indexOf ( p ) > - 1 ) ;
107
109
}
108
110
109
111
public getAvailablePlatforms ( projectData : IProjectData ) : string [ ] {
You can’t perform that action at this time.
0 commit comments