cocoapods-byte-panglem-beta 0.0.7 → 0.0.8

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: 1a6c5e75a80d0a83377d24e7bac384550441ec91d02856abe945c7527e3c7233
4
- data.tar.gz: 726fc89778286a3fba77cabe9fa8c3151a6f82acdc9abbb9072141c308fe5856
3
+ metadata.gz: 06c8be5834db737add654116e99da3122c88dabffd447d099a06acc72dd4b17d
4
+ data.tar.gz: 5cca827e8ca7b528db58960779192c117f7883497f897c3c5c85513b57632c84
5
5
  SHA512:
6
- metadata.gz: 749b4cd58cb1ee252c28a758db798e1593f4fb734d79d7e2f36bf67fc73073866fee79a3d1f77e9d569973c80b567e049708c65f23f6c0fd6281656b1c529a92
7
- data.tar.gz: e54778c794a191708f75c749e48d677ff53de82bb3dd85ffe1377f2f516cb03024cc4ea4dda463225613c9df65a9380dfcb74c1c333908b21db7dfc0c9f6fc28
6
+ metadata.gz: 98cab214b9d7e8b38ba609fb41329ec6c21e2cec31f4df3954eada8f025dee343d06896889c8d9524617c4ebd927dbfd661f90f0233ed14bc465b9d1f522eccb
7
+ data.tar.gz: af2ef6c20e293e234d51bbe4bff48d0b701f0ab5c72f5e9b367ce2ddea657d000c3ba23bc2ca37c57369f08ed41d5b940aa7cb5d7a7bd14761d472a3a3eb17ff
@@ -25,29 +25,32 @@ module PM
25
25
  end
26
26
  result = UpdateResut.from_hash(hash)
27
27
  ## 校验Pangle SDK是否符合预期
28
- pm_spec = specs.find do |spec|
29
- result.sdk_name==Pod::Specification.root_name(spec.spec.name)
30
- end
31
- if pm_spec.nil?
32
- raise "[cocoapods-byte-panglem-beta][error] #{result.sdk_name} not found}"
33
- end
34
- if pm_spec.spec.version.version != result.sdk_original_version
35
- raise "[cocoapods-byte-panglem-beta][error] #{result.sdk_name} version has change(#{result.sdk_original_version}->#{pm_spec.spec.version.version}),After generating the Podfile.panglewe file, you may have made some changes in the podfile, causing the version of Pangle SDK to change. Please change 'use_pangm_sdk_update! :is_release => true
36
- ',delete':is_release => true' and re-execute 'pod install'"
37
- end
28
+ # pm_spec = specs.find do |spec|
29
+ # result.sdk_name==Pod::Specification.root_name(spec.spec.name)
30
+ # end
31
+ # if pm_spec.nil?
32
+ # raise "[cocoapods-byte-panglem-beta][error] #{result.sdk_name} not found}"
33
+ # end
34
+ # if pm_spec.spec.version.version != result.sdk_original_version
35
+ # raise "[cocoapods-byte-panglem-beta][error] #{result.sdk_name} version has change(#{result.sdk_original_version}->#{pm_spec.spec.version.version}),After generating the Podfile.panglewe file, you may have made some changes in the podfile, causing the version of Pangle SDK to change. Please change 'use_pangm_sdk_update! :is_release => true
36
+ # ',delete':is_release => true' and re-execute 'pod install'"
37
+ # end
38
38
  if result.is_sdk_update
39
39
  title_options = { :verbose_prefix => '-> '.green }
40
40
  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)
41
+ ## 先删掉现有的所有beta依赖 和 原有的ads_global依赖
41
42
  specs.delete_if{|spec|
42
- Pod::Specification.root_name(spec.spec.name) == result.sdk_name && spec.spec.version.version == result.sdk_original_version
43
+ Pod::Specification.root_name(spec.spec.name) == result.sdk_name or Pod::Specification.root_name(spec.spec.name) == PM::BuildConfig.pangle_sdk_release
43
44
  }
45
+ ## 再添加.pangle文件中记录的
44
46
  result.sdk_list.each{ |spec|
45
47
  specs << Pod::Resolver::ResolverSpecification.new(spec, false, spec.spec_source)
46
48
  }
47
49
 
48
50
  if result.is_rely_update
51
+
49
52
  specs.delete_if{|spec|
50
- Pod::Specification.root_name(spec.spec.name) == result.rely_name && spec.spec.version.version == result.rely_original_version
53
+ Pod::Specification.root_name(spec.spec.name) == result.rely_name
51
54
  }
52
55
  result.rely_list.each{ |spec|
53
56
  specs << Pod::Resolver::ResolverSpecification.new(spec, false, spec.spec_source)
@@ -2,7 +2,7 @@
2
2
  ##SPDX-License-Identifier: MIT
3
3
 
4
4
  module CocoapodsBytePanglem
5
- VERSION = "0.0.7"
5
+ VERSION = "0.0.8"
6
6
  class Version
7
7
  def self.version
8
8
  VERSION
@@ -213,7 +213,7 @@ module PM
213
213
 
214
214
  def self.from_hash(hash)
215
215
  re = UpdateResut.new()
216
- re.sdk_name = "Ads-Global"
216
+ re.sdk_name = PM::BuildConfig.pangle_sdk_beta
217
217
  re.rely_name = "BURelyFoundation_Global"
218
218
  re.sdk_original_version = hash["SDK_ORIGINAL_VERSION"]
219
219
  re.sdk_target_version = hash["SDK_TARGET_VERSION"]
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.7
4
+ version: 0.0.8
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-23 00:00:00.000000000 Z
11
+ date: 2024-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods