yk_command 0.5.7 → 0.5.91
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/sonarlint/issuestore/0/d/0d7a5f844cb7a763c4b02c8788a45a497537e9d4 +0 -0
- data/.idea/sonarlint/issuestore/1/9/19beed89439e4bbf29ca633ebffb0979a334a05d +0 -0
- data/.idea/sonarlint/issuestore/2/2/2264693887a1513e6c4ed16a6231e00d3045ec4e +0 -0
- data/.idea/sonarlint/issuestore/2/4/2461a61a84d866812e64ff95d40bd7836fb136ea +0 -0
- data/.idea/sonarlint/issuestore/2/e/2e113f2d3dc9bee6a98073d85966fbd9773c044f +0 -0
- data/.idea/sonarlint/issuestore/3/4/3423fb39097dbf652818678b749434eb36867bdf +0 -0
- data/.idea/sonarlint/issuestore/4/4/44b7fa1ba50397e71d88bd69389f1ec917165cfb +0 -0
- data/.idea/sonarlint/issuestore/4/6/460ee6442cf29ef54774da00475d1b5a4bd35a75 +0 -0
- data/.idea/sonarlint/issuestore/5/1/512554f10221132e2995f116a1bc380edc569ec4 +0 -0
- data/.idea/sonarlint/issuestore/6/e/6e1b71034e8e2f84d8f8236b269fef92a4a51797 +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/9/a/9ac8606ab5816ca6769cd53216a107d7d06ca971 +0 -0
- data/.idea/sonarlint/issuestore/a/6/a67e5ecfa13044750ab8599881f66237821a8b38 +0 -0
- data/.idea/sonarlint/issuestore/a/7/a7f1546c0b6a93fd23b7fc1506b2eb0d13e011c2 +0 -0
- data/.idea/sonarlint/issuestore/a/d/ad7bffefc6248a8f673a10e668a82bdbbe38a3e3 +0 -0
- data/.idea/sonarlint/issuestore/b/a/ba47c112fc95dd748a99abb0290610022df254a7 +0 -0
- data/.idea/sonarlint/issuestore/b/e/be2bfbadd6efe69882507c3a03b1b96c46f3dcbe +0 -0
- data/.idea/sonarlint/issuestore/c/f/cf949c4c054253d95250aa9644f2b805b2aa0d2a +0 -0
- data/.idea/sonarlint/issuestore/d/5/d594a688a538c9bebe38deb974bd46055c65a93c +0 -0
- data/.idea/sonarlint/issuestore/d/e/de3150c01c3a946a6168173c4116741379fe3579 +0 -0
- data/.idea/sonarlint/issuestore/e/5/e5580d669a0c327c5b0897ba7dd8465a3d4db45a +0 -0
- data/.idea/sonarlint/issuestore/e/e/ee825dc90668e04039ee525c5858c5736562c9f5 +0 -0
- data/.idea/sonarlint/issuestore/f/6/f6e109e4c314cef09022792f4b88dd267a682d28 +3 -0
- data/.idea/sonarlint/issuestore/index.pb +53 -0
- data/.idea/yk_command.iml +5 -5
- data/Gemfile.lock +2 -2
- data/lib/yk_command/analyze/request.rb +11 -6
- data/lib/yk_command/commands.rb +32 -1
- data/lib/yk_command/component_manage/component_manage_platform.rb +73 -4
- data/lib/yk_command/gitlab/yk_gitlab.rb +23 -2
- data/lib/yk_command/module/module_handler.rb +1 -4
- data/lib/yk_command/module/yk_module.rb +57 -63
- data/lib/yk_command/project/YKProjectTemplate/NAME.podspec +142 -18
- data/lib/yk_command/project/setup/ConfigureSwift.rb +2 -0
- data/lib/yk_command/project/setup/TemplateConfigurator.rb +8 -4
- data/lib/yk_command/project/simple_project_template/.gitignore +37 -0
- data/lib/yk_command/project/simple_project_template/CODE_OF_CONDUCT.md +40 -0
- data/lib/yk_command/project/simple_project_template/LICENSE +21 -0
- data/lib/yk_command/project/simple_project_template/NAME-osx.podspec +43 -0
- data/lib/yk_command/project/simple_project_template/NAME.podspec +140 -0
- data/lib/yk_command/project/simple_project_template/POD_LICENSE +19 -0
- data/lib/yk_command/project/simple_project_template/POD_README.md +29 -0
- data/lib/yk_command/project/simple_project_template/Pod/Assets/.gitkeep +0 -0
- data/lib/yk_command/project/simple_project_template/Pod/Classes/.gitkeep +0 -0
- data/lib/yk_command/project/simple_project_template/README.md +22 -0
- data/lib/yk_command/project/simple_project_template/configure +13 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/Base.lproj/LaunchScreen.storyboard +31 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/Base.lproj/Main.storyboard +79 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/CPDAppDelegate.h +15 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/CPDAppDelegate.m +46 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/CPDViewController.h +13 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/CPDViewController.m +37 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/Images.xcassets/AppIcon.appiconset/Contents.json +98 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/PROJECT-Info.plist +49 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/PROJECT-Prefix.pch +16 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/en.lproj/InfoPlist.strings +2 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/main.m +17 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT.xcodeproj/project.pbxproj +500 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +101 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/Podfile +19 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/Tests/Tests-Info.plist +22 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/Tests/Tests-Prefix.pch +7 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/Tests/Tests.m +9 -0
- data/lib/yk_command/project/simple_project_template/templates/ios/Example/Tests/en.lproj/InfoPlist.strings +2 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT/AppDelegate.swift +26 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT/Assets.xcassets/AppIcon.appiconset/Contents.json +58 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT/Base.lproj/Main.storyboard +717 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT/Info.plist +30 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT/PROJECT.entitlements +10 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT/ViewController.swift +27 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT.xcodeproj/project.pbxproj +444 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +103 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/Podfile +11 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/Tests/Info.plist +22 -0
- data/lib/yk_command/project/simple_project_template/templates/macos-swift/Example/Tests/Tests.swift +1 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT/AppDelegate.swift +46 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT/Base.lproj/LaunchScreen.xib +46 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT/Base.lproj/Main.storyboard +86 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT/Info.plist +39 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT/ViewController.swift +30 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT.xcodeproj/project.pbxproj +468 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/PROJECT.xcodeproj/xcshareddata/xcschemes/PROJECT.xcscheme +117 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/Podfile +20 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/Tests/Info.plist +24 -0
- data/lib/yk_command/project/simple_project_template/templates/swift/Example/Tests/Tests.swift +1 -0
- data/lib/yk_command/project/yk_project.rb +14 -9
- data/lib/yk_command/version.rb +1 -1
- metadata +82 -2
@@ -0,0 +1,79 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="19455" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="nsx-fL-gNv">
|
3
|
+
<device id="retina4_7" orientation="portrait" appearance="light"/>
|
4
|
+
<dependencies>
|
5
|
+
<deployment identifier="iOS"/>
|
6
|
+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19454"/>
|
7
|
+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
8
|
+
</dependencies>
|
9
|
+
<scenes>
|
10
|
+
<!--Navigation Controller-->
|
11
|
+
<scene sceneID="Q1b-xM-xDI">
|
12
|
+
<objects>
|
13
|
+
<navigationController id="nsx-fL-gNv" sceneMemberID="viewController">
|
14
|
+
<navigationBar key="navigationBar" contentMode="scaleToFill" id="RoT-IV-xkL">
|
15
|
+
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
|
16
|
+
<autoresizingMask key="autoresizingMask"/>
|
17
|
+
</navigationBar>
|
18
|
+
<connections>
|
19
|
+
<segue destination="whP-gf-Uak" kind="relationship" relationship="rootViewController" id="HNp-I8-B0Y"/>
|
20
|
+
</connections>
|
21
|
+
</navigationController>
|
22
|
+
<placeholder placeholderIdentifier="IBFirstResponder" id="tLZ-cJ-HJK" userLabel="First Responder" customClass="UIResponder" sceneMemberID="firstResponder"/>
|
23
|
+
</objects>
|
24
|
+
<point key="canvasLocation" x="-1008" y="713"/>
|
25
|
+
</scene>
|
26
|
+
<!--View Controller-->
|
27
|
+
<scene sceneID="wQg-tq-qST">
|
28
|
+
<objects>
|
29
|
+
<viewController id="whP-gf-Uak" customClass="CPDViewController" sceneMemberID="viewController">
|
30
|
+
<layoutGuides>
|
31
|
+
<viewControllerLayoutGuide type="top" id="uEw-UM-LJ8"/>
|
32
|
+
<viewControllerLayoutGuide type="bottom" id="Mvr-aV-6Um"/>
|
33
|
+
</layoutGuides>
|
34
|
+
<view key="view" contentMode="scaleToFill" id="TpU-gO-2f1">
|
35
|
+
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
36
|
+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
37
|
+
<subviews>
|
38
|
+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ByE-XO-7AP">
|
39
|
+
<rect key="frame" x="112.5" y="194" width="150" height="44"/>
|
40
|
+
<constraints>
|
41
|
+
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="150" id="D7l-7G-BnA"/>
|
42
|
+
<constraint firstAttribute="height" constant="44" id="x5q-jv-jvK"/>
|
43
|
+
</constraints>
|
44
|
+
<state key="normal" title="Button"/>
|
45
|
+
<buttonConfiguration key="configuration" style="filled" title="路由事件"/>
|
46
|
+
<connections>
|
47
|
+
<action selector="routerEvent:" destination="whP-gf-Uak" eventType="touchUpInside" id="DWR-cY-kDv"/>
|
48
|
+
</connections>
|
49
|
+
</button>
|
50
|
+
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="LHc-dx-FpI">
|
51
|
+
<rect key="frame" x="112.5" y="268" width="150" height="44"/>
|
52
|
+
<constraints>
|
53
|
+
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="150" id="4Sm-nd-yg6"/>
|
54
|
+
<constraint firstAttribute="height" relation="greaterThanOrEqual" constant="44" id="cgr-pq-Xg3"/>
|
55
|
+
<constraint firstAttribute="height" constant="44" id="kHB-iw-7Aj"/>
|
56
|
+
</constraints>
|
57
|
+
<state key="normal" title="Button"/>
|
58
|
+
<buttonConfiguration key="configuration" style="filled" title="服务事件"/>
|
59
|
+
<connections>
|
60
|
+
<action selector="serviceEvent:" destination="whP-gf-Uak" eventType="touchUpInside" id="f94-VJ-rIw"/>
|
61
|
+
</connections>
|
62
|
+
</button>
|
63
|
+
</subviews>
|
64
|
+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
65
|
+
<constraints>
|
66
|
+
<constraint firstItem="LHc-dx-FpI" firstAttribute="top" secondItem="ByE-XO-7AP" secondAttribute="bottom" constant="30" id="Caz-fW-gns"/>
|
67
|
+
<constraint firstItem="ByE-XO-7AP" firstAttribute="centerX" secondItem="TpU-gO-2f1" secondAttribute="centerX" id="Q87-Cg-mLe"/>
|
68
|
+
<constraint firstItem="LHc-dx-FpI" firstAttribute="centerX" secondItem="TpU-gO-2f1" secondAttribute="centerX" id="lZ7-xx-umB"/>
|
69
|
+
<constraint firstItem="ByE-XO-7AP" firstAttribute="top" secondItem="uEw-UM-LJ8" secondAttribute="bottom" constant="150" id="sdK-Ls-Frk"/>
|
70
|
+
</constraints>
|
71
|
+
</view>
|
72
|
+
<navigationItem key="navigationItem" id="E30-XM-PEC"/>
|
73
|
+
</viewController>
|
74
|
+
<placeholder placeholderIdentifier="IBFirstResponder" id="tc2-Qw-aMS" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
75
|
+
</objects>
|
76
|
+
<point key="canvasLocation" x="304.80000000000001" y="432.23388305847078"/>
|
77
|
+
</scene>
|
78
|
+
</scenes>
|
79
|
+
</document>
|
data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/CPDAppDelegate.h
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
//
|
2
|
+
// CPDAppDelegate.h
|
3
|
+
// PROJECT
|
4
|
+
//
|
5
|
+
// Created by PROJECT_OWNER on TODAYS_DATE.
|
6
|
+
// Copyright (c) TODAYS_YEAR PROJECT_OWNER. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
@import UIKit;
|
10
|
+
|
11
|
+
@interface CPDAppDelegate : UIResponder <UIApplicationDelegate>
|
12
|
+
|
13
|
+
@property (strong, nonatomic) UIWindow *window;
|
14
|
+
|
15
|
+
@end
|
data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/CPDAppDelegate.m
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
//
|
2
|
+
// CPDAppDelegate.m
|
3
|
+
// PROJECT
|
4
|
+
//
|
5
|
+
// Created by PROJECT_OWNER on TODAYS_DATE.
|
6
|
+
// Copyright (c) TODAYS_YEAR PROJECT_OWNER. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "CPDAppDelegate.h"
|
10
|
+
|
11
|
+
@implementation CPDAppDelegate
|
12
|
+
|
13
|
+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
14
|
+
{
|
15
|
+
// Override point for customization after application launch.
|
16
|
+
return YES;
|
17
|
+
}
|
18
|
+
|
19
|
+
- (void)applicationWillResignActive:(UIApplication *)application
|
20
|
+
{
|
21
|
+
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
|
22
|
+
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
|
23
|
+
}
|
24
|
+
|
25
|
+
- (void)applicationDidEnterBackground:(UIApplication *)application
|
26
|
+
{
|
27
|
+
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
|
28
|
+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
29
|
+
}
|
30
|
+
|
31
|
+
- (void)applicationWillEnterForeground:(UIApplication *)application
|
32
|
+
{
|
33
|
+
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
|
34
|
+
}
|
35
|
+
|
36
|
+
- (void)applicationDidBecomeActive:(UIApplication *)application
|
37
|
+
{
|
38
|
+
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
|
39
|
+
}
|
40
|
+
|
41
|
+
- (void)applicationWillTerminate:(UIApplication *)application
|
42
|
+
{
|
43
|
+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
|
44
|
+
}
|
45
|
+
|
46
|
+
@end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
//
|
2
|
+
// CPDViewController.m
|
3
|
+
// PROJECT
|
4
|
+
//
|
5
|
+
// Created by PROJECT_OWNER on TODAYS_DATE.
|
6
|
+
// Copyright (c) TODAYS_YEAR PROJECT_OWNER. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "CPDViewController.h"
|
10
|
+
|
11
|
+
|
12
|
+
@interface CPDViewController ()
|
13
|
+
|
14
|
+
@end
|
15
|
+
@implementation CPDViewController
|
16
|
+
|
17
|
+
- (void)viewDidLoad
|
18
|
+
{
|
19
|
+
[super viewDidLoad];
|
20
|
+
// Do any additional setup after loading the view, typically from a nib.
|
21
|
+
self.navigationItem.title = [NSString stringWithFormat:@"%@",@"PROJECT Demo"];
|
22
|
+
}
|
23
|
+
|
24
|
+
|
25
|
+
- (IBAction)routerEvent:(id)sender {
|
26
|
+
NSLog(@"这里调用模块的路由");
|
27
|
+
|
28
|
+
|
29
|
+
}
|
30
|
+
|
31
|
+
- (IBAction)serviceEvent:(id)sender {
|
32
|
+
NSLog(@"这里调用模块的服务");
|
33
|
+
|
34
|
+
}
|
35
|
+
|
36
|
+
|
37
|
+
@end
|
@@ -0,0 +1,98 @@
|
|
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" : "ipad",
|
45
|
+
"size" : "20x20",
|
46
|
+
"scale" : "1x"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"idiom" : "ipad",
|
50
|
+
"size" : "20x20",
|
51
|
+
"scale" : "2x"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"idiom" : "ipad",
|
55
|
+
"size" : "29x29",
|
56
|
+
"scale" : "1x"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"idiom" : "ipad",
|
60
|
+
"size" : "29x29",
|
61
|
+
"scale" : "2x"
|
62
|
+
},
|
63
|
+
{
|
64
|
+
"idiom" : "ipad",
|
65
|
+
"size" : "40x40",
|
66
|
+
"scale" : "1x"
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"idiom" : "ipad",
|
70
|
+
"size" : "40x40",
|
71
|
+
"scale" : "2x"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"idiom" : "ipad",
|
75
|
+
"size" : "76x76",
|
76
|
+
"scale" : "1x"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"idiom" : "ipad",
|
80
|
+
"size" : "76x76",
|
81
|
+
"scale" : "2x"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"idiom" : "ipad",
|
85
|
+
"size" : "83.5x83.5",
|
86
|
+
"scale" : "2x"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"idiom" : "ios-marketing",
|
90
|
+
"size" : "1024x1024",
|
91
|
+
"scale" : "1x"
|
92
|
+
}
|
93
|
+
],
|
94
|
+
"info" : {
|
95
|
+
"version" : 1,
|
96
|
+
"author" : "xcode"
|
97
|
+
}
|
98
|
+
}
|
data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/PROJECT-Info.plist
ADDED
@@ -0,0 +1,49 @@
|
|
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>CFBundleDisplayName</key>
|
8
|
+
<string>${PRODUCT_NAME}</string>
|
9
|
+
<key>CFBundleExecutable</key>
|
10
|
+
<string>${EXECUTABLE_NAME}</string>
|
11
|
+
<key>CFBundleIdentifier</key>
|
12
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
13
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
14
|
+
<string>6.0</string>
|
15
|
+
<key>CFBundleName</key>
|
16
|
+
<string>${PRODUCT_NAME}</string>
|
17
|
+
<key>CFBundlePackageType</key>
|
18
|
+
<string>APPL</string>
|
19
|
+
<key>CFBundleShortVersionString</key>
|
20
|
+
<string>1.0</string>
|
21
|
+
<key>CFBundleSignature</key>
|
22
|
+
<string>????</string>
|
23
|
+
<key>CFBundleVersion</key>
|
24
|
+
<string>1.0</string>
|
25
|
+
<key>LSRequiresIPhoneOS</key>
|
26
|
+
<true/>
|
27
|
+
<key>UILaunchStoryboardName</key>
|
28
|
+
<string>LaunchScreen</string>
|
29
|
+
<key>UIMainStoryboardFile</key>
|
30
|
+
<string>Main</string>
|
31
|
+
<key>UIRequiredDeviceCapabilities</key>
|
32
|
+
<array>
|
33
|
+
<string>armv7</string>
|
34
|
+
</array>
|
35
|
+
<key>UISupportedInterfaceOrientations</key>
|
36
|
+
<array>
|
37
|
+
<string>UIInterfaceOrientationPortrait</string>
|
38
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
39
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
40
|
+
</array>
|
41
|
+
<key>UISupportedInterfaceOrientations~ipad</key>
|
42
|
+
<array>
|
43
|
+
<string>UIInterfaceOrientationPortrait</string>
|
44
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
45
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
46
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
47
|
+
</array>
|
48
|
+
</dict>
|
49
|
+
</plist>
|
data/lib/yk_command/project/simple_project_template/templates/ios/Example/PROJECT/PROJECT-Prefix.pch
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
//
|
2
|
+
// Prefix header
|
3
|
+
//
|
4
|
+
// The contents of this file are implicitly included at the beginning of every source file.
|
5
|
+
//
|
6
|
+
|
7
|
+
#import <Availability.h>
|
8
|
+
|
9
|
+
#ifndef __IPHONE_5_0
|
10
|
+
#warning "This project uses features only available in iOS SDK 5.0 and later."
|
11
|
+
#endif
|
12
|
+
|
13
|
+
#ifdef __OBJC__
|
14
|
+
@import UIKit;
|
15
|
+
@import Foundation;
|
16
|
+
#endif
|
@@ -0,0 +1,17 @@
|
|
1
|
+
//
|
2
|
+
// main.m
|
3
|
+
// PROJECT
|
4
|
+
//
|
5
|
+
// Created by PROJECT_OWNER on TODAYS_DATE.
|
6
|
+
// Copyright (c) TODAYS_YEAR PROJECT_OWNER. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
@import UIKit;
|
10
|
+
#import "CPDAppDelegate.h"
|
11
|
+
|
12
|
+
int main(int argc, char * argv[])
|
13
|
+
{
|
14
|
+
@autoreleasepool {
|
15
|
+
return UIApplicationMain(argc, argv, nil, NSStringFromClass([CPDAppDelegate class]));
|
16
|
+
}
|
17
|
+
}
|