cocoapods-bb-PodAssistant 0.3.4.2 → 0.3.5.0

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: 4cb1620da707059b6751898437a2d4837830ce6cf94cba2ca1f525cff705aa48
4
- data.tar.gz: d60d9c262995ee3428109e7ae45946a2a71146bb2980c5877215a66638bf4b6d
3
+ metadata.gz: 608e72a139590daf2b4bcade1f5c0adb6629b0b11460db92591524ff8ce7c96a
4
+ data.tar.gz: 60af78eaba2c05a76e16c0247827a95b42bb69cc6d5182257ff0d988762fad68
5
5
  SHA512:
6
- metadata.gz: f92ede5c2633d935eeaa2c95249f1bb9cef39deec1280714afba2a106e574e1e474dacd21ae156e10c317233986a664de2346efb71866fbef8f028154ca822b6
7
- data.tar.gz: 296805843d60a6900a3c568ede7123aeb6d04c572b693752dc38d4c08653050baa03393334f3b69b4cf54b7cd485d1f6964e7b67b68c68d4788629f278dc5003
6
+ metadata.gz: fe587d944e2623d4256911f662895a883d0597ddb24894fafa465ff510c6b9d06b8a1e60392d813bfb1126e0dd41b5aa0f2134cf593a7e6c88e5c98eaa4919fc
7
+ data.tar.gz: 63072e13be7d3a9febca4a01f03022b5d1b26c5cae91dfc6e9d2478d5b26d973160ebca186e25db0b7d593f882da187fc79977dbf0b914d41a0202310d2fa007
data/bin/match_decrypt ADDED
@@ -0,0 +1,43 @@
1
+ #!/usr/bin/env ruby
2
+ require 'fastlane'
3
+ require 'match'
4
+ # CLI to decrypt files using fastlane match encryption layer
5
+
6
+ def usage
7
+ puts("USAGE: ruby math_decrypt.rb [password] [input_path] [output_path]")
8
+ exit(-1)
9
+ end
10
+
11
+ if ARGV.count < 2 || ARGV.count > 3
12
+ usage
13
+ end
14
+
15
+ method_name = 'decrypt'
16
+ password = ARGV.shift
17
+ input_file = ARGV.shift
18
+
19
+ if ARGV.count > 0
20
+ output_file = ARGV.shift
21
+ else
22
+ output_file = input_file
23
+ end
24
+
25
+ unless File.exist?(input_file)
26
+ puts "input_file:#{input_file} doesn't exist".red
27
+ exit
28
+ end
29
+ exit if password.empty?
30
+
31
+ begin
32
+ puts "match Encryption method_name:#{method_name} password:#{password} input_file:#{input_file} output_file:#{output_file}"
33
+ Match::Encryption::MatchFileEncryption.new.send(method_name, file_path: input_file, password: password, output_path: output_file)
34
+ puts "match decrypted mobileprovision finish!"
35
+ # if File.exist?(output_file)
36
+ # puts("Couldn't decrypted certificates repo")
37
+ # else
38
+ # puts("🔓 Successfully decrypted certificates repo")
39
+ # end
40
+ rescue => e
41
+ puts("ERROR #{method_name}ing. [#{e}]. Check your password")
42
+ usage
43
+ end
@@ -120,6 +120,12 @@ def isCityApp
120
120
  return bundleId === "com.sinyee.babybus.city"
121
121
  end
122
122
 
123
+ # 是否创意世界产品
124
+ def isGameWorldApp
125
+ bundleId = getProjectBundleIdentifier()
126
+ return bundleId === "com.sinyee.babybus.gameworld"
127
+ end
128
+
123
129
  # 是否矩阵产品
124
130
  def isMatrixApp
125
131
  bundleId = getProjectBundleIdentifier()
@@ -10,7 +10,12 @@ class PodPostInstaller
10
10
  def initialize(lib, deployment_target=nil, filter_targets=["test"], is_matrix=true)
11
11
  @lib = lib
12
12
  if deployment_target.nil?
13
- @deployment_target = isUnity3DApp ? "12.0" : "11.0" # Unity2022引擎最低支持iOS12.0、unity2d iOS11 、cocos iOS10、超A产品 iOS11 (968广告厂商升级最低支持iOS11)
13
+ is_xcode16 = BB::PodUtils.compare_xcode_16_version
14
+ if (is_xcode16 == true) then
15
+ @deployment_target = "13.0" # iOS18最低支持13系统
16
+ else
17
+ @deployment_target = isUnity3DApp ? "12.0" : "11.0" # Unity2022引擎最低支持iOS12.0、unity2d iOS11 、cocos iOS10、超A产品 iOS11 (968广告厂商升级最低支持iOS11)
18
+ end
14
19
  else
15
20
  @deployment_target = deployment_target
16
21
  end
@@ -69,9 +74,11 @@ class PodPostInstaller
69
74
 
70
75
  # 配置工程最低部署
71
76
  origin_value = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
72
- config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = ios_deployment_target.to_s
73
- new_value = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
74
- puts "#{target.name}-#{config.name} Build Setting 'IPHONEOS_DEPLOYMENT_TARGET' deployment target: #{origin_value} => #{new_value}"
77
+ if origin_value.to_i != ios_deployment_target.to_i then
78
+ config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = ios_deployment_target.to_s
79
+ new_value = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
80
+ puts "#{target.name}-#{config.name} Build Setting 'IPHONEOS_DEPLOYMENT_TARGET' deployment target: #{origin_value} => #{new_value}"
81
+ end
75
82
  end
76
83
  end
77
84
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsBbPodassistant
2
- VERSION = "0.3.4.2"
2
+ VERSION = "0.3.5.0"
3
3
  end
@@ -150,5 +150,17 @@ module BB
150
150
  end
151
151
  return false
152
152
  end
153
+ # xcode16以上
154
+ def self.compare_xcode_16_version
155
+ current_version = xcode_version
156
+ if current_version.nil?
157
+ puts "未找到安装的Xcode版本。".red
158
+ else
159
+ puts "当前Xcode版本:#{current_version}"
160
+ num_ver = current_version.to_i
161
+ return num_ver >= 16
162
+ end
163
+ return false
164
+ end
153
165
  end
154
166
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-bb-PodAssistant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4.2
4
+ version: 0.3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - humin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-19 00:00:00.000000000 Z
11
+ date: 2024-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods-core
@@ -83,12 +83,14 @@ dependencies:
83
83
  description: A short description of cocoapods-bb-PodAssistant.
84
84
  email:
85
85
  - humin1102@126.com
86
- executables: []
86
+ executables:
87
+ - match_decrypt
87
88
  extensions: []
88
89
  extra_rdoc_files: []
89
90
  files:
90
91
  - LICENSE.txt
91
92
  - README.md
93
+ - bin/match_decrypt
92
94
  - lib/cocoapods-bb-PodAssistant.rb
93
95
  - lib/cocoapods-bb-PodAssistant/babybus/bbsadvert/podfile_dependency_cache.rb
94
96
  - lib/cocoapods-bb-PodAssistant/babybus/business/babybus_install_environment.rb
@@ -143,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
145
  - !ruby/object:Gem::Version
144
146
  version: '0'
145
147
  requirements: []
146
- rubygems_version: 3.5.9
148
+ rubygems_version: 3.5.13
147
149
  signing_key:
148
150
  specification_version: 4
149
151
  summary: A longer description of cocoapods-bb-PodAssistant.