@@ -32,30 +32,14 @@ export class Doctor implements NativeScriptDoctor.IDoctor {
32
32
let result : NativeScriptDoctor . IInfo [ ] = [ ] ;
33
33
const sysInfoData = await this . sysInfo . getSysInfo ( config ) ;
34
34
35
- result = result . concat (
36
- this . processSysInfoItem ( {
37
- item : sysInfoData . gitVer ,
38
- infoMessage : "Git is installed and is configured properly." ,
39
- warningMessage : "Git is not installed or not configured properly." ,
40
- additionalInformation : "You will not be able to create and work with Screen Builder projects." + EOL
41
- + "To be able to work with Screen Builder projects, download and install Git as described" + EOL
42
- + "in https://git-scm.com/downloads and add the git executable to your PATH." ,
43
- platforms : Constants . SUPPORTED_PLATFORMS
44
- } )
45
- ) ;
46
-
47
- if ( config && config . platform === Constants . ANDROID_PLATFORM_NAME ) {
35
+ if ( ! config || ! config . platform || config . platform === Constants . ANDROID_PLATFORM_NAME ) {
48
36
result = result . concat ( this . getAndroidInfos ( sysInfoData ) ) ;
49
37
}
50
38
51
- if ( config && config . platform === Constants . IOS_PLATFORM_NAME ) {
39
+ if ( ! config || ! config . platform || config . platform === Constants . IOS_PLATFORM_NAME ) {
52
40
result = result . concat ( await this . getiOSInfos ( sysInfoData ) ) ;
53
41
}
54
42
55
- if ( ! config || ! config . platform ) {
56
- result = result . concat ( this . getAndroidInfos ( sysInfoData ) , await this . getiOSInfos ( sysInfoData ) ) ;
57
- }
58
-
59
43
if ( ! this . hostInfo . isDarwin ) {
60
44
result . push ( {
61
45
message : "Local builds for iOS can be executed only on a macOS system. To build for iOS on a different operating system, you can use the NativeScript cloud infrastructure." ,
@@ -163,7 +147,7 @@ export class Doctor implements NativeScriptDoctor.IDoctor {
163
147
platforms : [ Constants . IOS_PLATFORM_NAME ]
164
148
} )
165
149
) ;
166
-
150
+
167
151
if ( sysInfoData . xcodeVer && sysInfoData . cocoaPodsVer ) {
168
152
let isCocoaPodsWorkingCorrectly = await this . sysInfo . isCocoaPodsWorkingCorrectly ( ) ;
169
153
result = result . concat (
@@ -176,7 +160,7 @@ export class Doctor implements NativeScriptDoctor.IDoctor {
176
160
} )
177
161
) ;
178
162
}
179
-
163
+
180
164
result = result . concat (
181
165
this . processSysInfoItem ( {
182
166
item : ! sysInfoData . cocoaPodsVer || ! semver . valid ( sysInfoData . cocoaPodsVer ) || ! semver . lt ( sysInfoData . cocoaPodsVer , Doctor . MIN_SUPPORTED_POD_VERSION ) ,
0 commit comments