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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 94027d45aab0005bc844065cce54199903a0e779
4
- data.tar.gz: 064bac84b3bfb317ae3b6693cc5395b335394e2c
3
+ metadata.gz: 499dba817314e680c05445bcc192c10bc8d27dd9
4
+ data.tar.gz: edd7a5a04b2b16f6a104ee172bb4925ad9f93351
5
5
  SHA512:
6
- metadata.gz: 710fe4a5218cc28cb4693c3dab073d1a9ed1619075cdb84fcd090e488807d4f3f7bad7d0839500799910a8ff7509becf4d7424a5e2fc68aa2ba47513d2d63ce6
7
- data.tar.gz: c6de59e4f0187dbcecb4ebc0453ea0fc87867589a3f0130e489295cf59be9827533f1361d86edb416271797c58ae539be5f61d1d069b5a8beacbffb1f40162f0
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
- lib_search_paths = xcconfig['LIBRARY_SEARCH_PATHS'] || ""
104
- lib_search_paths = lib_search_paths.split(/\s/).map do |path|
105
- '-L ' << path.gsub('$(PODS_ROOT)', File.join(@config.project_dir, PODS_ROOT))
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 !File.exist?("/usr/lib/lib#{lib_name}.dylib")
119
- pods_libs << lib_name
120
- nil
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
- "#{lib_search_paths} -ObjC -l#{lib_name}"
131
+ pods_libs << lib_name
132
+ nil
125
133
  end
126
134
  }.compact)
127
135
  @config.libs.uniq!
@@ -24,6 +24,6 @@
24
24
 
25
25
  module Motion::Project
26
26
  class CocoaPods
27
- VERSION = '1.7.2'
27
+ VERSION = '1.7.3'
28
28
  end
29
29
  end
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.2
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-23 00:00:00.000000000 Z
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.8
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: