mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-28 07:57:38 +01:00
minimuxer: fix some wrapper methods
This commit is contained in:
@@ -14,7 +14,6 @@ var isMinimuxerReady: Bool {
|
|||||||
return true
|
return true
|
||||||
#else
|
#else
|
||||||
return minimuxer.ready()
|
return minimuxer.ready()
|
||||||
return true
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -38,7 +37,7 @@ func installProvisioningProfiles(_ profileData: Data) throws {
|
|||||||
#if targetEnvironment(simulator)
|
#if targetEnvironment(simulator)
|
||||||
print("installProvisioningProfiles(\(profileData)) is no-op on simulator")
|
print("installProvisioningProfiles(\(profileData)) is no-op on simulator")
|
||||||
#else
|
#else
|
||||||
minimuxer.install_provisioning_profile(profileData.toRustByteSlice().forRust())
|
try minimuxer.install_provisioning_profile(profileData.toRustByteSlice().forRust())
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -47,7 +46,7 @@ func removeApp(_ bundleId: String) throws {
|
|||||||
#if targetEnvironment(simulator)
|
#if targetEnvironment(simulator)
|
||||||
print("removeApp(\(bundleId)) is no-op on simulator")
|
print("removeApp(\(bundleId)) is no-op on simulator")
|
||||||
#else
|
#else
|
||||||
minimuxer.remove_app(bundleId)
|
try minimuxer.remove_app(bundleId)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -56,7 +55,7 @@ func yeetAppAFC(_ bundleId: String, _ rawBytes: Data) throws {
|
|||||||
#if targetEnvironment(simulator)
|
#if targetEnvironment(simulator)
|
||||||
print("yeetAppAFC(\(bundleId), \(rawBytes)) is no-op on simulator")
|
print("yeetAppAFC(\(bundleId), \(rawBytes)) is no-op on simulator")
|
||||||
#else
|
#else
|
||||||
minimuxer.yeetAppAFC(bundleId, rawBytes.toRustByteSlice().forRust())
|
try minimuxer.yeet_app_afc(bundleId, rawBytes.toRustByteSlice().forRust())
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -65,7 +64,7 @@ func installIPA(_ bundleId: String) throws {
|
|||||||
#if targetEnvironment(simulator)
|
#if targetEnvironment(simulator)
|
||||||
print("installIPA(\(bundleId), \(rawBytes)) is no-op on simulator")
|
print("installIPA(\(bundleId), \(rawBytes)) is no-op on simulator")
|
||||||
#else
|
#else
|
||||||
minimuxer.installIPA(bundleId)
|
try minimuxer.install_ipa(bundleId)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -75,7 +74,7 @@ func fetchUDID() -> String? {
|
|||||||
print("fetchUDID() is no-op on simulator")
|
print("fetchUDID() is no-op on simulator")
|
||||||
return "XXXXX-XXXX-XXXXX-XXXX"
|
return "XXXXX-XXXX-XXXXX-XXXX"
|
||||||
#else
|
#else
|
||||||
minimuxer.fetchUDID()?.toString()
|
return minimuxer.fetch_udid()?.toString()
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user