xcake 0.5.0 → 0.5.1
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 +4 -4
- data/CHANGELOG.md +11 -0
- data/Gemfile.lock +2 -2
- data/README.md +8 -2
- data/docs/Cakefile.md +24 -4
- data/lib/xcake/configuration/sugar.rb +1 -2
- data/lib/xcake/project/sugar.rb +17 -0
- data/lib/xcake/version.rb +1 -1
- data/xcuserdata/jamescampbell.xcuserdatad/xcschemes/xcschememanagement.plist +37 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2626e1c4dc1c4f27c43f513d75c76c98e7d44c1
|
4
|
+
data.tar.gz: f71680ac7a2ed10d8e07b96e5deed14581c4f3e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ebc8800a74819fec101a996352864877873d16809f7394aa4f04b99a2632ac40bf89561e966d50c5dcbb9dd8b3f6cf80f333240b0991c92ad40a9455c67727d
|
7
|
+
data.tar.gz: 7cf207cb8f47db5c8ee599cc855eda9257d6749ae18c3f139a84311c5e69070bbb1a113b5730e53e5432b83554fc2782483bf9a49951e11b567baa61aee32c34
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
v0.5.1
|
2
|
+
======
|
3
|
+
- Tweaks DSL so it is easier to access the project properties via the `project` method.
|
4
|
+
|
5
|
+
v0.5.0
|
6
|
+
======
|
7
|
+
- Introduces `xcake init` command to setup an example Cakefile for you.
|
8
|
+
- To turn a Cakefile into a project you now run `xcake bake`.
|
9
|
+
- Simplified DSL, you no longer have to declare the project. Check the documentation for details.
|
10
|
+
- Adds support for Claide and Xcake Plugins.
|
11
|
+
|
1
12
|
v0.4.8
|
2
13
|
======
|
3
14
|
- The type property for a target now accepts a raw UTI.
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -14,7 +14,7 @@ to match the file hiearchy.
|
|
14
14
|
This is perfect for working in teams or with cocoapods as it reduces conflicts,
|
15
15
|
makes it easy to modify settings and allows you to create a clean project anytime you need to.
|
16
16
|
|
17
|
-
Isn't this just like liftoff or crafter? No these tools are for scafolding a whole project structure to get you started (Creating folder structure, git repo etc.). However xcake is not for this, xcake is just for generating a xcodeproject.
|
17
|
+
Isn't this just like liftoff, generamba or crafter? No these tools are for scafolding a whole project structure to get you started (Creating folder structure, git repo etc.). However xcake is not for this, xcake is just for generating a xcodeproject.
|
18
18
|
|
19
19
|
Get in contact with the developer on Twitter: [@jcampbell_05](https://twitter.com/jcampbell_05)
|
20
20
|
|
@@ -32,7 +32,7 @@ Get in contact with the developer on Twitter: [@jcampbell_05](https://twitter.co
|
|
32
32
|
|
33
33
|
Xcode projects were once described as "the closest thing to taboo we have to deal with on a regular basis", but it doesnt have to be this way.
|
34
34
|
|
35
|
-
Store a simple description of your project in a text file, your `Cakefile`, to easily create a xcode project from _any_ computer. Easily see, merge and maintain the structure of your project,
|
35
|
+
Store a simple description of your project in a text file, your `Cakefile`, to easily create a xcode project from _any_ computer. Easily see, merge and maintain the structure of your project, It’s time to add *.xcodeproj into .gitignore!.
|
36
36
|
|
37
37
|
You define a project like this:
|
38
38
|
|
@@ -46,6 +46,12 @@ To generate the xcode project, just run:
|
|
46
46
|
|
47
47
|
```sh
|
48
48
|
xcake bake
|
49
|
+
```
|
50
|
+
|
51
|
+
If you would like an example Cakefile for guidence, just run:
|
52
|
+
|
53
|
+
```sh
|
54
|
+
xcake init
|
49
55
|
```
|
50
56
|
|
51
57
|
| xcake
|
data/docs/Cakefile.md
CHANGED
@@ -29,17 +29,37 @@ readable, efficient and concise.
|
|
29
29
|
|
30
30
|
## Project
|
31
31
|
|
32
|
-
A project is automatically created from a `Cakefile
|
33
|
-
you can
|
32
|
+
A project is automatically created from a `Cakefile`. To customize a Project
|
33
|
+
you can easily access all of it's properties via the `project` method.
|
34
|
+
|
35
|
+
```ruby
|
36
|
+
project do |p|
|
37
|
+
p.project_name = "Project"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
You can also directly set the properties without a block, like so:
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
project.project_name = "Project"
|
45
|
+
```
|
34
46
|
|
35
47
|
###Properties
|
36
48
|
|
49
|
+
#### Project Name
|
50
|
+
|
51
|
+
Sets the filename for the project
|
52
|
+
|
53
|
+
```ruby
|
54
|
+
project.project_name = "Project"
|
55
|
+
```
|
56
|
+
|
37
57
|
#### Class Prefix
|
38
58
|
|
39
59
|
Sets the class prefix for the project
|
40
60
|
|
41
61
|
```ruby
|
42
|
-
class_prefix = "XC"
|
62
|
+
project.class_prefix = "XC"
|
43
63
|
```
|
44
64
|
|
45
65
|
#### Organization
|
@@ -47,7 +67,7 @@ class_prefix = "XC"
|
|
47
67
|
Sets the organization for the project.
|
48
68
|
|
49
69
|
```ruby
|
50
|
-
organization = "Xcake Productions"
|
70
|
+
project.organization = "Xcake Productions"
|
51
71
|
```
|
52
72
|
|
53
73
|
## Targets
|
@@ -33,8 +33,7 @@ module Xcake
|
|
33
33
|
settings["PRODUCT_BUNDLE_IDENTIFIER"] = identifier
|
34
34
|
end
|
35
35
|
|
36
|
-
# Convienence method to easily set
|
37
|
-
# product's bundle identifier
|
36
|
+
# Convienence method to easily set preprocessor directives
|
38
37
|
#
|
39
38
|
def preprocessor_definitions
|
40
39
|
PreprocessorDefinitionsSettingProxy.new(
|
data/lib/xcake/project/sugar.rb
CHANGED
@@ -2,6 +2,19 @@ require "xcodeproj"
|
|
2
2
|
|
3
3
|
module Xcake
|
4
4
|
class Project
|
5
|
+
|
6
|
+
# Passes the project instance to a block. This is used to easily modify the
|
7
|
+
# properties of the project in the DSL.
|
8
|
+
#
|
9
|
+
#
|
10
|
+
# @param [Proc] block
|
11
|
+
# an optional block that configures the project through the DSL.
|
12
|
+
#
|
13
|
+
def project(&block)
|
14
|
+
block.call(self) if block_given?
|
15
|
+
self
|
16
|
+
end
|
17
|
+
|
5
18
|
# Defines a new application target.
|
6
19
|
#
|
7
20
|
# @param [Symbol] platform
|
@@ -86,6 +99,10 @@ module Xcake
|
|
86
99
|
t.language = language
|
87
100
|
end
|
88
101
|
|
102
|
+
#Xcake needs to add dependencies in generation phase.
|
103
|
+
#target.add_dependency(watch_app_target)
|
104
|
+
#watch_app_target.add_dependency(watch_extension_target)
|
105
|
+
|
89
106
|
block.call(watch_app_target, watch_extension_target) if block_given?
|
90
107
|
|
91
108
|
return nil
|
data/lib/xcake/version.rb
CHANGED
@@ -0,0 +1,37 @@
|
|
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>SchemeUserState</key>
|
6
|
+
<dict>
|
7
|
+
<key>Sup-Beta.xcscheme_^#shared#^_</key>
|
8
|
+
<dict>
|
9
|
+
<key>isShown</key>
|
10
|
+
<true/>
|
11
|
+
</dict>
|
12
|
+
<key>Sup-Debug.xcscheme_^#shared#^_</key>
|
13
|
+
<dict>
|
14
|
+
<key>isShown</key>
|
15
|
+
<true/>
|
16
|
+
</dict>
|
17
|
+
<key>Sup-Release.xcscheme_^#shared#^_</key>
|
18
|
+
<dict>
|
19
|
+
<key>isShown</key>
|
20
|
+
<true/>
|
21
|
+
</dict>
|
22
|
+
</dict>
|
23
|
+
<key>SuppressBuildableAutocreation</key>
|
24
|
+
<dict>
|
25
|
+
<key>1C5627D08EFDBB8B65806BB3</key>
|
26
|
+
<dict>
|
27
|
+
<key>primary</key>
|
28
|
+
<true/>
|
29
|
+
</dict>
|
30
|
+
<key>BF53B81F8B27AD76D19D9271</key>
|
31
|
+
<dict>
|
32
|
+
<key>primary</key>
|
33
|
+
<true/>
|
34
|
+
</dict>
|
35
|
+
</dict>
|
36
|
+
</dict>
|
37
|
+
</plist>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xcake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Campbell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01-
|
11
|
+
date: 2016-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -218,6 +218,7 @@ files:
|
|
218
218
|
- lib/xcake/xcode/scheme.rb
|
219
219
|
- lib/xcake/xcode/scheme_list.rb
|
220
220
|
- xcake.gemspec
|
221
|
+
- xcuserdata/jamescampbell.xcuserdatad/xcschemes/xcschememanagement.plist
|
221
222
|
homepage: https://github.com/jcampbell05/xcake/
|
222
223
|
licenses:
|
223
224
|
- MIT
|