File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -545,7 +545,11 @@ public final class ManifestLoader: ManifestLoaderProtocol {
545
545
546
546
let encoder = JSONEncoder ( )
547
547
if #available( macOS 10 . 15 , * ) {
548
+ #if os(macOS)
548
549
encoder. outputFormatting = [ . sortedKeys, . withoutEscapingSlashes]
550
+ #else // `.withoutEscapingSlashes` is not in 5.3 on non-Darwin platforms
551
+ encoder. outputFormatting = [ . sortedKeys]
552
+ #endif
549
553
}
550
554
551
555
try keyHash. withData {
Original file line number Diff line number Diff line change @@ -93,7 +93,9 @@ public final class PIFBuilder {
93
93
encoder. outputFormatting. insert ( . sortedKeys)
94
94
}
95
95
if #available( macOS 10 . 15 , * ) {
96
+ #if os(macOS) // `.withoutEscapingSlashes` is not in 5.3 on non-Darwin platforms
96
97
encoder. outputFormatting. insert ( . withoutEscapingSlashes)
98
+ #endif
97
99
}
98
100
#endif
99
101
}
You can’t perform that action at this time.
0 commit comments