cocoapods-packager-ext 0.0.36 → 0.0.37
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5ad2bac85151291f7b57d8c6537b717cd223909e0c3a4ac9295b05739b43c4b5
|
|
4
|
+
data.tar.gz: ec0b8db3e48ec15668aacc5bd03684bbe381faea86f26a0d2fdf50901e951d20
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5a12db24915242da8ee55723ae404e19bd9cbb30d41ee8d6a4982d0767eac442c0c88e1790820c0bc548b4e55f1b5c9c6d394127c8067bf76393f93c06e8fe09
|
|
7
|
+
data.tar.gz: b99ca30d3df7995ade41d1129ed8cba2f074f0dec277816dc862cbc4a6e39142dc09acb0a19801357f820496d65d52e8515168ae2f3f789e74ff00e5a81d9bb2
|
|
@@ -18,12 +18,29 @@ module Pod
|
|
|
18
18
|
|
|
19
19
|
archs = []
|
|
20
20
|
dynamic_target = Pod::PodTarget.new(dynamic_sandbox, BuildType.dynamic_framework, static_target.user_build_configurations, archs, platform, static_target.specs, static_target.target_definitions, file_accessors)
|
|
21
|
+
ln_source_to_dynamic_target(static_installer,dynamic_sandbox)
|
|
21
22
|
dynamic_target
|
|
22
23
|
end
|
|
23
24
|
alias copy_dynamic_target_t copy_dynamic_target
|
|
24
25
|
def copy_dynamic_target(static_sandbox, _dynamic_target, dynamic_sandbox)
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
if Dir.exist? static_sandbox.root+@spec.name
|
|
27
|
+
command = "ln -sf #{static_sandbox.root}/#{@spec.name} #{dynamic_sandbox.root}"
|
|
28
|
+
`#{command}`
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def ln_source_to_dynamic_target(static_installer, dynamic_sandbox)
|
|
33
|
+
if not Dir.exist? static_installer.sandbox.root+@spec.name
|
|
34
|
+
file_accessors = static_installer.pod_targets.select { |t| t.pod_name == @spec.name }.flat_map(&:file_accessors)
|
|
35
|
+
if file_accessors && file_accessors.length > 0
|
|
36
|
+
source_root = file_accessors[0].path_list.root
|
|
37
|
+
command = "ln -sf #{source_root} #{dynamic_sandbox.root}/#{@spec.name}"
|
|
38
|
+
`#{command}`
|
|
39
|
+
else
|
|
40
|
+
UI.puts "#{@spec.name} 根目录找不到"
|
|
41
|
+
|
|
42
|
+
end
|
|
43
|
+
end
|
|
27
44
|
end
|
|
28
45
|
|
|
29
46
|
alias write_pod_project_t write_pod_project
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cocoapods-packager-ext
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.37
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- kyle.zhou
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-07-
|
|
11
|
+
date: 2021-07-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|