yk_command 0.6.2 → 0.6.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.DS_Store +0 -0
- data/.idea/inspectionProfiles/Project_Default.xml +6 -0
- data/.idea/sonarlint/issuestore/index.pb +39 -33
- data/.idea/vcs.xml +2 -0
- data/.idea/yk_command.iml +58 -65
- data/.ruby-version +1 -1
- data/Gemfile +6 -3
- data/Gemfile.lock +11 -26
- data/debugProject/.DS_Store +0 -0
- data/lib/.DS_Store +0 -0
- data/lib/yk_command/.DS_Store +0 -0
- data/lib/yk_command/commands.rb +38 -20
- data/lib/yk_command/config/yk_config.rb +6 -7
- data/lib/yk_command/module/.DS_Store +0 -0
- data/lib/yk_command/module/module_handler.rb +48 -69
- data/lib/yk_command/module/template/.DS_Store +0 -0
- data/lib/yk_command/module/template/objc/.DS_Store +0 -0
- data/{.idea/sonarlint/issuestore/2/2/2264693887a1513e6c4ed16a6231e00d3045ec4e → lib/yk_command/module/template/objc/BusinessHeader.h} +0 -0
- data/lib/yk_command/module/template/objc/CategoryHeader.h +0 -2
- data/lib/yk_command/module/template/objc/Helper.h +16 -0
- data/lib/yk_command/module/template/objc/Helper.m +41 -0
- data/lib/yk_command/module/template/objc/RouterRegister.m +8 -15
- data/lib/yk_command/module/template/objc/ServiceRegister.m +4 -8
- data/lib/yk_command/module/template/swift/.DS_Store +0 -0
- data/lib/yk_command/module/template/swift/PrefixHeader_swift.swift +10 -0
- data/lib/yk_command/module/template/swift/RouterRegisterSwift.swift +23 -0
- data/lib/yk_command/module/template/swift/ServiceRegisterSwift.swift +20 -0
- data/lib/yk_command/module/template/swift/Tool.swift +53 -0
- data/lib/yk_command/module/yk_module.rb +2 -2
- data/lib/yk_command/project/.DS_Store +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/.gitignore +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/.travis.yml +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/CODE_OF_CONDUCT.md +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/LICENSE +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/NAME-osx.podspec +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/NAME.podspec +15 -15
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/POD_LICENSE +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/POD_README.md +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/Pod/Assets/.gitkeep +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/Pod/Classes/.gitkeep +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/README.md +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/configure +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/ios/Example/PROJECT/Base.lproj/LaunchScreen.storyboard +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/ios/Example/PROJECT/Base.lproj/Main.storyboard +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/ios/Example/PROJECT/CPDAppDelegate.h +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/ios/Example/PROJECT/CPDAppDelegate.m +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/ios/Example/PROJECT/CPDViewController.h +0 -0
- data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/PROJECT/CPDViewController.m +47 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/ios/Example/PROJECT/Images.xcassets/AppIcon.appiconset/Contents.json +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/ios/Example/PROJECT/PROJECT-Info.plist +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/ios/Example/PROJECT/PROJECT-Prefix.pch +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/ios/Example/PROJECT/en.lproj/InfoPlist.strings +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/ios/Example/PROJECT/main.m +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/ios/Example/PROJECT.xcodeproj/project.pbxproj +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/ios/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
- data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/PROJECT.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/ios/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +0 -0
- data/lib/yk_command/project/full_component_demo_template/templates/ios/Example/Podfile +34 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/ios/Example/Tests/Tests-Info.plist +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/ios/Example/Tests/Tests-Prefix.pch +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/ios/Example/Tests/Tests.m +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/ios/Example/Tests/en.lproj/InfoPlist.strings +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/macos-swift/Example/PROJECT/AppDelegate.swift +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/macos-swift/Example/PROJECT/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/macos-swift/Example/PROJECT/Base.lproj/Main.storyboard +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/macos-swift/Example/PROJECT/Info.plist +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/macos-swift/Example/PROJECT/PROJECT.entitlements +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/macos-swift/Example/PROJECT/ViewController.swift +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/macos-swift/Example/PROJECT.xcodeproj/project.pbxproj +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/macos-swift/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/macos-swift/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/macos-swift/Example/Podfile +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/macos-swift/Example/Tests/Info.plist +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/macos-swift/Example/Tests/Tests.swift +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/swift/Example/PROJECT/AppDelegate.swift +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/swift/Example/PROJECT/Base.lproj/LaunchScreen.xib +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/swift/Example/PROJECT/Base.lproj/Main.storyboard +0 -0
- data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT/Example-Bridging-Header.h +4 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/swift/Example/PROJECT/Images.xcassets/AppIcon.appiconset/Contents.json +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/swift/Example/PROJECT/Info.plist +0 -0
- data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT/STTestAppDelegate.swift +16 -0
- data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT/Tests-Bridging-Header.h +4 -0
- data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT/ViewController.swift +51 -0
- data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT/YKEmptyOcFile.m +9 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/swift/Example/PROJECT.xcodeproj/project.pbxproj +41 -20
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/swift/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
- data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/PROJECT.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/swift/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +0 -0
- data/lib/yk_command/project/full_component_demo_template/templates/swift/Example/Podfile +35 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/swift/Example/Tests/Info.plist +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → full_component_demo_template}/templates/swift/Example/Tests/Tests.swift +0 -0
- data/lib/yk_command/project/setup/ConfigureMacOSSwift.rb +1 -1
- data/lib/yk_command/project/setup/ConfigureiOS.rb +1 -2
- data/lib/yk_command/project/setup/TemplateConfigurator.rb +4 -4
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/.gitignore +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/.travis.yml +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/CODE_OF_CONDUCT.md +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/LICENSE +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/NAME-osx.podspec +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/NAME.podspec +1 -1
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/POD_LICENSE +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/POD_README.md +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/Pod/Assets/.gitkeep +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/Pod/Classes/.gitkeep +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/README.md +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/configure +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/PROJECT/Base.lproj/LaunchScreen.storyboard +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/PROJECT/Base.lproj/Main.storyboard +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/PROJECT/CPDAppDelegate.h +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/PROJECT/CPDAppDelegate.m +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/PROJECT/CPDViewController.h +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/PROJECT/CPDViewController.m +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/PROJECT/Images.xcassets/AppIcon.appiconset/Contents.json +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/PROJECT/PROJECT-Info.plist +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/PROJECT/PROJECT-Prefix.pch +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/PROJECT/en.lproj/InfoPlist.strings +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/PROJECT/main.m +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/PROJECT.xcodeproj/project.pbxproj +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
- data/lib/yk_command/project/simple_component_demo_template/templates/ios/Example/PROJECT.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → simple_component_demo_template}/templates/ios/Example/Podfile +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/Tests/Tests-Info.plist +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/Tests/Tests-Prefix.pch +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/Tests/Tests.m +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/ios/Example/Tests/en.lproj/InfoPlist.strings +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/macos-swift/Example/PROJECT/AppDelegate.swift +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/macos-swift/Example/PROJECT/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/macos-swift/Example/PROJECT/Base.lproj/Main.storyboard +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/macos-swift/Example/PROJECT/Info.plist +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/macos-swift/Example/PROJECT/PROJECT.entitlements +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/macos-swift/Example/PROJECT/ViewController.swift +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/macos-swift/Example/PROJECT.xcodeproj/project.pbxproj +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/macos-swift/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/macos-swift/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/macos-swift/Example/Podfile +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/macos-swift/Example/Tests/Info.plist +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/macos-swift/Example/Tests/Tests.swift +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/swift/Example/PROJECT/AppDelegate.swift +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/swift/Example/PROJECT/Base.lproj/LaunchScreen.xib +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/swift/Example/PROJECT/Base.lproj/Main.storyboard +19 -2
- data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/PROJECT/EmptyOcFile.m +9 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/swift/Example/PROJECT/Images.xcassets/AppIcon.appiconset/Contents.json +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/swift/Example/PROJECT/Info.plist +0 -0
- data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/PROJECT/PROJECT_Example-Bridging-Header.h +4 -0
- data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/PROJECT/PROJECT_Tests-Bridging-Header.h +4 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/swift/Example/PROJECT/ViewController.swift +3 -1
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/swift/Example/PROJECT.xcodeproj/project.pbxproj +41 -20
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/swift/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
- data/lib/yk_command/project/simple_component_demo_template/templates/swift/Example/PROJECT.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/swift/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +0 -0
- data/lib/yk_command/project/{YKProjectTemplate → simple_component_demo_template}/templates/swift/Example/Podfile +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/swift/Example/Tests/Info.plist +0 -0
- data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/templates/swift/Example/Tests/Tests.swift +0 -0
- data/lib/yk_command/project/yk_project.rb +7 -2
- data/lib/yk_command/version.rb +1 -1
- metadata +141 -129
- data/.idea/sonarlint/issuestore/2/4/2461a61a84d866812e64ff95d40bd7836fb136ea +0 -0
- data/.idea/sonarlint/issuestore/2/e/2e113f2d3dc9bee6a98073d85966fbd9773c044f +0 -0
- data/.idea/sonarlint/issuestore/7/1/71fc201a1096db97453882ad1da5120a71f77bb5 +0 -0
- data/.idea/sonarlint/issuestore/7/e/7ed8a0c3d2507e911337de44fdef07f89e35091a +0 -0
- data/.idea/sonarlint/issuestore/9/5/95a45210972238034e9fed522811176fe20117d3 +0 -0
- data/.idea/sonarlint/issuestore/9/7/97c2c9c7adeb7fa2e6ffbf07cba2418868ac9739 +0 -0
- data/.idea/sonarlint/issuestore/a/d/ad7bffefc6248a8f673a10e668a82bdbbe38a3e3 +0 -0
- data/.idea/sonarlint/issuestore/e/5/e5580d669a0c327c5b0897ba7dd8465a3d4db45a +0 -0
- data/lib/yk_command/module/template/objc/RouterDefine.h +0 -14
- data/lib/yk_command/module/template/objc/ServiceProtocol.h +0 -15
- data/lib/yk_command/module/template/objc/demo/DemoViewController.h +0 -17
- data/lib/yk_command/module/template/objc/demo/DemoViewController.m +0 -28
- data/lib/yk_command/module/template/objc/demo/DemoViewModel.h +0 -14
- data/lib/yk_command/module/template/objc/demo/DemoViewModel.m +0 -19
- data/lib/yk_command/module/template/swift/RouterDefine.swift +0 -28
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/CPDViewController.m +0 -60
- data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT/ViewController.swift +0 -37
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/Podfile +0 -19
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/Podfile +0 -20
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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,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
|
+
|
|
@@ -13,6 +13,8 @@
|
|
|
13
13
|
607FACDD1AFB9204008FA782 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDC1AFB9204008FA782 /* Images.xcassets */; };
|
|
14
14
|
607FACE01AFB9204008FA782 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 607FACDE1AFB9204008FA782 /* LaunchScreen.xib */; };
|
|
15
15
|
607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; };
|
|
16
|
+
DCDBF743291BADFD001CC26D /* YKEmptyOcFile.m in Sources */ = {isa = PBXBuildFile; fileRef = DCDBF742291BADFD001CC26D /* YKEmptyOcFile.m */; };
|
|
17
|
+
DCDBF744291BADFD001CC26D /* YKEmptyOcFile.m in Sources */ = {isa = PBXBuildFile; fileRef = DCDBF742291BADFD001CC26D /* YKEmptyOcFile.m */; };
|
|
16
18
|
/* End PBXBuildFile section */
|
|
17
19
|
|
|
18
20
|
/* Begin PBXContainerItemProxy section */
|
|
@@ -21,7 +23,7 @@
|
|
|
21
23
|
containerPortal = 607FACC81AFB9204008FA782 /* Project object */;
|
|
22
24
|
proxyType = 1;
|
|
23
25
|
remoteGlobalIDString = 607FACCF1AFB9204008FA782;
|
|
24
|
-
remoteInfo =
|
|
26
|
+
remoteInfo = PROJECT;
|
|
25
27
|
};
|
|
26
28
|
/* End PBXContainerItemProxy section */
|
|
27
29
|
|
|
@@ -36,6 +38,9 @@
|
|
|
36
38
|
607FACE51AFB9204008FA782 /* PROJECT_Tests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PROJECT_Tests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
37
39
|
607FACEA1AFB9204008FA782 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
|
38
40
|
607FACEB1AFB9204008FA782 /* Tests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Tests.swift; sourceTree = "<group>"; };
|
|
41
|
+
DCDBF740291BADFD001CC26D /* Example-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Example-Bridging-Header.h"; sourceTree = "<group>"; };
|
|
42
|
+
DCDBF741291BADFD001CC26D /* Tests-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Tests-Bridging-Header.h"; sourceTree = "<group>"; };
|
|
43
|
+
DCDBF742291BADFD001CC26D /* YKEmptyOcFile.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = YKEmptyOcFile.m; sourceTree = "<group>"; };
|
|
39
44
|
/* End PBXFileReference section */
|
|
40
45
|
|
|
41
46
|
/* Begin PBXFrameworksBuildPhase section */
|
|
@@ -80,13 +85,16 @@
|
|
|
80
85
|
children = (
|
|
81
86
|
607FACD51AFB9204008FA782 /* AppDelegate.swift */,
|
|
82
87
|
607FACD71AFB9204008FA782 /* ViewController.swift */,
|
|
88
|
+
DCDBF742291BADFD001CC26D /* YKEmptyOcFile.m */,
|
|
83
89
|
607FACD91AFB9204008FA782 /* Main.storyboard */,
|
|
84
90
|
607FACDC1AFB9204008FA782 /* Images.xcassets */,
|
|
85
91
|
607FACDE1AFB9204008FA782 /* LaunchScreen.xib */,
|
|
86
92
|
607FACD31AFB9204008FA782 /* Supporting Files */,
|
|
93
|
+
DCDBF740291BADFD001CC26D /* Example-Bridging-Header.h */,
|
|
94
|
+
DCDBF741291BADFD001CC26D /* Tests-Bridging-Header.h */,
|
|
87
95
|
);
|
|
88
96
|
name = "Example for PROJECT";
|
|
89
|
-
path =
|
|
97
|
+
path = PROJECT;
|
|
90
98
|
sourceTree = "<group>";
|
|
91
99
|
};
|
|
92
100
|
607FACD31AFB9204008FA782 /* Supporting Files */ = {
|
|
@@ -136,8 +144,8 @@
|
|
|
136
144
|
);
|
|
137
145
|
dependencies = (
|
|
138
146
|
);
|
|
139
|
-
name =
|
|
140
|
-
productName =
|
|
147
|
+
name = PROJECT_Example;
|
|
148
|
+
productName = PROJECT;
|
|
141
149
|
productReference = 607FACD01AFB9204008FA782 /* PROJECT_Example.app */;
|
|
142
150
|
productType = "com.apple.product-type.application";
|
|
143
151
|
};
|
|
@@ -154,7 +162,7 @@
|
|
|
154
162
|
dependencies = (
|
|
155
163
|
607FACE71AFB9204008FA782 /* PBXTargetDependency */,
|
|
156
164
|
);
|
|
157
|
-
name =
|
|
165
|
+
name = PROJECT_Tests;
|
|
158
166
|
productName = Tests;
|
|
159
167
|
productReference = 607FACE51AFB9204008FA782 /* PROJECT_Tests.xctest */;
|
|
160
168
|
productType = "com.apple.product-type.bundle.unit-test";
|
|
@@ -171,11 +179,11 @@
|
|
|
171
179
|
TargetAttributes = {
|
|
172
180
|
607FACCF1AFB9204008FA782 = {
|
|
173
181
|
CreatedOnToolsVersion = 6.3.1;
|
|
174
|
-
LastSwiftMigration =
|
|
182
|
+
LastSwiftMigration = 1400;
|
|
175
183
|
};
|
|
176
184
|
607FACE41AFB9204008FA782 = {
|
|
177
185
|
CreatedOnToolsVersion = 6.3.1;
|
|
178
|
-
LastSwiftMigration =
|
|
186
|
+
LastSwiftMigration = 1400;
|
|
179
187
|
TestTargetID = 607FACCF1AFB9204008FA782;
|
|
180
188
|
};
|
|
181
189
|
};
|
|
@@ -185,6 +193,7 @@
|
|
|
185
193
|
developmentRegion = English;
|
|
186
194
|
hasScannedForEncodings = 0;
|
|
187
195
|
knownRegions = (
|
|
196
|
+
English,
|
|
188
197
|
en,
|
|
189
198
|
Base,
|
|
190
199
|
);
|
|
@@ -224,6 +233,7 @@
|
|
|
224
233
|
isa = PBXSourcesBuildPhase;
|
|
225
234
|
buildActionMask = 2147483647;
|
|
226
235
|
files = (
|
|
236
|
+
DCDBF743291BADFD001CC26D /* YKEmptyOcFile.m in Sources */,
|
|
227
237
|
607FACD81AFB9204008FA782 /* ViewController.swift in Sources */,
|
|
228
238
|
607FACD61AFB9204008FA782 /* AppDelegate.swift in Sources */,
|
|
229
239
|
);
|
|
@@ -234,6 +244,7 @@
|
|
|
234
244
|
buildActionMask = 2147483647;
|
|
235
245
|
files = (
|
|
236
246
|
607FACEC1AFB9204008FA782 /* Tests.swift in Sources */,
|
|
247
|
+
DCDBF744291BADFD001CC26D /* YKEmptyOcFile.m in Sources */,
|
|
237
248
|
);
|
|
238
249
|
runOnlyForDeploymentPostprocessing = 0;
|
|
239
250
|
};
|
|
@@ -287,8 +298,8 @@
|
|
|
287
298
|
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
288
299
|
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
289
300
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
290
|
-
|
|
291
|
-
|
|
301
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
302
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
292
303
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
293
304
|
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
294
305
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
@@ -337,11 +348,11 @@
|
|
|
337
348
|
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
338
349
|
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
339
350
|
CLANG_WARN_INT_CONVERSION = YES;
|
|
340
|
-
|
|
341
|
-
|
|
351
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
352
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
342
353
|
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
343
|
-
|
|
344
|
-
|
|
354
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
355
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
345
356
|
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
346
357
|
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
347
358
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
@@ -370,13 +381,16 @@
|
|
|
370
381
|
isa = XCBuildConfiguration;
|
|
371
382
|
buildSettings = {
|
|
372
383
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
373
|
-
|
|
384
|
+
CLANG_ENABLE_MODULES = YES;
|
|
385
|
+
INFOPLIST_FILE = PROJECT/Info.plist;
|
|
374
386
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
|
375
387
|
MODULE_NAME = ExampleApp;
|
|
376
388
|
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
|
|
377
389
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
378
|
-
|
|
379
|
-
|
|
390
|
+
SWIFT_OBJC_BRIDGING_HEADER = "PROJECT/Example-Bridging-Header.h";
|
|
391
|
+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
|
392
|
+
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
|
|
393
|
+
SWIFT_VERSION = 4.0;
|
|
380
394
|
};
|
|
381
395
|
name = Debug;
|
|
382
396
|
};
|
|
@@ -384,19 +398,22 @@
|
|
|
384
398
|
isa = XCBuildConfiguration;
|
|
385
399
|
buildSettings = {
|
|
386
400
|
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
|
387
|
-
|
|
401
|
+
CLANG_ENABLE_MODULES = YES;
|
|
402
|
+
INFOPLIST_FILE = PROJECT/Info.plist;
|
|
388
403
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
|
|
389
404
|
MODULE_NAME = ExampleApp;
|
|
390
405
|
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.demo.$(PRODUCT_NAME:rfc1034identifier)";
|
|
391
406
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
392
|
-
|
|
393
|
-
|
|
407
|
+
SWIFT_OBJC_BRIDGING_HEADER = "PROJECT/Example-Bridging-Header.h";
|
|
408
|
+
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
|
|
409
|
+
SWIFT_VERSION = 4.0;
|
|
394
410
|
};
|
|
395
411
|
name = Release;
|
|
396
412
|
};
|
|
397
413
|
607FACF31AFB9204008FA782 /* Debug */ = {
|
|
398
414
|
isa = XCBuildConfiguration;
|
|
399
415
|
buildSettings = {
|
|
416
|
+
CLANG_ENABLE_MODULES = YES;
|
|
400
417
|
FRAMEWORK_SEARCH_PATHS = (
|
|
401
418
|
"$(PLATFORM_DIR)/Developer/Library/Frameworks",
|
|
402
419
|
"$(inherited)",
|
|
@@ -409,6 +426,8 @@
|
|
|
409
426
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
|
410
427
|
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
|
|
411
428
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
429
|
+
SWIFT_OBJC_BRIDGING_HEADER = "PROJECT/Tests-Bridging-Header.h";
|
|
430
|
+
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
|
|
412
431
|
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
|
|
413
432
|
SWIFT_VERSION = 4.0;
|
|
414
433
|
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PROJECT_Example.app/PROJECT_Example";
|
|
@@ -418,6 +437,7 @@
|
|
|
418
437
|
607FACF41AFB9204008FA782 /* Release */ = {
|
|
419
438
|
isa = XCBuildConfiguration;
|
|
420
439
|
buildSettings = {
|
|
440
|
+
CLANG_ENABLE_MODULES = YES;
|
|
421
441
|
FRAMEWORK_SEARCH_PATHS = (
|
|
422
442
|
"$(PLATFORM_DIR)/Developer/Library/Frameworks",
|
|
423
443
|
"$(inherited)",
|
|
@@ -426,8 +446,9 @@
|
|
|
426
446
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
|
|
427
447
|
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
|
|
428
448
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
429
|
-
|
|
449
|
+
SWIFT_OBJC_BRIDGING_HEADER = "PROJECT/Tests-Bridging-Header.h";
|
|
430
450
|
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
|
|
451
|
+
SWIFT_VERSION = 4.0;
|
|
431
452
|
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/PROJECT_Example.app/PROJECT_Example";
|
|
432
453
|
};
|
|
433
454
|
name = Release;
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
platform :ios, '10.0'
|
|
4
|
+
|
|
5
|
+
inhibit_all_warnings!
|
|
6
|
+
use_modular_headers!
|
|
7
|
+
use_frameworks! :linkage => :static
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
#pod_install hook
|
|
11
|
+
post_install do |installer|
|
|
12
|
+
|
|
13
|
+
# 单个target编辑配置
|
|
14
|
+
installer.pods_project.targets.each do |target|
|
|
15
|
+
target.build_configurations.each do |config|
|
|
16
|
+
#config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '9.0'
|
|
17
|
+
|
|
18
|
+
config.build_settings['PRODUCT_BUNDLE_IDENTIFIER'] = "org.cocoapods.${PRODUCT_NAME}"
|
|
19
|
+
config.build_settings['EXPANDED_CODE_SIGN_IDENTITY'] = ""
|
|
20
|
+
config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
|
|
21
|
+
config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
target '${POD_NAME}_Example' do
|
|
28
|
+
pod '${POD_NAME}', :path => '../'
|
|
29
|
+
|
|
30
|
+
target '${POD_NAME}_Tests' do
|
|
31
|
+
inherit! :search_paths
|
|
32
|
+
|
|
33
|
+
${INCLUDED_PODS}
|
|
34
|
+
end
|
|
35
|
+
end
|
|
File without changes
|
|
File without changes
|
|
@@ -107,13 +107,13 @@ module Pod
|
|
|
107
107
|
end
|
|
108
108
|
|
|
109
109
|
def add_yk_pods
|
|
110
|
-
self.add_pod_to_podfile "YKCategoryComponent"
|
|
110
|
+
# self.add_pod_to_podfile "YKCategoryComponent"
|
|
111
111
|
self.add_pod_to_podfile "YKModuleLifeCircleComponent"
|
|
112
112
|
self.add_pod_to_podfile "YKRouterComponent"
|
|
113
|
-
|
|
114
|
-
|
|
113
|
+
|
|
115
114
|
if @framework == "swift"
|
|
116
|
-
self.add_pod_to_podfile "SnapKit"
|
|
115
|
+
# self.add_pod_to_podfile "SnapKit"
|
|
116
|
+
self.add_pod_to_podfile "YKModuleServiceComponent.swift"
|
|
117
117
|
else
|
|
118
118
|
self.add_pod_to_podfile "YKModuleServiceComponent"
|
|
119
119
|
end
|
data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/.gitignore
RENAMED
|
File without changes
|
data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/.travis.yml
RENAMED
|
File without changes
|
|
File without changes
|
data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|
data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/NAME.podspec
RENAMED
|
@@ -91,7 +91,7 @@ Pod::Spec.new do |spec|
|
|
|
91
91
|
# Not including the public_header_files will make all headers public.
|
|
92
92
|
#
|
|
93
93
|
|
|
94
|
-
spec.source_files = "Classes", "Classes/**/*.{h,m}"
|
|
94
|
+
spec.source_files = "Classes", "Classes/**/*.{h,m,mm,x,xpp,swift,pch}"
|
|
95
95
|
spec.exclude_files = "Classes/Exclude"
|
|
96
96
|
|
|
97
97
|
# spec.public_header_files = "Classes/**/*.h"
|
data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/POD_LICENSE
RENAMED
|
File without changes
|
data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/POD_README.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/README.md
RENAMED
|
File without changes
|
data/lib/yk_command/project/{simple_project_template → simple_component_demo_template}/configure
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="
|
|
2
|
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="21225" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="Mfj-WX-5hf">
|
|
3
3
|
<device id="retina4_7" orientation="portrait" appearance="light"/>
|
|
4
4
|
<dependencies>
|
|
5
5
|
<deployment identifier="iOS"/>
|
|
6
|
-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="
|
|
6
|
+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21207"/>
|
|
7
7
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
|
8
8
|
</dependencies>
|
|
9
9
|
<scenes>
|
|
@@ -67,6 +67,21 @@
|
|
|
67
67
|
<action selector="serviceEvent:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="wWV-vz-MUY"/>
|
|
68
68
|
</connections>
|
|
69
69
|
</button>
|
|
70
|
+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="9ln-9B-eCl">
|
|
71
|
+
<rect key="frame" x="112.5" y="120" width="150" height="44"/>
|
|
72
|
+
<constraints>
|
|
73
|
+
<constraint firstAttribute="height" constant="44" id="RYj-MK-LxG"/>
|
|
74
|
+
<constraint firstAttribute="width" constant="150" id="mL3-Qw-RHo"/>
|
|
75
|
+
</constraints>
|
|
76
|
+
<color key="tintColor" red="0.94509803920000002" green="0.5450980392" blue="0.25490196079999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
|
77
|
+
<state key="normal" title="Button"/>
|
|
78
|
+
<buttonConfiguration key="configuration" style="filled" title="swift 路由事件">
|
|
79
|
+
<color key="baseBackgroundColor" red="0.94509803920000002" green="0.5450980392" blue="0.25490196079999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
|
80
|
+
</buttonConfiguration>
|
|
81
|
+
<connections>
|
|
82
|
+
<action selector="routerEvent_swift:" destination="vXZ-lx-hvc" eventType="touchUpInside" id="IMk-ZL-QPZ"/>
|
|
83
|
+
</connections>
|
|
84
|
+
</button>
|
|
70
85
|
</subviews>
|
|
71
86
|
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
|
72
87
|
<constraints>
|
|
@@ -74,6 +89,8 @@
|
|
|
74
89
|
<constraint firstItem="bUL-JU-Xsp" firstAttribute="top" secondItem="jyV-Pf-zRb" secondAttribute="bottom" constant="140" id="Ow3-T9-hC9"/>
|
|
75
90
|
<constraint firstItem="bUL-JU-Xsp" firstAttribute="centerX" secondItem="kh9-bI-dsS" secondAttribute="centerX" id="PSt-LS-2VX"/>
|
|
76
91
|
<constraint firstItem="TpN-Om-aLU" firstAttribute="centerX" secondItem="kh9-bI-dsS" secondAttribute="centerX" id="bPn-10-srE"/>
|
|
92
|
+
<constraint firstItem="bUL-JU-Xsp" firstAttribute="top" secondItem="9ln-9B-eCl" secondAttribute="bottom" constant="20" id="ccM-8d-pQT"/>
|
|
93
|
+
<constraint firstItem="9ln-9B-eCl" firstAttribute="centerX" secondItem="bUL-JU-Xsp" secondAttribute="centerX" id="xDq-fh-Qew"/>
|
|
77
94
|
</constraints>
|
|
78
95
|
</view>
|
|
79
96
|
<navigationItem key="navigationItem" id="ATM-17-fYg"/>
|
|
File without changes
|
|
File without changes
|