Skip to content

Commit f13f904

Browse files
committed
import foundationEssentials for the archiver plugin
1 parent 3dbe568 commit f13f904

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

Plugins/AWSLambdaPackager/Plugin.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,17 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
import Foundation
1615
import PackagePlugin
1716

17+
#if canImport(FoundationEssentials)
18+
import FoundationEssentials
19+
#else
20+
import struct Foundation.URL
21+
import class Foundation.FileManager
22+
import class Foundation.ProcessInfo
23+
import struct Foundation.ObjCBool
24+
#endif
25+
1826
@main
1927
@available(macOS 15.0, *)
2028
struct AWSLambdaPackager: CommandPlugin {

Plugins/AWSLambdaPackager/PluginUtils.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,19 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
import Dispatch
16-
import Foundation
1716
import PackagePlugin
1817
import Synchronization
1918

19+
#if canImport(FoundationEssentials)
20+
import FoundationEssentials
21+
#else
22+
import struct Foundation.URL
23+
import struct Foundation.CharacterSet
24+
import struct Foundation.Data
25+
import class Foundation.Pipe
26+
import class Foundation.Process
27+
#endif
28+
2029
@available(macOS 15.0, *)
2130
struct Utils {
2231
@discardableResult

0 commit comments

Comments
 (0)