Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit 526adf0

Browse files
authored
Update DownloadSignManager.swift
1 parent 0801a38 commit 526adf0

1 file changed

Lines changed: 1 addition & 22 deletions

File tree

Sources/prostore/signing/DownloadSignManager.swift

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -130,28 +130,6 @@ class DownloadSignManager: ObservableObject {
130130
observation?.invalidate()
131131
}
132132
}
133-
134-
private func getCertificateFiles(for folderName: String) -> (p12URL: URL, provURL: URL, password: String)? {
135-
let fm = FileManager.default
136-
let certsDir = CertificateFileManager.shared.certificatesDirectory.appendingPathComponent(folderName)
137-
138-
let p12URL = certsDir.appendingPathComponent("certificate.p12")
139-
let provURL = certsDir.appendingPathComponent("profile.mobileprovision")
140-
let passwordURL = certsDir.appendingPathComponent("password.txt")
141-
142-
guard fm.fileExists(atPath: p12URL.path),
143-
fm.fileExists(atPath: provURL.path),
144-
fm.fileExists(atPath: passwordURL.path) else {
145-
return nil
146-
}
147-
148-
do {
149-
let password = try String(contentsOf: passwordURL, encoding: .utf8).trimmingCharacters(in: .whitespacesAndNewlines)
150-
return (p12URL, provURL, password)
151-
} catch {
152-
return nil
153-
}
154-
}
155133

156134
private func getCertificateFiles(for folderName: String) -> (p12URL: URL, provURL: URL, password: String)? {
157135
let fm = FileManager.default
@@ -250,3 +228,4 @@ private func signIPA(ipaURL: URL, p12URL: URL, provURL: URL, password: String, a
250228
}
251229

252230
}
231+

0 commit comments

Comments
 (0)