mirror of
https://github.com/apple/swift-crypto
synced 2026-11-27 04:54:21 +00:00
Replace all Foundation imports with FoundationEssentials (#363)
### Motivation: FoundationEssentials produces smaller binaries on most platforms. ### Modifications: Where FoundationEssentials is available, import that. ### Result: Improved binary size
This commit is contained in:
1 parent
b5dde9c658
commit
83a1500dac
159 files changed
+742
-3
No files matched your search
@@ -17,8 +17,12 @@
|
||||
#if CRYPTOKIT_NO_ACCESS_TO_FOUNDATION
|
||||
public import SwiftSystem
|
||||
#else
|
||||
#if canImport(FoundationEssentials)
|
||||
public import FoundationEssentials
|
||||
#else
|
||||
public import Foundation
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if hasFeature(Embedded)
|
||||
/// A type that represents a message authentication code.
|
||||
|
||||
Reference in new issue
Block a user