yk_command 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/.idea/vcs.xml +2 -0
  3. data/.idea/yk_command.iml +6 -6
  4. data/Gemfile.lock +3 -3
  5. data/lib/yk_command/analyze/analyze.rb +4 -0
  6. data/lib/yk_command/bot/wx_bot.rb +0 -10
  7. data/lib/yk_command/module/module_handler.rb +119 -0
  8. data/lib/yk_command/module/template/objc/CategoryHeader.h +1 -1
  9. data/lib/yk_command/module/template/objc/RouterRegister.m +6 -5
  10. data/lib/yk_command/module/template/objc/ServiceRegister.m +1 -1
  11. data/lib/yk_command/module/yk_module.rb +138 -144
  12. data/lib/yk_command/project/YKProjectTemplate/.gitignore +37 -0
  13. data/lib/yk_command/project/YKProjectTemplate/CODE_OF_CONDUCT.md +40 -0
  14. data/lib/yk_command/project/YKProjectTemplate/LICENSE +21 -0
  15. data/lib/yk_command/project/YKProjectTemplate/NAME-osx.podspec +43 -0
  16. data/lib/yk_command/project/YKProjectTemplate/NAME.podspec +27 -0
  17. data/lib/yk_command/project/YKProjectTemplate/POD_LICENSE +19 -0
  18. data/lib/yk_command/project/YKProjectTemplate/POD_README.md +29 -0
  19. data/lib/yk_command/project/YKProjectTemplate/Pod/Assets/.gitkeep +0 -0
  20. data/lib/yk_command/project/YKProjectTemplate/Pod/Classes/.gitkeep +0 -0
  21. data/lib/yk_command/project/YKProjectTemplate/README.md +22 -0
  22. data/lib/yk_command/project/YKProjectTemplate/configure +12 -0
  23. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/Base.lproj/LaunchScreen.storyboard +31 -0
  24. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/Base.lproj/Main.storyboard +79 -0
  25. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/CPDAppDelegate.h +15 -0
  26. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/CPDAppDelegate.m +46 -0
  27. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/CPDViewController.h +13 -0
  28. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/CPDViewController.m +60 -0
  29. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/Images.xcassets/AppIcon.appiconset/Contents.json +98 -0
  30. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/PROJECT-Info.plist +49 -0
  31. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/PROJECT-Prefix.pch +16 -0
  32. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/en.lproj/InfoPlist.strings +2 -0
  33. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/main.m +17 -0
  34. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT.xcodeproj/project.pbxproj +500 -0
  35. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  36. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +101 -0
  37. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/Podfile +19 -0
  38. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/Tests/Tests-Info.plist +22 -0
  39. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/Tests/Tests-Prefix.pch +7 -0
  40. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/Tests/Tests.m +9 -0
  41. data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/Tests/en.lproj/InfoPlist.strings +2 -0
  42. data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT/AppDelegate.swift +26 -0
  43. data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT/Assets.xcassets/AppIcon.appiconset/Contents.json +58 -0
  44. data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT/Base.lproj/Main.storyboard +717 -0
  45. data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT/Info.plist +30 -0
  46. data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT/PROJECT.entitlements +10 -0
  47. data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT/ViewController.swift +27 -0
  48. data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT.xcodeproj/project.pbxproj +444 -0
  49. data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  50. data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +103 -0
  51. data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/Podfile +11 -0
  52. data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/Tests/Info.plist +22 -0
  53. data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/Tests/Tests.swift +1 -0
  54. data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT/AppDelegate.swift +46 -0
  55. data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT/Base.lproj/LaunchScreen.xib +46 -0
  56. data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT/Base.lproj/Main.storyboard +86 -0
  57. data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
  58. data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT/Info.plist +39 -0
  59. data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT/ViewController.swift +37 -0
  60. data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT.xcodeproj/project.pbxproj +468 -0
  61. data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  62. data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +117 -0
  63. data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/Podfile +20 -0
  64. data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/Tests/Info.plist +24 -0
  65. data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/Tests/Tests.swift +1 -0
  66. data/lib/yk_command/project/setup/ConfigureMacOSSwift.rb +46 -0
  67. data/lib/yk_command/project/setup/ConfigureSwift.rb +40 -0
  68. data/lib/yk_command/project/setup/ConfigureiOS.rb +107 -0
  69. data/lib/yk_command/project/setup/MessageBank.rb +113 -0
  70. data/lib/yk_command/project/setup/ProjectManipulator.rb +141 -0
  71. data/lib/yk_command/project/setup/TemplateConfigurator.rb +253 -0
  72. data/lib/yk_command/project/test_examples/kiwi.m +36 -0
  73. data/lib/yk_command/project/test_examples/quick.swift +50 -0
  74. data/lib/yk_command/project/test_examples/specta.m +39 -0
  75. data/lib/yk_command/project/test_examples/xctest.m +26 -0
  76. data/lib/yk_command/project/test_examples/xctest.swift +28 -0
  77. data/lib/yk_command/project/yk_project.rb +86 -0
  78. data/lib/yk_command/version.rb +1 -1
  79. data/yk_command.gemspec +2 -1
  80. metadata +76 -11
  81. data/.YKModuleFilesConfig.yml +0 -5
  82. data//345/275/222/346/241/243.zip +0 -0
