diff --git a/Sources/UBDevTools/ShareDocumentsView.swift b/Sources/UBDevTools/ShareDocumentsView.swift index 6e6ab7a2..b8a856a1 100644 --- a/Sources/UBDevTools/ShareDocumentsView.swift +++ b/Sources/UBDevTools/ShareDocumentsView.swift @@ -81,8 +81,8 @@ private struct ShareView: UIViewControllerRepresentable { context: UIViewControllerRepresentableContext) {} } -class CompressDocumentsDirectory { - func compress() -> URL? { +enum CompressDocumentsDirectory { + static func compress() -> URL? { #if !targetEnvironment(simulator) let archiveDestination = NSTemporaryDirectory() + "documentDirectory.aar" @@ -139,7 +139,7 @@ class CompressDocumentsDirectory { #endif } - func getDocumentsDirectory() -> URL { + private static func getDocumentsDirectory() -> URL { let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask) let documentsDirectory = paths[0] return documentsDirectory