cocoapods-byte-panglem-beta 0.0.4 → 0.0.6
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: e4bd2a2219eead13c16643aa40588e2e1d05559ca9189095f44e430e2e4846f6
|
4
|
+
data.tar.gz: cb781a1445e60a47c7425284693b2fc8ca16aec419f97237a92625efc91547e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a118c8a514f25595d2ea76219abd483d4a99122c040e4d66972c26b456d0f955046e242f68f8dbab72c34d3ccb1dc65275cac69501b84e64213888c303214ac
|
7
|
+
data.tar.gz: 7c9b8c8f356b4d336bad3694e68ffbb03346f46a71083116218b6bdcf432ec78702a48494061faadf41d14a208f9b5f1557d801840d544e2b1d28ae8df59f5f2
|
@@ -23,15 +23,16 @@ module PMPlugin
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def PMPlugin.update()
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
26
|
+
if PM::Recorder.instance.is_auto_update
|
27
|
+
puts "[cocoapods-byte-panglem-beta]checking for updates..."
|
28
|
+
command = 'gem install cocoapods-byte-panglem-beta'
|
29
|
+
stdout, stderr, status = Open3.capture3(command)
|
30
|
+
|
31
|
+
if status.success?
|
32
|
+
puts "[cocoapods-byte-panglem-beta]update sucess"
|
33
|
+
end
|
34
34
|
end
|
35
|
+
|
35
36
|
end
|
36
37
|
|
37
38
|
end
|
@@ -66,6 +67,40 @@ end
|
|
66
67
|
|
67
68
|
class Pod::Installer::Analyzer
|
68
69
|
|
70
|
+
alias_method :original_dependencies_for_specs, :dependencies_for_specs
|
71
|
+
def dependencies_for_specs(specs, platform, all_specs)
|
72
|
+
dependent_specs = {
|
73
|
+
:debug => Set.new,
|
74
|
+
:release => Set.new,
|
75
|
+
}
|
76
|
+
|
77
|
+
if !specs.empty? && !all_specs.empty?
|
78
|
+
specs.each do |s|
|
79
|
+
s.dependencies(platform).each do |dep|
|
80
|
+
temp_name = dep.name
|
81
|
+
if !temp_name.include?("Ads-Global/")
|
82
|
+
all_specs[dep.name].each do |spec|
|
83
|
+
if spec.non_library_specification?
|
84
|
+
if s.test_specification? && spec.name == s.consumer(platform).app_host_name && spec.app_specification?
|
85
|
+
# This needs to be handled separately, since we _don't_ want to treat this as a "normal" dependency
|
86
|
+
next
|
87
|
+
end
|
88
|
+
raise Informative, "`#{s}` depends upon `#{spec}`, which is a `#{spec.spec_type}` spec."
|
89
|
+
end
|
90
|
+
|
91
|
+
dependent_specs.each do |config, set|
|
92
|
+
next unless s.dependency_whitelisted_for_configuration?(dep, config)
|
93
|
+
set << spec
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
Hash[dependent_specs.map { |k, v| [k, (v - specs).group_by(&:root)] }].freeze
|
102
|
+
end
|
103
|
+
|
69
104
|
alias_method :original_resolve_dependencies, :resolve_dependencies
|
70
105
|
def resolve_dependencies(locked_dependencies)
|
71
106
|
resolver_specs_by_target = original_resolve_dependencies(locked_dependencies)
|
@@ -122,7 +157,11 @@ module Pod
|
|
122
157
|
PM::Recorder.instance.set_plugin_load true
|
123
158
|
case options
|
124
159
|
when Hash
|
125
|
-
PM::Recorder.instance.set_is_debug options[:is_debug]
|
160
|
+
PM::Recorder.instance.set_is_debug options[:is_debug] if options.has_key?(:is_debug)
|
161
|
+
PM::Recorder.instance.set_is_auto_update options[:is_auto_update]if options.has_key?(:is_auto_update)
|
162
|
+
m = PM::Recorder.instance.is_debug
|
163
|
+
n = PM::Recorder.instance.is_auto_update
|
164
|
+
c = 1
|
126
165
|
end
|
127
166
|
|
128
167
|
PMPlugin.update
|
@@ -44,11 +44,19 @@ module Pod
|
|
44
44
|
def get_rely_version
|
45
45
|
hash = @attributes_hash
|
46
46
|
subs = @subspecs
|
47
|
-
|
47
|
+
name = hash["name"]
|
48
|
+
## 聚合拿的是adsglobal的subspec
|
49
|
+
if name.include?("Dep_Accurate") or name.include?("Dep_Compatible")
|
50
|
+
parent = @parent
|
51
|
+
version = parent.get_rely_version
|
52
|
+
return version
|
53
|
+
end
|
48
54
|
dep_accurate_sperc = @subspecs.select do |spec|
|
49
55
|
spec.name.include?("/Dep_Accurate")
|
50
56
|
end.first
|
51
|
-
dep_accurate_sperc.dependencies.first.get_requirment
|
57
|
+
version = dep_accurate_sperc.dependencies.first.get_requirment
|
58
|
+
version
|
59
|
+
|
52
60
|
end
|
53
61
|
end
|
54
62
|
|
@@ -306,11 +314,14 @@ module PM
|
|
306
314
|
attr_reader :plugin_version
|
307
315
|
attr_reader :lockfile_data
|
308
316
|
attr_reader :is_debug
|
317
|
+
attr_reader :is_auto_update
|
318
|
+
|
309
319
|
|
310
320
|
|
311
321
|
def initialize()
|
312
322
|
@adapter_list = []
|
313
323
|
@is_debug = false
|
324
|
+
@is_auto_update = false
|
314
325
|
end
|
315
326
|
|
316
327
|
def set_plugin_load(is_load)
|
@@ -322,6 +333,10 @@ module PM
|
|
322
333
|
@is_debug = is_debug
|
323
334
|
end
|
324
335
|
|
336
|
+
def set_is_auto_update(is_auto_update)
|
337
|
+
@is_auto_update = is_auto_update
|
338
|
+
end
|
339
|
+
|
325
340
|
def add_global_note(note)
|
326
341
|
@global_note = note
|
327
342
|
end
|