Modern Apps git

xtool.git

Public
git clone https://git.maproj.org/xtool.git
appstore-distribution ▾

xtool.git / Sources / XKit / Installation / IPAInstaller.swift

IPAInstaller.swift29 lines · 698 BRaw
1//
2// IPAInstaller.swift
3// XKit
4//
5// Created by Kabir Oberai on 14/11/19.
6// Copyright © 2019 Kabir Oberai. All rights reserved.
7//
8
9import Foundation
10import SwiftyMobileDevice
11
12public final class IPAInstaller: Sendable {
13
14 private let client: InstallationProxyClient
15 public init(connection: Connection) async throws {
16 self.client = try await connection.startClient()
17 }
18
19 public func install(
20 uploaded: IPAUploader.UploadedIPA,
21 progress: @escaping @Sendable (InstallationProxyClient.RequestProgress) -> Void
22 ) async throws {
23 try await client.install(
24 package: uploaded.location,
25 progress: progress
26 )
27 }
28
29}