@@ -17,10 +17,10 @@ class DoctorService implements IDoctorService {
1717 private $terminalSpinnerService : ITerminalSpinnerService ,
1818 private $versionsService : IVersionsService ) { }
1919
20- public async printWarnings ( configOptions ?: { trackResult : boolean , projectDir ?: string } ) : Promise < void > {
20+ public async printWarnings ( configOptions ?: { trackResult : boolean , projectDir ?: string , runtimeVersion ?: string } ) : Promise < void > {
2121 const infos = await this . $terminalSpinnerService . execute < NativeScriptDoctor . IInfo [ ] > ( {
2222 text : `Getting environment information ${ EOL } `
23- } , ( ) => doctor . getInfos ( { projectDir : configOptions && configOptions . projectDir } ) ) ;
23+ } , ( ) => doctor . getInfos ( { projectDir : configOptions && configOptions . projectDir , androidRuntimeVersion : configOptions && configOptions . runtimeVersion } ) ) ;
2424
2525 const warnings = infos . filter ( info => info . type === constants . WARNING_TYPE_NAME ) ;
2626 const hasWarnings = warnings . length > 0 ;
@@ -34,12 +34,11 @@ class DoctorService implements IDoctorService {
3434 await this . $analyticsService . track ( "DoctorEnvironmentSetup" , hasWarnings ? "incorrect" : "correct" ) ;
3535 }
3636
37- this . printInfosCore ( infos ) ;
38-
3937 if ( hasWarnings ) {
4038 this . $logger . info ( "There seem to be issues with your configuration." ) ;
4139 } else {
4240 this . $logger . out ( "No issues were detected." . bold ) ;
41+ this . printInfosCore ( infos ) ;
4342 }
4443
4544 try {
@@ -81,12 +80,12 @@ class DoctorService implements IDoctorService {
8180 } ) ;
8281 }
8382
84- public async canExecuteLocalBuild ( platform ?: string , projectDir ?: string ) : Promise < boolean > {
83+ public async canExecuteLocalBuild ( platform ?: string , projectDir ?: string , runtimeVersion ?: string ) : Promise < boolean > {
8584 await this . $analyticsService . trackEventActionInGoogleAnalytics ( {
8685 action : TrackActionNames . CheckLocalBuildSetup ,
8786 additionalData : "Starting" ,
8887 } ) ;
89- const infos = await doctor . getInfos ( { platform, projectDir } ) ;
88+ const infos = await doctor . getInfos ( { platform, projectDir, androidRuntimeVersion : runtimeVersion } ) ;
9089
9190 const warnings = this . filterInfosByType ( infos , constants . WARNING_TYPE_NAME ) ;
9291 const hasWarnings = warnings . length > 0 ;
0 commit comments