Skip to content

Commit

Permalink
Fix import FoundationEssentials
Browse files Browse the repository at this point in the history
  • Loading branch information
fpseverino committed Sep 29, 2024
1 parent a098012 commit 18eac81
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// swift-tools-version:5.8
import PackageDescription
#if swift(>=6.0)
import FoundationEssentials
#else
#if canImport(Darwin)
import Foundation
#else
import FoundationEssentials
#endif

let package = Package(
Expand Down
6 changes: 3 additions & 3 deletions Sources/Zip/ArchiveFile.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#if swift(>=6.0)
import FoundationEssentials
#else
#if canImport(Darwin)
import Foundation
#else
import FoundationEssentials
#endif
@_implementationOnly import CMinizip

Expand Down
6 changes: 3 additions & 3 deletions Sources/Zip/Date+dosDate.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#if swift(>=6.0)
import FoundationEssentials
#else
#if canImport(Darwin)
import Foundation
#else
import FoundationEssentials
#endif

extension Date {
Expand Down
6 changes: 3 additions & 3 deletions Sources/Zip/QuickZip.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
// Copyright © 2016 Roy Marmelstein. All rights reserved.
//

#if swift(>=6.0)
import FoundationEssentials
#else
#if canImport(Darwin)
import Foundation
#else
import FoundationEssentials
#endif

extension Zip {
Expand Down
6 changes: 3 additions & 3 deletions Sources/Zip/Zip.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
// Copyright © 2015 Roy Marmelstein. All rights reserved.
//

#if swift(>=6.0)
import FoundationEssentials
#else
#if canImport(Darwin)
import Foundation
#else
import FoundationEssentials
#endif
@_implementationOnly import CMinizip

Expand Down
6 changes: 3 additions & 3 deletions Sources/Zip/ZipError.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#if swift(>=6.0)
import FoundationEssentials
#else
#if canImport(Darwin)
import Foundation
#else
import FoundationEssentials
#endif

/// Errors that can be thrown by Zip.
Expand Down
6 changes: 3 additions & 3 deletions Sources/Zip/ZipUtilities.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
// Copyright © 2016 Roy Marmelstein. All rights reserved.
//

#if swift(>=6.0)
import FoundationEssentials
#else
#if canImport(Darwin)
import Foundation
#else
import FoundationEssentials
#endif

internal class ZipUtilities {
Expand Down

0 comments on commit 18eac81

Please sign in to comment.