This repository was archived by the owner on Jan 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/main/java/com/bitbar/remotedevice/api Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1515
1616 <properties >
1717 <java .version>1.8</java .version>
18- <testdroid-api .version>2.69 </testdroid-api .version>
18+ <testdroid-api .version>2.75 </testdroid-api .version>
1919 <jackson .version>2.6.0</jackson .version>
2020 <spring .version>4.3.8.RELEASE</spring .version>
2121 <cli .version>1.3.1</cli .version>
Original file line number Diff line number Diff line change 77import com .testdroid .api .dto .MappingKey ;
88import com .testdroid .api .dto .Operand ;
99import com .testdroid .api .filter .FilterEntry ;
10+ import com .testdroid .api .filter .ListStringFilterEntry ;
1011import com .testdroid .api .filter .NumberFilterEntry ;
1112import com .testdroid .api .filter .StringFilterEntry ;
1213import com .testdroid .api .model .*;
@@ -58,6 +59,8 @@ private Optional<Long> getRemoteSessionsLabelId() throws APIException {
5859
5960 public List <APIDevice > getSupportedDevices () throws APIException {
6061 Context <APIDevice > ctx = new Context <>(APIDevice .class );
62+ ctx .getFilters ().add (new ListStringFilterEntry (MappingKey .OS_TYPE , Operand .IN ,
63+ Arrays .asList (APIDevice .OsType .ANDROID .getDisplayName (), APIDevice .OsType .IOS .getDisplayName ())));
6164 getRemoteSessionsLabelId ().ifPresent (val ->
6265 ctx .setExtraParams (Collections .singletonMap (MappingKey .LABEL_IDS_ARR , val )));
6366 ctx .setLimit (0 );
You can’t perform that action at this time.
0 commit comments