ykioscmd 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (198) hide show
  1. checksums.yaml +7 -0
  2. data/.DS_Store +0 -0
  3. data/.YKPodSpecConfig.yml +5 -0
  4. data/.idea/inspectionProfiles/Project_Default.xml +6 -0
  5. data/.idea/misc.xml +4 -0
  6. data/.idea/ruby-client.iml +38 -0
  7. data/.idea/vcs.xml +6 -0
  8. data/.idea/workspace.xml +8388 -0
  9. data/.idea/yk_command.iml +105 -0
  10. data/.ruby-version +1 -0
  11. data/Gemfile +16 -0
  12. data/Gemfile.lock +153 -0
  13. data/README.html +109 -0
  14. data/README.md +104 -0
  15. data/Rakefile +4 -0
  16. data/bin/console +15 -0
  17. data/bin/setup +8 -0
  18. data/bin/ykioscmd +7 -0
  19. data/configruation-files/.YKBotConfig.yml +4 -0
  20. data/configruation-files/.YKGitlabConfig.yml +3 -0
  21. data/configruation-files/.YKProjectConfig.yml +4 -0
  22. data/configruation-files/.YKServerConfig.yml +3 -0
  23. data/debugProject/.DS_Store +0 -0
  24. data/images/Xnip2022-04-26_17-25-30.jpg +0 -0
  25. data/images/Xnip2022-04-26_17-27-32.jpg +0 -0
  26. data/images/Xnip2022-04-26_17-30-36.jpg +0 -0
  27. data/lib/.DS_Store +0 -0
  28. data/lib/yk_command/.DS_Store +0 -0
  29. data/lib/yk_command/analyze/analyze.rb +177 -0
  30. data/lib/yk_command/analyze/dependency_result.rb +138 -0
  31. data/lib/yk_command/analyze/request.rb +41 -0
  32. data/lib/yk_command/bot/wx_bot.rb +66 -0
  33. data/lib/yk_command/commands.rb +108 -0
  34. data/lib/yk_command/component_manage/component_manage_platform.rb +101 -0
  35. data/lib/yk_command/config/yk_config.rb +30 -0
  36. data/lib/yk_command/evaluate/evaluate.rb +7 -0
  37. data/lib/yk_command/gitlab/yk_gitlab.rb +77 -0
  38. data/lib/yk_command/module/.DS_Store +0 -0
  39. data/lib/yk_command/module/module_handler.rb +93 -0
  40. data/lib/yk_command/module/template/.DS_Store +0 -0
  41. data/lib/yk_command/module/template/objc/.DS_Store +0 -0
  42. data/lib/yk_command/module/template/objc/BusinessHeader.h +0 -0
  43. data/lib/yk_command/module/template/objc/CategoryHeader.h +12 -0
  44. data/lib/yk_command/module/template/objc/Helper.h +16 -0
  45. data/lib/yk_command/module/template/objc/Helper.m +41 -0
  46. data/lib/yk_command/module/template/objc/PrefixHeader.pch +30 -0
  47. data/lib/yk_command/module/template/objc/RouterRegister.h +16 -0
  48. data/lib/yk_command/module/template/objc/RouterRegister.m +26 -0
  49. data/lib/yk_command/module/template/objc/ServiceRegister.h +16 -0
  50. data/lib/yk_command/module/template/objc/ServiceRegister.m +21 -0
  51. data/lib/yk_command/module/template/objc/ToolsHeader.h +13 -0
  52. data/lib/yk_command/module/template/objc/VendorHeader.h +13 -0
  53. data/lib/yk_command/module/template/swift/.DS_Store +0 -0
  54. data/lib/yk_command/module/template/swift/PrefixHeader_swift.swift +10 -0
  55. data/lib/yk_command/module/template/swift/RouterRegisterSwift.swift +23 -0
  56. data/lib/yk_command/module/template/swift/ServiceRegisterSwift.swift +20 -0
  57. data/lib/yk_command/module/template/swift/Tool.swift +53 -0
  58. data/lib/yk_command/module/yk_module.rb +215 -0
  59. data/lib/yk_command/project/.DS_Store +0 -0
  60. data/lib/yk_command/project/full_component_demo_template/.gitignore +37 -0
  61. data/lib/yk_command/project/full_component_demo_template/.travis.yml +14 -0
  62. data/lib/yk_command/project/full_component_demo_template/CODE_OF_CONDUCT.md +40 -0
  63. data/lib/yk_command/project/full_component_demo_template/LICENSE +21 -0
  64. data/lib/yk_command/project/full_component_demo_template/NAME-osx.podspec +43 -0
  65. data/lib/yk_command/project/full_component_demo_template/NAME.podspec +151 -0
  66. data/lib/yk_command/project/full_component_demo_template/POD_LICENSE +19 -0
  67. data/lib/yk_command/project/full_component_demo_template/POD_README.md +29 -0
  68. data/lib/yk_command/project/full_component_demo_template/Pod/Assets/.gitkeep +0 -0
  69. data/lib/yk_command/project/full_component_demo_template/Pod/Classes/.gitkeep +0 -0
  70. data/lib/yk_command/project/full_component_demo_template/README.md +22 -0
  71. data/lib/yk_command/project/full_component_demo_template/configure +12 -0
  72. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/PROJECT/Base.lproj/LaunchScreen.storyboard +31 -0
  73. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/PROJECT/Base.lproj/Main.storyboard +79 -0
  74. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/PROJECT/CPDAppDelegate.h +15 -0
  75. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/PROJECT/CPDAppDelegate.m +46 -0
  76. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/PROJECT/CPDViewController.h +13 -0
  77. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/PROJECT/CPDViewController.m +47 -0
  78. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/PROJECT/Images.xcassets/AppIcon.appiconset/Contents.json +98 -0
  79. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/PROJECT/PROJECT-Info.plist +49 -0
  80. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/PROJECT/PROJECT-Prefix.pch +16 -0
  81. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/PROJECT/en.lproj/InfoPlist.strings +2 -0
  82. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/PROJECT/main.m +17 -0
  83. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/PROJECT.xcodeproj/project.pbxproj +500 -0
  84. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  85. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/PROJECT.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  86. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +101 -0
  87. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/Podfile +34 -0
  88. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/Tests/Tests-Info.plist +22 -0
  89. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/Tests/Tests-Prefix.pch +7 -0
  90. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/Tests/Tests.m +9 -0
  91. data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/Tests/en.lproj/InfoPlist.strings +2 -0
  92. data/lib/yk_command/project/full_component_demo_template/templates/macos-swift/Example/PROJECT/AppDelegate.swift +26 -0
  93. data/lib/yk_command/project/full_component_demo_template/templates/macos-swift/Example/PROJECT/Assets.xcassets/AppIcon.appiconset/Contents.json +58 -0
  94. data/lib/yk_command/project/full_component_demo_template/templates/macos-swift/Example/PROJECT/Base.lproj/Main.storyboard +717 -0
  95. data/lib/yk_command/project/full_component_demo_template/templates/macos-swift/Example/PROJECT/Info.plist +30 -0
  96. data/lib/yk_command/project/full_component_demo_template/templates/macos-swift/Example/PROJECT/PROJECT.entitlements +10 -0
  97. data/lib/yk_command/project/full_component_demo_template/templates/macos-swift/Example/PROJECT/ViewController.swift +27 -0
  98. data/lib/yk_command/project/full_component_demo_template/templates/macos-swift/Example/PROJECT.xcodeproj/project.pbxproj +444 -0
  99. data/lib/yk_command/project/full_component_demo_template/templates/macos-swift/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  100. data/lib/yk_command/project/full_component_demo_template/templates/macos-swift/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +103 -0
  101. data/lib/yk_command/project/full_component_demo_template/templates/macos-swift/Example/Podfile +11 -0
  102. data/lib/yk_command/project/full_component_demo_template/templates/macos-swift/Example/Tests/Info.plist +22 -0
  103. data/lib/yk_command/project/full_component_demo_template/templates/macos-swift/Example/Tests/Tests.swift +1 -0
  104. data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT/AppDelegate.swift +46 -0
  105. data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT/Base.lproj/LaunchScreen.xib +46 -0
  106. data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT/Base.lproj/Main.storyboard +86 -0
  107. data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT/Example-Bridging-Header.h +4 -0
  108. data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
  109. data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT/Info.plist +39 -0
  110. data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT/STTestAppDelegate.swift +16 -0
  111. data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT/Tests-Bridging-Header.h +4 -0
  112. data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT/ViewController.swift +51 -0
  113. data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT/YKEmptyOcFile.m +9 -0
  114. data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT.xcodeproj/project.pbxproj +489 -0
  115. data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  116. data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  117. data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +117 -0
  118. data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/Podfile +35 -0
  119. data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/Tests/Info.plist +24 -0
  120. data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/Tests/Tests.swift +1 -0
  121. data/lib/yk_command/project/setup/ConfigureMacOSSwift.rb +46 -0
  122. data/lib/yk_command/project/setup/ConfigureSwift.rb +42 -0
  123. data/lib/yk_command/project/setup/ConfigureiOS.rb +106 -0
  124. data/lib/yk_command/project/setup/MessageBank.rb +113 -0
  125. data/lib/yk_command/project/setup/ProjectManipulator.rb +141 -0
  126. data/lib/yk_command/project/setup/TemplateConfigurator.rb +258 -0
  127. data/lib/yk_command/project/simple_component_demo_template/.gitignore +37 -0
  128. data/lib/yk_command/project/simple_component_demo_template/.travis.yml +14 -0
  129. data/lib/yk_command/project/simple_component_demo_template/CODE_OF_CONDUCT.md +40 -0
  130. data/lib/yk_command/project/simple_component_demo_template/LICENSE +21 -0
  131. data/lib/yk_command/project/simple_component_demo_template/NAME-osx.podspec +43 -0
  132. data/lib/yk_command/project/simple_component_demo_template/NAME.podspec +140 -0
  133. data/lib/yk_command/project/simple_component_demo_template/POD_LICENSE +19 -0
  134. data/lib/yk_command/project/simple_component_demo_template/POD_README.md +29 -0
  135. data/lib/yk_command/project/simple_component_demo_template/Pod/Assets/.gitkeep +0 -0
  136. data/lib/yk_command/project/simple_component_demo_template/Pod/Classes/.gitkeep +0 -0
  137. data/lib/yk_command/project/simple_component_demo_template/README.md +22 -0
  138. data/lib/yk_command/project/simple_component_demo_template/configure +13 -0
  139. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/PROJECT/Base.lproj/LaunchScreen.storyboard +31 -0
  140. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/PROJECT/Base.lproj/Main.storyboard +79 -0
  141. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/PROJECT/CPDAppDelegate.h +15 -0
  142. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/PROJECT/CPDAppDelegate.m +46 -0
  143. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/PROJECT/CPDViewController.h +13 -0
  144. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/PROJECT/CPDViewController.m +37 -0
  145. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/PROJECT/Images.xcassets/AppIcon.appiconset/Contents.json +98 -0
  146. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/PROJECT/PROJECT-Info.plist +49 -0
  147. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/PROJECT/PROJECT-Prefix.pch +16 -0
  148. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/PROJECT/en.lproj/InfoPlist.strings +2 -0
  149. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/PROJECT/main.m +17 -0
  150. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/PROJECT.xcodeproj/project.pbxproj +500 -0
  151. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  152. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/PROJECT.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  153. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +101 -0
  154. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/Podfile +19 -0
  155. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/Tests/Tests-Info.plist +22 -0
  156. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/Tests/Tests-Prefix.pch +7 -0
  157. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/Tests/Tests.m +9 -0
  158. data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/Tests/en.lproj/InfoPlist.strings +2 -0
  159. data/lib/yk_command/project/simple_component_demo_template/templates/macos-swift/Example/PROJECT/AppDelegate.swift +26 -0
  160. data/lib/yk_command/project/simple_component_demo_template/templates/macos-swift/Example/PROJECT/Assets.xcassets/AppIcon.appiconset/Contents.json +58 -0
  161. data/lib/yk_command/project/simple_component_demo_template/templates/macos-swift/Example/PROJECT/Base.lproj/Main.storyboard +717 -0
  162. data/lib/yk_command/project/simple_component_demo_template/templates/macos-swift/Example/PROJECT/Info.plist +30 -0
  163. data/lib/yk_command/project/simple_component_demo_template/templates/macos-swift/Example/PROJECT/PROJECT.entitlements +10 -0
  164. data/lib/yk_command/project/simple_component_demo_template/templates/macos-swift/Example/PROJECT/ViewController.swift +27 -0
  165. data/lib/yk_command/project/simple_component_demo_template/templates/macos-swift/Example/PROJECT.xcodeproj/project.pbxproj +444 -0
  166. data/lib/yk_command/project/simple_component_demo_template/templates/macos-swift/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  167. data/lib/yk_command/project/simple_component_demo_template/templates/macos-swift/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +103 -0
  168. data/lib/yk_command/project/simple_component_demo_template/templates/macos-swift/Example/Podfile +11 -0
  169. data/lib/yk_command/project/simple_component_demo_template/templates/macos-swift/Example/Tests/Info.plist +22 -0
  170. data/lib/yk_command/project/simple_component_demo_template/templates/macos-swift/Example/Tests/Tests.swift +1 -0
  171. data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/PROJECT/AppDelegate.swift +46 -0
  172. data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/PROJECT/Base.lproj/LaunchScreen.xib +46 -0
  173. data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/PROJECT/Base.lproj/Main.storyboard +103 -0
  174. data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/PROJECT/EmptyOcFile.m +9 -0
  175. data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/PROJECT/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
  176. data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/PROJECT/Info.plist +39 -0
  177. data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/PROJECT/PROJECT_Example-Bridging-Header.h +4 -0
  178. data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/PROJECT/PROJECT_Tests-Bridging-Header.h +4 -0
  179. data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/PROJECT/ViewController.swift +32 -0
  180. data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/PROJECT.xcodeproj/project.pbxproj +489 -0
  181. data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
  182. data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/PROJECT.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
  183. data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +117 -0
  184. data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/Podfile +20 -0
  185. data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/Tests/Info.plist +24 -0
  186. data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/Tests/Tests.swift +1 -0
  187. data/lib/yk_command/project/test_examples/kiwi.m +36 -0
  188. data/lib/yk_command/project/test_examples/quick.swift +50 -0
  189. data/lib/yk_command/project/test_examples/specta.m +39 -0
  190. data/lib/yk_command/project/test_examples/xctest.m +26 -0
  191. data/lib/yk_command/project/test_examples/xctest.swift +28 -0
  192. data/lib/yk_command/project/yk_project.rb +92 -0
  193. data/lib/yk_command/repo_publish/component_default.yml +5 -0
  194. data/lib/yk_command/repo_publish/component_publish.rb +218 -0
  195. data/lib/yk_command/version.rb +5 -0
  196. data/lib/ykioscmd.rb +9 -0
  197. data/ykioscmd.gemspec +53 -0
  198. metadata +453 -0
@@ -0,0 +1,37 @@
1
+ # macOS
2
+ .DS_Store
3
+
4
+ # Xcode
5
+ build/
6
+ *.pbxuser
7
+ !default.pbxuser
8
+ *.mode1v3
9
+ !default.mode1v3
10
+ *.mode2v3
11
+ !default.mode2v3
12
+ *.perspectivev3
13
+ !default.perspectivev3
14
+ xcuserdata/
15
+ *.xccheckout
16
+ profile
17
+ *.moved-aside
18
+ DerivedData
19
+ *.hmap
20
+ *.ipa
21
+
22
+ # Bundler
23
+ .bundle
24
+
25
+ # Add this line if you want to avoid checking in source code from Carthage dependencies.
26
+ # Carthage/Checkouts
27
+
28
+ Carthage/Build
29
+
30
+ # We recommend against adding the Pods directory to your .gitignore. However
31
+ # you should judge for yourself, the pros and cons are mentioned at:
32
+ # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
33
+ #
34
+ # Note: if you ignore the Pods directory, make sure to uncomment
35
+ # `pod install` in .travis.yml
36
+ #
37
+ # Pods/
@@ -0,0 +1,14 @@
1
+ # references:
2
+ # * https://www.objc.io/issues/6-build-tools/travis-ci/
3
+ # * https://github.com/supermarin/xcpretty#usage
4
+
5
+ osx_image: xcode7.3
6
+ language: objective-c
7
+ # cache: cocoapods
8
+ # podfile: Example/Podfile
9
+ # before_install:
10
+ # - gem install cocoapods # Since Travis is not always on latest version
11
+ # - pod install --project-directory=Example
12
+ script:
13
+ - set -o pipefail && xcodebuild test -enableCodeCoverage YES -workspace Example/${POD_NAME}.xcworkspace -scheme ${POD_NAME}-Example -sdk iphonesimulator9.3 ONLY_ACTIVE_ARCH=NO | xcpretty
14
+ - pod lib lint
@@ -0,0 +1,40 @@
1
+ # CocoaPods Code of Conduct
2
+
3
+ CocoaPods strongly values contributors from anywhere, regardless of gender, sexual orientation, disability, physical appearance, body size, race, or religion. As a result, the CocoaPods team has agreed to and enforces this code of conduct in order to provide a harassment-free experience for everyone who participates in the development of CocoaPods.
4
+
5
+ ### Summary
6
+
7
+ Harassment in code and discussion or violation of physical boundaries is completely unacceptable anywhere in CocoaPods’ codebases, issue trackers, Slack, Campfire, mailing lists, meetups, and other events. Violators will be warned and then blocked or banned by the core team at or before the 3rd violation.
8
+
9
+ ### In detail
10
+
11
+ Harassment includes offensive verbal comments related to gender, sexual orientation, disability, physical appearance, body size, race, ethnicity, religion, sexual images, deliberate intimidation, stalking, sustained disruption, and unwelcome sexual attention.
12
+
13
+ Individuals asked to stop any harassing behavior are expected to comply immediately.
14
+
15
+ Maintainers, including the core team, are also subject to the anti-harassment policy.
16
+
17
+ If anyone engages in harassing behavior, including maintainers, we may take appropriate action, up to and including warning the offender, deletion of comments, removal from the project’s codebase and communication systems, and escalation to Github support.
18
+
19
+ If you are being harassed, notice that someone else is being harassed, or have any other concerns, please contact a member of [the core team](https://cocoapods.org/about) or [email the core team](mailto:info@cocoapods.org) immediately.
20
+
21
+ We expect everyone to follow these rules anywhere in the CocoaPods project’s codebases, issue trackers, IRC channel, group chat, and mailing lists.
22
+
23
+ This code of conduct applies both within project spaces and in public spaces when an individual is actively representing the project or its community. Due to their strong association with the project, core contributors are always seen as actively representing it.
24
+
25
+ Finally, don't forget that it is human to make mistakes! We all do. Let’s work together to help each other, resolve issues, and learn from the mistakes that we will all inevitably make from time to time.
26
+
27
+ ### Thanks
28
+
29
+ Thanks to the [Bundler Code of Conduct](https://github.com/bundler/bundler/blob/e3ce14f5ecd9b729338435c8689553ef209d83aa/CODE_OF_CONDUCT.md), [JSConf Code of Conduct](https://jsconf.com/codeofconduct.html), [Fedora Code of Conduct](https://fedoraproject.org/code-of-conduct), and [Contributor Covenant](https://www.contributor-covenant.org), version 1.2.0 for inspiration and ideas.
30
+
31
+ ### License
32
+
33
+ <p class="license" xmlns:dct="http://purl.org/dc/terms/" xmlns:vcard="http://www.w3.org/2001/vcard-rdf/3.0#">
34
+ To the extent possible under law, <a rel="dct:publisher" href="https://cocoapods.org/about">The CocoaPods Team</a> has waived all copyright and related or neighboring rights to the <span property="dct:title">CocoaPods Code of Conduct</span>. This work is published from the <span property="vcard:Country" datatype="dct:ISO3166" content="US" about="https://cocoapods.org">United States.</span>
35
+ <br>
36
+ <br>
37
+ <a rel="license" href="http://creativecommons.org/publicdomain/zero/1.0/">
38
+ <img src="http://i.creativecommons.org/p/zero/1.0/88x31.png" style="border-style: none;" alt="CC0">
39
+ </a>
40
+ </p>
@@ -0,0 +1,21 @@
1
+ This project is licensed under the MIT license.
2
+
3
+ Copyright (c) 2013 - 2014 CocoaPods Dev Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,43 @@
1
+ #
2
+ # Be sure to run `pod lib lint ${POD_NAME}.podspec' to ensure this is a
3
+ # valid spec before submitting.
4
+ #
5
+ # Any lines starting with a # are optional, but their use is encouraged
6
+ # To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
7
+ #
8
+
9
+ Pod::Spec.new do |s|
10
+ s.name = '${POD_NAME}'
11
+ s.version = '0.1.0'
12
+ s.summary = 'A short description of ${POD_NAME}.'
13
+
14
+ # This description is used to generate tags and improve search results.
15
+ # * Think: What does it do? Why did you write it? What is the focus?
16
+ # * Try to keep it short, snappy and to the point.
17
+ # * Write the description between the DESC delimiters below.
18
+ # * Finally, don't worry about the indent, CocoaPods strips it!
19
+
20
+ s.description = <<-DESC
21
+ TODO: Add long description of the pod here.
22
+ DESC
23
+
24
+ s.homepage = 'https://github.com/${USER_NAME}/${POD_NAME}'
25
+ # s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
26
+ s.license = { :type => 'MIT', :file => 'LICENSE' }
27
+ s.author = { '${USER_NAME}' => '${USER_EMAIL}' }
28
+ s.source = { :git => 'https://github.com/${USER_NAME}/${POD_NAME}.git', :tag => s.version.to_s }
29
+ # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
30
+
31
+ s.platform = :osx
32
+ s.osx.deployment_target = "10.10"
33
+
34
+ s.source_files = '${POD_NAME}/Classes/**/*'
35
+
36
+ # s.resource_bundles = {
37
+ # '${POD_NAME}' => ['${POD_NAME}/Assets/*.png']
38
+ # }
39
+
40
+ # s.public_header_files = 'Pod/Classes/**/*.h'
41
+ # s.frameworks = 'Cocoa'
42
+ # s.dependency 'AFNetworking', '~> 2.3'
43
+ end
@@ -0,0 +1,140 @@
1
+ #
2
+ # Be sure to run `pod spec lint NAME.podspec' to ensure this is a
3
+ # valid spec and to remove all comments including this before submitting the spec.
4
+ #
5
+ # To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podspec.html
6
+ # To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
7
+ #
8
+
9
+ Pod::Spec.new do |spec|
10
+
11
+ # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
12
+ #
13
+ # These will help people to find your library, and whilst it
14
+ # can feel like a chore to fill in it's definitely to your advantage. The
15
+ # summary should be tweet-length, and the description more in depth.
16
+ #
17
+
18
+ spec.name = "${POD_NAME}"
19
+ spec.version = "0.0.1"
20
+ spec.summary = "A short description of ${POD_NAME}."
21
+
22
+ # This description is used to generate tags and improve search results.
23
+ # * Think: What does it do? Why did you write it? What is the focus?
24
+ # * Try to keep it short, snappy and to the point.
25
+ # * Write the description between the DESC delimiters below.
26
+ # * Finally, don't worry about the indent, CocoaPods strips it!
27
+ spec.description = <<-DESC
28
+ TODO: Add long description of the pod here.
29
+ DESC
30
+
31
+ spec.homepage = 'http://gitlab.yeahka.com/App/iOS/YKComponents/${POD_NAME}'
32
+ # spec.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"
33
+
34
+
35
+ # ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
36
+ #
37
+ # Licensing your code is important. See https://choosealicense.com for more info.
38
+ # CocoaPods will detect a license file if there is a named LICENSE*
39
+ # Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'.
40
+ #
41
+
42
+ #spec.license = "MIT (example)"
43
+ # spec.license = { :type => "MIT", :file => "FILE_LICENSE" }
44
+
45
+
46
+ # ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
47
+ #
48
+ # Specify the authors of the library, with email addresses. Email addresses
49
+ # of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also
50
+ # accepts just a name if you'd rather not provide an email address.
51
+ #
52
+ # Specify a social_media_url where others can refer to, for example a twitter
53
+ # profile URL.
54
+ #
55
+
56
+ spec.author = { "${USER_NAME}" => "${USER_EMAIL}" }
57
+ # Or just: spec.author = "${USER_NAME}"
58
+ # spec.authors = { "${USER_NAME}" => "${USER_EMAIL}" }
59
+ # spec.social_media_url = "https://twitter.com/${USER_NAME}"
60
+
61
+ # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
62
+ #
63
+ # If this Pod runs only on iOS or OS X, then specify the platform and
64
+ # the deployment target. You can optionally include the target after the platform.
65
+ #
66
+
67
+ # spec.platform = :ios
68
+ # spec.platform = :ios, "5.0"
69
+
70
+ # When using multiple platforms
71
+ # spec.ios.deployment_target = "5.0"
72
+ # spec.osx.deployment_target = "10.7"
73
+ # spec.watchos.deployment_target = "2.0"
74
+ # spec.tvos.deployment_target = "9.0"
75
+
76
+
77
+ # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
78
+ #
79
+ # Specify the location from where the source should be retrieved.
80
+ # Supports git, hg, bzr, svn and HTTP.
81
+ #
82
+
83
+ spec.source = { :git => "http://gitlab.yeahka.com/App/iOS/YKComponents/${POD_NAME}.git", :tag => "#{spec.version}" }
84
+
85
+
86
+ # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
87
+ #
88
+ # CocoaPods is smart about how it includes source code. For source files
89
+ # giving a folder will include any swift, h, m, mm, c & cpp files.
90
+ # For header files it will include any header in the folder.
91
+ # Not including the public_header_files will make all headers public.
92
+ #
93
+
94
+ spec.source_files = "Classes", "Classes/**/*.{h,m,mm,x,xpp,swift,pch}"
95
+ spec.exclude_files = "Classes/Exclude"
96
+
97
+ # spec.public_header_files = "Classes/**/*.h"
98
+
99
+
100
+ # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
101
+ #
102
+ # A list of resources included with the Pod. These are copied into the
103
+ # target bundle with a build phase script. Anything else will be cleaned.
104
+ # You can preserve files from being cleaned, please don't preserve
105
+ # non-essential files like tests, examples and documentation.
106
+ #
107
+
108
+ # spec.resource = "icon.png"
109
+ # spec.resources = "Resources/*.png"
110
+ # spec.resource_bundles = {
111
+ # '${POD_NAME}' => ['${POD_NAME}/**/*.{xib,png,json}']
112
+ # }
113
+ # spec.preserve_paths = "FilesToSave", "MoreFilesToSave"
114
+
115
+
116
+ # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
117
+ #
118
+ # Link your library with frameworks, or libraries. Libraries do not include
119
+ # the lib prefix of their name.
120
+ #
121
+
122
+ # spec.framework = "SomeFramework"
123
+ # spec.frameworks = "SomeFramework", "AnotherFramework"
124
+
125
+ # spec.library = "iconv"
126
+ # spec.libraries = "iconv", "xml2"
127
+
128
+
129
+ # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
130
+ #
131
+ # If your library depends on compiler flags you can set them in the xcconfig hash
132
+ # where they will only apply to your library. If you depend on other Podspecs
133
+ # you can include multiple dependencies to ensure it works.
134
+
135
+ # spec.requires_arc = true
136
+
137
+ # spec.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" }
138
+ # spec.dependency "JSONKit", "~> 1.4"
139
+
140
+ end
@@ -0,0 +1,19 @@
1
+ Copyright (c) ${YEAR} ${USER_NAME} <${USER_EMAIL}>
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+ THE SOFTWARE.
@@ -0,0 +1,29 @@
1
+ # ${POD_NAME}
2
+
3
+ [![CI Status](https://img.shields.io/travis/${USER_NAME}/${REPO_NAME}.svg?style=flat)](https://travis-ci.org/${USER_NAME}/${REPO_NAME})
4
+ [![Version](https://img.shields.io/cocoapods/v/${POD_NAME}.svg?style=flat)](https://cocoapods.org/pods/${POD_NAME})
5
+ [![License](https://img.shields.io/cocoapods/l/${POD_NAME}.svg?style=flat)](https://cocoapods.org/pods/${POD_NAME})
6
+ [![Platform](https://img.shields.io/cocoapods/p/${POD_NAME}.svg?style=flat)](https://cocoapods.org/pods/${POD_NAME})
7
+
8
+ ## Example
9
+
10
+ To run the example project, clone the repo, and run `pod install` from the Example directory first.
11
+
12
+ ## Requirements
13
+
14
+ ## Installation
15
+
16
+ ${POD_NAME} is available through [CocoaPods](https://cocoapods.org). To install
17
+ it, simply add the following line to your Podfile:
18
+
19
+ ```ruby
20
+ pod '${POD_NAME}'
21
+ ```
22
+
23
+ ## Author
24
+
25
+ ${USER_NAME}, ${USER_EMAIL}
26
+
27
+ ## License
28
+
29
+ ${POD_NAME} is available under the MIT license. See the LICENSE file for more info.
@@ -0,0 +1,22 @@
1
+ # 组件化命令行工具
2
+
3
+ 在命令行使用统一的模版创建新的Module项目,创建过程中交互式的选择要安装的组件。
4
+
5
+ ## 使用方法
6
+
7
+ `pod lib create` + <你的App工程名,例如 `ShouYinTongAgent` > + `--template-url=http://gitlab.yeahka.com/App/iOS/YKComponents/YKProjectTemplate.git`
8
+
9
+ ```shell
10
+ pod lib create ShellProject --template-url=http://gitlab.yeahka.com/App/iOS/YKComponents/YKProjectTemplate.git
11
+
12
+ ```
13
+
14
+ 交互式过程如图:
15
+
16
+ ![命令行创建新的App项目](http://ww1.sinaimg.cn/large/6de36fdcgy1gnsw227nzdj21ba0jatd4.jpg)
17
+
18
+ 新创建的App工程的目录结构如下面的图片:
19
+
20
+ 以工程名字为 `ShellProject` 作为例子
21
+
22
+ ![移卡壳工程的目录结构,图1](http://ww1.sinaimg.cn/large/6de36fdcgy1gnsvnnzoe2j20l41587nr.jpg)
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $current_dir = File.dirname(File.expand_path(__FILE__))
4
+ Dir[File.join($current_dir, "setup/*.rb")].each do |file|
5
+ require_relative(file)
6
+ end
7
+
8
+ pod_name = ARGV.shift
9
+ framework = ARGV.shift
10
+ prefix = ARGV.shift
11
+ author = ARGV.shift
12
+ is_simple = ARGV.shift
13
+ Pod::TemplateConfigurator.new(pod_name,framework,prefix,author,is_simple).run
@@ -0,0 +1,31 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3
+ <device id="retina4_7" orientation="portrait">
4
+ <adaptation id="fullscreen"/>
5
+ </device>
6
+ <dependencies>
7
+ <deployment identifier="iOS"/>
8
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13772"/>
9
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
10
+ </dependencies>
11
+ <scenes>
12
+ <!--View Controller-->
13
+ <scene sceneID="EHf-IW-A2E">
14
+ <objects>
15
+ <viewController id="01J-lp-oVM" sceneMemberID="viewController">
16
+ <layoutGuides>
17
+ <viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
18
+ <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
19
+ </layoutGuides>
20
+ <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
21
+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
22
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
23
+ <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
24
+ </view>
25
+ </viewController>
26
+ <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
27
+ </objects>
28
+ <point key="canvasLocation" x="53" y="375"/>
29
+ </scene>
30
+ </scenes>
31
+ </document>
@@ -0,0 +1,79 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="19455" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="nsx-fL-gNv">
3
+ <device id="retina4_7" orientation="portrait" appearance="light"/>
4
+ <dependencies>
5
+ <deployment identifier="iOS"/>
6
+ <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19454"/>
7
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
8
+ </dependencies>
9
+ <scenes>
10
+ <!--Navigation Controller-->
11
+ <scene sceneID="Q1b-xM-xDI">
12
+ <objects>
13
+ <navigationController id="nsx-fL-gNv" sceneMemberID="viewController">
14
+ <navigationBar key="navigationBar" contentMode="scaleToFill" id="RoT-IV-xkL">
15
+ <rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
16
+ <autoresizingMask key="autoresizingMask"/>
17
+ </navigationBar>
18
+ <connections>
19
+ <segue destination="whP-gf-Uak" kind="relationship" relationship="rootViewController" id="HNp-I8-B0Y"/>
20
+ </connections>
21
+ </navigationController>
22
+ <placeholder placeholderIdentifier="IBFirstResponder" id="tLZ-cJ-HJK" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
23
+ </objects>
24
+ <point key="canvasLocation" x="-1008" y="713"/>
25
+ </scene>
26
+ <!--View Controller-->
27
+ <scene sceneID="wQg-tq-qST">
28
+ <objects>
29
+ <viewController id="whP-gf-Uak" customClass="CPDViewController" sceneMemberID="viewController">
30
+ <layoutGuides>
31
+ <viewControllerLayoutGuide type="top" id="uEw-UM-LJ8"/>
32
+ <viewControllerLayoutGuide type="bottom" id="Mvr-aV-6Um"/>
33
+ </layoutGuides>
34
+ <view key="view" contentMode="scaleToFill" id="TpU-gO-2f1">
35
+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
36
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
37
+ <subviews>
38
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ByE-XO-7AP">
39
+ <rect key="frame" x="112.5" y="194" width="150" height="44"/>
40
+ <constraints>
41
+ <constraint firstAttribute="width" relation="greaterThanOrEqual" constant="150" id="D7l-7G-BnA"/>
42
+ <constraint firstAttribute="height" constant="44" id="x5q-jv-jvK"/>
43
+ </constraints>
44
+ <state key="normal" title="Button"/>
45
+ <buttonConfiguration key="configuration" style="filled" title="路由事件"/>
46
+ <connections>
47
+ <action selector="routerEvent:" destination="whP-gf-Uak" eventType="touchUpInside" id="DWR-cY-kDv"/>
48
+ </connections>
49
+ </button>
50
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="LHc-dx-FpI">
51
+ <rect key="frame" x="112.5" y="268" width="150" height="44"/>
52
+ <constraints>
53
+ <constraint firstAttribute="width" relation="greaterThanOrEqual" constant="150" id="4Sm-nd-yg6"/>
54
+ <constraint firstAttribute="height" relation="greaterThanOrEqual" constant="44" id="cgr-pq-Xg3"/>
55
+ <constraint firstAttribute="height" constant="44" id="kHB-iw-7Aj"/>
56
+ </constraints>
57
+ <state key="normal" title="Button"/>
58
+ <buttonConfiguration key="configuration" style="filled" title="服务事件"/>
59
+ <connections>
60
+ <action selector="serviceEvent:" destination="whP-gf-Uak" eventType="touchUpInside" id="f94-VJ-rIw"/>
61
+ </connections>
62
+ </button>
63
+ </subviews>
64
+ <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
65
+ <constraints>
66
+ <constraint firstItem="LHc-dx-FpI" firstAttribute="top" secondItem="ByE-XO-7AP" secondAttribute="bottom" constant="30" id="Caz-fW-gns"/>
67
+ <constraint firstItem="ByE-XO-7AP" firstAttribute="centerX" secondItem="TpU-gO-2f1" secondAttribute="centerX" id="Q87-Cg-mLe"/>
68
+ <constraint firstItem="LHc-dx-FpI" firstAttribute="centerX" secondItem="TpU-gO-2f1" secondAttribute="centerX" id="lZ7-xx-umB"/>
69
+ <constraint firstItem="ByE-XO-7AP" firstAttribute="top" secondItem="uEw-UM-LJ8" secondAttribute="bottom" constant="150" id="sdK-Ls-Frk"/>
70
+ </constraints>
71
+ </view>
72
+ <navigationItem key="navigationItem" id="E30-XM-PEC"/>
73
+ </viewController>
74
+ <placeholder placeholderIdentifier="IBFirstResponder" id="tc2-Qw-aMS" userLabel="First Responder" sceneMemberID="firstResponder"/>
75
+ </objects>
76
+ <point key="canvasLocation" x="304.80000000000001" y="432.23388305847078"/>
77
+ </scene>
78
+ </scenes>
79
+ </document>
@@ -0,0 +1,15 @@
1
+ //
2
+ // CPDAppDelegate.h
3
+ // PROJECT
4
+ //
5
+ // Created by PROJECT_OWNER on TODAYS_DATE.
6
+ // Copyright (c) TODAYS_YEAR PROJECT_OWNER. All rights reserved.
7
+ //
8
+
9
+ @import UIKit;
10
+
11
+ @interface CPDAppDelegate : UIResponder <UIApplicationDelegate>
12
+
13
+ @property (strong, nonatomic) UIWindow *window;
14
+
15
+ @end
@@ -0,0 +1,46 @@
1
+ //
2
+ // CPDAppDelegate.m
3
+ // PROJECT
4
+ //
5
+ // Created by PROJECT_OWNER on TODAYS_DATE.
6
+ // Copyright (c) TODAYS_YEAR PROJECT_OWNER. All rights reserved.
7
+ //
8
+
9
+ #import "CPDAppDelegate.h"
10
+
11
+ @implementation CPDAppDelegate
12
+
13
+ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
14
+ {
15
+ // Override point for customization after application launch.
16
+ return YES;
17
+ }
18
+
19
+ - (void)applicationWillResignActive:(UIApplication *)application
20
+ {
21
+ // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
22
+ // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
23
+ }
24
+
25
+ - (void)applicationDidEnterBackground:(UIApplication *)application
26
+ {
27
+ // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
28
+ // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
29
+ }
30
+
31
+ - (void)applicationWillEnterForeground:(UIApplication *)application
32
+ {
33
+ // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
34
+ }
35
+
36
+ - (void)applicationDidBecomeActive:(UIApplication *)application
37
+ {
38
+ // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
39
+ }
40
+
41
+ - (void)applicationWillTerminate:(UIApplication *)application
42
+ {
43
+ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
44
+ }
45
+
46
+ @end
@@ -0,0 +1,13 @@
1
+ //
2
+ // CPDViewController.h
3
+ // PROJECT
4
+ //
5
+ // Created by PROJECT_OWNER on TODAYS_DATE.
6
+ // Copyright (c) TODAYS_YEAR PROJECT_OWNER. All rights reserved.
7
+ //
8
+
9
+ @import UIKit;
10
+
11
+ @interface CPDViewController : UIViewController
12
+
13
+ @end
@@ -0,0 +1,37 @@
1
+ //
2
+ // CPDViewController.m
3
+ // PROJECT
4
+ //
5
+ // Created by PROJECT_OWNER on TODAYS_DATE.
6
+ // Copyright (c) TODAYS_YEAR PROJECT_OWNER. All rights reserved.
7
+ //
8
+
9
+ #import "CPDViewController.h"
10
+
11
+
12
+ @interface CPDViewController ()
13
+
14
+ @end
15
+ @implementation CPDViewController
16
+
17
+ - (void)viewDidLoad
18
+ {
19
+ [super viewDidLoad];
20
+ // Do any additional setup after loading the view, typically from a nib.
21
+ self.navigationItem.title = [NSString stringWithFormat:@"%@",@"PROJECT Demo"];
22
+ }
23
+
24
+
25
+ - (IBAction)routerEvent:(id)sender {
26
+ NSLog(@"这里调用模块的路由");
27
+
28
+
29
+ }
30
+
31
+ - (IBAction)serviceEvent:(id)sender {
32
+ NSLog(@"这里调用模块的服务");
33
+
34
+ }
35
+
36
+
37
+ @end