Skip to content

Commit

Permalink
bump version and some new stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
haxio committed May 26, 2023
1 parent 18534e6 commit c8c7dd2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
Binary file removed .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions Derootifier.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2;
MARKETING_VERSION = 1.3;
PRODUCT_BUNDLE_IDENTIFIER = org.haxi0.Derootifier;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
Expand Down Expand Up @@ -379,7 +379,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.2;
MARKETING_VERSION = 1.3;
PRODUCT_BUNDLE_IDENTIFIER = org.haxi0.Derootifier;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
Expand Down
12 changes: 12 additions & 0 deletions Derootifier/Support/ShellScript.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,15 @@ func folderCheck() {
UIApplication.shared.alert(title: "Error!", body: "There was a problem with making the folder for the deb. Maybe you are using palera1n which doesn't have /var/jb folder.", withButton: false)
}
}

func checkFileMngrs() {
if UIApplication.shared.canOpenURL(URL(string: "filza://")!) {
UIApplication.shared.open(URL(string: "filza:///var/mobile/.Derootifier")!)
} else {
if UIApplication.shared.canOpenURL(URL(string: "santander://")!) {
UIApplication.shared.open(URL(string: "santander:///var/mobile/.Derootifier")!)
} else {
UIApplication.shared.alert(title: "Aw... :(", body: "We didn't find any file managers which we can use to open the directory with the converted .deb file!", withButton: true)
}
}
}
12 changes: 10 additions & 2 deletions Derootifier/Views/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,16 @@ struct ContentView: View {

if let selectedFile = selectedFile {
Button("Convert .deb") {
outputAux = repackDeb(scriptPath: scriptPath, debURL: selectedFile)
UIApplication.shared.alert(title: "Converting...", body: outputAux, withButton: !outputAux.isEmpty)
UIApplication.shared.alert(title: "Converting...", body: "Please wait", withButton: false)
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
outputAux = repackDeb(scriptPath: scriptPath, debURL: selectedFile)
UIApplication.shared.dismissAlert(animated: false)
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
UIApplication.shared.confirmAlert(title: "Done", body: outputAux, onOK: {
checkFileMngrs()
}, noCancel: false)
}
}
}
.buttonStyle(TintedButton(color: .white, fullwidth: true))
}
Expand Down

0 comments on commit c8c7dd2

Please sign in to comment.