motion-cocoapods 1.4.2 → 1.5.0
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/lib/motion/project/cocoapods.rb +23 -6
- data/lib/motion/project/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5809a607aad317dffc74f3d3dea5f6e234ae544f
|
|
4
|
+
data.tar.gz: 29f69e491f27646fd980b37b3e3fc7a349836733
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eac171e6e18c1843f055209c679fe4ea225bd2d0ddfc6a67f139ffc9202e1a528c7c0ab3dea7384871eef971c4e2b02af9a94bbc9ff0fac14328ceae23eec7df
|
|
7
|
+
data.tar.gz: 13fcec8d997ea2ee5aaa488aeee68e90e798c0f053d1470d7e333f8a5f79a45d0b730235afe654f440fb1c98e0a28a41d74055dffe8e2c290a25f13c3fb01c8e
|
|
@@ -93,7 +93,9 @@ module Motion::Project
|
|
|
93
93
|
# TODO replace this all once Xcodeproj has the proper xcconfig parser.
|
|
94
94
|
if (xcconfig = self.pods_xcconfig_hash) && ldflags = xcconfig['OTHER_LDFLAGS']
|
|
95
95
|
lib_search_paths = xcconfig['LIBRARY_SEARCH_PATHS'] || ""
|
|
96
|
-
lib_search_paths.
|
|
96
|
+
lib_search_paths = lib_search_paths.split(/"\s/).map do |path|
|
|
97
|
+
'-L ' << path.gsub('$(PODS_ROOT)', File.join(@config.project_dir, PODS_ROOT))
|
|
98
|
+
end.join(' ')
|
|
97
99
|
|
|
98
100
|
@config.libs.concat(ldflags.scan(/-l([^\s]+)/).map { |m|
|
|
99
101
|
if lib_search_paths.length == 0 || File.exist?("/usr/lib/lib#{m[0]}.dylib")
|
|
@@ -111,13 +113,14 @@ module Motion::Project
|
|
|
111
113
|
framework_search_paths << path if path
|
|
112
114
|
end
|
|
113
115
|
end
|
|
114
|
-
@config.framework_search_paths.concat(framework_search_paths)
|
|
115
|
-
|
|
116
116
|
frameworks = ldflags.scan(/-framework\s+([^\s]+)/).map { |m| m[0] }
|
|
117
|
-
@config.frameworks.concat(frameworks)
|
|
118
|
-
@config.frameworks.uniq!
|
|
119
117
|
|
|
120
|
-
|
|
118
|
+
case @config.deploy_platform
|
|
119
|
+
when 'MacOSX'
|
|
120
|
+
@config.framework_search_paths.concat(framework_search_paths)
|
|
121
|
+
@config.frameworks.concat(frameworks)
|
|
122
|
+
@config.frameworks.uniq!
|
|
123
|
+
|
|
121
124
|
framework_search_paths.each do |framework_search_path|
|
|
122
125
|
frameworks.each do |framework|
|
|
123
126
|
path = File.join(framework_search_path, "#{framework}.framework")
|
|
@@ -126,6 +129,20 @@ module Motion::Project
|
|
|
126
129
|
end
|
|
127
130
|
end
|
|
128
131
|
end
|
|
132
|
+
when 'iPhoneOS'
|
|
133
|
+
# If we would really specify these as ‘frameworks’ then the linker
|
|
134
|
+
# would not link the archive into the application, because it does not
|
|
135
|
+
# see any references to any of the symbols in the archive. Treating it
|
|
136
|
+
# as a static library (which it is) with `-force_load` fixes this.
|
|
137
|
+
#
|
|
138
|
+
framework_search_paths.each do |framework_search_path|
|
|
139
|
+
frameworks.each do |framework|
|
|
140
|
+
path = File.join(framework_search_path, "#{framework}.framework")
|
|
141
|
+
if File.exist?(path)
|
|
142
|
+
@config.libs << "-force_load '#{File.join(path, framework)}'"
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
end
|
|
129
146
|
end
|
|
130
147
|
|
|
131
148
|
@config.weak_frameworks.concat(ldflags.scan(/-weak_framework\s+([^\s]+)/).map { |m| m[0] })
|
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.
|
|
4
|
+
version: 1.5.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: 2014-05-
|
|
11
|
+
date: 2014-05-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cocoapods
|
|
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
56
56
|
version: '0'
|
|
57
57
|
requirements: []
|
|
58
58
|
rubyforge_project:
|
|
59
|
-
rubygems_version: 2.0.
|
|
59
|
+
rubygems_version: 2.0.14
|
|
60
60
|
signing_key:
|
|
61
61
|
specification_version: 4
|
|
62
62
|
summary: CocoaPods integration for RubyMotion projects
|