@@ -0,0 +1,468 @@
1
+ // !$*UTF8*$!
2
+ {
3
+ archiveVersion = 1;
4
+ classes = {
5
+ };
6
+ objectVersion = 46;
7
+ objects = {
8
+
9
+ /* Begin PBXBuildFile section */
10
+ 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD51AFB9204008FA782 /* AppDelegate.swift */; };
11
+ 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACD71AFB9204008FA782 /* ViewController.swift */; };
12
+ 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 607FACD91AFB9204008FA782 /* Main.storyboard */; };
13
+ 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; };
14
+ 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; };
15
+ 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; };
16
+ /* End PBXBuildFile section */
17
+
18
+ /* Begin PBXContainerItemProxy section */
19
+ 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */ = {
20
+ isa = PBXContainerItemProxy;
21
+ containerPortal = 607FACC81AFB9204008FA782 /* Project object */;
22
+ proxyType = 1;
23
+ remoteGlobalIDString = 607FACCF1AFB9204008FA782;
24
+ remoteInfo = "PROJECT";
25
+ };
26
+ /* End PBXContainerItemProxy section */
27
+
28
+ /* Begin PBXFileReference section */
29
+ 607FACD01AFB9204008FA782 /* PROJECT_Example.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PROJECT_Example.app; sourceTree = BUILT_PRODUCTS_DIR; };
30
+ 607FACD41AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
31
+ 607FACD51AFB9204008FA782 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
32
+ 607FACD71AFB9204008FA782 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
33
+ 607FACDA1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
34
+ 607FACDC1AFB9204008FA782 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
35
+ 607FACDF1AFB9204008FA782 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/LaunchScreen.xib; sourceTree = "<group>"; };
36
+ 607FACE51AFB9204008FA782 /* PROJECT_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PROJECT_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
37
+ 607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
38
+ 607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = "<group>"; };
39
+ /* End PBXFileReference section */
40
+
41
+ /* Begin PBXFrameworksBuildPhase section */
42
+ 607FACCD1AFB9204008FA782 /* Frameworks */ = {
43
+ isa = PBXFrameworksBuildPhase;
44
+ buildActionMask = 2147483647;
45
+ files = (
46
+ );
47
+ runOnlyForDeploymentPostprocessing = 0;
48
+ };
49
+ 607FACE21AFB9204008FA782 /* Frameworks */ = {
50
+ isa = PBXFrameworksBuildPhase;
51
+ buildActionMask = 2147483647;
52
+ files = (
53
+ );
54
+ runOnlyForDeploymentPostprocessing = 0;
55
+ };
56
+ /* End PBXFrameworksBuildPhase section */
57
+
58
+ /* Begin PBXGroup section */
59
+ 607FACC71AFB9204008FA782 = {
60
+ isa = PBXGroup;
61
+ children = (
62
+ 607FACF51AFB993E008FA782 /* Podspec Metadata */,
63
+ 607FACD21AFB9204008FA782 /* Example for PROJECT */,
64
+ 607FACE81AFB9204008FA782 /* Tests */,
65
+ 607FACD11AFB9204008FA782 /* Products */,
66
+ );
67
+ sourceTree = "<group>";
68
+ };
69
+ 607FACD11AFB9204008FA782 /* Products */ = {
70
+ isa = PBXGroup;
71
+ children = (
72
+ 607FACD01AFB9204008FA782 /* PROJECT_Example.app */,
73
+ 607FACE51AFB9204008FA782 /* PROJECT_Tests.xctest */,
74
+ );
75
+ name = Products;
76
+ sourceTree = "<group>";
77
+ };
78
+ 607FACD21AFB9204008FA782 /* Example for PROJECT */ = {
79
+ isa = PBXGroup;
80
+ children = (
81
+ 607FACD51AFB9204008FA782 /* AppDelegate.swift */,
82
+ 607FACD71AFB9204008FA782 /* ViewController.swift */,
83
+ 607FACD91AFB9204008FA782 /* Main.storyboard */,
84
+ 607FACDC1AFB9204008FA782 /* Images.xcassets */,
85
+ 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */,
86
+ 607FACD31AFB9204008FA782 /* Supporting Files */,
87
+ );
88
+ name = "Example for PROJECT";
89
+ path = "PROJECT";
90
+ sourceTree = "<group>";
91
+ };
92
+ 607FACD31AFB9204008FA782 /* Supporting Files */ = {
93
+ isa = PBXGroup;
94
+ children = (
95
+ 607FACD41AFB9204008FA782 /* Info.plist */,
96
+ );
97
+ name = "Supporting Files";
98
+ sourceTree = "<group>";
99
+ };
100
+ 607FACE81AFB9204008FA782 /* Tests */ = {
101
+ isa = PBXGroup;
102
+ children = (
103
+ 607FACEB1AFB9204008FA782 /* Tests.swift */,
104
+ 607FACE91AFB9204008FA782 /* Supporting Files */,
105
+ );
106
+ path = Tests;
107
+ sourceTree = "<group>";
108
+ };
109
+ 607FACE91AFB9204008FA782 /* Supporting Files */ = {
110
+ isa = PBXGroup;
111
+ children = (
112
+ 607FACEA1AFB9204008FA782 /* Info.plist */,
113
+ );
114
+ name = "Supporting Files";
115
+ sourceTree = "<group>";
116
+ };
117
+ 607FACF51AFB993E008FA782 /* Podspec Metadata */ = {
118
+ isa = PBXGroup;
119
+ children = (
120
+ );
121
+ name = "Podspec Metadata";
122
+ sourceTree = "<group>";
123
+ };
124
+ /* End PBXGroup section */
125
+
126
+ /* Begin PBXNativeTarget section */
127
+ 607FACCF1AFB9204008FA782 /* PROJECT_Example */ = {
128
+ isa = PBXNativeTarget;
129
+ buildConfigurationList = 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "PROJECT_Example" */;
130
+ buildPhases = (
131
+ 607FACCC1AFB9204008FA782 /* Sources */,
132
+ 607FACCD1AFB9204008FA782 /* Frameworks */,
133
+ 607FACCE1AFB9204008FA782 /* Resources */,
134
+ );
135
+ buildRules = (
136
+ );
137
+ dependencies = (
138
+ );
139
+ name = "PROJECT_Example";
140
+ productName = "PROJECT";
141
+ productReference = 607FACD01AFB9204008FA782 /* PROJECT_Example.app */;
142
+ productType = "com.apple.product-type.application";
143
+ };
144
+ 607FACE41AFB9204008FA782 /* PROJECT_Tests */ = {
145
+ isa = PBXNativeTarget;
146
+ buildConfigurationList = 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "PROJECT_Tests" */;
147
+ buildPhases = (
148
+ 607FACE11AFB9204008FA782 /* Sources */,
149
+ 607FACE21AFB9204008FA782 /* Frameworks */,
150
+ 607FACE31AFB9204008FA782 /* Resources */,
151
+ );
152
+ buildRules = (
153
+ );
154
+ dependencies = (
155
+ 607FACE71AFB9204008FA782 /* PBXTargetDependency */,
156
+ );
157
+ name = "PROJECT_Tests";
158
+ productName = Tests;
159
+ productReference = 607FACE51AFB9204008FA782 /* PROJECT_Tests.xctest */;
160
+ productType = "com.apple.product-type.bundle.unit-test";
161
+ };
162
+ /* End PBXNativeTarget section */
163
+
164
+ /* Begin PBXProject section */
165
+ 607FACC81AFB9204008FA782 /* Project object */ = {
166
+ isa = PBXProject;
167
+ attributes = {
168
+ LastSwiftUpdateCheck = 0830;
169
+ LastUpgradeCheck = 0830;
170
+ ORGANIZATIONNAME = CocoaPods;
171
+ TargetAttributes = {
172
+ 607FACCF1AFB9204008FA782 = {
173
+ CreatedOnToolsVersion = 6.3.1;
174
+ LastSwiftMigration = 0900;
175
+ };
176
+ 607FACE41AFB9204008FA782 = {
177
+ CreatedOnToolsVersion = 6.3.1;
178
+ LastSwiftMigration = 0900;
179
+ TestTargetID = 607FACCF1AFB9204008FA782;
180
+ };
181
+ };
182
+ };
183
+ buildConfigurationList = 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "PROJECT" */;
184
+ compatibilityVersion = "Xcode 3.2";
185
+ developmentRegion = English;
186
+ hasScannedForEncodings = 0;
187
+ knownRegions = (
188
+ en,
189
+ Base,
190
+ );
191
+ mainGroup = 607FACC71AFB9204008FA782;
192
+ productRefGroup = 607FACD11AFB9204008FA782 /* Products */;
193
+ projectDirPath = "";
194
+ projectRoot = "";
195
+ targets = (
196
+ 607FACCF1AFB9204008FA782 /* PROJECT_Example */,
197
+ 607FACE41AFB9204008FA782 /* PROJECT_Tests */,
198
+ );
199
+ };
200
+ /* End PBXProject section */
201
+
202
+ /* Begin PBXResourcesBuildPhase section */
203
+ 607FACCE1AFB9204008FA782 /* Resources */ = {
204
+ isa = PBXResourcesBuildPhase;
205
+ buildActionMask = 2147483647;
206
+ files = (
207
+ 607FACDB1AFB9204008FA782 /* Main.storyboard in Resources */,
208
+ 607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */,
209
+ 607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */,
210
+ );
211
+ runOnlyForDeploymentPostprocessing = 0;
212
+ };
213
+ 607FACE31AFB9204008FA782 /* Resources */ = {
214
+ isa = PBXResourcesBuildPhase;
215
+ buildActionMask = 2147483647;
216
+ files = (
217
+ );
218
+ runOnlyForDeploymentPostprocessing = 0;
219
+ };
220
+ /* End PBXResourcesBuildPhase section */
221
+
222
+ /* Begin PBXSourcesBuildPhase section */
223
+ 607FACCC1AFB9204008FA782 /* Sources */ = {
224
+ isa = PBXSourcesBuildPhase;
225
+ buildActionMask = 2147483647;
226
+ files = (
227
+ 607FACD81AFB9204008FA782 /* ViewController.swift in Sources */,
228
+ 607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */,
229
+ );
230
+ runOnlyForDeploymentPostprocessing = 0;
231
+ };
232
+ 607FACE11AFB9204008FA782 /* Sources */ = {
233
+ isa = PBXSourcesBuildPhase;
234
+ buildActionMask = 2147483647;
235
+ files = (
236
+ 607FACEC1AFB9204008FA782 /* Tests.swift in Sources */,
237
+ );
238
+ runOnlyForDeploymentPostprocessing = 0;
239
+ };
240
+ /* End PBXSourcesBuildPhase section */
241
+
242
+ /* Begin PBXTargetDependency section */
243
+ 607FACE71AFB9204008FA782 /* PBXTargetDependency */ = {
244
+ isa = PBXTargetDependency;
245
+ target = 607FACCF1AFB9204008FA782 /* PROJECT_Example */;
246
+ targetProxy = 607FACE61AFB9204008FA782 /* PBXContainerItemProxy */;
247
+ };
248
+ /* End PBXTargetDependency section */
249
+
250
+ /* Begin PBXVariantGroup section */
251
+ 607FACD91AFB9204008FA782 /* Main.storyboard */ = {
252
+ isa = PBXVariantGroup;
253
+ children = (
254
+ 607FACDA1AFB9204008FA782 /* Base */,
255
+ );
256
+ name = Main.storyboard;
257
+ sourceTree = "<group>";
258
+ };
259
+ 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */ = {
260
+ isa = PBXVariantGroup;
261
+ children = (
262
+ 607FACDF1AFB9204008FA782 /* Base */,
263
+ );
264
+ name = LaunchScreen.xib;
265
+ sourceTree = "<group>";
266
+ };
267
+ /* End PBXVariantGroup section */
268
+
269
+ /* Begin XCBuildConfiguration section */
270
+ 607FACED1AFB9204008FA782 /* Debug */ = {
271
+ isa = XCBuildConfiguration;
272
+ buildSettings = {
273
+ ALWAYS_SEARCH_USER_PATHS = NO;
274
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
275
+ CLANG_CXX_LIBRARY = "libc++";
276
+ CLANG_ENABLE_MODULES = YES;
277
+ CLANG_ENABLE_OBJC_ARC = YES;
278
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
279
+ CLANG_WARN_BOOL_CONVERSION = YES;
280
+ CLANG_WARN_COMMA = YES;
281
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
282
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
283
+ CLANG_WARN_EMPTY_BODY = YES;
284
+ CLANG_WARN_ENUM_CONVERSION = YES;
285
+ CLANG_WARN_INFINITE_RECURSION = YES;
286
+ CLANG_WARN_INT_CONVERSION = YES;
287
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
288
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
289
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
290
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
291
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
292
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
293
+ CLANG_WARN_UNREACHABLE_CODE = YES;
294
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
295
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
296
+ COPY_PHASE_STRIP = NO;
297
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
298
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
299
+ ENABLE_TESTABILITY = YES;
300
+ GCC_C_LANGUAGE_STANDARD = gnu99;
301
+ GCC_DYNAMIC_NO_PIC = NO;
302
+ GCC_NO_COMMON_BLOCKS = YES;
303
+ GCC_OPTIMIZATION_LEVEL = 0;
304
+ GCC_PREPROCESSOR_DEFINITIONS = (
305
+ "DEBUG=1",
306
+ "$(inherited)",
307
+ );
308
+ GCC_SYMBOLS_PRIVATE_EXTERN = NO;
309
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
310
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
311
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
312
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
313
+ GCC_WARN_UNUSED_FUNCTION = YES;
314
+ GCC_WARN_UNUSED_VARIABLE = YES;
315
+ IPHONEOS_DEPLOYMENT_TARGET = 9.3;
316
+ MTL_ENABLE_DEBUG_INFO = YES;
317
+ ONLY_ACTIVE_ARCH = YES;
318
+ SDKROOT = iphoneos;
319
+ SWIFT_OPTIMIZATION_LEVEL = "-Onone";
320
+ };
321
+ name = Debug;
322
+ };
323
+ 607FACEE1AFB9204008FA782 /* Release */ = {
324
+ isa = XCBuildConfiguration;
325
+ buildSettings = {
326
+ ALWAYS_SEARCH_USER_PATHS = NO;
327
+ CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
328
+ CLANG_CXX_LIBRARY = "libc++";
329
+ CLANG_ENABLE_MODULES = YES;
330
+ CLANG_ENABLE_OBJC_ARC = YES;
331
+ CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
332
+ CLANG_WARN_BOOL_CONVERSION = YES;
333
+ CLANG_WARN_COMMA = YES;
334
+ CLANG_WARN_CONSTANT_CONVERSION = YES;
335
+ CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
336
+ CLANG_WARN_EMPTY_BODY = YES;
337
+ CLANG_WARN_ENUM_CONVERSION = YES;
338
+ CLANG_WARN_INFINITE_RECURSION = YES;
339
+ CLANG_WARN_INT_CONVERSION = YES;
340
+ CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
341
+ CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
342
+ CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
343
+ CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
344
+ CLANG_WARN_STRICT_PROTOTYPES = YES;
345
+ CLANG_WARN_SUSPICIOUS_MOVE = YES;
346
+ CLANG_WARN_UNREACHABLE_CODE = YES;
347
+ CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
348
+ "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
349
+ COPY_PHASE_STRIP = NO;
350
+ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
351
+ ENABLE_NS_ASSERTIONS = NO;
352
+ ENABLE_STRICT_OBJC_MSGSEND = YES;
353
+ GCC_C_LANGUAGE_STANDARD = gnu99;
354
+ GCC_NO_COMMON_BLOCKS = YES;
355
+ GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
356
+ GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
357
+ GCC_WARN_UNDECLARED_SELECTOR = YES;
358
+ GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
359
+ GCC_WARN_UNUSED_FUNCTION = YES;
360
+ GCC_WARN_UNUSED_VARIABLE = YES;
361
+ IPHONEOS_DEPLOYMENT_TARGET = 9.3;
362
+ MTL_ENABLE_DEBUG_INFO = NO;
363
+ SDKROOT = iphoneos;
364
+ SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
365
+ VALIDATE_PRODUCT = YES;
366
+ };
367
+ name = Release;
368
+ };
369
+ 607FACF01AFB9204008FA782 /* Debug */ = {
370
+ isa = XCBuildConfiguration;
371
+ buildSettings = {
372
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
373
+ INFOPLIST_FILE = "PROJECT/Info.plist";
374
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
375
+ MODULE_NAME = ExampleApp;
376
+ PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
377
+ PRODUCT_NAME = "$(TARGET_NAME)";
378
+ SWIFT_SWIFT3_OBJC_INFERENCE = Default;
379
+ SWIFT_VERSION = 4.0;
380
+ };
381
+ name = Debug;
382
+ };
383
+ 607FACF11AFB9204008FA782 /* Release */ = {
384
+ isa = XCBuildConfiguration;
385
+ buildSettings = {
386
+ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
387
+ INFOPLIST_FILE = "PROJECT/Info.plist";
388
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
389
+ MODULE_NAME = ExampleApp;
390
+ PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
391
+ PRODUCT_NAME = "$(TARGET_NAME)";
392
+ SWIFT_SWIFT3_OBJC_INFERENCE = Default;
393
+ SWIFT_VERSION = 4.0;
394
+ };
395
+ name = Release;
396
+ };
397
+ 607FACF31AFB9204008FA782 /* Debug */ = {
398
+ isa = XCBuildConfiguration;
399
+ buildSettings = {
400
+ FRAMEWORK_SEARCH_PATHS = (
401
+ "$(PLATFORM_DIR)/Developer/Library/Frameworks",
402
+ "$(inherited)",
403
+ );
404
+ GCC_PREPROCESSOR_DEFINITIONS = (
405
+ "DEBUG=1",
406
+ "$(inherited)",
407
+ );
408
+ INFOPLIST_FILE = Tests/Info.plist;
409
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
410
+ PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
411
+ PRODUCT_NAME = "$(TARGET_NAME)";
412
+ SWIFT_SWIFT3_OBJC_INFERENCE = Default;
413
+ SWIFT_VERSION = 4.0;
414
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PROJECT_Example.app/PROJECT_Example";
415
+ };
416
+ name = Debug;
417
+ };
418
+ 607FACF41AFB9204008FA782 /* Release */ = {
419
+ isa = XCBuildConfiguration;
420
+ buildSettings = {
421
+ FRAMEWORK_SEARCH_PATHS = (
422
+ "$(PLATFORM_DIR)/Developer/Library/Frameworks",
423
+ "$(inherited)",
424
+ );
425
+ INFOPLIST_FILE = Tests/Info.plist;
426
+ LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
427
+ PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
428
+ PRODUCT_NAME = "$(TARGET_NAME)";
429
+ SWIFT_VERSION = 4.0;
430
+ SWIFT_SWIFT3_OBJC_INFERENCE = Default;
431
+ TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PROJECT_Example.app/PROJECT_Example";
432
+ };
433
+ name = Release;
434
+ };
435
+ /* End XCBuildConfiguration section */
436
+
437
+ /* Begin XCConfigurationList section */
438
+ 607FACCB1AFB9204008FA782 /* Build configuration list for PBXProject "PROJECT" */ = {
439
+ isa = XCConfigurationList;
440
+ buildConfigurations = (
441
+ 607FACED1AFB9204008FA782 /* Debug */,
442
+ 607FACEE1AFB9204008FA782 /* Release */,
443
+ );
444
+ defaultConfigurationIsVisible = 0;
445
+ defaultConfigurationName = Release;
446
+ };
447
+ 607FACEF1AFB9204008FA782 /* Build configuration list for PBXNativeTarget "PROJECT_Example" */ = {
448
+ isa = XCConfigurationList;
449
+ buildConfigurations = (
450
+ 607FACF01AFB9204008FA782 /* Debug */,
451
+ 607FACF11AFB9204008FA782 /* Release */,
452
+ );
453
+ defaultConfigurationIsVisible = 0;
454
+ defaultConfigurationName = Release;
455
+ };
456
+ 607FACF21AFB9204008FA782 /* Build configuration list for PBXNativeTarget "PROJECT_Tests" */ = {
457
+ isa = XCConfigurationList;
458
+ buildConfigurations = (
459
+ 607FACF31AFB9204008FA782 /* Debug */,
460
+ 607FACF41AFB9204008FA782 /* Release */,
461
+ );
462
+ defaultConfigurationIsVisible = 0;
463
+ defaultConfigurationName = Release;
464
+ };
465
+ /* End XCConfigurationList section */
466
+ };
467
+ rootObject = 607FACC81AFB9204008FA782 /* Project object */;
468
+ }
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Workspace
3
+ version = "1.0">
4
+ <FileRef
5
+ location = "self:PROJECT.xcodeproj">
6
+ </FileRef>
7
+ </Workspace>
@@ -0,0 +1,117 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Scheme
3
+ LastUpgradeVersion = "0900"
4
+ version = "1.3">
5
+ <BuildAction
6
+ parallelizeBuildables = "YES"
7
+ buildImplicitDependencies = "YES">
8
+ <BuildActionEntries>
9
+ <BuildActionEntry
10
+ buildForTesting = "YES"
11
+ buildForRunning = "YES"
12
+ buildForProfiling = "YES"
13
+ buildForArchiving = "YES"
14
+ buildForAnalyzing = "YES">
15
+ <BuildableReference
16
+ BuildableIdentifier = "primary"
17
+ BlueprintIdentifier = "607FACCF1AFB9204008FA782"
18
+ BuildableName = "PROJECT_Example.app"
19
+ BlueprintName = "PROJECT_Example"
20
+ ReferencedContainer = "container:PROJECT.xcodeproj">
21
+ </BuildableReference>
22
+ </BuildActionEntry>
23
+ <BuildActionEntry
24
+ buildForTesting = "YES"
25
+ buildForRunning = "YES"
26
+ buildForProfiling = "NO"
27
+ buildForArchiving = "NO"
28
+ buildForAnalyzing = "YES">
29
+ <BuildableReference
30
+ BuildableIdentifier = "primary"
31
+ BlueprintIdentifier = "607FACE41AFB9204008FA782"
32
+ BuildableName = "PROJECT_Tests.xctest"
33
+ BlueprintName = "PROJECT_Tests"
34
+ ReferencedContainer = "container:PROJECT.xcodeproj">
35
+ </BuildableReference>
36
+ </BuildActionEntry>
37
+ </BuildActionEntries>
38
+ </BuildAction>
39
+ <TestAction
40
+ buildConfiguration = "Debug"
41
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
42
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
43
+ language = ""
44
+ shouldUseLaunchSchemeArgsEnv = "YES">
45
+ <Testables>
46
+ <TestableReference
47
+ skipped = "NO">
48
+ <BuildableReference
49
+ BuildableIdentifier = "primary"
50
+ BlueprintIdentifier = "607FACE41AFB9204008FA782"
51
+ BuildableName = "PROJECT_Tests.xctest"
52
+ BlueprintName = "PROJECT_Tests"
53
+ ReferencedContainer = "container:PROJECT.xcodeproj">
54
+ </BuildableReference>
55
+ </TestableReference>
56
+ </Testables>
57
+ <MacroExpansion>
58
+ <BuildableReference
59
+ BuildableIdentifier = "primary"
60
+ BlueprintIdentifier = "607FACCF1AFB9204008FA782"
61
+ BuildableName = "PROJECT_Example.app"
62
+ BlueprintName = "PROJECT_Example"
63
+ ReferencedContainer = "container:PROJECT.xcodeproj">
64
+ </BuildableReference>
65
+ </MacroExpansion>
66
+ <AdditionalOptions>
67
+ </AdditionalOptions>
68
+ </TestAction>
69
+ <LaunchAction
70
+ buildConfiguration = "Debug"
71
+ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
72
+ selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
73
+ language = ""
74
+ launchStyle = "0"
75
+ useCustomWorkingDirectory = "NO"
76
+ ignoresPersistentStateOnLaunch = "NO"
77
+ debugDocumentVersioning = "YES"
78
+ debugServiceExtension = "internal"
79
+ allowLocationSimulation = "YES">
80
+ <BuildableProductRunnable
81
+ runnableDebuggingMode = "0">
82
+ <BuildableReference
83
+ BuildableIdentifier = "primary"
84
+ BlueprintIdentifier = "607FACCF1AFB9204008FA782"
85
+ BuildableName = "PROJECT_Example.app"
86
+ BlueprintName = "PROJECT_Example"
87
+ ReferencedContainer = "container:PROJECT.xcodeproj">
88
+ </BuildableReference>
89
+ </BuildableProductRunnable>
90
+ <AdditionalOptions>
91
+ </AdditionalOptions>
92
+ </LaunchAction>
93
+ <ProfileAction
94
+ buildConfiguration = "Release"
95
+ shouldUseLaunchSchemeArgsEnv = "YES"
96
+ savedToolIdentifier = ""
97
+ useCustomWorkingDirectory = "NO"
98
+ debugDocumentVersioning = "YES">
99
+ <BuildableProductRunnable
100
+ runnableDebuggingMode = "0">
101
+ <BuildableReference
102
+ BuildableIdentifier = "primary"
103
+ BlueprintIdentifier = "607FACCF1AFB9204008FA782"
104
+ BuildableName = "PROJECT_Example.app"
105
+ BlueprintName = "PROJECT_Example"
106
+ ReferencedContainer = "container:PROJECT.xcodeproj">
107
+ </BuildableReference>
108
+ </BuildableProductRunnable>
109
+ </ProfileAction>
110
+ <AnalyzeAction
111
+ buildConfiguration = "Debug">
112
+ </AnalyzeAction>
113
+ <ArchiveAction
114
+ buildConfiguration = "Release"
115
+ revealArchiveInOrganizer = "YES">
116
+ </ArchiveAction>
117
+ </Scheme>
@@ -0,0 +1,20 @@
1
+
2
+
3
+ platform :ios, '10.0'
4
+
5
+ inhibit_all_warnings!
6
+ use_modular_headers!
7
+ use_frameworks! :linkage => :static
8
+
9
+
10
+
11
+
12
+ target '${POD_NAME}_Example' do
13
+ pod '${POD_NAME}', :path => '../'
14
+
15
+ target '${POD_NAME}_Tests' do
16
+ inherit! :search_paths
17
+
18
+ ${INCLUDED_PODS}
19
+ end
20
+ end
@@ -0,0 +1,24 @@
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>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>$(EXECUTABLE_NAME)</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>$(PRODUCT_NAME)</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>BNDL</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>1.0</string>
19
+ <key>CFBundleSignature</key>
20
+ <string>????</string>
21
+ <key>CFBundleVersion</key>
22
+ <string>1</string>
23
+ </dict>
24
+ </plist>
@@ -0,0 +1,46 @@
1
+ module Pod
2
+
3
+ class ConfigureMacOSSwift
4
+ attr_reader :configurator
5
+
6
+ def self.perform(options)
7
+ new(options).perform
8
+ end
9
+
10
+ def initialize(options)
11
+ @configurator = options.fetch(:configurator)
12
+ end
13
+
14
+ def perform
15
+ keep_demo = configurator.ask_with_answers("Would you like to include a demo application with your library", ["Yes", "No"]).to_sym
16
+
17
+ framework = configurator.ask_with_answers("Which testing frameworks will you use", ["Quick", "None"]).to_sym
18
+ case framework
19
+ when :quick
20
+ configurator.add_pod_to_podfile "Quick', '~> 2.2.0"
21
+ configurator.add_pod_to_podfile "Nimble', '~> 8.0.7"
22
+ configurator.set_test_framework "quick", "swift", "macos-swift"
23
+
24
+ when :none
25
+ configurator.set_test_framework "xctest", "swift", "macos-swift"
26
+ end
27
+
28
+ Pod::ProjectManipulator.new({
29
+ :configurator => @configurator,
30
+ :xcodeproj_path => "templates/macos-swift/Example/PROJECT.xcodeproj",
31
+ :platform => :osx,
32
+ :remove_demo_project => (keep_demo == :no),
33
+ :prefix => ""
34
+ }).run
35
+
36
+ `mv ./templates/macos-swift/* ./`
37
+
38
+ # There has to be a single file in the Classes dir
39
+ # or a framework won't be created
40
+ `touch Pod/Classes/ReplaceMe.swift`
41
+
42
+ `mv ./NAME-osx.podspec ./NAME.podspec`
43
+ end
44
+ end
45
+
46
+ end