Skip to content

Commit

Permalink
Add iPhone 15/Plus, move more devices to 'Older Devices' toggle
Browse files Browse the repository at this point in the history
(Pro/Max needs tsschecker update)
  • Loading branch information
airsquared committed Oct 1, 2023
1 parent d5a747f commit 3a48c9e
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
9 changes: 2 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,8 @@ application {
applicationDefaultJvmArgs.add addExports
}

private String getJarDirectory() {
var dir = ''
if (DefaultNativePlatform.currentOperatingSystem.isMacOsX()) dir = 'macos/Contents'
else if (DefaultNativePlatform.currentOperatingSystem.isWindows()) dir = 'windows/files'
else if (DefaultNativePlatform.currentOperatingSystem.isLinux()) dir = 'linux'
return "${projectDir}/dist/${dir}"
}
var jarDirectory = os.isMacOsX() ? 'macos/Contents' : os.isWindows() ? 'windows/files' : 'linux'
jarDirectory = "${projectDir}/dist/${jarDirectory}"

run {
systemProperty 'jar.directory', jarDirectory
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/airsquared/blobsaver/app/Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ private void useMacOSMenuBar() {
new SeparatorMenuItem(), tk.createBringAllToFrontItem());
tk.autoAddWindowMenuItems(menuBar.getMenus().get(3));

menuBar.getMenus().get(4).getItems().remove(11); // remove about
menuBar.getMenus().get(4).getItems().removeLast(); // remove about

tk.setApplicationMenu(applicationMenu);
tk.setGlobalMenuBar(menuBar);
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/airsquared/blobsaver/app/Devices.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ public static void updateLists() {
if (Prefs.getShowOldDevices()) {
iPhoneList.setAll(iPhones);
iPadList.setAll(iPads);
} else if (!iPhoneList.get(0).equals("iPhone 6s")) {
iPhoneList.remove(0, iPhoneList.indexOf("iPhone 6s"));
iPadList.remove(0, iPadList.indexOf("iPad Mini 4 (Wifi)"));
} else if (!iPhoneList.get(0).equals("iPhone 8 (iPhone10,1)")) {
iPhoneList.remove(0, iPhoneList.indexOf("iPhone 8 (iPhone10,1)"));
iPadList.remove(0, iPadList.indexOf("iPad Pro 9.7 (Wifi)"));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ iPhone14,7=d27ap
iPhone14,8=d28ap
iPhone15,2=d73ap
iPhone15,3=d74ap
iPhone15,4=d37ap
iPhone15,5=d38ap
iPhone16,1=d83ap
iPhone16,2=d84ap
iPod3,1=n18ap
iPod4,1=n81ap
iPod5,1=n78ap
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,8 @@ iPhone\ 14\ (iPhone14,7)=iPhone14,7
iPhone\ 14+\ (iPhone14,8)=iPhone14,8
iPhone\ 14\ Pro\ (iPhone15,2)=iPhone15,2
iPhone\ 14\ Pro\ Max\ (iPhone15,3)=iPhone15,3
iPhone\ 15\ (iPhone15,4)=iPhone15,4
iPhone\ 15\ Plus\ (iPhone15,5)=iPhone15,5
# TODO needs tsschecker update:
# iPhone\ 15\ Pro\ (iPhone16,1)=iPhone16,1
# iPhone\ 15\ Pro\ Max\ (iPhone16,2)=iPhone16,2

0 comments on commit 3a48c9e

Please sign in to comment.