motion-cocoapods 1.8.0.beta.4 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/motion/project/cocoapods.rb +24 -8
- data/lib/motion/project/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31000f79b0614f320e1448afdf2f84030d9fbcb3
|
4
|
+
data.tar.gz: ec41d1977dfd31860512c25031cc0c6b0350166d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c487c9cf07c442ecdbf8c71a255f492bda6e5065259e311d2f7dc234523d42e7a0d3fcbd53452fe3fab71be5a313197eb3c23e6f6de851712c1b33865f98d294
|
7
|
+
data.tar.gz: 56eb0f22b268f753d5c70aea03e13e3812639cf9d630d9d4e40f713e9e70b2340cc596fc6740d291a9ddfa0a9ec6f0f438592f063ceb30f85dcff4c716fb194c
|
@@ -107,7 +107,7 @@ module Motion::Project
|
|
107
107
|
lib_search_path_flags = xcconfig['LIBRARY_SEARCH_PATHS'] || ""
|
108
108
|
lib_search_paths = []
|
109
109
|
lib_search_path_flags = lib_search_path_flags.split(/\s/).map do |path|
|
110
|
-
if path =~ /(\$\(inherited\))|(\$\{inherited\})/
|
110
|
+
if path =~ /(\$\(inherited\))|(\$\{inherited\})|(\$CONFIGURATION_BUILD_DIR)/
|
111
111
|
nil
|
112
112
|
else
|
113
113
|
path = path.gsub(/(\$\(PODS_ROOT\))|(\$\{PODS_ROOT\})/, File.join(@config.project_dir, PODS_ROOT))
|
@@ -160,6 +160,29 @@ module Motion::Project
|
|
160
160
|
end
|
161
161
|
|
162
162
|
header_dirs = ['Headers/Public']
|
163
|
+
|
164
|
+
# We want to set the proper header search paths otherwise we might generate incorrect bridgesupport
|
165
|
+
header_search_paths = []
|
166
|
+
if search_paths = xcconfig['HEADER_SEARCH_PATHS']
|
167
|
+
search_paths = search_paths.strip
|
168
|
+
unless search_paths.empty?
|
169
|
+
search_paths.scan(/"([^"]+)"/) do |search_path|
|
170
|
+
path = search_path.first.gsub!(/(\$\(PODS_ROOT\))|(\$\{PODS_ROOT\})/, "#{@config.project_dir}/#{PODS_ROOT}")
|
171
|
+
header_search_paths << File.expand_path(path) if path
|
172
|
+
end
|
173
|
+
# If we couldn't parse any search paths, then presumably nothing was properly quoted, so
|
174
|
+
# fallback to just assuming the whole value is one path.
|
175
|
+
if header_search_paths.empty?
|
176
|
+
path = search_paths.gsub!(/(\$\(PODS_ROOT\))|(\$\{PODS_ROOT\})/, "#{@config.project_dir}/#{PODS_ROOT}")
|
177
|
+
header_search_paths << File.expand_path(path) if path
|
178
|
+
end
|
179
|
+
end
|
180
|
+
end
|
181
|
+
header_search_paths = header_search_paths.map { |p| "-I'#{p}'" }.join(' ')
|
182
|
+
# Initialize ':bridgesupport_cflags', in case the use
|
183
|
+
@vendor_options[:bridgesupport_cflags] ||= ''
|
184
|
+
@vendor_options[:bridgesupport_cflags] << " #{header_search_paths}"
|
185
|
+
|
163
186
|
frameworks = ldflags.scan(/-framework\s+"?([^\s"]+)"?/).map { |m| m[0] }
|
164
187
|
|
165
188
|
case @config.deploy_platform
|
@@ -189,13 +212,6 @@ module Motion::Project
|
|
189
212
|
path = File.join(framework_search_path, "#{framework}.framework")
|
190
213
|
if File.exist?(path)
|
191
214
|
@config.libs << "-ObjC '#{File.join(path, framework)}'"
|
192
|
-
# This is needed until (and if) CocoaPods links framework
|
193
|
-
# headers into `Headers/Public` by default:
|
194
|
-
#
|
195
|
-
# https://github.com/CocoaPods/CocoaPods/pull/2722
|
196
|
-
#
|
197
|
-
header_dir = Pathname.new(path) + 'Headers'
|
198
|
-
header_dirs << header_dir.realpath.relative_path_from(pods_root).to_s
|
199
215
|
true
|
200
216
|
else
|
201
217
|
false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: motion-cocoapods
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.0
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laurent Sansonetti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.0
|
19
|
+
version: 1.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.0.0
|
26
|
+
version: 1.0.0
|
27
27
|
description: motion-cocoapods allows RubyMotion projects to have access to the CocoaPods
|
28
28
|
dependency manager.
|
29
29
|
email: lrz@hipbyte.com
|
@@ -51,12 +51,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
51
51
|
version: '0'
|
52
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
|
-
- - "
|
54
|
+
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
56
|
+
version: '0'
|
57
57
|
requirements: []
|
58
58
|
rubyforge_project:
|
59
|
-
rubygems_version: 2.
|
59
|
+
rubygems_version: 2.4.5.1
|
60
60
|
signing_key:
|
61
61
|
specification_version: 4
|
62
62
|
summary: CocoaPods integration for RubyMotion projects
|