Files
xtool-mirror/Sources/Supersign/Installation/IPAInstaller.swift
2024-12-01 22:38:51 -05:00

30 lines
703 B
Swift

//
// IPAInstaller.swift
// Supersign
//
// Created by Kabir Oberai on 14/11/19.
// Copyright © 2019 Kabir Oberai. All rights reserved.
//
import Foundation
import SwiftyMobileDevice
public final class IPAInstaller: Sendable {
private let client: InstallationProxyClient
public init(connection: Connection) async throws {
self.client = try await connection.startClient()
}
public func install(
uploaded: IPAUploader.UploadedIPA,
progress: @escaping @Sendable (InstallationProxyClient.RequestProgress) -> Void
) async throws {
try await client.install(
package: uploaded.location,
progress: progress
)
}
}