Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ubfelix committed Oct 4, 2024
1 parent edb4c6a commit 1516dd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/UBDevTools/ShareDocumentsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ private struct ShareView: UIViewControllerRepresentable {
context: UIViewControllerRepresentableContext<ShareView>) {}
}

class CompressDocumentsDirectory {
func compress() -> URL? {
enum CompressDocumentsDirectory {
static func compress() -> URL? {
#if !targetEnvironment(simulator)
let archiveDestination = NSTemporaryDirectory() + "documentDirectory.aar"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1516dd4

Please sign in to comment.