Skip to content
This repository was archived by the owner on Dec 7, 2020. It is now read-only.

Commit d489233

Browse files
author
Severi Haverila
committed
added list if ios screen sizes in points
1 parent 81690a2 commit d489233

File tree

2 files changed

+56
-4
lines changed

2 files changed

+56
-4
lines changed

library/src/main/java/imagerecognition/ImageRecognition.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,12 @@ private static Dimension getIosScreenSize() throws Exception {
277277
if (screenDimensionString == null){
278278
throw new Exception("ios-screen-size.properties is missing entry for: " + productType);
279279
}
280-
String screenDimensions[] = screenDimensionString.split("x");
280+
String screenDimensions[] = screenDimensionString.split(" x ");
281281
if (screenDimensions.length!=2){
282282
throw new Exception("Invalid ios-screen-size.properties file syntax for line: " + productType);
283283
}
284-
int height = Integer.parseInt(screenDimensions[0]);
285-
int width = Integer.parseInt(screenDimensions[1]);
284+
int width = Integer.parseInt(screenDimensions[0]);
285+
int height = Integer.parseInt(screenDimensions[1]);
286286
return new Dimension(width, height);
287287
}
288288

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,53 @@
1-
iPhone7,2=667x375
1+
iPhone1,1=320 x 480
2+
iPhone1,2=320 x 480
3+
iPhone2,1=320 x 480
4+
iPhone3,1=320 x 480
5+
iPhone3,3=320 x 480
6+
iPhone4,1=320 x 480
7+
8+
iPhone5,1=320 x 568
9+
iPhone5,2=320 x 568
10+
iPhone5,3=320 x 568
11+
iPhone5,4=320 x 568
12+
iPhone6,1=320 x 568
13+
iPhone6,2=320 x 568
14+
15+
iPhone7,1=414 x 736
16+
iPhone7,2=375 x 667
17+
iPhone8,1=375 x 667
18+
iPhone8,2=414 x 736
19+
iPhone8,4=320 x 568
20+
iPhone9,1=375 x 667
21+
iPhone9,2=414 x 736
22+
iPhone9,3=375 x 667
23+
iPhone9,4=414 x 736
24+
25+
iPad1,1=768 x 1024
26+
iPad2,1=768 x 1024
27+
iPad2,2=768 x 1024
28+
iPad2,3=768 x 1024
29+
iPad2,4=768 x 1024
30+
iPad2,5=768 x 1024
31+
iPad2,6=768 x 1024
32+
iPad2,7=768 x 1024
33+
iPad3,1=768 x 1024
34+
iPad3,2=768 x 1024
35+
iPad3,3=768 x 1024
36+
iPad3,4=768 x 1024
37+
iPad3,5=768 x 1024
38+
iPad3,6=768 x 1024
39+
iPad4,1=768 x 1024
40+
iPad4,2=768 x 1024
41+
iPad4,3=768 x 1024
42+
iPad4,4=768 x 1024
43+
iPad4,5=768 x 1024
44+
iPad4,6=768 x 1024
45+
iPad4,7=768 x 1024
46+
iPad4,8=768 x 1024
47+
iPad4,9=768 x 1024
48+
iPad5,1=768 x 1024
49+
iPad5,2=768 x 1024
50+
iPad5,3=768 x 1024
51+
iPad5,4=768 x 1024
52+
iPad6,3=768 x 1024
53+
iPad6,4=768 x 1024

0 commit comments

Comments
 (0)