@@ -120,6 +120,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
120
120
121
121
const spinner = this . $terminalSpinnerService . createSpinner ( ) ;
122
122
const platformPath = path . join ( projectData . platformsDir , platform ) ;
123
+ let installedPlatformVersion ;
123
124
124
125
try {
125
126
spinner . start ( ) ;
@@ -128,7 +129,8 @@ export class PlatformService extends EventEmitter implements IPlatformService {
128
129
await this . $pacoteService . extractPackage ( packageToInstall , downloadedPackagePath ) ;
129
130
let frameworkDir = path . join ( downloadedPackagePath , constants . PROJECT_FRAMEWORK_FOLDER_NAME ) ;
130
131
frameworkDir = path . resolve ( frameworkDir ) ;
131
- await this . addPlatformCore ( platformData , frameworkDir , platformTemplate , projectData , config , nativePrepare ) ;
132
+ installedPlatformVersion =
133
+ await this . addPlatformCore ( platformData , frameworkDir , platformTemplate , projectData , config , nativePrepare ) ;
132
134
} catch ( err ) {
133
135
this . $fs . deleteDirectory ( platformPath ) ;
134
136
throw err ;
@@ -137,7 +139,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
137
139
}
138
140
139
141
this . $fs . ensureDirectoryExists ( platformPath ) ;
140
- this . $logger . out ( `Platform ${ platform } successfully added.` ) ;
142
+ this . $logger . out ( `Platform ${ platform } successfully added. v ${ installedPlatformVersion } ` ) ;
141
143
}
142
144
143
145
private async addPlatformCore ( platformData : IPlatformData , frameworkDir : string , platformTemplate : string , projectData : IProjectData , config : IPlatformOptions , nativePrepare ?: INativePrepare ) : Promise < string > {
@@ -165,8 +167,7 @@ export class PlatformService extends EventEmitter implements IPlatformService {
165
167
} ) ;
166
168
}
167
169
168
- const coreModuleName = coreModuleData . name ;
169
- return coreModuleName ;
170
+ return installedVersion ;
170
171
}
171
172
172
173
public getInstalledPlatforms ( projectData : IProjectData ) : string [ ] {
0 commit comments