cocoapods-dongjia 1.1.7 → 1.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods-dongjia/gem_version.rb +1 -1
- data/lib/dongjia_binarization.rb +9 -10
- 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: fa1cbb2e3dd015a54ea5849874d80671b2f0a2e1cd1b54613234d7007afe49e0
|
4
|
+
data.tar.gz: a37a16c1768e62d297bdf0c2b58f8bb9e2cd3a1c6fe02285542d0b19d3511e94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b28cd9c347883a14bd00a7be621f386a4c084d6af2eaa4b9e82a914a9d68c47c8cc01edb109213c2b71f4a35a0f3675439536509f1abb569f9d331a02789f03c
|
7
|
+
data.tar.gz: 7d20554732589feca1c49094cdbd01afcbfc619f88703e888b4be228bde87dbcee4b9ea9cb278a1b972732c624b2be1cc30a654302ea2ceaa46bd00f9876cf04
|
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
|
|
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.8
|
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: []
|