Files
xtool-mirror/Sources/XKit/Installation/IPAInstaller.swift
2025-05-06 11:30:59 +05:30

30 lines
698 B
Swift

//
// IPAInstaller.swift
// XKit
//
// 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
)
}
}