xcake 0.6.23 → 0.6.24
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 +4 -0
- data/Gemfile.lock +1 -1
- data/lib/xcake/file_reference_installer.rb +1 -2
- data/lib/xcake/version.rb +1 -1
- data/lib/xcake/xcode/project.rb +14 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cad5e364fd8796956e7f5c702ecf6cecd9529d6
|
4
|
+
data.tar.gz: f53b54c60cc0702763a4f6af3bffaf13e53f5b65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5ca8ef563ceeaf851fca749ba9347eb65298e83d97739c6dc0db35ccb86f63abcbe9c8a6a9ee69f8a7ab306ad6d8fa2734821e941d746f6906cfe9a140cf6a2
|
7
|
+
data.tar.gz: 2c6b1a9ad42bb0c550095cfdbfec8376b3af7ff7c95afd692925a5975a2706357444f5ea79653737abbb45145560ae6562fb151d727942ff126498064501f777
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -56,14 +56,13 @@ module Xcake
|
|
56
56
|
# the first non-variatn group
|
57
57
|
#
|
58
58
|
# Otherwise normal behaviour
|
59
|
-
native_group = @context.native_object_for(node
|
59
|
+
native_group = @context.native_object_for(node)
|
60
60
|
|
61
61
|
# Make sure this is the correct parent in variant groups
|
62
62
|
#
|
63
63
|
# TODO: Remove this duplication of the .lproj and node path code.
|
64
64
|
# Also remove need for the name hack.
|
65
65
|
if node.parent.component.include?(".lproj")
|
66
|
-
native_group.name = node.component
|
67
66
|
group_path = Pathname.new node.parent.parent.path
|
68
67
|
else
|
69
68
|
group_path = Pathname.new node.parent.path
|
data/lib/xcake/version.rb
CHANGED
data/lib/xcake/xcode/project.rb
CHANGED
@@ -129,23 +129,29 @@ module Xcake
|
|
129
129
|
#
|
130
130
|
def new_group(node)
|
131
131
|
|
132
|
-
|
132
|
+
parent = node.parent
|
133
|
+
return main_group unless parent
|
133
134
|
|
134
|
-
if
|
135
|
+
if parent.component.include?(".lproj")
|
135
136
|
|
136
|
-
group = main_group.find_subpath(
|
137
|
+
group = main_group.find_subpath(parent.parent.path, true) unless group
|
137
138
|
|
138
|
-
variant_group = group.
|
139
|
-
|
140
|
-
|
139
|
+
variant_group = group[node.component]
|
140
|
+
|
141
|
+
unless variant_group
|
142
|
+
variant_group = group.project.new(PBXVariantGroup)
|
143
|
+
variant_group.name = node.component
|
144
|
+
variant_group.set_source_tree(:group)
|
145
|
+
group.children << variant_group
|
146
|
+
end
|
141
147
|
|
142
148
|
group = variant_group
|
143
149
|
else
|
144
|
-
group = main_group.find_subpath(
|
150
|
+
group = main_group.find_subpath(parent.path, true) unless group
|
145
151
|
end
|
146
152
|
|
147
153
|
#TODO: Does this work with this new system
|
148
|
-
ensure_parent_path(group,
|
154
|
+
ensure_parent_path(group, parent)
|
149
155
|
|
150
156
|
group
|
151
157
|
end
|