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,46 @@
1
+ //
2
+ // AppDelegate.swift
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
+ @UIApplicationMain
12
+ class AppDelegate: UIResponder, UIApplicationDelegate {
13
+
14
+ var window: UIWindow?
15
+
16
+
17
+ func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
18
+ // Override point for customization after application launch.
19
+ return true
20
+ }
21
+
22
+ func applicationWillResignActive(_ application: UIApplication) {
23
+ // 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.
24
+ // 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.
25
+ }
26
+
27
+ func applicationDidEnterBackground(_ application: UIApplication) {
28
+ // 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.
29
+ // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
30
+ }
31
+
32
+ func applicationWillEnterForeground(_ application: UIApplication) {
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
+ func applicationDidBecomeActive(_ application: UIApplication) {
37
+ // 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.
38
+ }
39
+
40
+ func applicationWillTerminate(_ application: UIApplication) {
41
+ // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
42
+ }
43
+
44
+
45
+ }
46
+
@@ -0,0 +1,46 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="13771" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
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="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
10
+ <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
11
+ </dependencies>
12
+ <objects>
13
+ <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
14
+ <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
15
+ <view contentMode="scaleToFill" id="iN0-l3-epB">
16
+ <rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
17
+ <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18
+ <subviews>
19
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text=" Copyright (c) 2015 CocoaPods. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
20
+ <rect key="frame" x="20" y="439" width="441" height="21"/>
21
+ <fontDescription key="fontDescription" type="system" pointSize="17"/>
22
+ <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
23
+ <nil key="highlightedColor"/>
24
+ </label>
25
+ <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="PROJECT" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
26
+ <rect key="frame" x="20" y="140" width="441" height="43"/>
27
+ <fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
28
+ <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
29
+ <nil key="highlightedColor"/>
30
+ </label>
31
+ </subviews>
32
+ <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
33
+ <constraints>
34
+ <constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
35
+ <constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
36
+ <constraint firstAttribute="bottom" secondItem="8ie-xW-0ye" secondAttribute="bottom" constant="20" id="Kzo-t9-V3l"/>
37
+ <constraint firstItem="8ie-xW-0ye" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="MfP-vx-nX0"/>
38
+ <constraint firstAttribute="centerX" secondItem="8ie-xW-0ye" secondAttribute="centerX" id="ZEH-qu-HZ9"/>
39
+ <constraint firstItem="kId-c2-rCX" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="20" symbolic="YES" id="fvb-Df-36g"/>
40
+ </constraints>
41
+ <nil key="simulatedStatusBarMetrics"/>
42
+ <freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
43
+ <point key="canvasLocation" x="548" y="455"/>
44
+ </view>
45
+ </objects>
46
+ </document>
@@ -0,0 +1,86 @@
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="Mfj-WX-5hf">
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="uRK-Rz-9vB">
12
+ <objects>
13
+ <navigationController id="Mfj-WX-5hf" sceneMemberID="viewController">
14
+ <navigationBar key="navigationBar" contentMode="scaleToFill" id="C0O-r8-sBr">
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="vXZ-lx-hvc" kind="relationship" relationship="rootViewController" id="mGc-2P-a8k"/>
20
+ </connections>
21
+ </navigationController>
22
+ <placeholder placeholderIdentifier="IBFirstResponder" id="IPj-OD-Rdf" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
23
+ </objects>
24
+ <point key="canvasLocation" x="-1393" y="69"/>
25
+ </scene>
26
+ <!--View Controller-->
27
+ <scene sceneID="ufC-wZ-h7g">
28
+ <objects>
29
+ <viewController id="vXZ-lx-hvc" customClass="ViewController" customModule="PROJECT_Example" customModuleProvider="target" sceneMemberID="viewController">
30
+ <layoutGuides>
31
+ <viewControllerLayoutGuide type="top" id="jyV-Pf-zRb"/>
32
+ <viewControllerLayoutGuide type="bottom" id="2fi-mo-0CV"/>
33
+ </layoutGuides>
34
+ <view key="view" contentMode="scaleToFill" id="kh9-bI-dsS">
35
+ <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
36
+ <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
37
+ <subviews>
38
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bUL-JU-Xsp">
39
+ <rect key="frame" x="112.5" y="184" width="150" height="44"/>
40
+ <constraints>
41
+ <constraint firstAttribute="height" constant="44" id="PSN-M1-Oxn"/>
42
+ <constraint firstAttribute="width" constant="150" id="aYB-ks-jmp"/>
43
+ </constraints>
44
+ <color key="tintColor" red="0.94509803920000002" green="0.5450980392" blue="0.25490196079999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
45
+ <state key="normal" title="Button"/>
46
+ <buttonConfiguration key="configuration" style="filled" title="路由事件">
47
+ <color key="baseBackgroundColor" red="0.94509803920000002" green="0.5450980392" blue="0.25490196079999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
48
+ </buttonConfiguration>
49
+ <connections>
50
+ <action selector="routerEvent:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="vmk-pk-Jtn"/>
51
+ </connections>
52
+ </button>
53
+ <button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="TpN-Om-aLU">
54
+ <rect key="frame" x="112.5" y="258" width="150" height="44"/>
55
+ <constraints>
56
+ <constraint firstAttribute="width" relation="greaterThanOrEqual" constant="150" id="PVf-9Z-b2L"/>
57
+ <constraint firstAttribute="height" constant="44" id="bbH-VQ-sQ0"/>
58
+ <constraint firstAttribute="width" constant="150" id="jxm-Ng-DfC"/>
59
+ <constraint firstAttribute="height" relation="greaterThanOrEqual" constant="44" id="n2S-no-dln"/>
60
+ </constraints>
61
+ <color key="tintColor" red="0.94509803920000002" green="0.5450980392" blue="0.25490196079999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
62
+ <state key="normal" title="Button"/>
63
+ <buttonConfiguration key="configuration" style="filled" title="服务事件">
64
+ <color key="baseBackgroundColor" red="0.94509803920000002" green="0.5450980392" blue="0.25490196079999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
65
+ </buttonConfiguration>
66
+ <connections>
67
+ <action selector="serviceEvent:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="wWV-vz-MUY"/>
68
+ </connections>
69
+ </button>
70
+ </subviews>
71
+ <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
72
+ <constraints>
73
+ <constraint firstItem="TpN-Om-aLU" firstAttribute="top" secondItem="bUL-JU-Xsp" secondAttribute="bottom" constant="30" id="IdC-UT-tN2"/>
74
+ <constraint firstItem="bUL-JU-Xsp" firstAttribute="top" secondItem="jyV-Pf-zRb" secondAttribute="bottom" constant="140" id="Ow3-T9-hC9"/>
75
+ <constraint firstItem="bUL-JU-Xsp" firstAttribute="centerX" secondItem="kh9-bI-dsS" secondAttribute="centerX" id="PSt-LS-2VX"/>
76
+ <constraint firstItem="TpN-Om-aLU" firstAttribute="centerX" secondItem="kh9-bI-dsS" secondAttribute="centerX" id="bPn-10-srE"/>
77
+ </constraints>
78
+ </view>
79
+ <navigationItem key="navigationItem" id="ATM-17-fYg"/>
80
+ </viewController>
81
+ <placeholder placeholderIdentifier="IBFirstResponder" id="x5A-6p-PRh" sceneMemberID="firstResponder"/>
82
+ </objects>
83
+ <point key="canvasLocation" x="34" y="111"/>
84
+ </scene>
85
+ </scenes>
86
+ </document>
@@ -0,0 +1,4 @@
1
+ //
2
+ // Use this file to import your target's public headers that you would like to expose to Swift.
3
+ //
4
+
@@ -0,0 +1,53 @@
1
+ {
2
+ "images" : [
3
+ {
4
+ "idiom" : "iphone",
5
+ "size" : "20x20",
6
+ "scale" : "2x"
7
+ },
8
+ {
9
+ "idiom" : "iphone",
10
+ "size" : "20x20",
11
+ "scale" : "3x"
12
+ },
13
+ {
14
+ "idiom" : "iphone",
15
+ "size" : "29x29",
16
+ "scale" : "2x"
17
+ },
18
+ {
19
+ "idiom" : "iphone",
20
+ "size" : "29x29",
21
+ "scale" : "3x"
22
+ },
23
+ {
24
+ "idiom" : "iphone",
25
+ "size" : "40x40",
26
+ "scale" : "2x"
27
+ },
28
+ {
29
+ "idiom" : "iphone",
30
+ "size" : "40x40",
31
+ "scale" : "3x"
32
+ },
33
+ {
34
+ "idiom" : "iphone",
35
+ "size" : "60x60",
36
+ "scale" : "2x"
37
+ },
38
+ {
39
+ "idiom" : "iphone",
40
+ "size" : "60x60",
41
+ "scale" : "3x"
42
+ },
43
+ {
44
+ "idiom" : "ios-marketing",
45
+ "size" : "1024x1024",
46
+ "scale" : "1x"
47
+ }
48
+ ],
49
+ "info" : {
50
+ "version" : 1,
51
+ "author" : "xcode"
52
+ }
53
+ }
@@ -0,0 +1,39 @@
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>APPL</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
+ <key>LSRequiresIPhoneOS</key>
24
+ <true/>
25
+ <key>UILaunchStoryboardName</key>
26
+ <string>LaunchScreen</string>
27
+ <key>UIMainStoryboardFile</key>
28
+ <string>Main</string>
29
+ <key>UIRequiredDeviceCapabilities</key>
30
+ <array>
31
+ <string>armv7</string>
32
+ </array>
33
+ <key>UISupportedInterfaceOrientations</key>
34
+ <array>
35
+ <string>UIInterfaceOrientationPortrait</string>
36
+ <string>UIInterfaceOrientationLandscapeLeft</string>
37
+ </array>
38
+ </dict>
39
+ </plist>
@@ -0,0 +1,16 @@
1
+ //
2
+ // STTestAppDelegate.swift
3
+ // STTestDemo
4
+ //
5
+ // Created by stephen.chen on 2022/11/9.
6
+ //
7
+
8
+ import UIKit
9
+
10
+ class STTestAppDelegate: UIResponder, UIApplicationDelegate {
11
+ func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
12
+ // Override point for customization after application launch.
13
+ print("\(self)--\(#function)")
14
+ return true
15
+ }
16
+ }
@@ -0,0 +1,4 @@
1
+ //
2
+ // Use this file to import your target's public headers that you would like to expose to Swift.
3
+ //
4
+
@@ -0,0 +1,51 @@
1
+ //
2
+ // ViewController.swift
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
+ import PROJECT
12
+
13
+ import YKRouterComponent
14
+ import YKModuleServiceComponentSwift
15
+
16
+ class ViewController: UIViewController {
17
+
18
+ override func viewDidLoad() {
19
+ super.viewDidLoad()
20
+ // Do any additional setup after loading the view, typically from a nib.
21
+ self.navigationItem.title = "PROJECT Demo"
22
+
23
+ }
24
+
25
+ @IBAction func routerEvent(_ sender: Any) {
26
+ print("---调用路由---")
27
+ // YKRouterComponent.shareInstance().ykOpenUrlInstance("routerUrl", fromVC: self, complete: nil)
28
+ }
29
+
30
+
31
+ @IBAction func serviceEvent(_ sender: Any) {
32
+ print("---调用服务---")
33
+ // oc 专用接口
34
+ // let ser: AnyClass? = YKModuleServiceComponent().ykModule(with: NSObjectProtocol.self, error: nil)
35
+ // guard let ser: NSObjectProtocol.Type = ser as? NSObjectProtocol.Type else {
36
+ // print("no ser confor to protocol:\(XXX_SwiftProtocol.self)")
37
+ // return
38
+ // }
39
+ // ser.xxx()
40
+
41
+ // swift / oc 通用接口
42
+ // let ser: AnyClass? = YKModuleServiceComponent().ykModule(protocol: XXX_SwiftProtocol.self, error: nil)
43
+ // guard let ser: XXX_SwiftProtocol.Type = ser as? XXX_SwiftProtocol.Type else{
44
+ // print("no ser confor to protocol:\(XXX_SwiftProtocol.self)")
45
+ // return
46
+ // }
47
+ //
48
+ // ser.xxx()
49
+ }
50
+ }
51
+
@@ -0,0 +1,9 @@
1
+ //
2
+ // YKEmptyOcFile.m
3
+ // PROJECT
4
+ //
5
+ // Created by stephen.chen on 2022/11/9.
6
+ // Copyright © 2022 CocoaPods. All rights reserved.
7
+ //
8
+
9
+ #import <Foundation/Foundation.h>