motion-cocoapods 1.9.2 → 1.10.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 +5 -5
- data/lib/motion/project/cocoapods.rb +31 -7
- data/lib/motion/project/version.rb +1 -1
- metadata +11 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 671610d7c2c8b13e5a4b2387b24e2e1e9dbaf68d401c30fc992a97d045c49de4
|
4
|
+
data.tar.gz: 23f661ddd6890e75eb1d98c60a5a819311f81820ee6cd12176817c2e8a288433
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6eb5e34c6bcc0a8acfa014ab47b94525db25cd7e9035b40f64e06ae1d509488f27877044b2d2a1a9398d13f120f8c854b001e3241c01447d2a1e8e9fe40fd343
|
7
|
+
data.tar.gz: 3267bd18ced185f1c1a468a745ef5c2a3ef21112e1ae7d54130155ea3fe566eb078a9bbc97202303a77b7d85bd9a1de1fa82921ca04f2e51baa1b0401faefceb
|
@@ -95,9 +95,11 @@ module Motion::Project
|
|
95
95
|
App.fail "Unknown CocoaPods platform: #{@config.deploy_platform}"
|
96
96
|
end
|
97
97
|
|
98
|
-
@podfile = Pod::Podfile.new(Pathname.new(Rake.original_dir) + 'Rakefile')
|
99
|
-
|
100
|
-
|
98
|
+
@podfile = Pod::Podfile.new(Pathname.new(Rake.original_dir) + 'Rakefile') do
|
99
|
+
platform(platform, config.deployment_target)
|
100
|
+
target(TARGET_NAME)
|
101
|
+
install!('cocoapods', :integrate_targets => false)
|
102
|
+
end
|
101
103
|
cp_config.podfile = @podfile
|
102
104
|
cp_config.installation_root = Pathname.new(File.expand_path(config.project_dir)) + 'vendor'
|
103
105
|
|
@@ -237,12 +239,32 @@ module Motion::Project
|
|
237
239
|
FileUtils.rm_rf(resources_dir)
|
238
240
|
|
239
241
|
pods_installer.update = update
|
240
|
-
pods_installer.installation_options.integrate_targets = false
|
241
242
|
pods_installer.install!
|
243
|
+
symlink_framework_headers
|
242
244
|
install_resources
|
243
245
|
copy_cocoapods_env_and_prefix_headers
|
244
246
|
end
|
245
247
|
|
248
|
+
PUBLIC_HEADERS_ROOT = File.join(PODS_ROOT, 'Headers/Public')
|
249
|
+
|
250
|
+
def framework_public_headers_dir(framework_path)
|
251
|
+
framework_name = framework_path[%r{/([^/]*)\.framework/}, 1]
|
252
|
+
File.join(@config.project_dir, PUBLIC_HEADERS_ROOT, framework_name)
|
253
|
+
end
|
254
|
+
|
255
|
+
def symlink_framework_headers
|
256
|
+
framework_search_paths.each do |framework_search_path|
|
257
|
+
Dir.glob("#{framework_search_path}/*.framework/Headers").each do |framework_path|
|
258
|
+
FileUtils.mkdir_p(framework_public_headers_dir(framework_path))
|
259
|
+
|
260
|
+
Dir.glob("#{framework_path}/*.h").each do |header_path|
|
261
|
+
relative_path = "../../..#{header_path.sub(File.join(@config.project_dir, PODS_ROOT), '')}"
|
262
|
+
File.symlink(relative_path, "#{framework_public_headers_dir(framework_path)}/#{File.basename(header_path)}")
|
263
|
+
end
|
264
|
+
end
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
246
268
|
# TODO this probably breaks in cases like resource bundles etc, need to test.
|
247
269
|
#
|
248
270
|
def install_resources
|
@@ -266,8 +288,6 @@ module Motion::Project
|
|
266
288
|
installed_resources
|
267
289
|
end
|
268
290
|
|
269
|
-
PUBLIC_HEADERS_ROOT = File.join(PODS_ROOT, 'Headers/Public')
|
270
|
-
|
271
291
|
def copy_cocoapods_env_and_prefix_headers
|
272
292
|
headers = Dir.glob(["#{PODS_ROOT}/*.h", "#{PODS_ROOT}/*.pch", "#{PODS_ROOT}/Target Support Files/**/*.h", "#{PODS_ROOT}/Target Support Files/**/*.pch"])
|
273
293
|
headers.each do |header|
|
@@ -298,7 +318,6 @@ module Motion::Project
|
|
298
318
|
end
|
299
319
|
|
300
320
|
def analyzer
|
301
|
-
cp_config = Pod::Config.instance
|
302
321
|
Pod::Installer::Analyzer.new(cp_config.sandbox, @podfile, cp_config.lockfile)
|
303
322
|
end
|
304
323
|
|
@@ -473,6 +492,11 @@ module Motion::Project
|
|
473
492
|
end
|
474
493
|
end
|
475
494
|
end
|
495
|
+
framework_search_paths.each do |framework_search_path|
|
496
|
+
Dir.glob("#{framework_search_path}/*.framework/Headers").each do |framework_path|
|
497
|
+
paths << framework_public_headers_dir(framework_path)
|
498
|
+
end
|
499
|
+
end
|
476
500
|
paths
|
477
501
|
end
|
478
502
|
|
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.10.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: 2019-
|
11
|
+
date: 2019-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|
@@ -16,14 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.6.0
|
20
|
+
- - "<="
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 1.8.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
29
|
+
version: 1.6.0
|
30
|
+
- - "<="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 1.8.0
|
27
33
|
description: motion-cocoapods allows RubyMotion projects to have access to the CocoaPods
|
28
34
|
dependency manager.
|
29
35
|
email: lrz@hipbyte.com
|
@@ -55,8 +61,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
55
61
|
- !ruby/object:Gem::Version
|
56
62
|
version: '0'
|
57
63
|
requirements: []
|
58
|
-
|
59
|
-
rubygems_version: 2.5.2.3
|
64
|
+
rubygems_version: 3.0.3
|
60
65
|
signing_key:
|
61
66
|
specification_version: 4
|
62
67
|
summary: CocoaPods integration for RubyMotion projects
|