Skip to content

Commit

Permalink
Update provision
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadoum committed Oct 20, 2023
1 parent d868124 commit 3652815
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 20 deletions.
6 changes: 3 additions & 3 deletions dub.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@
},
"dynamic-loader": {
"repository": "git+https://github.com/Dadoum/dynamicloader.git",
"version": "32355c1aae76e0a89c123bc082ec2df8cddc2b0f"
"version": "b62f6f5f1cd5cc71c3ffb3689cd11d4fc80a0556"
},
"intel-intrinsics": "~>1.11.15",
"plist-d": {
"repository": "git+https://github.com/Dadoum/libplist-d.git",
"version": "ad7ce217b56af8e51647ab9dd86157b94ef58325"
"version": "d4b3793d9ff5f64325cd1cedb2ced31b51523ec1"
},
"provision": {
"repository": "git+https://github.com/Dadoum/Provision.git",
"version": "a007cb290da1a21e231a1a4a335a047a151ca24f"
"version": "90f5c9df9d987acc795ba5338af50a7f0764034e"
},
"requests": "~>2.0.9",
"slf4d": "~>2.4.2"
Expand Down
10 changes: 5 additions & 5 deletions dub.selections.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"dfl": {"version":"5a3cba4d13d4d962b707d713be6d77c2ccc52a42","repository":"git+https://github.com/Rayerd/dfl.git"},
"dlangui": "0.10.4",
"dsfml": "2.1.1",
"dxml": "0.4.3",
"dynamic-loader": {"version":"32355c1aae76e0a89c123bc082ec2df8cddc2b0f","repository":"git+https://github.com/Dadoum/dynamicloader.git"},
"dxml": "0.4.4",
"dynamic-loader": {"version":"b62f6f5f1cd5cc71c3ffb3689cd11d4fc80a0556","repository":"git+https://github.com/Dadoum/dynamicloader.git"},
"glx-d": "1.1.0",
"gtk_d": "1.0.3",
"icontheme": "1.2.3",
Expand All @@ -23,11 +23,11 @@
"isfreedesktop": "0.1.1",
"memutils": "1.0.9",
"plist": "~master",
"plist-d": {"version":"ad7ce217b56af8e51647ab9dd86157b94ef58325","repository":"git+https://github.com/Dadoum/libplist-d.git"},
"provision": {"version":"a007cb290da1a21e231a1a4a335a047a151ca24f","repository":"git+https://github.com/Dadoum/Provision.git"},
"plist-d": {"version":"d4b3793d9ff5f64325cd1cedb2ced31b51523ec1","repository":"git+https://github.com/Dadoum/libplist-d.git"},
"provision": {"version":"90f5c9df9d987acc795ba5338af50a7f0764034e","repository":"git+https://github.com/Dadoum/Provision.git"},
"requests": "2.0.9",
"silly": "1.2.0-dev.2",
"slf4d": "2.4.2",
"slf4d": "2.4.3",
"test_allocator": "0.3.4",
"undead": "1.1.8",
"unit-threaded": "0.10.8",
Expand Down
2 changes: 1 addition & 1 deletion linux/gtk/ui/authentication/loginslide.d
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ class LoginSlide: Box, AssistantSlide {
authAssistant.setCursor(authAssistant.waitCursor);

new Thread({
uiTry({
uiTry!({
DeveloperSession appleAccount = DeveloperSession.login(
runningApplication.device,
runningApplication.adi,
Expand Down
2 changes: 1 addition & 1 deletion linux/gtk/ui/mainwindow.d
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class MainWindow: Window {
refreshDevicesButton.setIconName("view-refresh-symbolic");
refreshDevicesButton.addOnClicked((_) {
setBusy(true);
uiTry({
uiTry!({
scope(exit) setBusy(false);
foreach (k, dw; deviceWidgets) {
removeDeviceWidget(k);
Expand Down
4 changes: 2 additions & 2 deletions linux/gtk/ui/manageappidwindow.d
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class ManageAppIdWindow: Dialog {
if (response == ResponseType.ACCEPT) {
setBusy(true);
new Thread({
uiTry({
uiTry!({
scope(exit) runInUIThread(() => setBusy(false));

auto profile = session.downloadTeamProvisioningProfile!iOS(team, appId).unwrap();
Expand All @@ -120,7 +120,7 @@ class ManageAppIdWindow: Dialog {
deleteAppIdRow.addOnActivated((_) {
setBusy(true);
new Thread({
uiTry({
uiTry!({
scope(exit) runInUIThread(() => setBusy(false));
session.deleteAppId!iOS(team, appId).unwrap();
runInUIThread(() => unparent());
Expand Down
4 changes: 2 additions & 2 deletions linux/gtk/ui/sideloadergtkapplication.d
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class SideloaderGtkApplication: Application {

auto appIdsAction = new SimpleAction("manage-app-ids", null);
appIdsAction.addOnActivate((_, __) {
uiTry({
uiTry!({
AuthenticationAssistant.authenticate(this, (developer) {
auto window = new ManageAppIdWindow(mainWindow, developer);
scope(failure) window.close();
Expand All @@ -99,7 +99,7 @@ class SideloaderGtkApplication: Application {

auto certificatesAction = new SimpleAction("manage-certificates", null);
certificatesAction.addOnActivate((_, __) {
uiTry({
uiTry!({
AuthenticationAssistant.authenticate(this, (developer) {
auto window = new ManageCertificatesWindow(mainWindow, developer);
scope(failure) window.close();
Expand Down
2 changes: 1 addition & 1 deletion linux/gtk/ui/utils.d
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import slf4d;

import gtk.MessageDialog;

void uiTry(void delegate() del, Window parentWindow = runningApplication.mainWindow) {
void uiTry(alias del)(Window parentWindow = runningApplication.mainWindow) {
try {
del();
} catch (Exception ex) {
Expand Down
1 change: 0 additions & 1 deletion source/imobiledevice/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ public class iDevice {
udid: cast(string) event.udid.fromStringz(),
connType: cast(iDeviceConnectionType) event.conn_type,
};
GC.removeRoot(del);
del.callback(eventD);
}

Expand Down
2 changes: 0 additions & 2 deletions source/main.d
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import file = std.file;

import slf4d;

import provision;

import constants;
import utils;

Expand Down
10 changes: 8 additions & 2 deletions windows/winforms/frontend.d
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ shared class WindowsFrontend: Frontend {
}

override int run(string[] args) {
Application.run(new SideloaderForm());
return 0;
try {
Application.run(new SideloaderForm());
return 0;
} catch (Exception ex) {
getLogger().errorF!"Unhandled exception: %s"(ex);
msgBox(ex.msg, "Unhandled exception!", MsgBoxButtons.OK, MsgBoxIcon.ERROR);
throw ex;
}
}
}

Expand Down

0 comments on commit 3652815

Please sign in to comment.