fwtoolkit 1.0.6 → 2.0.0
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 +6 -14
- data/lib/fwtoolkit/cli/project.rb +7 -11
- data/lib/fwtoolkit/cli/xcode.rb +3 -3
- data/lib/fwtoolkit/cli.rb +5 -8
- data/lib/fwtoolkit/config/config.sample +2 -3
- data/lib/fwtoolkit/configfile.rb +0 -1
- data/lib/fwtoolkit/version.rb +1 -1
- data/templates/objc_project/git/.gitignore +31 -0
- data/templates/objc_project/rvm/Gemfile +3 -0
- data/templates/objc_project/xcode/%project_name%/%project_name%.xcodeproj/project.pbxproj.tt +441 -0
- data/templates/{default_project → objc_project}/xcode/%project_name%/%project_name%.xcodeproj/project.xcworkspace/contents.xcworkspacedata.tt +0 -0
- data/templates/{default_project → objc_project}/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.h.tt +7 -4
- data/templates/{default_project → objc_project}/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.m.tt +14 -18
- data/templates/objc_project/xcode/%project_name%/%target_name%/%class_prefix%ViewController.h.tt +15 -0
- data/templates/objc_project/xcode/%project_name%/%target_name%/%class_prefix%ViewController.m.tt +27 -0
- data/templates/objc_project/xcode/%project_name%/%target_name%/AppDelegate.swift.tt +46 -0
- data/templates/objc_project/xcode/%project_name%/%target_name%/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json +68 -0
- data/templates/objc_project/xcode/%project_name%/%target_name%/Resources/Base.lproj/LaunchScreen.storyboard +27 -0
- data/templates/objc_project/xcode/%project_name%/%target_name%/Resources/Base.lproj/Main.storyboard +26 -0
- data/templates/{default_project/xcode/%project_name%/%target_name%/Supporting Files/%project_name%-Info.plist → objc_project/xcode/%project_name%/%target_name%/Supporting Files/Info.plist } +8 -6
- data/templates/{default_project → objc_project}/xcode/%project_name%/%target_name%/Supporting Files/fw-shared.xcconfig +1 -5
- data/templates/{default_project → objc_project}/xcode/%project_name%/%target_name%/Supporting Files/main.m.tt +3 -5
- data/templates/objc_project/xcode/%project_name%/%target_name%/ViewController.swift.tt +25 -0
- data/templates/objc_project/xcode/%project_name%/%target_name%Tests/%project_name%Tests.m.tt +39 -0
- data/templates/{default_project/xcode/%project_name%/%tests_target_name%/Supporting Files/%tests_target_name%-Info.plist → objc_project/xcode/%project_name%/%target_name%Tests/Resources/Info.plist} +4 -2
- data/templates/objc_project/xcode/%project_name%/%tests_target_name%/%project_name%Tests.swift.tt +36 -0
- data/templates/objc_project/xcode/%project_name%/%tests_target_name%/Supporting Files/Info.plist +24 -0
- data/templates/{default_project → objc_project}/xcode/%project_name%.xcworkspace/contents.xcworkspacedata.tt +1 -1
- data/templates/{default_project → objc_project}/xcode/Podfile.tt +2 -0
- data/templates/{default_project → objc_project}/xcode/Rakefile.tt +0 -5
- data/templates/swift_project/git/.gitignore +31 -0
- data/templates/swift_project/rvm/Gemfile +3 -0
- data/templates/swift_project/xcode/%project_name%/%project_name%.xcodeproj/project.pbxproj.tt +435 -0
- data/templates/swift_project/xcode/%project_name%/%project_name%.xcodeproj/project.xcworkspace/contents.xcworkspacedata.tt +7 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.h.tt +18 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.m.tt +45 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/%class_prefix%ViewController.h.tt +15 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/%class_prefix%ViewController.m.tt +27 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/AppDelegate.swift.tt +46 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json +73 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/Resources/Base.lproj/LaunchScreen.storyboard +27 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/Resources/Base.lproj/Main.storyboard +25 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/Supporting Files/Info.plist +47 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/Supporting Files/fw-shared.xcconfig +37 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/Supporting Files/main.m.tt +16 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%/ViewController.swift.tt +25 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%Tests/%project_name%Tests.m.tt +39 -0
- data/templates/swift_project/xcode/%project_name%/%target_name%Tests/Resources/Info.plist +24 -0
- data/templates/swift_project/xcode/%project_name%/%tests_target_name%/%project_name%Tests.swift.tt +36 -0
- data/templates/swift_project/xcode/%project_name%/%tests_target_name%/Supporting Files/Info.plist +24 -0
- data/templates/swift_project/xcode/%project_name%/.DS_Store +0 -0
- data/templates/swift_project/xcode/%project_name%.xcworkspace/contents.xcworkspacedata.tt +7 -0
- data/templates/swift_project/xcode/.DS_Store +0 -0
- data/templates/swift_project/xcode/Podfile.tt +5 -0
- data/templates/swift_project/xcode/Rakefile.tt +9 -0
- metadata +103 -123
- data/templates/default_project/frank/%project_name%/%target_name%/%class_prefix%AppDelegate+Frank.h.tt +0 -15
- data/templates/default_project/frank/%project_name%/%target_name%/%class_prefix%AppDelegate+Frank.m.tt +0 -86
- data/templates/default_project/frank/%project_name%/Frank/features/example.feature +0 -8
- data/templates/default_project/frank/%project_name%/Frank/features/step_definitions/launch_steps.rb +0 -15
- data/templates/default_project/frank/%project_name%/Frank/features/support/env.rb +0 -21
- data/templates/default_project/frank/%project_name%/Frank/features/support/mimic.rb +0 -94
- data/templates/default_project/frank/~template_config.rb +0 -11
- data/templates/default_project/frank_seed_core_data/%project_name%/Frank/features/support/models/%class_name%.rb.tt +0 -30
- data/templates/default_project/frank_seed_support/%project_name%/Frank/features/support/models/factories.rb.tt +0 -10
- data/templates/default_project/frank_seed_support/%project_name%/Frank/features/support/views/my_objects_json.erb +0 -7
- data/templates/default_project/frank_seed_support/%project_name%/Frank/features/support/views/my_objects_xml.erb +0 -7
- data/templates/default_project/rvm/.rvmrc.tt +0 -41
- data/templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/project.pbxproj.tt +0 -547
- data/templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/xcshareddata/xcschemes/%project_name%-Release.xcscheme.tt +0 -105
- data/templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/xcshareddata/xcschemes/%project_name%-Testing.xcscheme.tt +0 -105
- data/templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/xcshareddata/xcschemes/%project_name%.xcscheme.tt +0 -105
- data/templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/%project_name%-Prefix.pch.tt +0 -14
- data/templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/en.lproj/InfoPlist.strings +0 -2
- data/templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/info.plist.h.tt +0 -8
- data/templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/version.sh +0 -159
- data/templates/default_project/xcode/%project_name%/%tests_target_name%/%project_name%Tests.h.tt +0 -13
- data/templates/default_project/xcode/%project_name%/%tests_target_name%/%project_name%Tests.m.tt +0 -32
- data/templates/default_project/xcode/%project_name%/%tests_target_name%/Supporting Files/en.lproj/InfoPlist.strings +0 -2
- data/templates/default_project/xcode/%project_name%/Default.png +0 -0
- data/templates/default_project/xcode/%project_name%/Resources/Default-568h@2x.png +0 -0
- data/templates/default_project/xcode/%project_name%/Resources/Default.png +0 -0
- data/templates/default_project/xcode/%project_name%/Resources/Default@2x.png +0 -0
- data/templates/default_project/xcode/%project_name%.xcworkspace/xcshareddata/%project_name%.xccheckout.tt +0 -41
- data/templates/default_project/xcode/FWProjectfile.tt +0 -14
- data/templates/default_project/xcode/~template_config.rb +0 -5
@@ -1,48 +1,44 @@
|
|
1
1
|
//
|
2
|
-
//
|
2
|
+
// AppDelegate.m
|
3
3
|
// <%= config[:project_name] %>
|
4
4
|
//
|
5
|
-
// Created by <%= config[:project_creator] %> on
|
6
|
-
// Copyright (c)
|
5
|
+
// Created by <%= config[:project_creator] %> on 02/01/2015.
|
6
|
+
// Copyright (c) 2015 <%= config[:organization_name] %>. All rights reserved.
|
7
7
|
//
|
8
8
|
|
9
9
|
#import "<%= config[:class_prefix] %>AppDelegate.h"
|
10
10
|
|
11
|
+
@interface <%= config[:class_prefix] %>AppDelegate ()
|
12
|
+
|
13
|
+
@end
|
14
|
+
|
11
15
|
@implementation <%= config[:class_prefix] %>AppDelegate
|
12
16
|
|
13
|
-
|
14
|
-
{
|
15
|
-
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
17
|
+
|
18
|
+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
16
19
|
// Override point for customization after application launch.
|
17
|
-
self.window.backgroundColor = [UIColor whiteColor];
|
18
|
-
[self.window makeKeyAndVisible];
|
19
20
|
return YES;
|
20
21
|
}
|
21
22
|
|
22
|
-
- (void)applicationWillResignActive:(UIApplication *)application
|
23
|
-
{
|
23
|
+
- (void)applicationWillResignActive:(UIApplication *)application {
|
24
24
|
// 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.
|
25
25
|
// 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.
|
26
26
|
}
|
27
27
|
|
28
|
-
- (void)applicationDidEnterBackground:(UIApplication *)application
|
29
|
-
{
|
28
|
+
- (void)applicationDidEnterBackground:(UIApplication *)application {
|
30
29
|
// 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.
|
31
30
|
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
32
31
|
}
|
33
32
|
|
34
|
-
- (void)applicationWillEnterForeground:(UIApplication *)application
|
35
|
-
{
|
33
|
+
- (void)applicationWillEnterForeground:(UIApplication *)application {
|
36
34
|
// 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.
|
37
35
|
}
|
38
36
|
|
39
|
-
- (void)applicationDidBecomeActive:(UIApplication *)application
|
40
|
-
{
|
37
|
+
- (void)applicationDidBecomeActive:(UIApplication *)application {
|
41
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.
|
42
39
|
}
|
43
40
|
|
44
|
-
- (void)applicationWillTerminate:(UIApplication *)application
|
45
|
-
{
|
41
|
+
- (void)applicationWillTerminate:(UIApplication *)application {
|
46
42
|
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
|
47
43
|
}
|
48
44
|
|
data/templates/objc_project/xcode/%project_name%/%target_name%/%class_prefix%ViewController.h.tt
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
//
|
2
|
+
// ViewController.h
|
3
|
+
// <%= config[:project_name] %>
|
4
|
+
//
|
5
|
+
// Created by <%= config[:project_creator] %> on 02/01/2015.
|
6
|
+
// Copyright (c) 2015 <%= config[:organization_name] %>. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
@import UIKit;
|
10
|
+
|
11
|
+
@interface <%= config[:class_prefix] %>ViewController : UIViewController
|
12
|
+
|
13
|
+
|
14
|
+
@end
|
15
|
+
|
data/templates/objc_project/xcode/%project_name%/%target_name%/%class_prefix%ViewController.m.tt
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
//
|
2
|
+
// ViewController.m
|
3
|
+
// <%= config[:project_name] %>
|
4
|
+
//
|
5
|
+
// Created by <%= config[:project_creator] %> on 02/01/2015.
|
6
|
+
// Copyright (c) 2015 <%= config[:organization_name] %>. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "<%= config[:class_prefix] %>ViewController.h"
|
10
|
+
|
11
|
+
@interface <%= config[:class_prefix] %>ViewController ()
|
12
|
+
|
13
|
+
@end
|
14
|
+
|
15
|
+
@implementation <%= config[:class_prefix] %>ViewController
|
16
|
+
|
17
|
+
- (void)viewDidLoad {
|
18
|
+
[super viewDidLoad];
|
19
|
+
// Do any additional setup after loading the view, typically from a nib.
|
20
|
+
}
|
21
|
+
|
22
|
+
- (void)didReceiveMemoryWarning {
|
23
|
+
[super didReceiveMemoryWarning];
|
24
|
+
// Dispose of any resources that can be recreated.
|
25
|
+
}
|
26
|
+
|
27
|
+
@end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
//
|
2
|
+
// AppDelegate.swift
|
3
|
+
// <%= config[:project_name] %>
|
4
|
+
//
|
5
|
+
// Created by Fabio Gallonetto on 28/01/2016.
|
6
|
+
// Copyright © 2016 Future Workshops. 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: [NSObject: AnyObject]?) -> 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,68 @@
|
|
1
|
+
{
|
2
|
+
"images" : [
|
3
|
+
{
|
4
|
+
"idiom" : "iphone",
|
5
|
+
"size" : "29x29",
|
6
|
+
"scale" : "2x"
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"idiom" : "iphone",
|
10
|
+
"size" : "29x29",
|
11
|
+
"scale" : "3x"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"idiom" : "iphone",
|
15
|
+
"size" : "40x40",
|
16
|
+
"scale" : "2x"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"idiom" : "iphone",
|
20
|
+
"size" : "40x40",
|
21
|
+
"scale" : "3x"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"idiom" : "iphone",
|
25
|
+
"size" : "60x60",
|
26
|
+
"scale" : "2x"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"idiom" : "iphone",
|
30
|
+
"size" : "60x60",
|
31
|
+
"scale" : "3x"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"idiom" : "ipad",
|
35
|
+
"size" : "29x29",
|
36
|
+
"scale" : "1x"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"idiom" : "ipad",
|
40
|
+
"size" : "29x29",
|
41
|
+
"scale" : "2x"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"idiom" : "ipad",
|
45
|
+
"size" : "40x40",
|
46
|
+
"scale" : "1x"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"idiom" : "ipad",
|
50
|
+
"size" : "40x40",
|
51
|
+
"scale" : "2x"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"idiom" : "ipad",
|
55
|
+
"size" : "76x76",
|
56
|
+
"scale" : "1x"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"idiom" : "ipad",
|
60
|
+
"size" : "76x76",
|
61
|
+
"scale" : "2x"
|
62
|
+
}
|
63
|
+
],
|
64
|
+
"info" : {
|
65
|
+
"version" : 1,
|
66
|
+
"author" : "xcode"
|
67
|
+
}
|
68
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="8150" systemVersion="15A204g" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" initialViewController="01J-lp-oVM">
|
3
|
+
<dependencies>
|
4
|
+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="8122"/>
|
5
|
+
</dependencies>
|
6
|
+
<scenes>
|
7
|
+
<!--View Controller-->
|
8
|
+
<scene sceneID="EHf-IW-A2E">
|
9
|
+
<objects>
|
10
|
+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
11
|
+
<layoutGuides>
|
12
|
+
<viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
|
13
|
+
<viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
|
14
|
+
</layoutGuides>
|
15
|
+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
16
|
+
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
17
|
+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
18
|
+
<animations/>
|
19
|
+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
20
|
+
</view>
|
21
|
+
</viewController>
|
22
|
+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
23
|
+
</objects>
|
24
|
+
<point key="canvasLocation" x="53" y="375"/>
|
25
|
+
</scene>
|
26
|
+
</scenes>
|
27
|
+
</document>
|
data/templates/objc_project/xcode/%project_name%/%target_name%/Resources/Base.lproj/Main.storyboard
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="9531" systemVersion="15D21" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
|
3
|
+
<dependencies>
|
4
|
+
<deployment identifier="iOS"/>
|
5
|
+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="9529"/>
|
6
|
+
</dependencies>
|
7
|
+
<scenes>
|
8
|
+
<!--View Controller-->
|
9
|
+
<scene sceneID="tne-QT-ifu">
|
10
|
+
<objects>
|
11
|
+
<viewController id="BYZ-38-t0r" customClass="ViewController" sceneMemberID="viewController">
|
12
|
+
<layoutGuides>
|
13
|
+
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
|
14
|
+
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
|
15
|
+
</layoutGuides>
|
16
|
+
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
17
|
+
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
18
|
+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
19
|
+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
20
|
+
</view>
|
21
|
+
</viewController>
|
22
|
+
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
23
|
+
</objects>
|
24
|
+
</scene>
|
25
|
+
</scenes>
|
26
|
+
</document>
|
@@ -4,16 +4,14 @@
|
|
4
4
|
<dict>
|
5
5
|
<key>CFBundleDevelopmentRegion</key>
|
6
6
|
<string>en</string>
|
7
|
-
<key>CFBundleDisplayName</key>
|
8
|
-
<string>${PRODUCT_NAME}</string>
|
9
7
|
<key>CFBundleExecutable</key>
|
10
|
-
<string>$
|
8
|
+
<string>$(EXECUTABLE_NAME)</string>
|
11
9
|
<key>CFBundleIdentifier</key>
|
12
|
-
<string
|
10
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
13
11
|
<key>CFBundleInfoDictionaryVersion</key>
|
14
12
|
<string>6.0</string>
|
15
13
|
<key>CFBundleName</key>
|
16
|
-
<string>$
|
14
|
+
<string>$(PRODUCT_NAME)</string>
|
17
15
|
<key>CFBundlePackageType</key>
|
18
16
|
<string>APPL</string>
|
19
17
|
<key>CFBundleShortVersionString</key>
|
@@ -21,9 +19,13 @@
|
|
21
19
|
<key>CFBundleSignature</key>
|
22
20
|
<string>????</string>
|
23
21
|
<key>CFBundleVersion</key>
|
24
|
-
<string>1
|
22
|
+
<string>1</string>
|
25
23
|
<key>LSRequiresIPhoneOS</key>
|
26
24
|
<true/>
|
25
|
+
<key>UILaunchStoryboardName</key>
|
26
|
+
<string>LaunchScreen</string>
|
27
|
+
<key>UIMainStoryboardFile</key>
|
28
|
+
<string>Main</string>
|
27
29
|
<key>UIRequiredDeviceCapabilities</key>
|
28
30
|
<array>
|
29
31
|
<string>armv7</string>
|
@@ -28,14 +28,10 @@ GCC_WARN_UNUSED_FUNCTION = YES
|
|
28
28
|
GCC_WARN_UNUSED_LABEL = YES
|
29
29
|
GCC_WARN_UNUSED_VARIABLE = YES
|
30
30
|
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
|
31
|
-
GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = YES
|
32
31
|
GCC_WARN_UNDECLARED_SELECTOR = YES
|
32
|
+
CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = YES
|
33
33
|
//
|
34
|
-
MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS = YES
|
35
|
-
|
36
34
|
CLANG_WARN_OBJC_EXPLICIT_OWNERSHIP_TYPE = YES
|
37
35
|
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
|
38
36
|
CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
|
39
|
-
CLANG_WARN_OBJC_RECEIVER_WEAK = YES
|
40
|
-
|
41
37
|
CLANG_WARN__ARC_BRIDGE_CAST_NONARC = YES
|
@@ -2,16 +2,14 @@
|
|
2
2
|
// main.m
|
3
3
|
// <%= config[:project_name] %>
|
4
4
|
//
|
5
|
-
// Created by
|
6
|
-
// Copyright
|
5
|
+
// Created by Fabio Gallonetto on 28/01/2016.
|
6
|
+
// Copyright © 2016 Future Workshops. All rights reserved.
|
7
7
|
//
|
8
8
|
|
9
9
|
#import <UIKit/UIKit.h>
|
10
|
-
|
11
10
|
#import "<%= config[:class_prefix] %>AppDelegate.h"
|
12
11
|
|
13
|
-
int main(int argc, char *argv[])
|
14
|
-
{
|
12
|
+
int main(int argc, char * argv[]) {
|
15
13
|
@autoreleasepool {
|
16
14
|
return UIApplicationMain(argc, argv, nil, NSStringFromClass([<%= config[:class_prefix] %>AppDelegate class]));
|
17
15
|
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
//
|
2
|
+
// ViewController.swift
|
3
|
+
// <%= config[:project_name] %>
|
4
|
+
//
|
5
|
+
// Created by Fabio Gallonetto on 28/01/2016.
|
6
|
+
// Copyright © 2016 Future Workshops. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
import UIKit
|
10
|
+
|
11
|
+
class ViewController: UIViewController {
|
12
|
+
|
13
|
+
override func viewDidLoad() {
|
14
|
+
super.viewDidLoad()
|
15
|
+
// Do any additional setup after loading the view, typically from a nib.
|
16
|
+
}
|
17
|
+
|
18
|
+
override func didReceiveMemoryWarning() {
|
19
|
+
super.didReceiveMemoryWarning()
|
20
|
+
// Dispose of any resources that can be recreated.
|
21
|
+
}
|
22
|
+
|
23
|
+
|
24
|
+
}
|
25
|
+
|
@@ -0,0 +1,39 @@
|
|
1
|
+
//
|
2
|
+
// <%= config[:project_name] %>Tests.m
|
3
|
+
// <%= config[:project_name] %>Tests
|
4
|
+
//
|
5
|
+
// Created by Fabio Gallonetto on 28/01/2016.
|
6
|
+
// Copyright © 2016 Future Workshops. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <XCTest/XCTest.h>
|
10
|
+
|
11
|
+
@interface <%= config[:project_name] %>Tests : XCTestCase
|
12
|
+
|
13
|
+
@end
|
14
|
+
|
15
|
+
@implementation <%= config[:project_name] %>Tests
|
16
|
+
|
17
|
+
- (void)setUp {
|
18
|
+
[super setUp];
|
19
|
+
// Put setup code here. This method is called before the invocation of each test method in the class.
|
20
|
+
}
|
21
|
+
|
22
|
+
- (void)tearDown {
|
23
|
+
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
24
|
+
[super tearDown];
|
25
|
+
}
|
26
|
+
|
27
|
+
- (void)testExample {
|
28
|
+
// This is an example of a functional test case.
|
29
|
+
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
30
|
+
}
|
31
|
+
|
32
|
+
- (void)testPerformanceExample {
|
33
|
+
// This is an example of a performance test case.
|
34
|
+
[self measureBlock:^{
|
35
|
+
// Put the code you want to measure the time of here.
|
36
|
+
}];
|
37
|
+
}
|
38
|
+
|
39
|
+
@end
|
@@ -5,11 +5,13 @@
|
|
5
5
|
<key>CFBundleDevelopmentRegion</key>
|
6
6
|
<string>en</string>
|
7
7
|
<key>CFBundleExecutable</key>
|
8
|
-
<string>$
|
8
|
+
<string>$(EXECUTABLE_NAME)</string>
|
9
9
|
<key>CFBundleIdentifier</key>
|
10
|
-
<string
|
10
|
+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
11
11
|
<key>CFBundleInfoDictionaryVersion</key>
|
12
12
|
<string>6.0</string>
|
13
|
+
<key>CFBundleName</key>
|
14
|
+
<string>$(PRODUCT_NAME)</string>
|
13
15
|
<key>CFBundlePackageType</key>
|
14
16
|
<string>BNDL</string>
|
15
17
|
<key>CFBundleShortVersionString</key>
|
data/templates/objc_project/xcode/%project_name%/%tests_target_name%/%project_name%Tests.swift.tt
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
//
|
2
|
+
// <%= config[:project_name] %>Tests.swift
|
3
|
+
// <%= config[:project_name] %>Tests
|
4
|
+
//
|
5
|
+
// Created by Fabio Gallonetto on 28/01/2016.
|
6
|
+
// Copyright © 2016 Future Workshops. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
import XCTest
|
10
|
+
@testable import <%= config[:project_name] %>
|
11
|
+
|
12
|
+
class <%= config[:project_name] %>Tests: XCTestCase {
|
13
|
+
|
14
|
+
override func setUp() {
|
15
|
+
super.setUp()
|
16
|
+
// Put setup code here. This method is called before the invocation of each test method in the class.
|
17
|
+
}
|
18
|
+
|
19
|
+
override func tearDown() {
|
20
|
+
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
21
|
+
super.tearDown()
|
22
|
+
}
|
23
|
+
|
24
|
+
func testExample() {
|
25
|
+
// This is an example of a functional test case.
|
26
|
+
// Use XCTAssert and related functions to verify your tests produce the correct results.
|
27
|
+
}
|
28
|
+
|
29
|
+
func testPerformanceExample() {
|
30
|
+
// This is an example of a performance test case.
|
31
|
+
self.measureBlock {
|
32
|
+
// Put the code you want to measure the time of here.
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
}
|
data/templates/objc_project/xcode/%project_name%/%tests_target_name%/Supporting Files/Info.plist
ADDED
@@ -0,0 +1,24 @@
|
|
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>BNDL</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
|
+
</dict>
|
24
|
+
</plist>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Ruby
|
2
|
+
tmp/
|
3
|
+
log/
|
4
|
+
db/production.sqlite3
|
5
|
+
db/development.sqlite3
|
6
|
+
|
7
|
+
# Xcode
|
8
|
+
build/*
|
9
|
+
*.pbxuser
|
10
|
+
!default.pbxuser
|
11
|
+
*.mode1v3
|
12
|
+
!default.mode1v3
|
13
|
+
*.mode2v3
|
14
|
+
!default.mode2v3
|
15
|
+
*.perspectivev3
|
16
|
+
!default.perspectivev3
|
17
|
+
!default.xcworkspace
|
18
|
+
xcuserdata
|
19
|
+
profile
|
20
|
+
*.moved-aside
|
21
|
+
# Finder
|
22
|
+
.DS_Store
|
23
|
+
.svn
|
24
|
+
*.swp
|
25
|
+
*.~nib
|
26
|
+
|
27
|
+
# Frank
|
28
|
+
Frank/frankified_build/
|
29
|
+
|
30
|
+
# Cocoapods
|
31
|
+
/Pods/
|