cocoapods-byte-panglem-beta 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cocoapods-byte-panglem-beta.gemspec +1 -1
- data/lib/cocoapods-byte-panglem-beta/analyzer.rb +5 -5
- data/lib/cocoapods-byte-panglem-beta/config.rb +9 -15
- data/lib/cocoapods-byte-panglem-beta/gem_version.rb +1 -1
- data/lib/cocoapods-byte-panglem-beta/panglem.rb +7 -7
- data/lib/cocoapods-byte-panglem-beta/recorder.rb +7 -4
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fda9dfbc61ec32bf412f10f36a7bb5cc3effd14ca177dcc2d5fec9945873f4d9
|
4
|
+
data.tar.gz: 28a9ddaef15ff49c04cef432212f003b7e421178c65d495319063dcc61918541
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37ee9e27276cb8ea1e8e0149748f20763529bd2f560ddc62ddb198ca114ae8e9e0fc27ecec55a4a8f547cddfdc6b02ccd195b2c5397755daae64b4354d5f27c3
|
7
|
+
data.tar.gz: 92679a2da95280dcbe0bae11a7fdc8142820919414fcf96aa36cadf8df6c2044376c1d921342a43a3ca637ff5ecc07d47d003b914aa3531a3598c6ad72e7b099
|
@@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_dependency "cocoapods", '>= 1.1.1', '< 2.0'
|
22
22
|
spec.add_development_dependency 'bundler', '~> 1.3'
|
23
23
|
spec.add_development_dependency 'rake'
|
24
|
-
spec.add_development_dependency 'highline'
|
24
|
+
# spec.add_development_dependency 'highline'
|
25
25
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
require_relative 'tool'
|
5
5
|
require_relative 'recorder'
|
6
|
-
require 'highline'
|
6
|
+
# require 'highline'
|
7
7
|
|
8
8
|
|
9
9
|
|
@@ -70,7 +70,7 @@ module PM
|
|
70
70
|
pm_spec = nil
|
71
71
|
adn_specs = specs.select do |spec|
|
72
72
|
name = spec.spec.name
|
73
|
-
if name == PM::BuildConfig.
|
73
|
+
if name == PM::BuildConfig.pangle_sdk_beta
|
74
74
|
pm_spec = spec
|
75
75
|
target.PM_build_config.PM_info = PM::PMInfo.new(spec.spec.name, spec.spec.version.version)
|
76
76
|
end
|
@@ -106,7 +106,7 @@ module PM
|
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
109
|
-
raise "[cocoapods-byte-panglem-beta][error] Ads-Global
|
109
|
+
raise "[cocoapods-byte-panglem-beta][error] Ads-Global not found,please add" if sdk_spec == nil
|
110
110
|
PM::Recorder.instance.adapter_list = adapter_list
|
111
111
|
# is_exist, wish_info = read_user_wishes
|
112
112
|
wish_info = nil
|
@@ -116,14 +116,14 @@ module PM
|
|
116
116
|
## 2. 判断rely 是否要更新, YES 则同上
|
117
117
|
if result.is_sdk_update
|
118
118
|
## 这里截断,询问是否更新
|
119
|
-
cli = HighLine.new
|
119
|
+
# cli = HighLine.new
|
120
120
|
# is_allow_update =cli.ask("[cocoapods-byte-panglem-beta][info] Whether to allow automatic upgrade of pangle sdk(#{result.sdk_original_version} to #{result.sdk_target_version}),yes/no?")
|
121
121
|
is_allow_update = 'yes'
|
122
122
|
if is_allow_update == 'yes' or is_allow_update == 'y' or is_allow_update == 'Y'
|
123
123
|
title_options = { :verbose_prefix => '-> '.green }
|
124
124
|
Pod::UserInterface.titled_section("[cocoapods-byte-panglem-beta][info] will change pangle sdk version , the current version will change from #{result.sdk_original_version} to #{result.sdk_target_version}", title_options)
|
125
125
|
specs.delete_if{|spec|
|
126
|
-
Pod::Specification.root_name(spec.spec.name)
|
126
|
+
[PM::BuildConfig.pangle_sdk_release,PM::BuildConfig.pangle_sdk_beta].include?(Pod::Specification.root_name(spec.spec.name))
|
127
127
|
}
|
128
128
|
result.sdk_list.each{ |spec|
|
129
129
|
specs << Pod::Resolver::ResolverSpecification.new(spec, false, spec.spec_source)
|
@@ -44,10 +44,14 @@ module PM
|
|
44
44
|
return "not_update" ## 不自动更新
|
45
45
|
end
|
46
46
|
|
47
|
-
def self.
|
47
|
+
def self.pangle_sdk_beta ##
|
48
48
|
return "Ads-Global-Beta"
|
49
49
|
end
|
50
50
|
|
51
|
+
def self.pangle_sdk_release
|
52
|
+
return "Ads-Global"
|
53
|
+
end
|
54
|
+
|
51
55
|
def self.rely_name
|
52
56
|
return "BURelyFoundation_Global"
|
53
57
|
end
|
@@ -56,17 +60,6 @@ module PM
|
|
56
60
|
[BuildConfig.get_update_key,BuildConfig.get_load_key,BuildConfig.get_load_detect_key]
|
57
61
|
end
|
58
62
|
end
|
59
|
-
|
60
|
-
# admob:
|
61
|
-
# IS:IronSourcePangleAdapter
|
62
|
-
# max:
|
63
|
-
# tradplus:
|
64
|
-
# pod 'TradPlusAdSDK/PangleAdapter', '9.9.0'
|
65
|
-
|
66
|
-
# topon:
|
67
|
-
|
68
|
-
# pod '','6.2.66'
|
69
|
-
|
70
63
|
# adn mediation adapter 三者之间的映射关系, mediation后续会用到
|
71
64
|
class MapRelations
|
72
65
|
|
@@ -104,9 +97,10 @@ module PM
|
|
104
97
|
'MintegralAdSDK'=> 'mtg',
|
105
98
|
].freeze
|
106
99
|
|
107
|
-
SDKNAME = "Ads-Global-Beta".freeze
|
108
|
-
|
109
|
-
|
100
|
+
# SDKNAME = "Ads-Global-Beta".freeze
|
101
|
+
SDKNAME = PM::BuildConfig.pangle_sdk_release
|
102
|
+
SDKRELY = PM::BuildConfig.rely_name
|
103
|
+
SHOULD_REMOVE = [SDKRELY, PM::BuildConfig.pangle_sdk_release, PM::BuildConfig.pangle_sdk_beta]
|
110
104
|
|
111
105
|
def self.is_adn?(name)
|
112
106
|
name == SDKNAME
|
@@ -141,13 +141,13 @@ module Pod
|
|
141
141
|
alias_method :original_pod, :pod
|
142
142
|
def pod(name = nil, *requirements)
|
143
143
|
## SDK 场景不需要
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
144
|
+
PMPlugin.action do |recoder|
|
145
|
+
unless current_target_definition.have_add_dependencys
|
146
|
+
current_target_definition.have_add_dependencys = true
|
147
|
+
pangle_beta = PM::BuildConfig.pangle_sdk_beta
|
148
|
+
current_target_definition.store_pod(pangle_beta, [])
|
149
|
+
end
|
150
|
+
end
|
151
151
|
original_pod(name, *requirements)
|
152
152
|
end
|
153
153
|
|
@@ -43,11 +43,10 @@ module Pod
|
|
43
43
|
|
44
44
|
def get_rely_version
|
45
45
|
hash = @attributes_hash
|
46
|
-
|
47
46
|
subs = @subspecs
|
48
47
|
subs
|
49
48
|
dep_accurate_sperc = @subspecs.select do |spec|
|
50
|
-
spec.name
|
49
|
+
spec.name.include?("/Dep_Accurate")
|
51
50
|
end.first
|
52
51
|
dep_accurate_sperc.dependencies.first.get_requirment
|
53
52
|
end
|
@@ -418,11 +417,15 @@ module PM
|
|
418
417
|
## 3. 计算出升级时需要替换的所有的specfication
|
419
418
|
info_r = get_info
|
420
419
|
target_sdk_version = response_data["data"]["pangle_sdk_version"]
|
420
|
+
# target_sdk_version = "5.9.0.4"
|
421
|
+
sdk_name = PM::BuildConfig.pangle_sdk_beta
|
421
422
|
if target_sdk_version == nil || target_sdk_version.length == 0
|
422
|
-
## 兜底,
|
423
|
+
## 兜底, 赋值为当前版本且为正式版
|
423
424
|
target_sdk_version = original_sdk_spec.spec.version.version
|
425
|
+
sdk_name = PM::BuildConfig.pangle_sdk_release
|
426
|
+
else
|
427
|
+
|
424
428
|
end
|
425
|
-
sdk_name = PM::BuildConfig.mediation_name
|
426
429
|
rely_name = PM::BuildConfig.rely_name
|
427
430
|
result = UpdateResut.new()
|
428
431
|
result.sdk_name = sdk_name
|
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.3
|
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-
|
11
|
+
date: 2024-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|
@@ -58,20 +58,6 @@ dependencies:
|
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: highline
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - ">="
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '0'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '0'
|
75
61
|
description: A short description of cocoapods-byte-panglem.
|
76
62
|
email:
|
77
63
|
- zhangtianhao.1230@bytedance.com
|