danger-localizationlinter 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.travis.yml +12 -0
  4. data/Gemfile +6 -0
  5. data/Gemfile.lock +167 -0
  6. data/Guardfile +21 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +62 -0
  9. data/Rakefile +25 -0
  10. data/danger-localizationlinter.gemspec +60 -0
  11. data/ext/localizationlinter/helper/validate_wording_cli.rb +21 -0
  12. data/ext/localizationlinter/localizationlinter.rb +331 -0
  13. data/ext/localizationlinter/swiftgen_localizables_check.stencil +36 -0
  14. data/lib/danger_localizationlinter.rb +3 -0
  15. data/lib/danger_plugin.rb +3 -0
  16. data/lib/localizationlinter/gem_version.rb +5 -0
  17. data/lib/localizationlinter/plugin.rb +96 -0
  18. data/spec/Test/Podfile +6 -0
  19. data/spec/Test/Podfile.lock +16 -0
  20. data/spec/Test/Pods/SwiftGen/CHANGELOG.md +1357 -0
  21. data/spec/Test/Pods/SwiftGen/LICENCE +21 -0
  22. data/spec/Test/Pods/SwiftGen/README.md +892 -0
  23. data/spec/Test/Pods/SwiftGen/bin/swiftgen +0 -0
  24. data/spec/Test/Pods/SwiftGen/lib/Commander.framework/Commander +0 -0
  25. data/spec/Test/Pods/SwiftGen/lib/Commander.framework/Resources/Info.plist +48 -0
  26. data/spec/Test/Pods/SwiftGen/lib/Commander.framework/Versions/A/Commander +0 -0
  27. data/spec/Test/Pods/SwiftGen/lib/Commander.framework/Versions/A/Resources/Info.plist +48 -0
  28. data/spec/Test/Pods/SwiftGen/lib/Commander.framework/Versions/A/_CodeSignature/CodeResources +132 -0
  29. data/spec/Test/Pods/SwiftGen/lib/Commander.framework/Versions/Current/Commander +0 -0
  30. data/spec/Test/Pods/SwiftGen/lib/Commander.framework/Versions/Current/Resources/Info.plist +48 -0
  31. data/spec/Test/Pods/SwiftGen/lib/Commander.framework/Versions/Current/_CodeSignature/CodeResources +132 -0
  32. data/spec/Test/Pods/SwiftGen/lib/Kanna.framework/Kanna +0 -0
  33. data/spec/Test/Pods/SwiftGen/lib/Kanna.framework/Resources/Info.plist +48 -0
  34. data/spec/Test/Pods/SwiftGen/lib/Kanna.framework/Versions/A/Kanna +0 -0
  35. data/spec/Test/Pods/SwiftGen/lib/Kanna.framework/Versions/A/Resources/Info.plist +48 -0
  36. data/spec/Test/Pods/SwiftGen/lib/Kanna.framework/Versions/A/_CodeSignature/CodeResources +132 -0
  37. data/spec/Test/Pods/SwiftGen/lib/Kanna.framework/Versions/Current/Kanna +0 -0
  38. data/spec/Test/Pods/SwiftGen/lib/Kanna.framework/Versions/Current/Resources/Info.plist +48 -0
  39. data/spec/Test/Pods/SwiftGen/lib/Kanna.framework/Versions/Current/_CodeSignature/CodeResources +132 -0
  40. data/spec/Test/Pods/SwiftGen/lib/PathKit.framework/PathKit +0 -0
  41. data/spec/Test/Pods/SwiftGen/lib/PathKit.framework/Resources/Info.plist +48 -0
  42. data/spec/Test/Pods/SwiftGen/lib/PathKit.framework/Versions/A/PathKit +0 -0
  43. data/spec/Test/Pods/SwiftGen/lib/PathKit.framework/Versions/A/Resources/Info.plist +48 -0
  44. data/spec/Test/Pods/SwiftGen/lib/PathKit.framework/Versions/A/_CodeSignature/CodeResources +132 -0
  45. data/spec/Test/Pods/SwiftGen/lib/PathKit.framework/Versions/Current/PathKit +0 -0
  46. data/spec/Test/Pods/SwiftGen/lib/PathKit.framework/Versions/Current/Resources/Info.plist +48 -0
  47. data/spec/Test/Pods/SwiftGen/lib/PathKit.framework/Versions/Current/_CodeSignature/CodeResources +132 -0
  48. data/spec/Test/Pods/SwiftGen/lib/Stencil.framework/Resources/Info.plist +48 -0
  49. data/spec/Test/Pods/SwiftGen/lib/Stencil.framework/Stencil +0 -0
  50. data/spec/Test/Pods/SwiftGen/lib/Stencil.framework/Versions/A/Resources/Info.plist +48 -0
  51. data/spec/Test/Pods/SwiftGen/lib/Stencil.framework/Versions/A/Stencil +0 -0
  52. data/spec/Test/Pods/SwiftGen/lib/Stencil.framework/Versions/A/_CodeSignature/CodeResources +132 -0
  53. data/spec/Test/Pods/SwiftGen/lib/Stencil.framework/Versions/Current/Resources/Info.plist +48 -0
  54. data/spec/Test/Pods/SwiftGen/lib/Stencil.framework/Versions/Current/Stencil +0 -0
  55. data/spec/Test/Pods/SwiftGen/lib/Stencil.framework/Versions/Current/_CodeSignature/CodeResources +132 -0
  56. data/spec/Test/Pods/SwiftGen/lib/StencilSwiftKit.framework/Resources/Info.plist +48 -0
  57. data/spec/Test/Pods/SwiftGen/lib/StencilSwiftKit.framework/StencilSwiftKit +0 -0
  58. data/spec/Test/Pods/SwiftGen/lib/StencilSwiftKit.framework/Versions/A/Resources/Info.plist +48 -0
  59. data/spec/Test/Pods/SwiftGen/lib/StencilSwiftKit.framework/Versions/A/StencilSwiftKit +0 -0
  60. data/spec/Test/Pods/SwiftGen/lib/StencilSwiftKit.framework/Versions/A/_CodeSignature/CodeResources +132 -0
  61. data/spec/Test/Pods/SwiftGen/lib/StencilSwiftKit.framework/Versions/Current/Resources/Info.plist +48 -0
  62. data/spec/Test/Pods/SwiftGen/lib/StencilSwiftKit.framework/Versions/Current/StencilSwiftKit +0 -0
  63. data/spec/Test/Pods/SwiftGen/lib/StencilSwiftKit.framework/Versions/Current/_CodeSignature/CodeResources +132 -0
  64. data/spec/Test/Pods/SwiftGen/lib/SwiftGenKit.framework/Resources/Info.plist +48 -0
  65. data/spec/Test/Pods/SwiftGen/lib/SwiftGenKit.framework/SwiftGenKit +0 -0
  66. data/spec/Test/Pods/SwiftGen/lib/SwiftGenKit.framework/Versions/A/Resources/Info.plist +48 -0
  67. data/spec/Test/Pods/SwiftGen/lib/SwiftGenKit.framework/Versions/A/SwiftGenKit +0 -0
  68. data/spec/Test/Pods/SwiftGen/lib/SwiftGenKit.framework/Versions/A/_CodeSignature/CodeResources +132 -0
  69. data/spec/Test/Pods/SwiftGen/lib/SwiftGenKit.framework/Versions/Current/Resources/Info.plist +48 -0
  70. data/spec/Test/Pods/SwiftGen/lib/SwiftGenKit.framework/Versions/Current/SwiftGenKit +0 -0
  71. data/spec/Test/Pods/SwiftGen/lib/SwiftGenKit.framework/Versions/Current/_CodeSignature/CodeResources +132 -0
  72. data/spec/Test/Pods/SwiftGen/lib/Yams.framework/Resources/Info.plist +48 -0
  73. data/spec/Test/Pods/SwiftGen/lib/Yams.framework/Versions/A/Resources/Info.plist +48 -0
  74. data/spec/Test/Pods/SwiftGen/lib/Yams.framework/Versions/A/Yams +0 -0
  75. data/spec/Test/Pods/SwiftGen/lib/Yams.framework/Versions/A/_CodeSignature/CodeResources +132 -0
  76. data/spec/Test/Pods/SwiftGen/lib/Yams.framework/Versions/Current/Resources/Info.plist +48 -0
  77. data/spec/Test/Pods/SwiftGen/lib/Yams.framework/Versions/Current/Yams +0 -0
  78. data/spec/Test/Pods/SwiftGen/lib/Yams.framework/Versions/Current/_CodeSignature/CodeResources +132 -0
  79. data/spec/Test/Pods/SwiftGen/lib/Yams.framework/Yams +0 -0
  80. data/spec/Test/Pods/SwiftGen/templates/colors/literals-swift4.stencil +43 -0
  81. data/spec/Test/Pods/SwiftGen/templates/colors/literals-swift5.stencil +43 -0
  82. data/spec/Test/Pods/SwiftGen/templates/colors/swift4.stencil +84 -0
  83. data/spec/Test/Pods/SwiftGen/templates/colors/swift5.stencil +84 -0
  84. data/spec/Test/Pods/SwiftGen/templates/coredata/swift4.stencil +211 -0
  85. data/spec/Test/Pods/SwiftGen/templates/coredata/swift5.stencil +211 -0
  86. data/spec/Test/Pods/SwiftGen/templates/fonts/swift4.stencil +110 -0
  87. data/spec/Test/Pods/SwiftGen/templates/fonts/swift5.stencil +113 -0
  88. data/spec/Test/Pods/SwiftGen/templates/ib/scenes-swift4.stencil +157 -0
  89. data/spec/Test/Pods/SwiftGen/templates/ib/scenes-swift5.stencil +159 -0
  90. data/spec/Test/Pods/SwiftGen/templates/ib/segues-swift4.stencil +60 -0
  91. data/spec/Test/Pods/SwiftGen/templates/ib/segues-swift5.stencil +60 -0
  92. data/spec/Test/Pods/SwiftGen/templates/json/inline-swift4.stencil +82 -0
  93. data/spec/Test/Pods/SwiftGen/templates/json/inline-swift5.stencil +82 -0
  94. data/spec/Test/Pods/SwiftGen/templates/json/runtime-swift4.stencil +112 -0
  95. data/spec/Test/Pods/SwiftGen/templates/json/runtime-swift5.stencil +112 -0
  96. data/spec/Test/Pods/SwiftGen/templates/plist/inline-swift4.stencil +82 -0
  97. data/spec/Test/Pods/SwiftGen/templates/plist/inline-swift5.stencil +82 -0
  98. data/spec/Test/Pods/SwiftGen/templates/plist/runtime-swift4.stencil +117 -0
  99. data/spec/Test/Pods/SwiftGen/templates/plist/runtime-swift5.stencil +117 -0
  100. data/spec/Test/Pods/SwiftGen/templates/strings/flat-swift4.stencil +97 -0
  101. data/spec/Test/Pods/SwiftGen/templates/strings/flat-swift5.stencil +97 -0
  102. data/spec/Test/Pods/SwiftGen/templates/strings/objc-h.stencil +66 -0
  103. data/spec/Test/Pods/SwiftGen/templates/strings/objc-m.stencil +90 -0
  104. data/spec/Test/Pods/SwiftGen/templates/strings/structured-swift4.stencil +102 -0
  105. data/spec/Test/Pods/SwiftGen/templates/strings/structured-swift5.stencil +102 -0
  106. data/spec/Test/Pods/SwiftGen/templates/xcassets/swift4.stencil +266 -0
  107. data/spec/Test/Pods/SwiftGen/templates/xcassets/swift5.stencil +274 -0
  108. data/spec/Test/Pods/SwiftGen/templates/yaml/inline-swift4.stencil +92 -0
  109. data/spec/Test/Pods/SwiftGen/templates/yaml/inline-swift5.stencil +92 -0
  110. data/spec/Test/Test.xcodeproj/project.pbxproj +406 -0
  111. data/spec/Test/Test.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  112. data/spec/Test/Test.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  113. data/spec/Test/Test.xcworkspace/contents.xcworkspacedata +10 -0
  114. data/spec/Test/Test.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  115. data/spec/Test/Test/AppDelegate.swift +36 -0
  116. data/spec/Test/Test/Assets.xcassets/AccentColor.colorset/Contents.json +11 -0
  117. data/spec/Test/Test/Assets.xcassets/AppIcon.appiconset/Contents.json +98 -0
  118. data/spec/Test/Test/Assets.xcassets/Contents.json +6 -0
  119. data/spec/Test/Test/ContentView.swift +21 -0
  120. data/spec/Test/Test/Info.plist +62 -0
  121. data/spec/Test/Test/SceneDelegate.swift +63 -0
  122. data/spec/Test/Test/all_target_main_language.yml +1 -0
  123. data/spec/Test/Test/en.lproj/LaunchScreen.storyboard +25 -0
  124. data/spec/Test/Test/en.lproj/localizable.strings +3 -0
  125. data/spec/Test/Test/fr.lproj/LaunchScreen.storyboard +25 -0
  126. data/spec/Test/Test/fr.lproj/localizable.strings +3 -0
  127. data/spec/localizationofficer_spec.rb +116 -0
  128. data/spec/spec_helper.rb +67 -0
  129. data/spec/support/fixtures/all_target_main_language.yml +1 -0
  130. data/spec/support/fixtures/resources/TEST/en.lproj/Localizable.strings +8 -0
  131. data/spec/support/fixtures/resources/TEST/en.lproj/Localizable.stringsdict +30 -0
  132. data/spec/support/fixtures/resources/TEST_KO/en.lproj/Localizable.strings +11 -0
  133. data/spec/support/fixtures/resources/TEST_KO/en.lproj/Localizable.stringsdict +30 -0
  134. data/spec/support/fixtures/resources/TEST_KO/fr.lproj/Localizable.strings +11 -0
  135. data/spec/support/fixtures/resources/TEST_KO/fr.lproj/Localizable.stringsdict +30 -0
  136. metadata +491 -0
