File tree Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Expand file tree Collapse file tree 3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ extension XcodeAssetContents {
49
49
50
50
func makeFileContents( to directory: URL ) throws -> FileContents {
51
51
let encoder = JSONEncoder ( )
52
- encoder. outputFormatting = . prettyPrinted
52
+ encoder. outputFormatting = [ . prettyPrinted, . sortedKeys ]
53
53
54
54
let data = try encoder. encode ( self )
55
55
let fileURL = URL ( string: " Contents.json " ) !
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ final public class XcodeColorExporter: XcodeExporterBase {
219
219
220
220
private func makeXcodeAssetFileContents( contents: XcodeAssetContents , directory: URL ) throws -> FileContents {
221
221
let encoder = JSONEncoder ( )
222
- encoder. outputFormatting = . prettyPrinted
222
+ encoder. outputFormatting = [ . prettyPrinted, . sortedKeys ]
223
223
let data = try encoder. encode ( contents)
224
224
let fileURL = URL ( string: " Contents.json " ) !
225
225
return FileContents (
Original file line number Diff line number Diff line change @@ -667,17 +667,17 @@ final class XcodeIconsExporterTests: XCTestCase {
667
667
{
668
668
" images " : [
669
669
{
670
- " idiom " : " universal " ,
671
- " filename " : " ic24TabBarHome.pdf "
670
+ " filename " : " ic24TabBarHome.pdf " ,
671
+ " idiom " : " universal "
672
672
}
673
673
],
674
674
" info " : {
675
- " version " : 1 ,
676
- " author " : " xcode "
675
+ " author " : " xcode " ,
676
+ " version " : 1
677
677
},
678
678
" properties " : {
679
- " template-rendering-intent " : " template " ,
680
- " preserves-vector-representation " : true
679
+ " preserves-vector-representation " : true ,
680
+ " template-rendering-intent " : " template "
681
681
}
682
682
}
683
683
"""
@@ -711,17 +711,17 @@ final class XcodeIconsExporterTests: XCTestCase {
711
711
{
712
712
" images " : [
713
713
{
714
- " idiom " : " universal " ,
715
- " filename " : " ic24TabBarHome.pdf "
714
+ " filename " : " ic24TabBarHome.pdf " ,
715
+ " idiom " : " universal "
716
716
}
717
717
],
718
718
" info " : {
719
- " version " : 1 ,
720
- " author " : " xcode "
719
+ " author " : " xcode " ,
720
+ " version " : 1
721
721
},
722
722
" properties " : {
723
- " template-rendering-intent " : " template " ,
724
- " preserves-vector-representation " : true
723
+ " preserves-vector-representation " : true ,
724
+ " template-rendering-intent " : " template "
725
725
}
726
726
}
727
727
"""
You can’t perform that action at this time.
0 commit comments