cocoapods-dongjia 1.1.7 → 1.1.9
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/cocoapods-dongjia/gem_version.rb +1 -1
- data/lib/dongjia_binarization.rb +9 -10
- data/lib/helper/installer.rb +17 -17
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14d10a546e9cbe29e2ed6ea158754229fbb0414cfd5baaf6fa3d374950f50652
|
4
|
+
data.tar.gz: 1347d10a345379815079ca570bfaf3de2f73d7ef6d3f28069aacf9104a9e6780
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60a234c4403847a2c5994edb6911a1763891f08fe22f94013f96a93d34b5c88f31219fb0a949443b958cc37d88804087955db367e94e2336beede96138cd8b67
|
7
|
+
data.tar.gz: bf8390bb5e4d9abc3c18b8c6315b3cb9d5d38f215a828a3f8df12d5712e2f9e652da83e77069494ebe1dbe186f7ba7fbb837317adb9b402310b6781f63c97eaa
|
data/lib/dongjia_binarization.rb
CHANGED
@@ -5,7 +5,6 @@ require 'net/http'
|
|
5
5
|
require 'json'
|
6
6
|
require 'yaml'
|
7
7
|
require 'down'
|
8
|
-
require 'pry'
|
9
8
|
require 'uri'
|
10
9
|
|
11
10
|
module Dongjia
|
@@ -33,7 +32,7 @@ module Dongjia
|
|
33
32
|
{ sha: s[:sha], binary: s[:binary], }
|
34
33
|
]
|
35
34
|
}
|
36
|
-
|
35
|
+
|
37
36
|
@@enabled ||= binary["enabled"]
|
38
37
|
@@server_host = binary["server_host"]
|
39
38
|
@@target_name = (binary["target_name"] || "").strip
|
@@ -42,7 +41,7 @@ module Dongjia
|
|
42
41
|
if @@enabled
|
43
42
|
@@submodules = query_components_existing(submodule_info).to_h { |s|
|
44
43
|
[
|
45
|
-
s["name"],
|
44
|
+
s["name"],
|
46
45
|
{ sha: s["sha"], binary: s["binary"], }
|
47
46
|
]
|
48
47
|
}.each { |k, v|
|
@@ -79,8 +78,8 @@ module Dongjia
|
|
79
78
|
process_pod_xcconfig(pod_name)
|
80
79
|
path = File.join(@@ctx.sandbox_root, filename)
|
81
80
|
proj = Xcodeproj::Project.open(path)
|
82
|
-
included_binary_target = proj.targets.map(&:name).any? { |target_name|
|
83
|
-
target_name.end_with?("-Binary")
|
81
|
+
included_binary_target = proj.targets.map(&:name).any? { |target_name|
|
82
|
+
target_name.end_with?("-Binary")
|
84
83
|
}
|
85
84
|
removing_paths << path if included_binary_target
|
86
85
|
}
|
@@ -101,7 +100,7 @@ module Dongjia
|
|
101
100
|
end
|
102
101
|
|
103
102
|
setup_pod_cfg(installer)
|
104
|
-
|
103
|
+
|
105
104
|
download_frameworks
|
106
105
|
|
107
106
|
each_pod_proj do |name, cfg|
|
@@ -170,7 +169,7 @@ module Dongjia
|
|
170
169
|
puts " #{name}"
|
171
170
|
}
|
172
171
|
end
|
173
|
-
|
172
|
+
|
174
173
|
should_save = false
|
175
174
|
each_pod_proj do |name, cfg|
|
176
175
|
cfg[:project].save if cfg[:save]
|
@@ -183,7 +182,7 @@ module Dongjia
|
|
183
182
|
def each_pod_proj
|
184
183
|
Dir.foreach(@@ctx.sandbox_root) do |filename|
|
185
184
|
next if File.extname(filename) != '.xcodeproj'
|
186
|
-
|
185
|
+
|
187
186
|
name = File.basename(filename, '.xcodeproj')
|
188
187
|
next if name == 'Pods'
|
189
188
|
|
@@ -354,7 +353,7 @@ module Dongjia
|
|
354
353
|
def add_binary_target(proj, name)
|
355
354
|
source_target = proj.target_by_name(name)
|
356
355
|
bin_target = proj.new_aggregate_target("#{name}-Binary", [], :ios, '10.0')
|
357
|
-
|
356
|
+
|
358
357
|
# 处理 xcconfig 引用
|
359
358
|
cfg_list0 = source_target.build_configuration_list
|
360
359
|
cfg_list1 = bin_target.build_configuration_list
|
@@ -367,7 +366,7 @@ module Dongjia
|
|
367
366
|
|
368
367
|
# 添加依赖
|
369
368
|
bin_target.dependencies.replace(source_target.dependencies)
|
370
|
-
|
369
|
+
|
371
370
|
return bin_target
|
372
371
|
end
|
373
372
|
|
data/lib/helper/installer.rb
CHANGED
@@ -17,26 +17,26 @@ module Pod
|
|
17
17
|
end
|
18
18
|
|
19
19
|
# Hook post_installer
|
20
|
-
origin_perform_post_install_actions = instance_method(:perform_post_install_actions)
|
21
|
-
define_method :perform_post_install_actions do
|
22
|
-
|
23
|
-
|
24
|
-
end
|
20
|
+
# origin_perform_post_install_actions = instance_method(:perform_post_install_actions)
|
21
|
+
# define_method :perform_post_install_actions do
|
22
|
+
# origin_perform_post_install_actions.bind(self).()
|
23
|
+
# Dongjia::DongjiaVersionChecker.check_version
|
24
|
+
# end
|
25
25
|
|
26
26
|
# Hook Pods.xcodeproj 尚未写入
|
27
|
-
origin_run_podfile_post_install_hooks = instance_method(:run_podfile_post_install_hooks)
|
28
|
-
define_method :run_podfile_post_install_hooks do
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
end
|
27
|
+
# origin_run_podfile_post_install_hooks = instance_method(:run_podfile_post_install_hooks)
|
28
|
+
# define_method :run_podfile_post_install_hooks do
|
29
|
+
# origin_run_podfile_post_install_hooks.bind(self).()
|
30
|
+
# # 处理二进制化
|
31
|
+
# # Dongjia::Binarization.process(self)
|
32
|
+
# end
|
33
33
|
|
34
34
|
# Hook Pods.xcodeproj 已生成完毕
|
35
|
-
origin_generate_pods_project = instance_method(:generate_pods_project)
|
36
|
-
define_method :generate_pods_project do
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
end
|
35
|
+
# origin_generate_pods_project = instance_method(:generate_pods_project)
|
36
|
+
# define_method :generate_pods_project do
|
37
|
+
# origin_generate_pods_project.bind(self).()
|
38
|
+
# # 处理二进制化
|
39
|
+
# Dongjia::Binarization.process(self)
|
40
|
+
# end
|
41
41
|
end
|
42
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-dongjia
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jiangzhuoyi
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -131,7 +131,7 @@ metadata:
|
|
131
131
|
update_desc: |2
|
132
132
|
- 修复源码和二进制切换后的集成依赖问题
|
133
133
|
- 修复一些导致 crash 的问题
|
134
|
-
post_install_message:
|
134
|
+
post_install_message:
|
135
135
|
rdoc_options: []
|
136
136
|
require_paths:
|
137
137
|
- lib
|
@@ -146,8 +146,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
146
|
- !ruby/object:Gem::Version
|
147
147
|
version: '0'
|
148
148
|
requirements: []
|
149
|
-
rubygems_version: 3.
|
150
|
-
signing_key:
|
149
|
+
rubygems_version: 3.0.3.1
|
150
|
+
signing_key:
|
151
151
|
specification_version: 4
|
152
152
|
summary: A longer description of cocoapods-dongjia.
|
153
153
|
test_files: []
|