@@ -0,0 +1,48 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>BuildMachineOSBuild</key>
6
+ <string>19H2</string>
7
+ <key>CFBundleDevelopmentRegion</key>
8
+ <string>en</string>
9
+ <key>CFBundleExecutable</key>
10
+ <string>Yams</string>
11
+ <key>CFBundleIdentifier</key>
12
+ <string>org.cocoapods.Yams</string>
13
+ <key>CFBundleInfoDictionaryVersion</key>
14
+ <string>6.0</string>
15
+ <key>CFBundleName</key>
16
+ <string>Yams</string>
17
+ <key>CFBundlePackageType</key>
18
+ <string>FMWK</string>
19
+ <key>CFBundleShortVersionString</key>
20
+ <string>4.0.0</string>
21
+ <key>CFBundleSignature</key>
22
+ <string>????</string>
23
+ <key>CFBundleSupportedPlatforms</key>
24
+ <array>
25
+ <string>MacOSX</string>
26
+ </array>
27
+ <key>CFBundleVersion</key>
28
+ <string>1</string>
29
+ <key>DTCompiler</key>
30
+ <string>com.apple.compilers.llvm.clang.1_0</string>
31
+ <key>DTPlatformBuild</key>
32
+ <string>12A7300</string>
33
+ <key>DTPlatformName</key>
34
+ <string>macosx</string>
35
+ <key>DTPlatformVersion</key>
36
+ <string>10.15.6</string>
37
+ <key>DTSDKBuild</key>
38
+ <string>19G68</string>
39
+ <key>DTSDKName</key>
40
+ <string>macosx10.15</string>
41
+ <key>DTXcode</key>
42
+ <string>1201</string>
43
+ <key>DTXcodeBuild</key>
44
+ <string>12A7300</string>
45
+ <key>LSMinimumSystemVersion</key>
46
+ <string>10.9</string>
47
+ </dict>
48
+ </plist>
@@ -0,0 +1,48 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>BuildMachineOSBuild</key>
6
+ <string>19H2</string>
7
+ <key>CFBundleDevelopmentRegion</key>
8
+ <string>en</string>
9
+ <key>CFBundleExecutable</key>
10
+ <string>Yams</string>
11
+ <key>CFBundleIdentifier</key>
12
+ <string>org.cocoapods.Yams</string>
13
+ <key>CFBundleInfoDictionaryVersion</key>
14
+ <string>6.0</string>
15
+ <key>CFBundleName</key>
16
+ <string>Yams</string>
17
+ <key>CFBundlePackageType</key>
18
+ <string>FMWK</string>
19
+ <key>CFBundleShortVersionString</key>
20
+ <string>4.0.0</string>
21
+ <key>CFBundleSignature</key>
22
+ <string>????</string>
23
+ <key>CFBundleSupportedPlatforms</key>
24
+ <array>
25
+ <string>MacOSX</string>
26
+ </array>
27
+ <key>CFBundleVersion</key>
28
+ <string>1</string>
29
+ <key>DTCompiler</key>
30
+ <string>com.apple.compilers.llvm.clang.1_0</string>
31
+ <key>DTPlatformBuild</key>
32
+ <string>12A7300</string>
33
+ <key>DTPlatformName</key>
34
+ <string>macosx</string>
35
+ <key>DTPlatformVersion</key>
36
+ <string>10.15.6</string>
37
+ <key>DTSDKBuild</key>
38
+ <string>19G68</string>
39
+ <key>DTSDKName</key>
40
+ <string>macosx10.15</string>
41
+ <key>DTXcode</key>
42
+ <string>1201</string>
43
+ <key>DTXcodeBuild</key>
44
+ <string>12A7300</string>
45
+ <key>LSMinimumSystemVersion</key>
46
+ <string>10.9</string>
47
+ </dict>
48
+ </plist>
@@ -0,0 +1,132 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>files</key>
6
+ <dict>
7
+ <key>Resources/Info.plist</key>
8
+ <data>
9
+ usXNJFA1ewvlsiZavz5Q1dx1dQM=
10
+ </data>
11
+ </dict>
12
+ <key>files2</key>
13
+ <dict>
14
+ <key>Resources/Info.plist</key>
15
+ <dict>
16
+ <key>hash</key>
17
+ <data>
18
+ usXNJFA1ewvlsiZavz5Q1dx1dQM=
19
+ </data>
20
+ <key>hash2</key>
21
+ <data>
22
+ LV1gYYeWQbD4Doj2Mn+BDbGO1bivphT9JZ//0K/Ko5A=
23
+ </data>
24
+ </dict>
25
+ </dict>
26
+ <key>rules</key>
27
+ <dict>
28
+ <key>^Resources/</key>
29
+ <true/>
30
+ <key>^Resources/.*\.lproj/</key>
31
+ <dict>
32
+ <key>optional</key>
33
+ <true/>
34
+ <key>weight</key>
35
+ <real>1000</real>
36
+ </dict>
37
+ <key>^Resources/.*\.lproj/locversion.plist$</key>
38
+ <dict>
39
+ <key>omit</key>
40
+ <true/>
41
+ <key>weight</key>
42
+ <real>1100</real>
43
+ </dict>
44
+ <key>^Resources/Base\.lproj/</key>
45
+ <dict>
46
+ <key>weight</key>
47
+ <real>1010</real>
48
+ </dict>
49
+ <key>^version.plist$</key>
50
+ <true/>
51
+ </dict>
52
+ <key>rules2</key>
53
+ <dict>
54
+ <key>.*\.dSYM($|/)</key>
55
+ <dict>
56
+ <key>weight</key>
57
+ <real>11</real>
58
+ </dict>
59
+ <key>^(.*/)?\.DS_Store$</key>
60
+ <dict>
61
+ <key>omit</key>
62
+ <true/>
63
+ <key>weight</key>
64
+ <real>2000</real>
65
+ </dict>
66
+ <key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
67
+ <dict>
68
+ <key>nested</key>
69
+ <true/>
70
+ <key>weight</key>
71
+ <real>10</real>
72
+ </dict>
73
+ <key>^.*</key>
74
+ <true/>
75
+ <key>^Info\.plist$</key>
76
+ <dict>
77
+ <key>omit</key>
78
+ <true/>
79
+ <key>weight</key>
80
+ <real>20</real>
81
+ </dict>
82
+ <key>^PkgInfo$</key>
83
+ <dict>
84
+ <key>omit</key>
85
+ <true/>
86
+ <key>weight</key>
87
+ <real>20</real>
88
+ </dict>
89
+ <key>^Resources/</key>
90
+ <dict>
91
+ <key>weight</key>
92
+ <real>20</real>
93
+ </dict>
94
+ <key>^Resources/.*\.lproj/</key>
95
+ <dict>
96
+ <key>optional</key>
97
+ <true/>
98
+ <key>weight</key>
99
+ <real>1000</real>
100
+ </dict>
101
+ <key>^Resources/.*\.lproj/locversion.plist$</key>
102
+ <dict>
103
+ <key>omit</key>
104
+ <true/>
105
+ <key>weight</key>
106
+ <real>1100</real>
107
+ </dict>
108
+ <key>^Resources/Base\.lproj/</key>
109
+ <dict>
110
+ <key>weight</key>
111
+ <real>1010</real>
112
+ </dict>
113
+ <key>^[^/]+$</key>
114
+ <dict>
115
+ <key>nested</key>
116
+ <true/>
117
+ <key>weight</key>
118
+ <real>10</real>
119
+ </dict>
120
+ <key>^embedded\.provisionprofile$</key>
121
+ <dict>
122
+ <key>weight</key>
123
+ <real>20</real>
124
+ </dict>
125
+ <key>^version\.plist$</key>
126
+ <dict>
127
+ <key>weight</key>
128
+ <real>20</real>
129
+ </dict>
130
+ </dict>
131
+ </dict>
132
+ </plist>
@@ -0,0 +1,48 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>BuildMachineOSBuild</key>
6
+ <string>19H2</string>
7
+ <key>CFBundleDevelopmentRegion</key>
8
+ <string>en</string>
9
+ <key>CFBundleExecutable</key>
10
+ <string>Yams</string>
11
+ <key>CFBundleIdentifier</key>
12
+ <string>org.cocoapods.Yams</string>
13
+ <key>CFBundleInfoDictionaryVersion</key>
14
+ <string>6.0</string>
15
+ <key>CFBundleName</key>
16
+ <string>Yams</string>
17
+ <key>CFBundlePackageType</key>
18
+ <string>FMWK</string>
19
+ <key>CFBundleShortVersionString</key>
20
+ <string>4.0.0</string>
21
+ <key>CFBundleSignature</key>
22
+ <string>????</string>
23
+ <key>CFBundleSupportedPlatforms</key>
24
+ <array>
25
+ <string>MacOSX</string>
26
+ </array>
27
+ <key>CFBundleVersion</key>
28
+ <string>1</string>
29
+ <key>DTCompiler</key>
30
+ <string>com.apple.compilers.llvm.clang.1_0</string>
31
+ <key>DTPlatformBuild</key>
32
+ <string>12A7300</string>
33
+ <key>DTPlatformName</key>
34
+ <string>macosx</string>
35
+ <key>DTPlatformVersion</key>
36
+ <string>10.15.6</string>
37
+ <key>DTSDKBuild</key>
38
+ <string>19G68</string>
39
+ <key>DTSDKName</key>
40
+ <string>macosx10.15</string>
41
+ <key>DTXcode</key>
42
+ <string>1201</string>
43
+ <key>DTXcodeBuild</key>
44
+ <string>12A7300</string>
45
+ <key>LSMinimumSystemVersion</key>
46
+ <string>10.9</string>
47
+ </dict>
48
+ </plist>
@@ -0,0 +1,132 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>files</key>
6
+ <dict>
7
+ <key>Resources/Info.plist</key>
8
+ <data>
9
+ usXNJFA1ewvlsiZavz5Q1dx1dQM=
10
+ </data>
11
+ </dict>
12
+ <key>files2</key>
13
+ <dict>
14
+ <key>Resources/Info.plist</key>
15
+ <dict>
16
+ <key>hash</key>
17
+ <data>
18
+ usXNJFA1ewvlsiZavz5Q1dx1dQM=
19
+ </data>
20
+ <key>hash2</key>
21
+ <data>
22
+ LV1gYYeWQbD4Doj2Mn+BDbGO1bivphT9JZ//0K/Ko5A=
23
+ </data>
24
+ </dict>
25
+ </dict>
26
+ <key>rules</key>
27
+ <dict>
28
+ <key>^Resources/</key>
29
+ <true/>
30
+ <key>^Resources/.*\.lproj/</key>
31
+ <dict>
32
+ <key>optional</key>
33
+ <true/>
34
+ <key>weight</key>
35
+ <real>1000</real>
36
+ </dict>
37
+ <key>^Resources/.*\.lproj/locversion.plist$</key>
38
+ <dict>
39
+ <key>omit</key>
40
+ <true/>
41
+ <key>weight</key>
42
+ <real>1100</real>
43
+ </dict>
44
+ <key>^Resources/Base\.lproj/</key>
45
+ <dict>
46
+ <key>weight</key>
47
+ <real>1010</real>
48
+ </dict>
49
+ <key>^version.plist$</key>
50
+ <true/>
51
+ </dict>
52
+ <key>rules2</key>
53
+ <dict>
54
+ <key>.*\.dSYM($|/)</key>
55
+ <dict>
56
+ <key>weight</key>
57
+ <real>11</real>
58
+ </dict>
59
+ <key>^(.*/)?\.DS_Store$</key>
60
+ <dict>
61
+ <key>omit</key>
62
+ <true/>
63
+ <key>weight</key>
64
+ <real>2000</real>
65
+ </dict>
66
+ <key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
67
+ <dict>
68
+ <key>nested</key>
69
+ <true/>
70
+ <key>weight</key>
71
+ <real>10</real>
72
+ </dict>
73
+ <key>^.*</key>
74
+ <true/>
75
+ <key>^Info\.plist$</key>
76
+ <dict>
77
+ <key>omit</key>
78
+ <true/>
79
+ <key>weight</key>
80
+ <real>20</real>
81
+ </dict>
82
+ <key>^PkgInfo$</key>
83
+ <dict>
84
+ <key>omit</key>
85
+ <true/>
86
+ <key>weight</key>
87
+ <real>20</real>
88
+ </dict>
89
+ <key>^Resources/</key>
90
+ <dict>
91
+ <key>weight</key>
92
+ <real>20</real>
93
+ </dict>
94
+ <key>^Resources/.*\.lproj/</key>
95
+ <dict>
96
+ <key>optional</key>
97
+ <true/>
98
+ <key>weight</key>
99
+ <real>1000</real>
100
+ </dict>
101
+ <key>^Resources/.*\.lproj/locversion.plist$</key>
102
+ <dict>
103
+ <key>omit</key>
104
+ <true/>
105
+ <key>weight</key>
106
+ <real>1100</real>
107
+ </dict>
108
+ <key>^Resources/Base\.lproj/</key>
109
+ <dict>
110
+ <key>weight</key>
111
+ <real>1010</real>
112
+ </dict>
113
+ <key>^[^/]+$</key>
114
+ <dict>
115
+ <key>nested</key>
116
+ <true/>
117
+ <key>weight</key>
118
+ <real>10</real>
119
+ </dict>
120
+ <key>^embedded\.provisionprofile$</key>
121
+ <dict>
122
+ <key>weight</key>
123
+ <real>20</real>
124
+ </dict>
125
+ <key>^version\.plist$</key>
126
+ <dict>
127
+ <key>weight</key>
128
+ <real>20</real>
129
+ </dict>
130
+ </dict>
131
+ </dict>
132
+ </plist>
@@ -0,0 +1,43 @@
1
+ // swiftlint:disable all
2
+ // Generated using SwiftGen — https://github.com/SwiftGen/SwiftGen
3
+
4
+ {% if palettes %}
5
+ {% set enumName %}{{param.enumName|default:"ColorName"}}{% endset %}
6
+ {% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %}
7
+ #if os(OSX)
8
+ import AppKit
9
+ {% if enumName != 'NSColor' %}{{accessModifier}} enum {{enumName}} { }{% endif %}
10
+ #elseif os(iOS) || os(tvOS) || os(watchOS)
11
+ import UIKit
12
+ {% if enumName != 'UIColor' %}{{accessModifier}} enum {{enumName}} { }{% endif %}
13
+ #endif
14
+
15
+ // swiftlint:disable superfluous_disable_command
16
+ // swiftlint:disable file_length
17
+
18
+ // MARK: - Colors
19
+
20
+ // swiftlint:disable identifier_name line_length type_body_length
21
+ {{accessModifier}} extension {{enumName}} {
22
+ {% macro h2f hex %}{{hex|hexToInt|int255toFloat}}{% endmacro %}
23
+ {% macro enumBlock colors accessPrefix %}
24
+ {% for color in colors %}
25
+ /// 0x{{color.red}}{{color.green}}{{color.blue}}{{color.alpha}} (r: {{color.red|hexToInt}}, g: {{color.green|hexToInt}}, b: {{color.blue|hexToInt}}, a: {{color.alpha|hexToInt}})
26
+ {{accessPrefix}}static let {{color.name|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}} = #colorLiteral(red: {% call h2f color.red %}, green: {% call h2f color.green %}, blue: {% call h2f color.blue %}, alpha: {% call h2f color.alpha %})
27
+ {% endfor %}
28
+ {% endmacro %}
29
+ {% if palettes.count > 1 or param.forceFileNameEnum %}
30
+ {% set accessPrefix %}{{accessModifier}} {% endset %}
31
+ {% for palette in palettes %}
32
+ enum {{palette.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} {
33
+ {% filter indent:2 %}{% call enumBlock palette.colors accessPrefix %}{% endfilter %}
34
+ }
35
+ {% endfor %}
36
+ {% else %}
37
+ {% call enumBlock palettes.first.colors "" %}
38
+ {% endif %}
39
+ }
40
+ // swiftlint:enable identifier_name line_length type_body_length
41
+ {% else %}
42
+ // No color found
43
+ {% endif %}