cocoapods-byte-panglem-beta 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8aa1be8bb86023e285512b86b90b95139338f2361cec0fbd43ad4148e5cd8340
|
4
|
+
data.tar.gz: 0d6cf13cfb6530cee7dbe61d4b14db595cab8659c5ed3786adcf3c1db07334a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99571044b39a588e4d0714cdc3f9c4c43189399b00afb92712c3f4d55a884058e8d824674f07645fcf352c55e8dddee99b71a049a7ced2a65874f2a83cfc6db4
|
7
|
+
data.tar.gz: cc0dc9d7392e8ed8c568b5522d4527bc972909e325ad653ad58b4eb141485974034ae8c80dfc94f35ff544e33e1928795fd74ae8dd78234ecef84541e95e42d9
|
data/Gemfile
CHANGED
@@ -95,9 +95,9 @@ module PM
|
|
95
95
|
} if pm_spec
|
96
96
|
end
|
97
97
|
specs.map do |spec|
|
98
|
-
if PM::MapRelations.is_sdk?(spec.spec.name)
|
98
|
+
if PM::MapRelations.is_sdk?(Pod::Specification.root_name(spec.spec.name))
|
99
99
|
sdk_spec = spec
|
100
|
-
elsif PM::MapRelations.is_adapter?(spec.spec.name)
|
100
|
+
elsif PM::MapRelations.is_adapter?(Pod::Specification.root_name(spec.spec.name))
|
101
101
|
map = {}
|
102
102
|
map["adapter"] = PM::MapRelations.get_adapter_from_adn_abbreviation(spec.spec.name)
|
103
103
|
map["adapter_version"] = spec.spec.version.version
|
@@ -130,6 +130,7 @@ module PM
|
|
130
130
|
}
|
131
131
|
|
132
132
|
if result.is_rely_update
|
133
|
+
|
133
134
|
specs.delete_if{|spec|
|
134
135
|
Pod::Specification.root_name(spec.spec.name) == result.rely_name && spec.spec.version.version == result.rely_original_version
|
135
136
|
}
|
@@ -139,7 +140,7 @@ module PM
|
|
139
140
|
end
|
140
141
|
specs.sort_by!{|spec| spec.spec.name}
|
141
142
|
is_update_finish = true
|
142
|
-
request_track result.sdk_original_version, result.sdk_target_version, result.sdk_target_version, response_data["code"], response_data["message"]
|
143
|
+
# request_track result.sdk_original_version, result.sdk_target_version, result.sdk_target_version, response_data["code"], response_data["message"]
|
143
144
|
|
144
145
|
else
|
145
146
|
wish_info = {"no_auto_update"=>true,"timestamp" =>Time.now.to_i}
|
@@ -66,6 +66,40 @@ end
|
|
66
66
|
|
67
67
|
class Pod::Installer::Analyzer
|
68
68
|
|
69
|
+
alias_method :original_dependencies_for_specs, :dependencies_for_specs
|
70
|
+
def dependencies_for_specs(specs, platform, all_specs)
|
71
|
+
dependent_specs = {
|
72
|
+
:debug => Set.new,
|
73
|
+
:release => Set.new,
|
74
|
+
}
|
75
|
+
|
76
|
+
if !specs.empty? && !all_specs.empty?
|
77
|
+
specs.each do |s|
|
78
|
+
s.dependencies(platform).each do |dep|
|
79
|
+
temp_name = dep.name
|
80
|
+
if !temp_name.include?("Ads-Global/")
|
81
|
+
all_specs[dep.name].each do |spec|
|
82
|
+
if spec.non_library_specification?
|
83
|
+
if s.test_specification? && spec.name == s.consumer(platform).app_host_name && spec.app_specification?
|
84
|
+
# This needs to be handled separately, since we _don't_ want to treat this as a "normal" dependency
|
85
|
+
next
|
86
|
+
end
|
87
|
+
raise Informative, "`#{s}` depends upon `#{spec}`, which is a `#{spec.spec_type}` spec."
|
88
|
+
end
|
89
|
+
|
90
|
+
dependent_specs.each do |config, set|
|
91
|
+
next unless s.dependency_whitelisted_for_configuration?(dep, config)
|
92
|
+
set << spec
|
93
|
+
end
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
Hash[dependent_specs.map { |k, v| [k, (v - specs).group_by(&:root)] }].freeze
|
101
|
+
end
|
102
|
+
|
69
103
|
alias_method :original_resolve_dependencies, :resolve_dependencies
|
70
104
|
def resolve_dependencies(locked_dependencies)
|
71
105
|
resolver_specs_by_target = original_resolve_dependencies(locked_dependencies)
|
@@ -78,7 +112,6 @@ class Pod::Installer::Analyzer
|
|
78
112
|
# PM::Analyzer.delete_invalid_adapters target, specs
|
79
113
|
# end if PM::Recorder.instance.get_global_note.auto_load
|
80
114
|
|
81
|
-
|
82
115
|
if PM::Recorder.instance.is_release
|
83
116
|
Pod::UserInterface.section "[cocoapods-byte-panglem-beta][info] start trying to update the sdk version (when is_release is yes) " do
|
84
117
|
PM::Analyzer.resolve_release_target target, specs
|
@@ -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
|
|
@@ -436,7 +444,7 @@ module PM
|
|
436
444
|
Pod::Specification.root_name(spec.name) == sdk_name && spec.version.version == target_sdk_version
|
437
445
|
end
|
438
446
|
if target_sdk_root_spec == nil
|
439
|
-
raise "[cocoapods-byte-panglem][error] pangle sdk version:#{target_sdk_version} not found, please try use `pod install --repo-update`"
|
447
|
+
raise "[cocoapods-byte-panglem-beta][error] pangle sdk(beta) version:#{target_sdk_version} not found, please try use `pod install --repo-update`"
|
440
448
|
end
|
441
449
|
if target_sdk_root_spec.version.version != original_sdk_spec.spec.version.version
|
442
450
|
|
@@ -446,6 +454,7 @@ module PM
|
|
446
454
|
result.sdk_target_version = target_sdk_root_spec.version.version
|
447
455
|
PM::Recorder.instance.sdk_original_version = result.sdk_original_version
|
448
456
|
PM::Recorder.instance.sdk_target_version = result.sdk_target_version
|
457
|
+
ss_temp = original_sdk_spec.spec
|
449
458
|
target_rely_version = target_sdk_root_spec.get_rely_version
|
450
459
|
original_rely_version = original_sdk_spec.spec.get_rely_version
|
451
460
|
# target_rely_version = "0.2.0.0"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-byte-panglem-beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zhangtianhao.1230@bytedance.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|