File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/main/java/com/thoughtworks/device Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,13 @@ public Device getDevice(String udid) throws Exception {
3030 public List <Device > getDevices () throws Exception {
3131 List <Device > allDevice = new ArrayList <>();
3232 List <Device > androidDevice = new AndroidManager ().getDevices ();
33- List <Device > iOSSimulators = new SimulatorManager ().getAllBootedSimulators ("iOS" );
34- List <Device > iOSRealDevice = new IOSManager ().getDevices ();
35- Stream .of (androidDevice , iOSSimulators , iOSRealDevice ).forEach (allDevice ::addAll );
33+ if (System .getProperty ("os.name" ).contains ("Mac" )) {
34+ List <Device > iOSSimulators = new SimulatorManager ().getAllBootedSimulators ("iOS" );
35+ List <Device > iOSRealDevice = new IOSManager ().getDevices ();
36+ Stream .of (androidDevice , iOSSimulators , iOSRealDevice ).forEach (allDevice ::addAll );
37+ } else {
38+ Stream .of (androidDevice ).forEach (allDevice ::addAll );
39+ }
3640 return allDevice ;
3741 }
3842}
You can’t perform that action at this time.
0 commit comments