cocoapods-generate 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/cocoapods/generate/installer.rb +22 -6
- data/lib/cocoapods/generate/podfile_generator.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88a4db4a80c8533cbe54c2813443fd0729846e1f942f87b3db085fd3b00f9d1b
|
4
|
+
data.tar.gz: a7056402d4ff8e84009902b4ff391ad12167645acfb5cdb25b3ad1c2546f94e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77378bac396ef788da55f68b07cda819e8339784f806f82ab1cac1922e5ec18766d467b8a7c700215df9ae2b841ddcf16fcaedeab8a76af57716ed1cb593db6f
|
7
|
+
data.tar.gz: 4d6bdad6928e3ce9b1753daf5a05ff7aafb24c4a5a027870de31f497803ffdd05c553aed0db62eb27d907c61373604637723a3714356e4e04ea38f759c9f41fb
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
@@ -144,12 +144,28 @@ module Pod
|
|
144
144
|
raise "unable to find a pod target for #{native_app_target} / #{spec}" unless pod_target
|
145
145
|
|
146
146
|
if (app_host_source_dir = configuration.app_host_source_dir)
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
147
|
+
relative_app_host_source_dir = app_host_source_dir.relative_path_from(installer.sandbox.root)
|
148
|
+
groups = {}
|
149
|
+
|
150
|
+
app_host_source_dir.find do |file|
|
151
|
+
relative_path = file.relative_path_from(app_host_source_dir)
|
152
|
+
|
153
|
+
if file.directory?
|
154
|
+
groups[relative_path] =
|
155
|
+
if (base_group = groups[relative_path.dirname])
|
156
|
+
basename = relative_path.basename
|
157
|
+
base_group.new_group(basename.to_s, basename)
|
158
|
+
else
|
159
|
+
app_project.new_group(native_app_target.name, relative_app_host_source_dir)
|
160
|
+
end
|
161
|
+
|
162
|
+
next
|
163
|
+
end
|
164
|
+
|
165
|
+
group = groups[relative_path.dirname]
|
166
|
+
source_file_ref = group.new_file(file.basename)
|
167
|
+
native_app_target.add_file_references([source_file_ref])
|
168
|
+
end
|
153
169
|
elsif Pod::Generator::AppTargetHelper.method(:add_app_project_import).arity == -5 # CocoaPods >= 1.6
|
154
170
|
Pod::Generator::AppTargetHelper.add_app_project_import(app_project, native_app_target, pod_target, pod_target.platform.name, native_app_target.name)
|
155
171
|
else
|
@@ -51,7 +51,7 @@ module Pod
|
|
51
51
|
|
52
52
|
self.defined_in_file = dir.join('Podfile.yaml')
|
53
53
|
|
54
|
-
test_specs = spec.recursive_subspecs.select(&:test_specification)
|
54
|
+
test_specs = spec.recursive_subspecs.select(&:test_specification?)
|
55
55
|
|
56
56
|
# Stick all of the transitive dependencies in an abstract target.
|
57
57
|
# This allows us to force CocoaPods to use the versions / sources / external sources
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-generate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Giddins
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
88
|
rubyforge_project:
|
89
|
-
rubygems_version: 2.7.
|
89
|
+
rubygems_version: 2.7.7
|
90
90
|
signing_key:
|
91
91
|
specification_version: 4
|
92
92
|
summary: Generates Xcode workspaces from a podspec.
|