cocoapods-bb-PodAssistant 0.3.0 → 0.3.1

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: 35d02b24a30633e891421f088d9fe05c17585e9b6db05f0c337a9468b980adf5
4
- data.tar.gz: 4c7ac41d4a5f98ab346dfa587a686f079af075ef434df61e5441597f84f265f7
3
+ metadata.gz: 8ec894300fc20becaf41cdc3960276b0592044944ab6f9c03050ae222f7fc29d
4
+ data.tar.gz: 9b122bdf03944415ad33ad4132ca81aabde72a232f6cd0d5ccc258b6c72ed090
5
5
  SHA512:
6
- metadata.gz: 58d31747fb116514f4520aacf1b730d0503d7e5ca3ca136772488519871ae667dad4200fb05ae65938378e8c47268e86fad32275b794bea660a65227836eee8b
7
- data.tar.gz: 32b9d36bf4238aaf709dc6bdad0feded1ba5845270d42089d6cae5490120a99a1695c755b4edffdf10c9b4b1f96f187dc6eaaa1f70320e3d4b19a9133ceb9e17
6
+ metadata.gz: 937f5f8a8e1e34158253cc3aa5cddfbfd71b9428ea7732a1a7161076a02fa0d16e40f19d41833b01df7d936714f33e74c26137201aea91ff11d202377c61b130
7
+ data.tar.gz: '0082d507df96adcd2bd6f3057e78cfcbabb6eb72946dd1616b1322285146a2d77124dce74368a926a789fb56aed5a8c7138f302304be5a504becf8f5067981e6'
@@ -7,14 +7,29 @@ require 'cocoapods-bb-PodAssistant/babybus/business/babybus_install_environment'
7
7
  require 'cocoapods-bb-PodAssistant/helpers/pod_utils'
8
8
 
9
9
  class PodPostInstaller
10
- def initialize(lib, deployment_target=nil)
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
  @deployment_target = isUnity3DApp ? "12.0" : "11.0" # Unity2022引擎最低支持iOS12.0、unity2d iOS11 、cocos iOS10、超A产品 iOS11 (968广告厂商升级最低支持iOS11)
14
14
  else
15
15
  @deployment_target = deployment_target
16
16
  end
17
+ if filter_targets.is_a? Array
18
+ @filter_targets = filter_targets # 过滤target
19
+ elsif filter_targets.is_a? String
20
+ @filter_targets = [filter_targets] # 过滤target
21
+ end
22
+ @is_matrix = is_matrix
17
23
  end
24
+ private def filterTargetName(target_name)
25
+ for name in @filter_targets
26
+ if target_name.include?(name)
27
+ return true
28
+ end
29
+ end
30
+ return false
31
+ end
32
+
18
33
  def run
19
34
  env = BabybusInstallEnv.new()
20
35
  is_xcode15 = BB::PodUtils.compare_xcode_15_version
@@ -30,8 +45,9 @@ class PodPostInstaller
30
45
  project = Xcodeproj::Project.open(BB::PodUtils.getXcodeprojPath)
31
46
  project.targets.each do |target|
32
47
  target.build_configurations.each do |config|
33
- if !target.name.include? '_test' # 过滤target test 工程
34
- if config.name.include? 'Debug' # 只有debug环境才进行替换操作,其它环境交由打包机处理
48
+ # if !target.name.include? 'test'
49
+ if !filterTargetName(target.name) # 过滤target test 工程
50
+ if (@is_matrix == true) && (config.name.include? 'Debug') # 只有debug环境才进行替换操作,其它环境交由打包机处理
35
51
  puts "[#{target.name}/#{config.name}] 开发者debug环境环境替换[PlistMacro/cocos/unity]文件操作,其它环境交由打包机处理".red
36
52
  env.copyPlistMacro # 开发自行打开不能提交到版本控制,避免test包出现配置不正确情况 by hm 22/5/17
37
53
  if (isUnityProject) then
@@ -1,3 +1,3 @@
1
1
  module CocoapodsBbPodassistant
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  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.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - humin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-24 00:00:00.000000000 Z
11
+ date: 2024-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods-core
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  - !ruby/object:Gem::Version
144
144
  version: '0'
145
145
  requirements: []
146
- rubygems_version: 3.4.21
146
+ rubygems_version: 3.4.22
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: A longer description of cocoapods-bb-PodAssistant.