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
@@ -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/swift_project/xcode/%project_name%/%target_name%/Resources/Base.lproj/Main.storyboard
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
|
3
|
+
<dependencies>
|
4
|
+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204"/>
|
5
|
+
</dependencies>
|
6
|
+
<scenes>
|
7
|
+
<!--View Controller-->
|
8
|
+
<scene sceneID="tne-QT-ifu">
|
9
|
+
<objects>
|
10
|
+
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
|
11
|
+
<layoutGuides>
|
12
|
+
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
|
13
|
+
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
|
14
|
+
</layoutGuides>
|
15
|
+
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
16
|
+
<rect key="frame" x="0.0" y="0.0" width="600" height="600"/>
|
17
|
+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
18
|
+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
|
19
|
+
</view>
|
20
|
+
</viewController>
|
21
|
+
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
22
|
+
</objects>
|
23
|
+
</scene>
|
24
|
+
</scenes>
|
25
|
+
</document>
|
@@ -0,0 +1,47 @@
|
|
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
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
38
|
+
</array>
|
39
|
+
<key>UISupportedInterfaceOrientations~ipad</key>
|
40
|
+
<array>
|
41
|
+
<string>UIInterfaceOrientationPortrait</string>
|
42
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
43
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
44
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
45
|
+
</array>
|
46
|
+
</dict>
|
47
|
+
</plist>
|
data/templates/swift_project/xcode/%project_name%/%target_name%/Supporting Files/fw-shared.xcconfig
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
RUN_CLANG_STATIC_ANALYZER = YES
|
2
|
+
CLANG_ENABLE_OBJC_ARC = YES
|
3
|
+
GCC_TREAT_WARNINGS_AS_ERRORS = YES
|
4
|
+
CLANG_WARN_EMPTY_BODY = YES
|
5
|
+
|
6
|
+
CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES
|
7
|
+
GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = YES
|
8
|
+
CLANG_WARN_BOOL_CONVERSION = YES
|
9
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES
|
10
|
+
CLANG_WARN_ENUM_CONVERSION = YES
|
11
|
+
CLANG_WARN_INT_CONVERSION = YES
|
12
|
+
GCC_WARN_MISSING_PARENTHESES = YES
|
13
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES
|
14
|
+
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES
|
15
|
+
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES
|
16
|
+
GCC_WARN_ABOUT_MISSING_NEWLINE = YES
|
17
|
+
GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO
|
18
|
+
GCC_WARN_UNUSED_VALUE = YES
|
19
|
+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES
|
20
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES
|
21
|
+
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES
|
22
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES
|
23
|
+
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES
|
24
|
+
GCC_WARN_SHADOW = YES
|
25
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES
|
26
|
+
GCC_WARN_UNKNOWN_PRAGMAS = YES
|
27
|
+
GCC_WARN_UNUSED_FUNCTION = YES
|
28
|
+
GCC_WARN_UNUSED_LABEL = YES
|
29
|
+
GCC_WARN_UNUSED_VARIABLE = YES
|
30
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
|
31
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES
|
32
|
+
CLANG_WARN_NULLABLE_TO_NONNULL_CONVERSION = YES
|
33
|
+
//
|
34
|
+
CLANG_WARN_OBJC_EXPLICIT_OWNERSHIP_TYPE = YES
|
35
|
+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
|
36
|
+
CLANG_WARN_OBJC_REPEATED_USE_OF_WEAK = YES
|
37
|
+
CLANG_WARN__ARC_BRIDGE_CAST_NONARC = YES
|
@@ -0,0 +1,16 @@
|
|
1
|
+
//
|
2
|
+
// main.m
|
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/UIKit.h>
|
10
|
+
#import "<%= config[:class_prefix] %>AppDelegate.h"
|
11
|
+
|
12
|
+
int main(int argc, char * argv[]) {
|
13
|
+
@autoreleasepool {
|
14
|
+
return UIApplicationMain(argc, argv, nil, NSStringFromClass([<%= config[:class_prefix] %>AppDelegate class]));
|
15
|
+
}
|
16
|
+
}
|
@@ -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
|
@@ -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>
|
data/templates/swift_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/swift_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>
|
Binary file
|
Binary file
|