mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Compare commits
6 Commits
639753149f
...
Sidekit-ji
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d0424fe0a5 | ||
|
|
a29cdf0323 | ||
|
|
68db11d8bf | ||
|
|
7cf4101130 | ||
|
|
13a7991481 | ||
|
|
efcf557e44 |
@@ -238,7 +238,15 @@ struct OperationError: ALTLocalizedError {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return OperationError.profileInstall
|
||||
case 19:
|
||||
return OperationError.profileInstall
|
||||
case 20:
|
||||
return OperationError.noConnection
|
||||
case 21:
|
||||
return OperationError.attach
|
||||
default:
|
||||
return OperationError.unknown
|
||||
extension MinimuxerError: LocalizedError {
|
||||
public var failureReason: String? {
|
||||
switch self {
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
import UIKit
|
||||
import AltStoreCore
|
||||
import EmotionalDamage
|
||||
import minimuxer
|
||||
|
||||
|
||||
@available(iOS 13, *)
|
||||
final class SceneDelegate: UIResponder, UIWindowSceneDelegate
|
||||
@@ -139,6 +141,45 @@ private extension SceneDelegate
|
||||
DispatchQueue.main.async {
|
||||
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