yk_command 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/vcs.xml +2 -0
- data/.idea/yk_command.iml +6 -6
- data/Gemfile.lock +3 -3
- data/lib/yk_command/analyze/analyze.rb +4 -0
- data/lib/yk_command/bot/wx_bot.rb +0 -10
- data/lib/yk_command/module/module_handler.rb +119 -0
- data/lib/yk_command/module/template/objc/CategoryHeader.h +1 -1
- data/lib/yk_command/module/template/objc/RouterRegister.m +6 -5
- data/lib/yk_command/module/template/objc/ServiceRegister.m +1 -1
- data/lib/yk_command/module/yk_module.rb +138 -144
- data/lib/yk_command/project/YKProjectTemplate/.gitignore +37 -0
- data/lib/yk_command/project/YKProjectTemplate/CODE_OF_CONDUCT.md +40 -0
- data/lib/yk_command/project/YKProjectTemplate/LICENSE +21 -0
- data/lib/yk_command/project/YKProjectTemplate/NAME-osx.podspec +43 -0
- data/lib/yk_command/project/YKProjectTemplate/NAME.podspec +27 -0
- data/lib/yk_command/project/YKProjectTemplate/POD_LICENSE +19 -0
- data/lib/yk_command/project/YKProjectTemplate/POD_README.md +29 -0
- data/lib/yk_command/project/YKProjectTemplate/Pod/Assets/.gitkeep +0 -0
- data/lib/yk_command/project/YKProjectTemplate/Pod/Classes/.gitkeep +0 -0
- data/lib/yk_command/project/YKProjectTemplate/README.md +22 -0
- data/lib/yk_command/project/YKProjectTemplate/configure +12 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/Base.lproj/LaunchScreen.storyboard +31 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/Base.lproj/Main.storyboard +79 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/CPDAppDelegate.h +15 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/CPDAppDelegate.m +46 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/CPDViewController.h +13 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/CPDViewController.m +60 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/Images.xcassets/AppIcon.appiconset/Contents.json +98 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/PROJECT-Info.plist +49 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/PROJECT-Prefix.pch +16 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/en.lproj/InfoPlist.strings +2 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT/main.m +17 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT.xcodeproj/project.pbxproj +500 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +101 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/Podfile +19 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/Tests/Tests-Info.plist +22 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/Tests/Tests-Prefix.pch +7 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/Tests/Tests.m +9 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/ios/Example/Tests/en.lproj/InfoPlist.strings +2 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT/AppDelegate.swift +26 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT/Assets.xcassets/AppIcon.appiconset/Contents.json +58 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT/Base.lproj/Main.storyboard +717 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT/Info.plist +30 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT/PROJECT.entitlements +10 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT/ViewController.swift +27 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT.xcodeproj/project.pbxproj +444 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +103 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/Podfile +11 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/Tests/Info.plist +22 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/macos-swift/Example/Tests/Tests.swift +1 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT/AppDelegate.swift +46 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT/Base.lproj/LaunchScreen.xib +46 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT/Base.lproj/Main.storyboard +86 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT/Info.plist +39 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT/ViewController.swift +37 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT.xcodeproj/project.pbxproj +468 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +117 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/Podfile +20 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/Tests/Info.plist +24 -0
- data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/Tests/Tests.swift +1 -0
- data/lib/yk_command/project/setup/ConfigureMacOSSwift.rb +46 -0
- data/lib/yk_command/project/setup/ConfigureSwift.rb +40 -0
- data/lib/yk_command/project/setup/ConfigureiOS.rb +107 -0
- data/lib/yk_command/project/setup/MessageBank.rb +113 -0
- data/lib/yk_command/project/setup/ProjectManipulator.rb +141 -0
- data/lib/yk_command/project/setup/TemplateConfigurator.rb +253 -0
- data/lib/yk_command/project/test_examples/kiwi.m +36 -0
- data/lib/yk_command/project/test_examples/quick.swift +50 -0
- data/lib/yk_command/project/test_examples/specta.m +39 -0
- data/lib/yk_command/project/test_examples/xctest.m +26 -0
- data/lib/yk_command/project/test_examples/xctest.swift +28 -0
- data/lib/yk_command/project/yk_project.rb +86 -0
- data/lib/yk_command/version.rb +1 -1
- data/yk_command.gemspec +2 -1
- metadata +76 -11
- data/.YKModuleFilesConfig.yml +0 -5
- data//345/275/222/346/241/243.zip +0 -0
data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT/AppDelegate.swift
ADDED
@@ -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,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>
|
data/lib/yk_command/project/YKProjectTemplate/templates/swift/Example/PROJECT/ViewController.swift
ADDED
@@ -0,0 +1,37 @@
|
|
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 YKModuleServiceComponent
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
class ViewController: UIViewController {
|
19
|
+
|
20
|
+
override func viewDidLoad() {
|
21
|
+
super.viewDidLoad()
|
22
|
+
// Do any additional setup after loading the view, typically from a nib.
|
23
|
+
self.navigationItem.title = "PROJECT Demo"
|
24
|
+
|
25
|
+
}
|
26
|
+
|
27
|
+
@IBAction func routerEvent(_ sender: Any) {
|
28
|
+
print("---调用路由---")
|
29
|
+
YKRouterComponent.shareInstance().ykOpenUrlInstance(CPDPROJECT_Swift_RouterDefine.demoPage(), fromVC: self, complete: nil)
|
30
|
+
}
|
31
|
+
|
32
|
+
|
33
|
+
@IBAction func serviceEvent(_ sender: Any) {
|
34
|
+
print("---调用服务---")
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|