motion-cocoapods 1.7.2 → 1.7.3
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 +16 -8
- data/lib/motion/project/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 499dba817314e680c05445bcc192c10bc8d27dd9
|
4
|
+
data.tar.gz: edd7a5a04b2b16f6a104ee172bb4925ad9f93351
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e49d79ace2df7310a690e587370132b53dc50b8d88d6cb924e2b6ab700c11b400d95d6c9ed4753f70a09aec54a1b1ba0c5e4f2f5a8a42702466833f05dfe937
|
7
|
+
data.tar.gz: 7306e84d72908fd8cba5b740c38e89fdd60e52100ab9a9e71ff5e92b556c6a5d1c5581f3a9bfff9faf704c05ebbb4fab28a99dcd6e24cd7f1a599c50ba16394d
|
@@ -100,11 +100,19 @@ module Motion::Project
|
|
100
100
|
|
101
101
|
# TODO replace this all once Xcodeproj has the proper xcconfig parser.
|
102
102
|
if (xcconfig = self.pods_xcconfig_hash) && ldflags = xcconfig['OTHER_LDFLAGS']
|
103
|
-
|
104
|
-
lib_search_paths =
|
105
|
-
|
103
|
+
lib_search_path_flags = xcconfig['LIBRARY_SEARCH_PATHS'] || ""
|
104
|
+
lib_search_paths = []
|
105
|
+
lib_search_path_flags = lib_search_path_flags.split(/\s/).map do |path|
|
106
|
+
path = path.gsub('$(PODS_ROOT)', File.join(@config.project_dir, PODS_ROOT))
|
107
|
+
lib_search_paths << path.gsub('"', '')
|
108
|
+
'-L ' << path
|
106
109
|
end.join(' ')
|
107
110
|
|
111
|
+
# Get the name of all static libraries that come pre-built with pods
|
112
|
+
pre_built_static_libs = lib_search_paths.map do |path|
|
113
|
+
Dir[File.join(path, '**/*.a')].map { |f| File.basename(f) }
|
114
|
+
end.flatten
|
115
|
+
|
108
116
|
# Collect the Pod products
|
109
117
|
pods_libs = []
|
110
118
|
|
@@ -115,13 +123,13 @@ module Motion::Project
|
|
115
123
|
# For CocoaPods 0.37.x or below. This block is marked as deprecated.
|
116
124
|
pods_libs << lib_name
|
117
125
|
nil
|
118
|
-
elsif
|
119
|
-
|
120
|
-
|
121
|
-
elsif lib_search_paths.length == 0 || File.exist?("/usr/lib/lib#{lib_name}.dylib")
|
126
|
+
elsif pre_built_static_libs.include?("lib#{lib_name}.a")
|
127
|
+
"#{lib_search_path_flags} -ObjC -l#{lib_name}"
|
128
|
+
elsif File.exist?("/usr/lib/lib#{lib_name}.dylib")
|
122
129
|
"/usr/lib/lib#{lib_name}.dylib"
|
123
130
|
else
|
124
|
-
|
131
|
+
pods_libs << lib_name
|
132
|
+
nil
|
125
133
|
end
|
126
134
|
}.compact)
|
127
135
|
@config.libs.uniq!
|
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.7.
|
4
|
+
version: 1.7.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laurent Sansonetti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|
@@ -56,8 +56,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
56
|
version: '0'
|
57
57
|
requirements: []
|
58
58
|
rubyforge_project:
|
59
|
-
rubygems_version: 2.4.
|
59
|
+
rubygems_version: 2.4.5
|
60
60
|
signing_key:
|
61
61
|
specification_version: 4
|
62
62
|
summary: CocoaPods integration for RubyMotion projects
|
63
63
|
test_files: []
|
64
|
+
has_rdoc:
|