cocoapods-bb-PodAssistant 0.3.4.2 → 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: 4cb1620da707059b6751898437a2d4837830ce6cf94cba2ca1f525cff705aa48
4
- data.tar.gz: d60d9c262995ee3428109e7ae45946a2a71146bb2980c5877215a66638bf4b6d
3
+ metadata.gz: d0ca45d7ccff88bdc005a64e976843df6dca731391930454f316eba4273d5e04
4
+ data.tar.gz: b2ef42b1321c8d5d7f5747e937108288876486667060788d2a04d1851d9ed358
5
5
  SHA512:
6
- metadata.gz: f92ede5c2633d935eeaa2c95249f1bb9cef39deec1280714afba2a106e574e1e474dacd21ae156e10c317233986a664de2346efb71866fbef8f028154ca822b6
7
- data.tar.gz: 296805843d60a6900a3c568ede7123aeb6d04c572b693752dc38d4c08653050baa03393334f3b69b4cf54b7cd485d1f6964e7b67b68c68d4788629f278dc5003
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
- @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.4.3"
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.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-06-19 00:00:00.000000000 Z
11
+ date: 2024-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods-core