mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
make url scheme with bid and pid endings
Signed-off-by: Spidy123222 <64176728+Spidy123222@users.noreply.github.com>
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
import UIKit
|
||||
import AltStoreCore
|
||||
import EmotionalDamage
|
||||
import minimuxer
|
||||
|
||||
|
||||
@available(iOS 13, *)
|
||||
final class SceneDelegate: UIResponder, UIWindowSceneDelegate
|
||||
@@ -140,6 +142,45 @@ private extension SceneDelegate
|
||||
NotificationCenter.default.post(name: AppDelegate.addSourceDeepLinkNotification, object: nil, userInfo: [AppDelegate.addSourceDeepLinkURLKey: sourceURL])
|
||||
}
|
||||
|
||||
case "sidejit-enable":
|
||||
let queryItems = components.queryItems?.reduce(into: [String: String]()) { $0[$1.name.lowercased()] = $1.value } ?? [:]
|
||||
if let jitdebugURLString = queryItems["bid"] {
|
||||
DispatchQueue.main.async {
|
||||
let v = minimuxer_to_operation(code: 1)
|
||||
|
||||
do {
|
||||
var x = try debug_app(app_id: jitdebugURLString)
|
||||
switch x {
|
||||
case .Good: print(jitdebugURLString)
|
||||
case .Bad(let code): minimuxer_to_operation(code: code)
|
||||
}
|
||||
} catch Uhoh.Bad(let code) {
|
||||
minimuxer_to_operation(code: code)
|
||||
} catch {
|
||||
print(OperationError.unknown)
|
||||
}
|
||||
} }
|
||||
|
||||
else if let jitdebugURLString = queryItems["pid"] {
|
||||
DispatchQueue.main.async {
|
||||
let v = minimuxer_to_operation(code: 1)
|
||||
|
||||
do {
|
||||
var x = try debug_app(app_id: jitdebugURLString)
|
||||
switch x {
|
||||
case .Good: print(jitdebugURLString)
|
||||
case .Bad(let code): minimuxer_to_operation(code: code)
|
||||
}
|
||||
} catch Uhoh.Bad(let code) {
|
||||
minimuxer_to_operation(code: code)
|
||||
} catch {
|
||||
print(OperationError.unknown)
|
||||
}
|
||||
} }
|
||||
|
||||
else { return }
|
||||
|
||||
|
||||
default: break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user