cocoapods-bb-PodAssistant 0.3.4.1 → 0.3.4.3
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: d0ca45d7ccff88bdc005a64e976843df6dca731391930454f316eba4273d5e04
|
4
|
+
data.tar.gz: b2ef42b1321c8d5d7f5747e937108288876486667060788d2a04d1851d9ed358
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a40f83e76e30726cee9e85dd91414619525c0dc9d2de959a6aee7659ed42e59dd3e6bdfc3284c75212a2c36182a3fde5c344c23ff58f46eda97f82e5d33a30b4
|
7
|
+
data.tar.gz: a88f5cf15ad866c27ae165077ec4ca7784392dae05023f1e419384167406e56ead6b3b7a88b4a54f9c2a1949a06d7caed60ede7f943bebf3f08b8f3c6d80a371
|
@@ -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
|
-
|
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
|
@@ -66,6 +71,14 @@ class PodPostInstaller
|
|
66
71
|
end
|
67
72
|
otherLink_setting_value = config.build_settings['OTHER_LDFLAGS']
|
68
73
|
puts "#{target.name}-#{config.name} Build Setting 'OTHER_LDFLAGS' Value: #{otherLink_setting_value}"
|
74
|
+
|
75
|
+
# 配置工程最低部署
|
76
|
+
origin_value = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET']
|
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
|
69
82
|
end
|
70
83
|
end
|
71
84
|
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.
|
4
|
+
version: 0.3.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- humin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods-core
|