Skip to content

Commit

Permalink
add updated devices and OS version options (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
hborawski authored Dec 21, 2022
1 parent 7a449b0 commit 94d91c2
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions packages/devices/src/getDevices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const getDefaultDevice = (platform: Platform): string => {
return "nexus5";
}
if (platform === "ios") {
return "iphone12";
return "iphone14pro";
}

throw new Error(`No device for platform: ${platform}`);
Expand Down Expand Up @@ -36,7 +36,9 @@ export const getDevices = (platform: Platform): string[] => {
"iphone12",
"iphone12mini",
"iphone12pro",
"iphone12promax"
"iphone12promax",
"iphone14pro",
"iphone14promax"
];
}

Expand All @@ -48,18 +50,28 @@ export const getDefaultOsVersion = (platform: Platform): string => {
return "11.0";
}
if (platform === "ios") {
return "15.0";
return "16.0";
}

throw new Error(`No osVersion for platform: ${platform}`);
};

export const getOsVersions = (platform: Platform): string[] => {
if (platform === "android") {
return ["4.4", "5.1", "6.0", "7.1", "8.1", "9.0", "10.0", "11.0"];
return [
"4.4",
"5.1",
"6.0",
"7.1",
"8.1",
"9.0",
"10.0",
"11.0",
"12.0"
];
}
if (platform === "ios") {
return ["11.4", "12.4", "13.7", "14.5", "15.0"];
return ["11.4", "12.4", "13.7", "14.5", "15.5", "16.0"];
}

throw new Error(`No osVersions for platform: ${platform}`);
Expand Down

0 comments on commit 94d91c2

Please sign in to comment.