fwtoolkit 0.9.3 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/bin/fwt +2 -112
- data/features/cocoapods/setup.feature +60 -0
- data/features/frank/model.feature +20 -0
- data/features/frank/setup.feature +28 -0
- data/features/git/create.feature +29 -0
- data/features/project/create.feature +25 -0
- data/features/step_definitions/aruba_steps.rb +11 -0
- data/features/step_definitions/git_steps.rb +30 -0
- data/features/step_definitions/project_steps.rb +50 -0
- data/features/step_definitions/rvm_steps.rb +11 -0
- data/features/step_definitions/system_steps.rb +8 -0
- data/features/support/env.rb +23 -0
- data/features/support/lib_test/aruba_fwt.rb +30 -0
- data/features/support/lib_test/aruba_mod.rb +28 -0
- data/features/support/lib_test/fake_gem.rb +47 -0
- data/features/xcode/create.feature +42 -0
- data/lib/fwtoolkit/cli/bootstrap.rb +75 -0
- data/lib/fwtoolkit/cli/ci.rb +52 -0
- data/lib/fwtoolkit/cli/cocoapods.rb +73 -0
- data/lib/fwtoolkit/cli/ext/thor.rb +35 -0
- data/lib/fwtoolkit/cli/frank.rb +113 -0
- data/lib/fwtoolkit/cli/fw_actions/template_dir.rb +59 -0
- data/lib/fwtoolkit/cli/fw_actions.rb +2 -0
- data/lib/fwtoolkit/cli/git.rb +42 -0
- data/lib/fwtoolkit/cli/ota.rb +109 -0
- data/lib/fwtoolkit/cli/ota_client/hockeyapp_client.rb +70 -0
- data/lib/fwtoolkit/cli/project.rb +83 -0
- data/lib/fwtoolkit/cli/thorutils.rb +14 -0
- data/lib/fwtoolkit/cli/xcode.rb +105 -0
- data/lib/fwtoolkit/cli.rb +27 -36
- data/lib/fwtoolkit/config/config.sample +8 -0
- data/lib/fwtoolkit/config.rb +41 -0
- data/lib/fwtoolkit/configfile.rb +36 -0
- data/lib/fwtoolkit/executable/executable.rb +45 -0
- data/lib/fwtoolkit/executable.rb +1 -0
- data/lib/fwtoolkit/ext/gem.rb +9 -0
- data/lib/fwtoolkit/ext/hash_yaml.rb +17 -0
- data/lib/fwtoolkit/git_client/git_client.rb +225 -0
- data/lib/fwtoolkit/git_client.rb +1 -0
- data/lib/fwtoolkit/projectfile.rb +50 -0
- data/lib/fwtoolkit/rake/ext/rake.rb +7 -0
- data/lib/fwtoolkit/rake/tasks/ci.rb +25 -0
- data/lib/fwtoolkit/rake/tasks/config.rb +13 -0
- data/lib/fwtoolkit/rake/tasks/ota.rb +31 -0
- data/lib/fwtoolkit/rake/tasks/project.rb +28 -0
- data/lib/fwtoolkit/rake/tasks/test.rb +59 -0
- data/lib/fwtoolkit/rake/tasks/xcode.rb +69 -0
- data/lib/fwtoolkit/rake/tasks.rb +20 -0
- data/lib/fwtoolkit/version.rb +1 -1
- data/lib/fwtoolkit.rb +4 -7
- data/spec/git_client_spec.rb +316 -0
- data/spec/project_config_spec.rb +40 -0
- data/spec/rake/project.rb +28 -0
- data/spec/rake/test.rb +85 -0
- data/spec/rake/xcode.rb +66 -0
- data/spec/support/aruba-doubles-rspec.rb +21 -0
- data/spec/support/ctx_rake.rb +23 -0
- data/spec/support/double_helper.rb +13 -0
- data/spec/support/project_generator.rb +45 -0
- data/templates/default_project/frank/%project_name%/%target_name%/%class_prefix%AppDelegate+Frank.h.tt +15 -0
- data/templates/{cucumber/AppDelegate+Frank.m.erb → default_project/frank/%project_name%/%target_name%/%class_prefix%AppDelegate+Frank.m.tt} +25 -21
- data/templates/{cucumber → default_project/frank/%project_name%/Frank}/features/example.feature +0 -0
- data/templates/{cucumber → default_project/frank/%project_name%/Frank}/features/step_definitions/launch_steps.rb +0 -0
- data/templates/{cucumber → default_project/frank/%project_name%/Frank}/features/support/env.rb +0 -0
- data/templates/{cucumber → default_project/frank/%project_name%/Frank}/features/support/mimic.rb +0 -0
- data/templates/default_project/frank/~template_config.rb +11 -0
- data/templates/default_project/frank_seed_core_data/%project_name%/Frank/features/support/models/%class_name%.rb.tt +30 -0
- data/templates/default_project/frank_seed_support/%project_name%/Frank/features/support/models/factories.rb.tt +10 -0
- data/templates/{cucumber → default_project/frank_seed_support/%project_name%/Frank}/features/support/views/my_objects_json.erb +0 -0
- data/templates/{cucumber → default_project/frank_seed_support/%project_name%/Frank}/features/support/views/my_objects_xml.erb +0 -0
- data/templates/{fwt/gitignore.erb → default_project/git/.gitignore} +0 -0
- data/templates/{fwt/rvmrc.erb → default_project/rvm/.rvmrc.tt} +2 -2
- data/templates/default_project/rvm/Gemfile +4 -0
- data/templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/project.pbxproj.tt +583 -0
- data/templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/project.xcworkspace/contents.xcworkspacedata.tt +7 -0
- data/templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/xcshareddata/xcschemes/%project_name%-Release.xcscheme.tt +105 -0
- data/templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/xcshareddata/xcschemes/%project_name%-Testing.xcscheme.tt +105 -0
- data/templates/default_project/xcode/%project_name%/%project_name%.xcodeproj/xcshareddata/xcschemes/%project_name%.xcscheme.tt +105 -0
- data/templates/default_project/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.h.tt +15 -0
- data/templates/default_project/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.m.tt +49 -0
- data/templates/{fwt/default_project/Info.plist.erb → default_project/xcode/%project_name%/%target_name%/Supporting Files/%project_name%-Info.plist} +0 -0
- data/templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/%project_name%-Prefix.pch.tt +14 -0
- data/templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/Settings.bundle/Root.plist +53 -0
- data/templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/Settings.bundle/en.lproj/Root.strings +0 -0
- data/templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/en.lproj/InfoPlist.strings +2 -0
- data/templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/fw-shared.xcconfig +49 -0
- data/templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/info.plist.h.tt +8 -0
- data/templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/main.m.tt +18 -0
- data/templates/default_project/xcode/%project_name%/%target_name%/Supporting Files/version.sh +159 -0
- data/templates/default_project/xcode/%project_name%/%tests_target_name%/%project_name%Tests.h.tt +13 -0
- data/templates/default_project/xcode/%project_name%/%tests_target_name%/%project_name%Tests.m.tt +32 -0
- data/templates/default_project/xcode/%project_name%/%tests_target_name%/Supporting Files/%tests_target_name%-Info.plist +22 -0
- data/templates/default_project/xcode/%project_name%/%tests_target_name%/Supporting Files/en.lproj/InfoPlist.strings +2 -0
- 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/contents.xcworkspacedata.tt +7 -0
- data/templates/default_project/xcode/FWProjectfile.tt +14 -0
- data/templates/default_project/xcode/Podfile.tt +4 -0
- data/templates/default_project/xcode/Rakefile.tt +14 -0
- data/templates/default_project/xcode/cruise_config.rb +3 -0
- data/templates/default_project/xcode/~template_config.rb +5 -0
- metadata +187 -141
- data/lib/fwtoolkit/tasks/build.rb +0 -121
- data/lib/fwtoolkit/tasks/ci.rb +0 -30
- data/lib/fwtoolkit/tasks/cocoapods.rb +0 -32
- data/lib/fwtoolkit/tasks/frank.rb +0 -119
- data/lib/fwtoolkit/tasks/helper.rb +0 -16
- data/lib/fwtoolkit/tasks/services.rb +0 -41
- data/lib/fwtoolkit/tasks.rb +0 -24
- data/lib/fwtoolkit/test/frank_model.rb +0 -120
- data/lib/fwtoolkit/test/misc_steps.rb +0 -9
- data/lib/fwtoolkit/test/model_helper.rb +0 -94
- data/lib/fwtoolkit/test/network_steps.rb +0 -60
- data/lib/fwtoolkit/test/pickle_steps.rb +0 -101
- data/lib/fwtoolkit/test/timeout_helper.rb +0 -21
- data/lib/fwtoolkit/test/ui_helper.rb +0 -19
- data/lib/fwtoolkit/test/ui_steps.rb +0 -17
- data/templates/cucumber/AppDelegate+Frank.h.erb +0 -15
- data/templates/fwt/Gemfile.erb +0 -3
- data/templates/fwt/Podfile.erb +0 -4
- data/templates/fwt/Rakefile.erb +0 -24
- data/templates/fwt/default_project/AppDelegate.h.erb +0 -12
- data/templates/fwt/default_project/AppDelegate.m.erb +0 -20
- data/templates/fwt/default_project/Prefix.pch.erb +0 -6
- data/templates/fwt/default_project/main.m.erb +0 -15
- data/templates/models/factories.rb.erb +0 -10
- data/templates/models/model.rb.erb +0 -30
@@ -0,0 +1,105 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Scheme
|
3
|
+
LastUpgradeVersion = "0450"
|
4
|
+
version = "1.7">
|
5
|
+
<BuildAction
|
6
|
+
parallelizeBuildables = "YES"
|
7
|
+
buildImplicitDependencies = "YES">
|
8
|
+
<BuildActionEntries>
|
9
|
+
<BuildActionEntry
|
10
|
+
buildForTesting = "YES"
|
11
|
+
buildForRunning = "YES"
|
12
|
+
buildForProfiling = "YES"
|
13
|
+
buildForArchiving = "YES"
|
14
|
+
buildForAnalyzing = "YES">
|
15
|
+
<BuildableReference
|
16
|
+
BuildableIdentifier = "primary"
|
17
|
+
BlueprintIdentifier = "B7402BC316C26CE70014570E"
|
18
|
+
BuildableName = "<%= config[:binary_name] %>.app"
|
19
|
+
BlueprintName = "<%= config[:target_name] %>"
|
20
|
+
ReferencedContainer = "container:<%= config[:project_name] %>.xcodeproj">
|
21
|
+
</BuildableReference>
|
22
|
+
</BuildActionEntry>
|
23
|
+
</BuildActionEntries>
|
24
|
+
</BuildAction>
|
25
|
+
<TestAction
|
26
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
27
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
28
|
+
shouldUseLaunchSchemeArgsEnv = "YES"
|
29
|
+
buildConfiguration = "Debug">
|
30
|
+
<Testables>
|
31
|
+
<TestableReference
|
32
|
+
skipped = "NO">
|
33
|
+
<BuildableReference
|
34
|
+
BuildableIdentifier = "primary"
|
35
|
+
BlueprintIdentifier = "B7402BE416C26CE70014570E"
|
36
|
+
BuildableName = "<%= config[:binary_name] %>Tests.octest"
|
37
|
+
BlueprintName = "<%= config[:tests_target_name] %>"
|
38
|
+
ReferencedContainer = "container:<%= config[:project_name] %>.xcodeproj">
|
39
|
+
</BuildableReference>
|
40
|
+
</TestableReference>
|
41
|
+
</Testables>
|
42
|
+
<MacroExpansion>
|
43
|
+
<BuildableReference
|
44
|
+
BuildableIdentifier = "primary"
|
45
|
+
BlueprintIdentifier = "B7402BC316C26CE70014570E"
|
46
|
+
BuildableName = "<%= config[:binary_name] %>.app"
|
47
|
+
BlueprintName = "<%= config[:target_name] %>"
|
48
|
+
ReferencedContainer = "container:<%= config[:project_name] %>.xcodeproj">
|
49
|
+
</BuildableReference>
|
50
|
+
</MacroExpansion>
|
51
|
+
</TestAction>
|
52
|
+
<LaunchAction
|
53
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
54
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
55
|
+
launchStyle = "0"
|
56
|
+
useCustomWorkingDirectory = "NO"
|
57
|
+
buildConfiguration = "Release"
|
58
|
+
ignoresPersistentStateOnLaunch = "NO"
|
59
|
+
debugDocumentVersioning = "YES"
|
60
|
+
allowLocationSimulation = "YES">
|
61
|
+
<BuildableProductRunnable>
|
62
|
+
<BuildableReference
|
63
|
+
BuildableIdentifier = "primary"
|
64
|
+
BlueprintIdentifier = "B7402BC316C26CE70014570E"
|
65
|
+
BuildableName = "<%= config[:binary_name] %>.app"
|
66
|
+
BlueprintName = "<%= config[:target_name] %>"
|
67
|
+
ReferencedContainer = "container:<%= config[:project_name] %>.xcodeproj">
|
68
|
+
</BuildableReference>
|
69
|
+
</BuildableProductRunnable>
|
70
|
+
<AdditionalOptions>
|
71
|
+
<AdditionalOption
|
72
|
+
key = "NSZombieEnabled"
|
73
|
+
value = "YES"
|
74
|
+
isEnabled = "YES">
|
75
|
+
</AdditionalOption>
|
76
|
+
</AdditionalOptions>
|
77
|
+
<LocationScenarioReference
|
78
|
+
identifier = "London, England"
|
79
|
+
referenceType = "1">
|
80
|
+
</LocationScenarioReference>
|
81
|
+
</LaunchAction>
|
82
|
+
<ProfileAction
|
83
|
+
shouldUseLaunchSchemeArgsEnv = "YES"
|
84
|
+
savedToolIdentifier = ""
|
85
|
+
useCustomWorkingDirectory = "NO"
|
86
|
+
buildConfiguration = "Release"
|
87
|
+
debugDocumentVersioning = "YES">
|
88
|
+
<BuildableProductRunnable>
|
89
|
+
<BuildableReference
|
90
|
+
BuildableIdentifier = "primary"
|
91
|
+
BlueprintIdentifier = "B7402BC316C26CE70014570E"
|
92
|
+
BuildableName = "<%= config[:binary_name] %>.app"
|
93
|
+
BlueprintName = "<%= config[:target_name] %>"
|
94
|
+
ReferencedContainer = "container:<%= config[:project_name] %>.xcodeproj">
|
95
|
+
</BuildableReference>
|
96
|
+
</BuildableProductRunnable>
|
97
|
+
</ProfileAction>
|
98
|
+
<AnalyzeAction
|
99
|
+
buildConfiguration = "Debug">
|
100
|
+
</AnalyzeAction>
|
101
|
+
<ArchiveAction
|
102
|
+
buildConfiguration = "Release"
|
103
|
+
revealArchiveInOrganizer = "YES">
|
104
|
+
</ArchiveAction>
|
105
|
+
</Scheme>
|
@@ -0,0 +1,105 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Scheme
|
3
|
+
LastUpgradeVersion = "0450"
|
4
|
+
version = "1.7">
|
5
|
+
<BuildAction
|
6
|
+
parallelizeBuildables = "YES"
|
7
|
+
buildImplicitDependencies = "YES">
|
8
|
+
<BuildActionEntries>
|
9
|
+
<BuildActionEntry
|
10
|
+
buildForTesting = "YES"
|
11
|
+
buildForRunning = "YES"
|
12
|
+
buildForProfiling = "YES"
|
13
|
+
buildForArchiving = "YES"
|
14
|
+
buildForAnalyzing = "YES">
|
15
|
+
<BuildableReference
|
16
|
+
BuildableIdentifier = "primary"
|
17
|
+
BlueprintIdentifier = "B7402BC316C26CE70014570E"
|
18
|
+
BuildableName = "<%= config[:binary_name] %>.app"
|
19
|
+
BlueprintName = "<%= config[:target_name] %>"
|
20
|
+
ReferencedContainer = "container:<%= config[:project_name] %>.xcodeproj">
|
21
|
+
</BuildableReference>
|
22
|
+
</BuildActionEntry>
|
23
|
+
</BuildActionEntries>
|
24
|
+
</BuildAction>
|
25
|
+
<TestAction
|
26
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
27
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
28
|
+
shouldUseLaunchSchemeArgsEnv = "YES"
|
29
|
+
buildConfiguration = "Debug">
|
30
|
+
<Testables>
|
31
|
+
<TestableReference
|
32
|
+
skipped = "NO">
|
33
|
+
<BuildableReference
|
34
|
+
BuildableIdentifier = "primary"
|
35
|
+
BlueprintIdentifier = "B7402BE416C26CE70014570E"
|
36
|
+
BuildableName = "<%= config[:binary_name] %>Tests.octest"
|
37
|
+
BlueprintName = "<%= config[:tests_target_name] %>"
|
38
|
+
ReferencedContainer = "container:<%= config[:project_name] %>.xcodeproj">
|
39
|
+
</BuildableReference>
|
40
|
+
</TestableReference>
|
41
|
+
</Testables>
|
42
|
+
<MacroExpansion>
|
43
|
+
<BuildableReference
|
44
|
+
BuildableIdentifier = "primary"
|
45
|
+
BlueprintIdentifier = "B7402BC316C26CE70014570E"
|
46
|
+
BuildableName = "<%= config[:binary_name] %>.app"
|
47
|
+
BlueprintName = "<%= config[:target_name] %>"
|
48
|
+
ReferencedContainer = "container:<%= config[:project_name] %>.xcodeproj">
|
49
|
+
</BuildableReference>
|
50
|
+
</MacroExpansion>
|
51
|
+
</TestAction>
|
52
|
+
<LaunchAction
|
53
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
54
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
55
|
+
launchStyle = "0"
|
56
|
+
useCustomWorkingDirectory = "NO"
|
57
|
+
buildConfiguration = "Testing"
|
58
|
+
ignoresPersistentStateOnLaunch = "NO"
|
59
|
+
debugDocumentVersioning = "YES"
|
60
|
+
allowLocationSimulation = "YES">
|
61
|
+
<BuildableProductRunnable>
|
62
|
+
<BuildableReference
|
63
|
+
BuildableIdentifier = "primary"
|
64
|
+
BlueprintIdentifier = "B7402BC316C26CE70014570E"
|
65
|
+
BuildableName = "<%= config[:binary_name] %>.app"
|
66
|
+
BlueprintName = "<%= config[:target_name] %>"
|
67
|
+
ReferencedContainer = "container:<%= config[:project_name] %>.xcodeproj">
|
68
|
+
</BuildableReference>
|
69
|
+
</BuildableProductRunnable>
|
70
|
+
<AdditionalOptions>
|
71
|
+
<AdditionalOption
|
72
|
+
key = "NSZombieEnabled"
|
73
|
+
value = "YES"
|
74
|
+
isEnabled = "YES">
|
75
|
+
</AdditionalOption>
|
76
|
+
</AdditionalOptions>
|
77
|
+
<LocationScenarioReference
|
78
|
+
identifier = "London, England"
|
79
|
+
referenceType = "1">
|
80
|
+
</LocationScenarioReference>
|
81
|
+
</LaunchAction>
|
82
|
+
<ProfileAction
|
83
|
+
shouldUseLaunchSchemeArgsEnv = "YES"
|
84
|
+
savedToolIdentifier = ""
|
85
|
+
useCustomWorkingDirectory = "NO"
|
86
|
+
buildConfiguration = "Release"
|
87
|
+
debugDocumentVersioning = "YES">
|
88
|
+
<BuildableProductRunnable>
|
89
|
+
<BuildableReference
|
90
|
+
BuildableIdentifier = "primary"
|
91
|
+
BlueprintIdentifier = "B7402BC316C26CE70014570E"
|
92
|
+
BuildableName = "<%= config[:binary_name] %>.app"
|
93
|
+
BlueprintName = "<%= config[:target_name] %>"
|
94
|
+
ReferencedContainer = "container:<%= config[:project_name] %>.xcodeproj">
|
95
|
+
</BuildableReference>
|
96
|
+
</BuildableProductRunnable>
|
97
|
+
</ProfileAction>
|
98
|
+
<AnalyzeAction
|
99
|
+
buildConfiguration = "Debug">
|
100
|
+
</AnalyzeAction>
|
101
|
+
<ArchiveAction
|
102
|
+
buildConfiguration = "Release"
|
103
|
+
revealArchiveInOrganizer = "YES">
|
104
|
+
</ArchiveAction>
|
105
|
+
</Scheme>
|
@@ -0,0 +1,105 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Scheme
|
3
|
+
LastUpgradeVersion = "0450"
|
4
|
+
version = "1.7">
|
5
|
+
<BuildAction
|
6
|
+
parallelizeBuildables = "YES"
|
7
|
+
buildImplicitDependencies = "YES">
|
8
|
+
<BuildActionEntries>
|
9
|
+
<BuildActionEntry
|
10
|
+
buildForTesting = "YES"
|
11
|
+
buildForRunning = "YES"
|
12
|
+
buildForProfiling = "YES"
|
13
|
+
buildForArchiving = "YES"
|
14
|
+
buildForAnalyzing = "YES">
|
15
|
+
<BuildableReference
|
16
|
+
BuildableIdentifier = "primary"
|
17
|
+
BlueprintIdentifier = "B7402BC316C26CE70014570E"
|
18
|
+
BuildableName = "<%= config[:binary_name] %>.app"
|
19
|
+
BlueprintName = "<%= config[:target_name] %>"
|
20
|
+
ReferencedContainer = "container:<%= config[:project_name] %>.xcodeproj">
|
21
|
+
</BuildableReference>
|
22
|
+
</BuildActionEntry>
|
23
|
+
</BuildActionEntries>
|
24
|
+
</BuildAction>
|
25
|
+
<TestAction
|
26
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
27
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
28
|
+
shouldUseLaunchSchemeArgsEnv = "YES"
|
29
|
+
buildConfiguration = "Debug">
|
30
|
+
<Testables>
|
31
|
+
<TestableReference
|
32
|
+
skipped = "NO">
|
33
|
+
<BuildableReference
|
34
|
+
BuildableIdentifier = "primary"
|
35
|
+
BlueprintIdentifier = "B7402BE416C26CE70014570E"
|
36
|
+
BuildableName = "<%= config[:binary_name] %>Tests.octest"
|
37
|
+
BlueprintName = "<%= config[:tests_target_name] %>"
|
38
|
+
ReferencedContainer = "container:<%= config[:project_name] %>.xcodeproj">
|
39
|
+
</BuildableReference>
|
40
|
+
</TestableReference>
|
41
|
+
</Testables>
|
42
|
+
<MacroExpansion>
|
43
|
+
<BuildableReference
|
44
|
+
BuildableIdentifier = "primary"
|
45
|
+
BlueprintIdentifier = "B7402BC316C26CE70014570E"
|
46
|
+
BuildableName = "<%= config[:binary_name] %>.app"
|
47
|
+
BlueprintName = "<%= config[:target_name] %>"
|
48
|
+
ReferencedContainer = "container:<%= config[:project_name] %>.xcodeproj">
|
49
|
+
</BuildableReference>
|
50
|
+
</MacroExpansion>
|
51
|
+
</TestAction>
|
52
|
+
<LaunchAction
|
53
|
+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
54
|
+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
55
|
+
launchStyle = "0"
|
56
|
+
useCustomWorkingDirectory = "NO"
|
57
|
+
buildConfiguration = "Debug"
|
58
|
+
ignoresPersistentStateOnLaunch = "NO"
|
59
|
+
debugDocumentVersioning = "YES"
|
60
|
+
allowLocationSimulation = "YES">
|
61
|
+
<BuildableProductRunnable>
|
62
|
+
<BuildableReference
|
63
|
+
BuildableIdentifier = "primary"
|
64
|
+
BlueprintIdentifier = "B7402BC316C26CE70014570E"
|
65
|
+
BuildableName = "<%= config[:binary_name] %>.app"
|
66
|
+
BlueprintName = "<%= config[:target_name] %>"
|
67
|
+
ReferencedContainer = "container:<%= config[:project_name] %>.xcodeproj">
|
68
|
+
</BuildableReference>
|
69
|
+
</BuildableProductRunnable>
|
70
|
+
<AdditionalOptions>
|
71
|
+
<AdditionalOption
|
72
|
+
key = "NSZombieEnabled"
|
73
|
+
value = "YES"
|
74
|
+
isEnabled = "YES">
|
75
|
+
</AdditionalOption>
|
76
|
+
</AdditionalOptions>
|
77
|
+
<LocationScenarioReference
|
78
|
+
identifier = "London, England"
|
79
|
+
referenceType = "1">
|
80
|
+
</LocationScenarioReference>
|
81
|
+
</LaunchAction>
|
82
|
+
<ProfileAction
|
83
|
+
shouldUseLaunchSchemeArgsEnv = "YES"
|
84
|
+
savedToolIdentifier = ""
|
85
|
+
useCustomWorkingDirectory = "NO"
|
86
|
+
buildConfiguration = "Release"
|
87
|
+
debugDocumentVersioning = "YES">
|
88
|
+
<BuildableProductRunnable>
|
89
|
+
<BuildableReference
|
90
|
+
BuildableIdentifier = "primary"
|
91
|
+
BlueprintIdentifier = "B7402BC316C26CE70014570E"
|
92
|
+
BuildableName = "<%= config[:binary_name] %>.app"
|
93
|
+
BlueprintName = "<%= config[:target_name] %>"
|
94
|
+
ReferencedContainer = "container:<%= config[:project_name] %>.xcodeproj">
|
95
|
+
</BuildableReference>
|
96
|
+
</BuildableProductRunnable>
|
97
|
+
</ProfileAction>
|
98
|
+
<AnalyzeAction
|
99
|
+
buildConfiguration = "Debug">
|
100
|
+
</AnalyzeAction>
|
101
|
+
<ArchiveAction
|
102
|
+
buildConfiguration = "Release"
|
103
|
+
revealArchiveInOrganizer = "YES">
|
104
|
+
</ArchiveAction>
|
105
|
+
</Scheme>
|
data/templates/default_project/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.h.tt
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
//
|
2
|
+
// <%= config[:class_prefix] %>AppDelegate.h
|
3
|
+
// <%= config[:project_name] %>
|
4
|
+
//
|
5
|
+
// Created by <%= config[:project_creator] %> on 06/02/2013.
|
6
|
+
// Copyright (c) 2013 <%= config[:organization_name] %>. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <UIKit/UIKit.h>
|
10
|
+
|
11
|
+
@interface <%= config[:class_prefix] %>AppDelegate : UIResponder <UIApplicationDelegate>
|
12
|
+
|
13
|
+
@property (strong, nonatomic) UIWindow *window;
|
14
|
+
|
15
|
+
@end
|
data/templates/default_project/xcode/%project_name%/%target_name%/%class_prefix%AppDelegate.m.tt
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
//
|
2
|
+
// PRFAppDelegate.m
|
3
|
+
// <%= config[:project_name] %>
|
4
|
+
//
|
5
|
+
// Created by <%= config[:project_creator] %> on 06/02/2013.
|
6
|
+
// Copyright (c) 2013 <%= config[:organization_name] %>. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "<%= config[:class_prefix] %>AppDelegate.h"
|
10
|
+
|
11
|
+
@implementation <%= config[:class_prefix] %>AppDelegate
|
12
|
+
|
13
|
+
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
14
|
+
{
|
15
|
+
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
16
|
+
// Override point for customization after application launch.
|
17
|
+
self.window.backgroundColor = [UIColor whiteColor];
|
18
|
+
[self.window makeKeyAndVisible];
|
19
|
+
return YES;
|
20
|
+
}
|
21
|
+
|
22
|
+
- (void)applicationWillResignActive:(UIApplication *)application
|
23
|
+
{
|
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
|
+
// 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
|
+
}
|
27
|
+
|
28
|
+
- (void)applicationDidEnterBackground:(UIApplication *)application
|
29
|
+
{
|
30
|
+
// 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
|
+
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
32
|
+
}
|
33
|
+
|
34
|
+
- (void)applicationWillEnterForeground:(UIApplication *)application
|
35
|
+
{
|
36
|
+
// 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
|
+
}
|
38
|
+
|
39
|
+
- (void)applicationDidBecomeActive:(UIApplication *)application
|
40
|
+
{
|
41
|
+
// 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
|
+
}
|
43
|
+
|
44
|
+
- (void)applicationWillTerminate:(UIApplication *)application
|
45
|
+
{
|
46
|
+
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
|
47
|
+
}
|
48
|
+
|
49
|
+
@end
|
File without changes
|
@@ -0,0 +1,14 @@
|
|
1
|
+
//
|
2
|
+
// Prefix header for all source files of the '<%= config[:project_name] %>' target in the '<%= config[:project_name] %>' project
|
3
|
+
//
|
4
|
+
|
5
|
+
#import <Availability.h>
|
6
|
+
|
7
|
+
#ifndef __IPHONE_3_0
|
8
|
+
#warning "This project uses features only available in iOS SDK 3.0 and later."
|
9
|
+
#endif
|
10
|
+
|
11
|
+
#ifdef __OBJC__
|
12
|
+
#import <UIKit/UIKit.h>
|
13
|
+
#import <Foundation/Foundation.h>
|
14
|
+
#endif
|
@@ -0,0 +1,53 @@
|
|
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>PreferenceSpecifiers</key>
|
6
|
+
<array>
|
7
|
+
<dict>
|
8
|
+
<key>Title</key>
|
9
|
+
<string>Info</string>
|
10
|
+
<key>Type</key>
|
11
|
+
<string>PSGroupSpecifier</string>
|
12
|
+
</dict>
|
13
|
+
<dict>
|
14
|
+
<key>AutocapitalizationType</key>
|
15
|
+
<string>None</string>
|
16
|
+
<key>AutocorrectionType</key>
|
17
|
+
<string>No</string>
|
18
|
+
<key>DefaultValue</key>
|
19
|
+
<string></string>
|
20
|
+
<key>IsSecure</key>
|
21
|
+
<false/>
|
22
|
+
<key>Key</key>
|
23
|
+
<string>name_preference</string>
|
24
|
+
<key>KeyboardType</key>
|
25
|
+
<string>Alphabet</string>
|
26
|
+
<key>Title</key>
|
27
|
+
<string>Date</string>
|
28
|
+
<key>Type</key>
|
29
|
+
<string>PSTextFieldSpecifier</string>
|
30
|
+
</dict>
|
31
|
+
<dict>
|
32
|
+
<key>AutocapitalizationType</key>
|
33
|
+
<string>None</string>
|
34
|
+
<key>AutocorrectionType</key>
|
35
|
+
<string>No</string>
|
36
|
+
<key>DefaultValue</key>
|
37
|
+
<string></string>
|
38
|
+
<key>IsSecure</key>
|
39
|
+
<false/>
|
40
|
+
<key>Key</key>
|
41
|
+
<string>name_preference</string>
|
42
|
+
<key>KeyboardType</key>
|
43
|
+
<string>Alphabet</string>
|
44
|
+
<key>Title</key>
|
45
|
+
<string>Version</string>
|
46
|
+
<key>Type</key>
|
47
|
+
<string>PSTextFieldSpecifier</string>
|
48
|
+
</dict>
|
49
|
+
</array>
|
50
|
+
<key>StringsTable</key>
|
51
|
+
<string>Root</string>
|
52
|
+
</dict>
|
53
|
+
</plist>
|
Binary file
|
@@ -0,0 +1,49 @@
|
|
1
|
+
RUN_CLANG_STATIC_ANALYZER = YES
|
2
|
+
CLANG_ENABLE_OBJC_ARC = YES
|
3
|
+
GCC_TREAT_WARNINGS_AS_ERRORS = YES
|
4
|
+
//GCC_WARN_INHIBIT_ALL_WARNINGS = NO
|
5
|
+
//GCC_WARN_PEDANTIC = NO
|
6
|
+
//
|
7
|
+
//CLANG_WARN_EMPTY_BODY = NO
|
8
|
+
//CLANG_WARN_IMPLICIT_SIGN_CONVERSION = NO
|
9
|
+
//CLANG_WARN_SUSPICIOUS_IMPLICIT_CONVERSION = YES
|
10
|
+
//GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO
|
11
|
+
//GCC_TREAT_INCOMPATIBLE_POINTER_TYPE_WARNINGS_AS_ERRORS = NO
|
12
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES
|
13
|
+
//GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES
|
14
|
+
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES
|
15
|
+
GCC_WARN_ABOUT_MISSING_NEWLINE = YES
|
16
|
+
GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO
|
17
|
+
//GCC_WARN_ABOUT_POINTER_SIGNEDNESS = YES
|
18
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES
|
19
|
+
//GCC_WARN_CHECK_SWITCH_STATEMENTS = YES
|
20
|
+
//GCC_WARN_FOUR_CHARACTER_CONSTANTS = NO
|
21
|
+
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES
|
22
|
+
//GCC_WARN_MISSING_PARENTHESES = YES
|
23
|
+
GCC_WARN_SHADOW = YES
|
24
|
+
//GCC_WARN_SIGN_COMPARE = NO
|
25
|
+
//GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES
|
26
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES
|
27
|
+
GCC_WARN_UNKNOWN_PRAGMAS = YES
|
28
|
+
GCC_WARN_UNUSED_FUNCTION = YES
|
29
|
+
GCC_WARN_UNUSED_LABEL = YES
|
30
|
+
//GCC_WARN_UNUSED_PARAMETER = NO
|
31
|
+
//GCC_WARN_UNUSED_VALUE = YES
|
32
|
+
GCC_WARN_UNUSED_VARIABLE = YES
|
33
|
+
//
|
34
|
+
//CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = NO
|
35
|
+
//CLANG_WARN_OBJCPP_ARC_ABI = NO
|
36
|
+
//CLANG_WARN_OBJC_IMPLICIT_ATOMIC_PROPERTIES = NO
|
37
|
+
//CLANG_WARN_OBJC_MISSING_PROPERTY_SYNTHESIS = NO
|
38
|
+
//CLANG_WARN_OBJC_RECEIVER_WEAK = NO
|
39
|
+
//CLANG_WARN__ARC_BRIDGE_CAST_NONARC = YES
|
40
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
|
41
|
+
//GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL = YES
|
42
|
+
GCC_WARN_MULTIPLE_DEFINITION_TYPES_FOR_SELECTOR = YES
|
43
|
+
//GCC_WARN_STRICT_SELECTOR_MATCH = NO
|
44
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES
|
45
|
+
//
|
46
|
+
//MOMC_NO_INVERSE_RELATIONSHIP_WARNINGS = NO
|
47
|
+
//MOMC_NO_MAX_PROPERTY_COUNT_WARNINGS = NO
|
48
|
+
//MOMC_NO_WARNINGS = NO
|
49
|
+
//MOMC_SUPPRESS_INVERSE_TRANSIENT_ERROR = NO
|
@@ -0,0 +1,18 @@
|
|
1
|
+
//
|
2
|
+
// main.m
|
3
|
+
// <%= config[:project_name] %>
|
4
|
+
//
|
5
|
+
// Created by <%= config[:project_creator] %> on 06/02/2013.
|
6
|
+
// Copyright (c) 2013 <%= config[:organization_name] %>. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <UIKit/UIKit.h>
|
10
|
+
|
11
|
+
#import "<%= config[:class_prefix] %>AppDelegate.h"
|
12
|
+
|
13
|
+
int main(int argc, char *argv[])
|
14
|
+
{
|
15
|
+
@autoreleasepool {
|
16
|
+
return UIApplicationMain(argc, argv, nil, NSStringFromClass([<%= config[:class_prefix] %>AppDelegate class]));
|
17
|
+
}
|
18
|
+
}
|