trim 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby-version +1 -0
- data/.travis.yml +7 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +58 -0
- data/Guardfile +9 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/bin/trim +5 -0
- data/data/Gemfile +4 -0
- data/data/Gemfile.lock +45 -0
- data/data/PRODUCT_NAME/PRODUCT_NAME.xcodeproj/project.pbxproj +459 -0
- data/data/PRODUCT_NAME/PRODUCT_NAME.xcodeproj/project.xcworkspace/contents.xcworkspacedata +7 -0
- data/data/PRODUCT_NAME/PRODUCT_NAME/CLASS_PREFIXAppDelegate.h +15 -0
- data/data/PRODUCT_NAME/PRODUCT_NAME/CLASS_PREFIXAppDelegate.m +49 -0
- data/data/PRODUCT_NAME/PRODUCT_NAME/Images.xcassets/AppIcon.appiconset/Contents.json +53 -0
- data/data/PRODUCT_NAME/PRODUCT_NAME/Images.xcassets/LaunchImage.launchimage/Contents.json +51 -0
- data/data/PRODUCT_NAME/PRODUCT_NAME/PRODUCT_NAME-Info.plist +45 -0
- data/data/PRODUCT_NAME/PRODUCT_NAME/PRODUCT_NAME-Prefix.pch +16 -0
- data/data/PRODUCT_NAME/PRODUCT_NAME/en.lproj/InfoPlist.strings +2 -0
- data/data/PRODUCT_NAME/PRODUCT_NAME/main.m +18 -0
- data/data/PRODUCT_NAME/PRODUCT_NAMETests/PRODUCT_NAMETests-Info.plist +22 -0
- data/data/PRODUCT_NAME/PRODUCT_NAMETests/PRODUCT_NAMETests.m +34 -0
- data/data/PRODUCT_NAME/PRODUCT_NAMETests/en.lproj/InfoPlist.strings +2 -0
- data/data/Podfile +1 -0
- data/data/xcode.yml +4 -0
- data/lib/trim.rb +12 -0
- data/lib/trim/command.rb +15 -0
- data/lib/trim/renamer.rb +73 -0
- data/lib/trim/version.rb +3 -0
- data/spec/command_spec.rb +8 -0
- data/spec/spec_helper.rb +1 -0
- data/trim.gemspec +25 -0
- metadata +146 -0
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.9.3
|
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,58 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
trim (0.0.1)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
celluloid (0.15.2)
|
10
|
+
timers (~> 1.1.0)
|
11
|
+
coderay (1.1.0)
|
12
|
+
diff-lcs (1.2.5)
|
13
|
+
ffi (1.9.3)
|
14
|
+
formatador (0.2.4)
|
15
|
+
guard (2.2.4)
|
16
|
+
formatador (>= 0.2.4)
|
17
|
+
listen (~> 2.1)
|
18
|
+
lumberjack (~> 1.0)
|
19
|
+
pry (>= 0.9.12)
|
20
|
+
thor (>= 0.18.1)
|
21
|
+
guard-rspec (4.0.4)
|
22
|
+
guard (>= 2.1.1)
|
23
|
+
rspec (~> 2.14)
|
24
|
+
listen (2.2.0)
|
25
|
+
celluloid (>= 0.15.2)
|
26
|
+
rb-fsevent (>= 0.9.3)
|
27
|
+
rb-inotify (>= 0.9)
|
28
|
+
lumberjack (1.0.4)
|
29
|
+
method_source (0.8.2)
|
30
|
+
pry (0.9.12.4)
|
31
|
+
coderay (~> 1.0)
|
32
|
+
method_source (~> 0.8)
|
33
|
+
slop (~> 3.4)
|
34
|
+
rake (10.1.0)
|
35
|
+
rb-fsevent (0.9.3)
|
36
|
+
rb-inotify (0.9.2)
|
37
|
+
ffi (>= 0.5.0)
|
38
|
+
rspec (2.14.1)
|
39
|
+
rspec-core (~> 2.14.0)
|
40
|
+
rspec-expectations (~> 2.14.0)
|
41
|
+
rspec-mocks (~> 2.14.0)
|
42
|
+
rspec-core (2.14.7)
|
43
|
+
rspec-expectations (2.14.4)
|
44
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
45
|
+
rspec-mocks (2.14.4)
|
46
|
+
slop (3.4.7)
|
47
|
+
thor (0.18.1)
|
48
|
+
timers (1.1.0)
|
49
|
+
|
50
|
+
PLATFORMS
|
51
|
+
ruby
|
52
|
+
|
53
|
+
DEPENDENCIES
|
54
|
+
bundler (~> 1.3)
|
55
|
+
guard-rspec
|
56
|
+
rake
|
57
|
+
rspec
|
58
|
+
trim!
|
data/Guardfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Alex Fish
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Trim
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'trim'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install trim
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/bin/trim
ADDED
data/data/Gemfile
ADDED
data/data/Gemfile.lock
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
AbsoluteRenamer (1.1.2)
|
5
|
+
activesupport (3.2.15)
|
6
|
+
i18n (~> 0.6, >= 0.6.4)
|
7
|
+
multi_json (~> 1.0)
|
8
|
+
claide (0.4.0)
|
9
|
+
cocoapods (0.28.0)
|
10
|
+
activesupport (>= 3.2.15, < 4)
|
11
|
+
claide (~> 0.4.0)
|
12
|
+
cocoapods-core (= 0.28.0)
|
13
|
+
cocoapods-downloader (~> 0.2.0)
|
14
|
+
colored (~> 1.2)
|
15
|
+
escape (~> 0.0.4)
|
16
|
+
json_pure (~> 1.8)
|
17
|
+
open4 (~> 1.3)
|
18
|
+
xcodeproj (~> 0.14.1)
|
19
|
+
cocoapods-core (0.28.0)
|
20
|
+
activesupport (>= 3.2.15, < 4)
|
21
|
+
fuzzy_match (~> 2.0.4)
|
22
|
+
json (~> 1.8)
|
23
|
+
nap (~> 0.5)
|
24
|
+
cocoapods-downloader (0.2.0)
|
25
|
+
colored (1.2)
|
26
|
+
escape (0.0.4)
|
27
|
+
fuzzy_match (2.0.4)
|
28
|
+
i18n (0.6.5)
|
29
|
+
json (1.8.1)
|
30
|
+
json_pure (1.8.1)
|
31
|
+
multi_json (1.8.2)
|
32
|
+
nap (0.5.1)
|
33
|
+
open4 (1.3.0)
|
34
|
+
rake (10.1.0)
|
35
|
+
xcodeproj (0.14.1)
|
36
|
+
activesupport (~> 3.0)
|
37
|
+
colored (~> 1.2)
|
38
|
+
rake
|
39
|
+
|
40
|
+
PLATFORMS
|
41
|
+
ruby
|
42
|
+
|
43
|
+
DEPENDENCIES
|
44
|
+
AbsoluteRenamer (~> 1.1.2)
|
45
|
+
cocoapods (~> 0.28.0)
|
@@ -0,0 +1,459 @@
|
|
1
|
+
// !$*UTF8*$!
|
2
|
+
{
|
3
|
+
archiveVersion = 1;
|
4
|
+
classes = {
|
5
|
+
};
|
6
|
+
objectVersion = 46;
|
7
|
+
objects = {
|
8
|
+
|
9
|
+
/* Begin PBXBuildFile section */
|
10
|
+
06573F141843F14F006E87A6 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06573F131843F14F006E87A6 /* Foundation.framework */; };
|
11
|
+
06573F161843F14F006E87A6 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06573F151843F14F006E87A6 /* CoreGraphics.framework */; };
|
12
|
+
06573F181843F14F006E87A6 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06573F171843F14F006E87A6 /* UIKit.framework */; };
|
13
|
+
06573F1E1843F14F006E87A6 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 06573F1C1843F14F006E87A6 /* InfoPlist.strings */; };
|
14
|
+
06573F201843F14F006E87A6 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 06573F1F1843F14F006E87A6 /* main.m */; };
|
15
|
+
06573F241843F14F006E87A6 /* CLASS_PREFIXAppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 06573F231843F14F006E87A6 /* CLASS_PREFIXAppDelegate.m */; };
|
16
|
+
06573F261843F14F006E87A6 /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 06573F251843F14F006E87A6 /* Images.xcassets */; };
|
17
|
+
06573F2D1843F14F006E87A6 /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06573F2C1843F14F006E87A6 /* XCTest.framework */; };
|
18
|
+
06573F2E1843F14F006E87A6 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06573F131843F14F006E87A6 /* Foundation.framework */; };
|
19
|
+
06573F2F1843F14F006E87A6 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 06573F171843F14F006E87A6 /* UIKit.framework */; };
|
20
|
+
06573F371843F14F006E87A6 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 06573F351843F14F006E87A6 /* InfoPlist.strings */; };
|
21
|
+
06573F391843F14F006E87A6 /* PRODUCT_NAMETests.m in Sources */ = {isa = PBXBuildFile; fileRef = 06573F381843F14F006E87A6 /* PRODUCT_NAMETests.m */; };
|
22
|
+
/* End PBXBuildFile section */
|
23
|
+
|
24
|
+
/* Begin PBXContainerItemProxy section */
|
25
|
+
06573F301843F14F006E87A6 /* PBXContainerItemProxy */ = {
|
26
|
+
isa = PBXContainerItemProxy;
|
27
|
+
containerPortal = 06573F081843F14F006E87A6 /* Project object */;
|
28
|
+
proxyType = 1;
|
29
|
+
remoteGlobalIDString = 06573F0F1843F14F006E87A6;
|
30
|
+
remoteInfo = PRODUCT_NAME;
|
31
|
+
};
|
32
|
+
/* End PBXContainerItemProxy section */
|
33
|
+
|
34
|
+
/* Begin PBXFileReference section */
|
35
|
+
06573F101843F14F006E87A6 /* PRODUCT_NAME.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PRODUCT_NAME.app; sourceTree = BUILT_PRODUCTS_DIR; };
|
36
|
+
06573F131843F14F006E87A6 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
|
37
|
+
06573F151843F14F006E87A6 /* CoreGraphics.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CoreGraphics.framework; path = System/Library/Frameworks/CoreGraphics.framework; sourceTree = SDKROOT; };
|
38
|
+
06573F171843F14F006E87A6 /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
|
39
|
+
06573F1B1843F14F006E87A6 /* PRODUCT_NAME-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "PRODUCT_NAME-Info.plist"; sourceTree = "<group>"; };
|
40
|
+
06573F1D1843F14F006E87A6 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
41
|
+
06573F1F1843F14F006E87A6 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
|
42
|
+
06573F211843F14F006E87A6 /* PRODUCT_NAME-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "PRODUCT_NAME-Prefix.pch"; sourceTree = "<group>"; };
|
43
|
+
06573F221843F14F006E87A6 /* CLASS_PREFIXAppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = CLASS_PREFIXAppDelegate.h; sourceTree = "<group>"; };
|
44
|
+
06573F231843F14F006E87A6 /* CLASS_PREFIXAppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CLASS_PREFIXAppDelegate.m; sourceTree = "<group>"; };
|
45
|
+
06573F251843F14F006E87A6 /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Images.xcassets; sourceTree = "<group>"; };
|
46
|
+
06573F2B1843F14F006E87A6 /* PRODUCT_NAMETests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PRODUCT_NAMETests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
|
47
|
+
06573F2C1843F14F006E87A6 /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = XCTest.framework; path = Library/Frameworks/XCTest.framework; sourceTree = DEVELOPER_DIR; };
|
48
|
+
06573F341843F14F006E87A6 /* PRODUCT_NAMETests-Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = "PRODUCT_NAMETests-Info.plist"; sourceTree = "<group>"; };
|
49
|
+
06573F361843F14F006E87A6 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = "<group>"; };
|
50
|
+
06573F381843F14F006E87A6 /* PRODUCT_NAMETests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = PRODUCT_NAMETests.m; sourceTree = "<group>"; };
|
51
|
+
/* End PBXFileReference section */
|
52
|
+
|
53
|
+
/* Begin PBXFrameworksBuildPhase section */
|
54
|
+
06573F0D1843F14F006E87A6 /* Frameworks */ = {
|
55
|
+
isa = PBXFrameworksBuildPhase;
|
56
|
+
buildActionMask = 2147483647;
|
57
|
+
files = (
|
58
|
+
06573F161843F14F006E87A6 /* CoreGraphics.framework in Frameworks */,
|
59
|
+
06573F181843F14F006E87A6 /* UIKit.framework in Frameworks */,
|
60
|
+
06573F141843F14F006E87A6 /* Foundation.framework in Frameworks */,
|
61
|
+
);
|
62
|
+
runOnlyForDeploymentPostprocessing = 0;
|
63
|
+
};
|
64
|
+
06573F281843F14F006E87A6 /* Frameworks */ = {
|
65
|
+
isa = PBXFrameworksBuildPhase;
|
66
|
+
buildActionMask = 2147483647;
|
67
|
+
files = (
|
68
|
+
06573F2D1843F14F006E87A6 /* XCTest.framework in Frameworks */,
|
69
|
+
06573F2F1843F14F006E87A6 /* UIKit.framework in Frameworks */,
|
70
|
+
06573F2E1843F14F006E87A6 /* Foundation.framework in Frameworks */,
|
71
|
+
);
|
72
|
+
runOnlyForDeploymentPostprocessing = 0;
|
73
|
+
};
|
74
|
+
/* End PBXFrameworksBuildPhase section */
|
75
|
+
|
76
|
+
/* Begin PBXGroup section */
|
77
|
+
06573F071843F14F006E87A6 = {
|
78
|
+
isa = PBXGroup;
|
79
|
+
children = (
|
80
|
+
06573F191843F14F006E87A6 /* PRODUCT_NAME */,
|
81
|
+
06573F321843F14F006E87A6 /* PRODUCT_NAMETests */,
|
82
|
+
06573F121843F14F006E87A6 /* Frameworks */,
|
83
|
+
06573F111843F14F006E87A6 /* Products */,
|
84
|
+
);
|
85
|
+
sourceTree = "<group>";
|
86
|
+
};
|
87
|
+
06573F111843F14F006E87A6 /* Products */ = {
|
88
|
+
isa = PBXGroup;
|
89
|
+
children = (
|
90
|
+
06573F101843F14F006E87A6 /* PRODUCT_NAME.app */,
|
91
|
+
06573F2B1843F14F006E87A6 /* PRODUCT_NAMETests.xctest */,
|
92
|
+
);
|
93
|
+
name = Products;
|
94
|
+
sourceTree = "<group>";
|
95
|
+
};
|
96
|
+
06573F121843F14F006E87A6 /* Frameworks */ = {
|
97
|
+
isa = PBXGroup;
|
98
|
+
children = (
|
99
|
+
06573F131843F14F006E87A6 /* Foundation.framework */,
|
100
|
+
06573F151843F14F006E87A6 /* CoreGraphics.framework */,
|
101
|
+
06573F171843F14F006E87A6 /* UIKit.framework */,
|
102
|
+
06573F2C1843F14F006E87A6 /* XCTest.framework */,
|
103
|
+
);
|
104
|
+
name = Frameworks;
|
105
|
+
sourceTree = "<group>";
|
106
|
+
};
|
107
|
+
06573F191843F14F006E87A6 /* PRODUCT_NAME */ = {
|
108
|
+
isa = PBXGroup;
|
109
|
+
children = (
|
110
|
+
06573F221843F14F006E87A6 /* CLASS_PREFIXAppDelegate.h */,
|
111
|
+
06573F231843F14F006E87A6 /* CLASS_PREFIXAppDelegate.m */,
|
112
|
+
06573F251843F14F006E87A6 /* Images.xcassets */,
|
113
|
+
06573F1A1843F14F006E87A6 /* Supporting Files */,
|
114
|
+
);
|
115
|
+
path = PRODUCT_NAME;
|
116
|
+
sourceTree = "<group>";
|
117
|
+
};
|
118
|
+
06573F1A1843F14F006E87A6 /* Supporting Files */ = {
|
119
|
+
isa = PBXGroup;
|
120
|
+
children = (
|
121
|
+
06573F1B1843F14F006E87A6 /* PRODUCT_NAME-Info.plist */,
|
122
|
+
06573F1C1843F14F006E87A6 /* InfoPlist.strings */,
|
123
|
+
06573F1F1843F14F006E87A6 /* main.m */,
|
124
|
+
06573F211843F14F006E87A6 /* PRODUCT_NAME-Prefix.pch */,
|
125
|
+
);
|
126
|
+
name = "Supporting Files";
|
127
|
+
sourceTree = "<group>";
|
128
|
+
};
|
129
|
+
06573F321843F14F006E87A6 /* PRODUCT_NAMETests */ = {
|
130
|
+
isa = PBXGroup;
|
131
|
+
children = (
|
132
|
+
06573F381843F14F006E87A6 /* PRODUCT_NAMETests.m */,
|
133
|
+
06573F331843F14F006E87A6 /* Supporting Files */,
|
134
|
+
);
|
135
|
+
path = PRODUCT_NAMETests;
|
136
|
+
sourceTree = "<group>";
|
137
|
+
};
|
138
|
+
06573F331843F14F006E87A6 /* Supporting Files */ = {
|
139
|
+
isa = PBXGroup;
|
140
|
+
children = (
|
141
|
+
06573F341843F14F006E87A6 /* PRODUCT_NAMETests-Info.plist */,
|
142
|
+
06573F351843F14F006E87A6 /* InfoPlist.strings */,
|
143
|
+
);
|
144
|
+
name = "Supporting Files";
|
145
|
+
sourceTree = "<group>";
|
146
|
+
};
|
147
|
+
/* End PBXGroup section */
|
148
|
+
|
149
|
+
/* Begin PBXNativeTarget section */
|
150
|
+
06573F0F1843F14F006E87A6 /* PRODUCT_NAME */ = {
|
151
|
+
isa = PBXNativeTarget;
|
152
|
+
buildConfigurationList = 06573F3C1843F14F006E87A6 /* Build configuration list for PBXNativeTarget "PRODUCT_NAME" */;
|
153
|
+
buildPhases = (
|
154
|
+
06573F0C1843F14F006E87A6 /* Sources */,
|
155
|
+
06573F0D1843F14F006E87A6 /* Frameworks */,
|
156
|
+
06573F0E1843F14F006E87A6 /* Resources */,
|
157
|
+
);
|
158
|
+
buildRules = (
|
159
|
+
);
|
160
|
+
dependencies = (
|
161
|
+
);
|
162
|
+
name = PRODUCT_NAME;
|
163
|
+
productName = PRODUCT_NAME;
|
164
|
+
productReference = 06573F101843F14F006E87A6 /* PRODUCT_NAME.app */;
|
165
|
+
productType = "com.apple.product-type.application";
|
166
|
+
};
|
167
|
+
06573F2A1843F14F006E87A6 /* PRODUCT_NAMETests */ = {
|
168
|
+
isa = PBXNativeTarget;
|
169
|
+
buildConfigurationList = 06573F3F1843F14F006E87A6 /* Build configuration list for PBXNativeTarget "PRODUCT_NAMETests" */;
|
170
|
+
buildPhases = (
|
171
|
+
06573F271843F14F006E87A6 /* Sources */,
|
172
|
+
06573F281843F14F006E87A6 /* Frameworks */,
|
173
|
+
06573F291843F14F006E87A6 /* Resources */,
|
174
|
+
);
|
175
|
+
buildRules = (
|
176
|
+
);
|
177
|
+
dependencies = (
|
178
|
+
06573F311843F14F006E87A6 /* PBXTargetDependency */,
|
179
|
+
);
|
180
|
+
name = PRODUCT_NAMETests;
|
181
|
+
productName = PRODUCT_NAMETests;
|
182
|
+
productReference = 06573F2B1843F14F006E87A6 /* PRODUCT_NAMETests.xctest */;
|
183
|
+
productType = "com.apple.product-type.bundle.unit-test";
|
184
|
+
};
|
185
|
+
/* End PBXNativeTarget section */
|
186
|
+
|
187
|
+
/* Begin PBXProject section */
|
188
|
+
06573F081843F14F006E87A6 /* Project object */ = {
|
189
|
+
isa = PBXProject;
|
190
|
+
attributes = {
|
191
|
+
CLASSPREFIX = CLASS_PREFIX;
|
192
|
+
LastUpgradeCheck = 0500;
|
193
|
+
ORGANIZATIONNAME = ORG_NAME;
|
194
|
+
TargetAttributes = {
|
195
|
+
06573F2A1843F14F006E87A6 = {
|
196
|
+
TestTargetID = 06573F0F1843F14F006E87A6;
|
197
|
+
};
|
198
|
+
};
|
199
|
+
};
|
200
|
+
buildConfigurationList = 06573F0B1843F14F006E87A6 /* Build configuration list for PBXProject "PRODUCT_NAME" */;
|
201
|
+
compatibilityVersion = "Xcode 3.2";
|
202
|
+
developmentRegion = English;
|
203
|
+
hasScannedForEncodings = 0;
|
204
|
+
knownRegions = (
|
205
|
+
en,
|
206
|
+
);
|
207
|
+
mainGroup = 06573F071843F14F006E87A6;
|
208
|
+
productRefGroup = 06573F111843F14F006E87A6 /* Products */;
|
209
|
+
projectDirPath = "";
|
210
|
+
projectRoot = "";
|
211
|
+
targets = (
|
212
|
+
06573F0F1843F14F006E87A6 /* PRODUCT_NAME */,
|
213
|
+
06573F2A1843F14F006E87A6 /* PRODUCT_NAMETests */,
|
214
|
+
);
|
215
|
+
};
|
216
|
+
/* End PBXProject section */
|
217
|
+
|
218
|
+
/* Begin PBXResourcesBuildPhase section */
|
219
|
+
06573F0E1843F14F006E87A6 /* Resources */ = {
|
220
|
+
isa = PBXResourcesBuildPhase;
|
221
|
+
buildActionMask = 2147483647;
|
222
|
+
files = (
|
223
|
+
06573F1E1843F14F006E87A6 /* InfoPlist.strings in Resources */,
|
224
|
+
06573F261843F14F006E87A6 /* Images.xcassets in Resources */,
|
225
|
+
);
|
226
|
+
runOnlyForDeploymentPostprocessing = 0;
|
227
|
+
};
|
228
|
+
06573F291843F14F006E87A6 /* Resources */ = {
|
229
|
+
isa = PBXResourcesBuildPhase;
|
230
|
+
buildActionMask = 2147483647;
|
231
|
+
files = (
|
232
|
+
06573F371843F14F006E87A6 /* InfoPlist.strings in Resources */,
|
233
|
+
);
|
234
|
+
runOnlyForDeploymentPostprocessing = 0;
|
235
|
+
};
|
236
|
+
/* End PBXResourcesBuildPhase section */
|
237
|
+
|
238
|
+
/* Begin PBXSourcesBuildPhase section */
|
239
|
+
06573F0C1843F14F006E87A6 /* Sources */ = {
|
240
|
+
isa = PBXSourcesBuildPhase;
|
241
|
+
buildActionMask = 2147483647;
|
242
|
+
files = (
|
243
|
+
06573F201843F14F006E87A6 /* main.m in Sources */,
|
244
|
+
06573F241843F14F006E87A6 /* CLASS_PREFIXAppDelegate.m in Sources */,
|
245
|
+
);
|
246
|
+
runOnlyForDeploymentPostprocessing = 0;
|
247
|
+
};
|
248
|
+
06573F271843F14F006E87A6 /* Sources */ = {
|
249
|
+
isa = PBXSourcesBuildPhase;
|
250
|
+
buildActionMask = 2147483647;
|
251
|
+
files = (
|
252
|
+
06573F391843F14F006E87A6 /* PRODUCT_NAMETests.m in Sources */,
|
253
|
+
);
|
254
|
+
runOnlyForDeploymentPostprocessing = 0;
|
255
|
+
};
|
256
|
+
/* End PBXSourcesBuildPhase section */
|
257
|
+
|
258
|
+
/* Begin PBXTargetDependency section */
|
259
|
+
06573F311843F14F006E87A6 /* PBXTargetDependency */ = {
|
260
|
+
isa = PBXTargetDependency;
|
261
|
+
target = 06573F0F1843F14F006E87A6 /* PRODUCT_NAME */;
|
262
|
+
targetProxy = 06573F301843F14F006E87A6 /* PBXContainerItemProxy */;
|
263
|
+
};
|
264
|
+
/* End PBXTargetDependency section */
|
265
|
+
|
266
|
+
/* Begin PBXVariantGroup section */
|
267
|
+
06573F1C1843F14F006E87A6 /* InfoPlist.strings */ = {
|
268
|
+
isa = PBXVariantGroup;
|
269
|
+
children = (
|
270
|
+
06573F1D1843F14F006E87A6 /* en */,
|
271
|
+
);
|
272
|
+
name = InfoPlist.strings;
|
273
|
+
sourceTree = "<group>";
|
274
|
+
};
|
275
|
+
06573F351843F14F006E87A6 /* InfoPlist.strings */ = {
|
276
|
+
isa = PBXVariantGroup;
|
277
|
+
children = (
|
278
|
+
06573F361843F14F006E87A6 /* en */,
|
279
|
+
);
|
280
|
+
name = InfoPlist.strings;
|
281
|
+
sourceTree = "<group>";
|
282
|
+
};
|
283
|
+
/* End PBXVariantGroup section */
|
284
|
+
|
285
|
+
/* Begin XCBuildConfiguration section */
|
286
|
+
06573F3A1843F14F006E87A6 /* Debug */ = {
|
287
|
+
isa = XCBuildConfiguration;
|
288
|
+
buildSettings = {
|
289
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
290
|
+
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
|
291
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
292
|
+
CLANG_CXX_LIBRARY = "libc++";
|
293
|
+
CLANG_ENABLE_MODULES = YES;
|
294
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
295
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
296
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
297
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
298
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
299
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
300
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
301
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
302
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
303
|
+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
304
|
+
COPY_PHASE_STRIP = NO;
|
305
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
306
|
+
GCC_DYNAMIC_NO_PIC = NO;
|
307
|
+
GCC_OPTIMIZATION_LEVEL = 0;
|
308
|
+
GCC_PREPROCESSOR_DEFINITIONS = (
|
309
|
+
"DEBUG=1",
|
310
|
+
"$(inherited)",
|
311
|
+
);
|
312
|
+
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
|
313
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
314
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
315
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
316
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
317
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
318
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
319
|
+
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
|
320
|
+
ONLY_ACTIVE_ARCH = YES;
|
321
|
+
SDKROOT = iphoneos;
|
322
|
+
TARGETED_DEVICE_FAMILY = "1,2";
|
323
|
+
};
|
324
|
+
name = Debug;
|
325
|
+
};
|
326
|
+
06573F3B1843F14F006E87A6 /* Release */ = {
|
327
|
+
isa = XCBuildConfiguration;
|
328
|
+
buildSettings = {
|
329
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
330
|
+
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
|
331
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
|
332
|
+
CLANG_CXX_LIBRARY = "libc++";
|
333
|
+
CLANG_ENABLE_MODULES = YES;
|
334
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
335
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
336
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
337
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
338
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
339
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
340
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
341
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
342
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
343
|
+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
|
344
|
+
COPY_PHASE_STRIP = YES;
|
345
|
+
ENABLE_NS_ASSERTIONS = NO;
|
346
|
+
GCC_C_LANGUAGE_STANDARD = gnu99;
|
347
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
348
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
349
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
350
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
351
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
352
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
353
|
+
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
|
354
|
+
SDKROOT = iphoneos;
|
355
|
+
TARGETED_DEVICE_FAMILY = "1,2";
|
356
|
+
VALIDATE_PRODUCT = YES;
|
357
|
+
};
|
358
|
+
name = Release;
|
359
|
+
};
|
360
|
+
06573F3D1843F14F006E87A6 /* Debug */ = {
|
361
|
+
isa = XCBuildConfiguration;
|
362
|
+
buildSettings = {
|
363
|
+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
364
|
+
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
|
365
|
+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
366
|
+
GCC_PREFIX_HEADER = "PRODUCT_NAME/PRODUCT_NAME-Prefix.pch";
|
367
|
+
INFOPLIST_FILE = "PRODUCT_NAME/PRODUCT_NAME-Info.plist";
|
368
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
369
|
+
WRAPPER_EXTENSION = app;
|
370
|
+
};
|
371
|
+
name = Debug;
|
372
|
+
};
|
373
|
+
06573F3E1843F14F006E87A6 /* Release */ = {
|
374
|
+
isa = XCBuildConfiguration;
|
375
|
+
buildSettings = {
|
376
|
+
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
377
|
+
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
|
378
|
+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
379
|
+
GCC_PREFIX_HEADER = "PRODUCT_NAME/PRODUCT_NAME-Prefix.pch";
|
380
|
+
INFOPLIST_FILE = "PRODUCT_NAME/PRODUCT_NAME-Info.plist";
|
381
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
382
|
+
WRAPPER_EXTENSION = app;
|
383
|
+
};
|
384
|
+
name = Release;
|
385
|
+
};
|
386
|
+
06573F401843F14F006E87A6 /* Debug */ = {
|
387
|
+
isa = XCBuildConfiguration;
|
388
|
+
buildSettings = {
|
389
|
+
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
|
390
|
+
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/PRODUCT_NAME.app/PRODUCT_NAME";
|
391
|
+
FRAMEWORK_SEARCH_PATHS = (
|
392
|
+
"$(SDKROOT)/Developer/Library/Frameworks",
|
393
|
+
"$(inherited)",
|
394
|
+
"$(DEVELOPER_FRAMEWORKS_DIR)",
|
395
|
+
);
|
396
|
+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
397
|
+
GCC_PREFIX_HEADER = "PRODUCT_NAME/PRODUCT_NAME-Prefix.pch";
|
398
|
+
GCC_PREPROCESSOR_DEFINITIONS = (
|
399
|
+
"DEBUG=1",
|
400
|
+
"$(inherited)",
|
401
|
+
);
|
402
|
+
INFOPLIST_FILE = "PRODUCT_NAMETests/PRODUCT_NAMETests-Info.plist";
|
403
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
404
|
+
TEST_HOST = "$(BUNDLE_LOADER)";
|
405
|
+
WRAPPER_EXTENSION = xctest;
|
406
|
+
};
|
407
|
+
name = Debug;
|
408
|
+
};
|
409
|
+
06573F411843F14F006E87A6 /* Release */ = {
|
410
|
+
isa = XCBuildConfiguration;
|
411
|
+
buildSettings = {
|
412
|
+
ARCHS = "$(ARCHS_STANDARD_INCLUDING_64_BIT)";
|
413
|
+
BUNDLE_LOADER = "$(BUILT_PRODUCTS_DIR)/PRODUCT_NAME.app/PRODUCT_NAME";
|
414
|
+
FRAMEWORK_SEARCH_PATHS = (
|
415
|
+
"$(SDKROOT)/Developer/Library/Frameworks",
|
416
|
+
"$(inherited)",
|
417
|
+
"$(DEVELOPER_FRAMEWORKS_DIR)",
|
418
|
+
);
|
419
|
+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
|
420
|
+
GCC_PREFIX_HEADER = "PRODUCT_NAME/PRODUCT_NAME-Prefix.pch";
|
421
|
+
INFOPLIST_FILE = "PRODUCT_NAMETests/PRODUCT_NAMETests-Info.plist";
|
422
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
423
|
+
TEST_HOST = "$(BUNDLE_LOADER)";
|
424
|
+
WRAPPER_EXTENSION = xctest;
|
425
|
+
};
|
426
|
+
name = Release;
|
427
|
+
};
|
428
|
+
/* End XCBuildConfiguration section */
|
429
|
+
|
430
|
+
/* Begin XCConfigurationList section */
|
431
|
+
06573F0B1843F14F006E87A6 /* Build configuration list for PBXProject "PRODUCT_NAME" */ = {
|
432
|
+
isa = XCConfigurationList;
|
433
|
+
buildConfigurations = (
|
434
|
+
06573F3A1843F14F006E87A6 /* Debug */,
|
435
|
+
06573F3B1843F14F006E87A6 /* Release */,
|
436
|
+
);
|
437
|
+
defaultConfigurationIsVisible = 0;
|
438
|
+
defaultConfigurationName = Release;
|
439
|
+
};
|
440
|
+
06573F3C1843F14F006E87A6 /* Build configuration list for PBXNativeTarget "PRODUCT_NAME" */ = {
|
441
|
+
isa = XCConfigurationList;
|
442
|
+
buildConfigurations = (
|
443
|
+
06573F3D1843F14F006E87A6 /* Debug */,
|
444
|
+
06573F3E1843F14F006E87A6 /* Release */,
|
445
|
+
);
|
446
|
+
defaultConfigurationIsVisible = 0;
|
447
|
+
};
|
448
|
+
06573F3F1843F14F006E87A6 /* Build configuration list for PBXNativeTarget "PRODUCT_NAMETests" */ = {
|
449
|
+
isa = XCConfigurationList;
|
450
|
+
buildConfigurations = (
|
451
|
+
06573F401843F14F006E87A6 /* Debug */,
|
452
|
+
06573F411843F14F006E87A6 /* Release */,
|
453
|
+
);
|
454
|
+
defaultConfigurationIsVisible = 0;
|
455
|
+
};
|
456
|
+
/* End XCConfigurationList section */
|
457
|
+
};
|
458
|
+
rootObject = 06573F081843F14F006E87A6 /* Project object */;
|
459
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
//
|
2
|
+
// CLASS_PREFIXAppDelegate.h
|
3
|
+
// PRODUCT_NAME
|
4
|
+
//
|
5
|
+
// Created by Alex Fish on 25/11/2013.
|
6
|
+
// Copyright (c) 2013 ORG_NAME. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <UIKit/UIKit.h>
|
10
|
+
|
11
|
+
@interface CLASS_PREFIXAppDelegate : UIResponder <UIApplicationDelegate>
|
12
|
+
|
13
|
+
@property (strong, nonatomic) UIWindow *window;
|
14
|
+
|
15
|
+
@end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
//
|
2
|
+
// CLASS_PREFIXAppDelegate.m
|
3
|
+
// PRODUCT_NAME
|
4
|
+
//
|
5
|
+
// Created by Alex Fish on 25/11/2013.
|
6
|
+
// Copyright (c) 2013 ORG_NAME. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import "CLASS_PREFIXAppDelegate.h"
|
10
|
+
|
11
|
+
@implementation CLASS_PREFIXAppDelegate
|
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
|
@@ -0,0 +1,53 @@
|
|
1
|
+
{
|
2
|
+
"images" : [
|
3
|
+
{
|
4
|
+
"idiom" : "iphone",
|
5
|
+
"size" : "29x29",
|
6
|
+
"scale" : "2x"
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"idiom" : "iphone",
|
10
|
+
"size" : "40x40",
|
11
|
+
"scale" : "2x"
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"idiom" : "iphone",
|
15
|
+
"size" : "60x60",
|
16
|
+
"scale" : "2x"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"idiom" : "ipad",
|
20
|
+
"size" : "29x29",
|
21
|
+
"scale" : "1x"
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"idiom" : "ipad",
|
25
|
+
"size" : "29x29",
|
26
|
+
"scale" : "2x"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"idiom" : "ipad",
|
30
|
+
"size" : "40x40",
|
31
|
+
"scale" : "1x"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"idiom" : "ipad",
|
35
|
+
"size" : "40x40",
|
36
|
+
"scale" : "2x"
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"idiom" : "ipad",
|
40
|
+
"size" : "76x76",
|
41
|
+
"scale" : "1x"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"idiom" : "ipad",
|
45
|
+
"size" : "76x76",
|
46
|
+
"scale" : "2x"
|
47
|
+
}
|
48
|
+
],
|
49
|
+
"info" : {
|
50
|
+
"version" : 1,
|
51
|
+
"author" : "xcode"
|
52
|
+
}
|
53
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
{
|
2
|
+
"images" : [
|
3
|
+
{
|
4
|
+
"orientation" : "portrait",
|
5
|
+
"idiom" : "iphone",
|
6
|
+
"extent" : "full-screen",
|
7
|
+
"minimum-system-version" : "7.0",
|
8
|
+
"scale" : "2x"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"orientation" : "portrait",
|
12
|
+
"idiom" : "iphone",
|
13
|
+
"subtype" : "retina4",
|
14
|
+
"extent" : "full-screen",
|
15
|
+
"minimum-system-version" : "7.0",
|
16
|
+
"scale" : "2x"
|
17
|
+
},
|
18
|
+
{
|
19
|
+
"orientation" : "portrait",
|
20
|
+
"idiom" : "ipad",
|
21
|
+
"extent" : "full-screen",
|
22
|
+
"minimum-system-version" : "7.0",
|
23
|
+
"scale" : "1x"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
"orientation" : "landscape",
|
27
|
+
"idiom" : "ipad",
|
28
|
+
"extent" : "full-screen",
|
29
|
+
"minimum-system-version" : "7.0",
|
30
|
+
"scale" : "1x"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"orientation" : "portrait",
|
34
|
+
"idiom" : "ipad",
|
35
|
+
"extent" : "full-screen",
|
36
|
+
"minimum-system-version" : "7.0",
|
37
|
+
"scale" : "2x"
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"orientation" : "landscape",
|
41
|
+
"idiom" : "ipad",
|
42
|
+
"extent" : "full-screen",
|
43
|
+
"minimum-system-version" : "7.0",
|
44
|
+
"scale" : "2x"
|
45
|
+
}
|
46
|
+
],
|
47
|
+
"info" : {
|
48
|
+
"version" : 1,
|
49
|
+
"author" : "xcode"
|
50
|
+
}
|
51
|
+
}
|
@@ -0,0 +1,45 @@
|
|
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>IDENTIFIER.${PRODUCT_NAME:rfc1034identifier}</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>UIRequiredDeviceCapabilities</key>
|
28
|
+
<array>
|
29
|
+
<string>armv7</string>
|
30
|
+
</array>
|
31
|
+
<key>UISupportedInterfaceOrientations</key>
|
32
|
+
<array>
|
33
|
+
<string>UIInterfaceOrientationPortrait</string>
|
34
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
35
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
36
|
+
</array>
|
37
|
+
<key>UISupportedInterfaceOrientations~ipad</key>
|
38
|
+
<array>
|
39
|
+
<string>UIInterfaceOrientationPortrait</string>
|
40
|
+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
41
|
+
<string>UIInterfaceOrientationLandscapeLeft</string>
|
42
|
+
<string>UIInterfaceOrientationLandscapeRight</string>
|
43
|
+
</array>
|
44
|
+
</dict>
|
45
|
+
</plist>
|
@@ -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_3_0
|
10
|
+
#warning "This project uses features only available in iOS SDK 3.0 and later."
|
11
|
+
#endif
|
12
|
+
|
13
|
+
#ifdef __OBJC__
|
14
|
+
#import <UIKit/UIKit.h>
|
15
|
+
#import <Foundation/Foundation.h>
|
16
|
+
#endif
|
@@ -0,0 +1,18 @@
|
|
1
|
+
//
|
2
|
+
// main.m
|
3
|
+
// PRODUCT_NAME
|
4
|
+
//
|
5
|
+
// Created by Alex Fish on 25/11/2013.
|
6
|
+
// Copyright (c) 2013 ORG_NAME. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <UIKit/UIKit.h>
|
10
|
+
|
11
|
+
#import "CLASS_PREFIXAppDelegate.h"
|
12
|
+
|
13
|
+
int main(int argc, char * argv[])
|
14
|
+
{
|
15
|
+
@autoreleasepool {
|
16
|
+
return UIApplicationMain(argc, argv, nil, NSStringFromClass([CLASS_PREFIXAppDelegate class]));
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,22 @@
|
|
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>IDENTIFIER.${PRODUCT_NAME:rfc1034identifier}</string>
|
11
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
12
|
+
<string>6.0</string>
|
13
|
+
<key>CFBundlePackageType</key>
|
14
|
+
<string>BNDL</string>
|
15
|
+
<key>CFBundleShortVersionString</key>
|
16
|
+
<string>1.0</string>
|
17
|
+
<key>CFBundleSignature</key>
|
18
|
+
<string>????</string>
|
19
|
+
<key>CFBundleVersion</key>
|
20
|
+
<string>1</string>
|
21
|
+
</dict>
|
22
|
+
</plist>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
//
|
2
|
+
// PRODUCT_NAMETests.m
|
3
|
+
// PRODUCT_NAMETests
|
4
|
+
//
|
5
|
+
// Created by Alex Fish on 25/11/2013.
|
6
|
+
// Copyright (c) 2013 ORG_NAME. All rights reserved.
|
7
|
+
//
|
8
|
+
|
9
|
+
#import <XCTest/XCTest.h>
|
10
|
+
|
11
|
+
@interface PRODUCT_NAMETests : XCTestCase
|
12
|
+
|
13
|
+
@end
|
14
|
+
|
15
|
+
@implementation PRODUCT_NAMETests
|
16
|
+
|
17
|
+
- (void)setUp
|
18
|
+
{
|
19
|
+
[super setUp];
|
20
|
+
// Put setup code here. This method is called before the invocation of each test method in the class.
|
21
|
+
}
|
22
|
+
|
23
|
+
- (void)tearDown
|
24
|
+
{
|
25
|
+
// Put teardown code here. This method is called after the invocation of each test method in the class.
|
26
|
+
[super tearDown];
|
27
|
+
}
|
28
|
+
|
29
|
+
- (void)testExample
|
30
|
+
{
|
31
|
+
XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__);
|
32
|
+
}
|
33
|
+
|
34
|
+
@end
|
data/data/Podfile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
pod 'AFNetworking', '~> 2.0.3'
|
data/data/xcode.yml
ADDED
data/lib/trim.rb
ADDED
data/lib/trim/command.rb
ADDED
data/lib/trim/renamer.rb
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
module Trim
|
2
|
+
|
3
|
+
class Renamer
|
4
|
+
|
5
|
+
def rename(directory)
|
6
|
+
file_names = Dir["#{directory}/**/*"]
|
7
|
+
# loop backwards
|
8
|
+
file_names.reverse.each do |path|
|
9
|
+
if File.directory? path
|
10
|
+
# dir
|
11
|
+
rename_directory(path)
|
12
|
+
else
|
13
|
+
# files
|
14
|
+
rename_file(path)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
private
|
20
|
+
|
21
|
+
def yaml
|
22
|
+
YAML::load_file(File.join(File.dirname(__FILE__), '../../data/xcode.yml'))
|
23
|
+
end
|
24
|
+
|
25
|
+
def product
|
26
|
+
yaml["product"]
|
27
|
+
end
|
28
|
+
|
29
|
+
def organization
|
30
|
+
yaml["organization"]
|
31
|
+
end
|
32
|
+
|
33
|
+
def company
|
34
|
+
yaml["company"]
|
35
|
+
end
|
36
|
+
|
37
|
+
def prefix
|
38
|
+
yaml["prefix"]
|
39
|
+
end
|
40
|
+
|
41
|
+
def rename_directory(path)
|
42
|
+
new_path = replaced_path(path, /PRODUCT_NAME/)
|
43
|
+
FileUtils.mv(path, new_path) if new_path
|
44
|
+
end
|
45
|
+
|
46
|
+
def rename_file(file)
|
47
|
+
rename_match(file, /PRODUCT_NAME/)
|
48
|
+
rename_match(file, /CLASS_PREFIX/)
|
49
|
+
end
|
50
|
+
|
51
|
+
def rename_match(file, match)
|
52
|
+
new_name = replaced_path(file, /#{match}/)
|
53
|
+
File.rename(file, new_name) if new_name
|
54
|
+
end
|
55
|
+
|
56
|
+
def replaced_path(path, regex)
|
57
|
+
new_path = nil
|
58
|
+
components = path.split("/")
|
59
|
+
last = components.pop
|
60
|
+
|
61
|
+
if last.match(/#{regex}/)
|
62
|
+
new_name = last.gsub(/#{regex}/, product)
|
63
|
+
if components.length > 0
|
64
|
+
new_path = components.join("/") + "/" + new_name
|
65
|
+
else
|
66
|
+
new_path = new_name
|
67
|
+
end
|
68
|
+
end
|
69
|
+
new_path
|
70
|
+
end
|
71
|
+
|
72
|
+
end
|
73
|
+
end
|
data/lib/trim/version.rb
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "trim"
|
data/trim.gemspec
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'trim/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "trim"
|
8
|
+
spec.version = Trim::VERSION
|
9
|
+
spec.authors = ["Alex Fish"]
|
10
|
+
spec.email = ["alex@alexefish.com"]
|
11
|
+
spec.description = "trim xcode templates into shape"
|
12
|
+
spec.summary = "xcode template builder"
|
13
|
+
spec.homepage = "https://github.com/alexfish/trim"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
22
|
+
spec.add_development_dependency "rake"
|
23
|
+
spec.add_development_dependency "rspec"
|
24
|
+
spec.add_development_dependency "guard-rspec"
|
25
|
+
end
|
metadata
ADDED
@@ -0,0 +1,146 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: trim
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Alex Fish
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-11-26 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.3'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.3'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rspec
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: guard-rspec
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
description: trim xcode templates into shape
|
79
|
+
email:
|
80
|
+
- alex@alexefish.com
|
81
|
+
executables:
|
82
|
+
- trim
|
83
|
+
extensions: []
|
84
|
+
extra_rdoc_files: []
|
85
|
+
files:
|
86
|
+
- .ruby-version
|
87
|
+
- .travis.yml
|
88
|
+
- Gemfile
|
89
|
+
- Gemfile.lock
|
90
|
+
- Guardfile
|
91
|
+
- LICENSE.txt
|
92
|
+
- README.md
|
93
|
+
- Rakefile
|
94
|
+
- bin/trim
|
95
|
+
- data/Gemfile
|
96
|
+
- data/Gemfile.lock
|
97
|
+
- data/PRODUCT_NAME/PRODUCT_NAME.xcodeproj/project.pbxproj
|
98
|
+
- data/PRODUCT_NAME/PRODUCT_NAME.xcodeproj/project.xcworkspace/contents.xcworkspacedata
|
99
|
+
- data/PRODUCT_NAME/PRODUCT_NAME/CLASS_PREFIXAppDelegate.h
|
100
|
+
- data/PRODUCT_NAME/PRODUCT_NAME/CLASS_PREFIXAppDelegate.m
|
101
|
+
- data/PRODUCT_NAME/PRODUCT_NAME/Images.xcassets/AppIcon.appiconset/Contents.json
|
102
|
+
- data/PRODUCT_NAME/PRODUCT_NAME/Images.xcassets/LaunchImage.launchimage/Contents.json
|
103
|
+
- data/PRODUCT_NAME/PRODUCT_NAME/PRODUCT_NAME-Info.plist
|
104
|
+
- data/PRODUCT_NAME/PRODUCT_NAME/PRODUCT_NAME-Prefix.pch
|
105
|
+
- data/PRODUCT_NAME/PRODUCT_NAME/en.lproj/InfoPlist.strings
|
106
|
+
- data/PRODUCT_NAME/PRODUCT_NAME/main.m
|
107
|
+
- data/PRODUCT_NAME/PRODUCT_NAMETests/PRODUCT_NAMETests-Info.plist
|
108
|
+
- data/PRODUCT_NAME/PRODUCT_NAMETests/PRODUCT_NAMETests.m
|
109
|
+
- data/PRODUCT_NAME/PRODUCT_NAMETests/en.lproj/InfoPlist.strings
|
110
|
+
- data/Podfile
|
111
|
+
- data/xcode.yml
|
112
|
+
- lib/trim.rb
|
113
|
+
- lib/trim/command.rb
|
114
|
+
- lib/trim/renamer.rb
|
115
|
+
- lib/trim/version.rb
|
116
|
+
- spec/command_spec.rb
|
117
|
+
- spec/spec_helper.rb
|
118
|
+
- trim.gemspec
|
119
|
+
homepage: https://github.com/alexfish/trim
|
120
|
+
licenses:
|
121
|
+
- MIT
|
122
|
+
post_install_message:
|
123
|
+
rdoc_options: []
|
124
|
+
require_paths:
|
125
|
+
- lib
|
126
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ! '>='
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
133
|
+
none: false
|
134
|
+
requirements:
|
135
|
+
- - ! '>='
|
136
|
+
- !ruby/object:Gem::Version
|
137
|
+
version: '0'
|
138
|
+
requirements: []
|
139
|
+
rubyforge_project:
|
140
|
+
rubygems_version: 1.8.23
|
141
|
+
signing_key:
|
142
|
+
specification_version: 3
|
143
|
+
summary: xcode template builder
|
144
|
+
test_files:
|
145
|
+
- spec/command_spec.rb
|
146
|
+
- spec/spec_helper.rb
|