mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-13 08:43:27 +01:00
[cleanup]: commented out debug-only code until CI is switched to release builds
This commit is contained in:
@@ -715,9 +715,9 @@ private extension AuthenticationOperation
|
||||
// If we're not using the same certificate used to install AltStore, warn user that they need to refresh.
|
||||
guard !provisioningProfile.certificates.contains(signer.certificate) else { return completionHandler(false) }
|
||||
|
||||
#if DEBUG
|
||||
completionHandler(false)
|
||||
#else
|
||||
//#if DEBUG
|
||||
// completionHandler(false)
|
||||
//#else
|
||||
DispatchQueue.main.async {
|
||||
let context = AuthenticatedOperationContext(context: self.context)
|
||||
context.operations.removeAllObjects() // Prevent deadlock due to endless waiting on previous operations to finish.
|
||||
@@ -733,7 +733,7 @@ private extension AuthenticationOperation
|
||||
completionHandler(false)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
//#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -58,17 +58,17 @@ final class RemoveAppBackupOperation: ResultOperation<Void>
|
||||
}
|
||||
catch let error as CocoaError where error.code == CocoaError.Code.fileNoSuchFile
|
||||
{
|
||||
#if DEBUG
|
||||
|
||||
// When debugging, it's expected that app groups don't match, so ignore.
|
||||
self.finish(.success(()))
|
||||
|
||||
#else
|
||||
// #if DEBUG
|
||||
//
|
||||
// // When debugging, it's expected that app groups don't match, so ignore.
|
||||
// self.finish(.success(()))
|
||||
//
|
||||
// #else
|
||||
|
||||
Logger.sideload.error("Failed to remove app backup directory \(backupDirectoryURL.lastPathComponent, privacy: .public). \(error.localizedDescription, privacy: .public)")
|
||||
self.finish(.failure(error))
|
||||
|
||||
#endif
|
||||
// #endif
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
@@ -244,13 +244,13 @@ private extension ResignAppOperation
|
||||
{
|
||||
for case let fileURL as URL in enumerator
|
||||
{
|
||||
#if DEBUG
|
||||
guard !fileURL.lastPathComponent.lowercased().contains(".xctest") else {
|
||||
// Remove embedded XCTest (+ dSYM) bundle from copied app bundle.
|
||||
try FileManager.default.removeItem(at: fileURL)
|
||||
continue
|
||||
}
|
||||
#endif
|
||||
// #if DEBUG
|
||||
// guard !fileURL.lastPathComponent.lowercased().contains(".xctest") else {
|
||||
// // Remove embedded XCTest (+ dSYM) bundle from copied app bundle.
|
||||
// try FileManager.default.removeItem(at: fileURL)
|
||||
// continue
|
||||
// }
|
||||
// #endif
|
||||
|
||||
guard let appExtension = Bundle(url: fileURL) else { throw ALTError(.missingAppBundle) }
|
||||
try prepare(appExtension)
|
||||
|
||||
Reference in New Issue
Block a user