cocoapods-bb-PodAssistant 0.3.12.1 → 0.3.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f24cb36efee097e747c10f4f2d4f7746bc48711818b02c13db8748dde4b3eec6
4
- data.tar.gz: 7a2c0fbc83879774f5bef6b4b4162ded38076953e378d76394c2f441dbc0a170
3
+ metadata.gz: 7388162f5ff68f0d7bdcecfc585ab315f33ee0593a81e2c39f1096fe47bd94cb
4
+ data.tar.gz: 2f9a6426ee798a282427935f74d3599e444c16d6e83bc0f6f1ad337191ab2574
5
5
  SHA512:
6
- metadata.gz: 5b72cb59afd1d49622913c3b65040e93f93331f12a1f7c20c9b35cd8a88d182bdaa81c2507d752d8a76bd804c1d20f6bf64094a63b13470e934352d99f337cac
7
- data.tar.gz: 7151e24ab59a31c0d631937257a9901d9c2a10736b093190eca261bbef24714ff7d23f197270133b0f650b7b292ac8873f608067e3aac6be0572f77ef6ae2a06
6
+ metadata.gz: a53c49045478abb71a9f0b9e4186c6a10c15a743effd03a8e1232250dc856c95a78636b19461daf51dd4c97e966c864c4ef78d1dec96d3817ccdd3a1b7fe8105
7
+ data.tar.gz: d31e76630f7640d9f38bf32d56e3e9a186294c8e404225fe9383fb2efe213225c66a8d3c50441bc49940778cc7c0c11c692bf42fbae52984e0abb8f4cb0d2cab
@@ -149,11 +149,7 @@ class PodPostInstaller
149
149
  @lib.pod_target_subprojects.each do |project|
150
150
  project.build_configurations.each do |config|
151
151
  config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = ios_deployment_target
152
- if (isUnityProject) then
153
- config.build_settings['ARCHS'] = 'arm64'
154
- else
155
- config.build_settings['ARCHS'] = '$(ARCHS_STANDARD)'
156
- end
152
+ config.build_settings['ARCHS'] = "$(ARCHS_STANDARD)"
157
153
  end
158
154
  end
159
155
  # project.targets.config
@@ -170,11 +166,7 @@ class PodPostInstaller
170
166
 
171
167
  config.build_settings['DEAD_CODE_STRIPPING'] = 'YES'
172
168
  config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = ios_deployment_target
173
- if (isUnityProject) then
174
- config.build_settings['ARCHS'] = 'arm64'
175
- else
176
- config.build_settings['ARCHS'] = '$(ARCHS_STANDARD)'
177
- end
169
+ config.build_settings['ARCHS'] = "$(ARCHS_STANDARD)"
178
170
  # fix xcode14手动签名问题 https://github.com/CocoaPods/CocoaPods/issues/11402
179
171
  # config.build_settings["DEVELOPMENT_TEAM"] = "#{teamid}"
180
172
  # Fix Xcode14 bundle need sign
@@ -0,0 +1,40 @@
1
+ require 'json'
2
+
3
+ module BB
4
+ class JsonParser
5
+ attr_reader :data
6
+
7
+ def initialize(file_path)
8
+ begin
9
+ json_str = File.read(file_path)
10
+ @data = JSON.parse(json_str)
11
+ rescue JSON::ParserError => e
12
+ puts "JSON解析失败: #{e.message} file_path:#{file_path} json_str:#{json_str}".red
13
+ @data = {}
14
+ end
15
+ end
16
+
17
+ # 获取指定 key 的值(支持嵌套)
18
+ def get(*keys)
19
+ keys.reduce(@data) do |current, key|
20
+ return nil unless current.is_a?(Hash) && current.key?(key)
21
+ current[key]
22
+ end
23
+ end
24
+
25
+ # 设置指定 key 的值(仅一级 key)
26
+ def set(key, value)
27
+ @data[key] = value
28
+ end
29
+
30
+ # 返回内部完整的 JSON 数据(作为 Hash)
31
+ def get_json_data
32
+ @data
33
+ end
34
+
35
+ # 将内部数据重新转为 JSON 字符串
36
+ def to_json(pretty: false)
37
+ pretty ? JSON.pretty_generate(@data) : @data.to_json
38
+ end
39
+ end
40
+ end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsBbPodassistant
2
- VERSION = "0.3.12.1"
2
+ VERSION = "0.3.12.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-bb-PodAssistant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.12.1
4
+ version: 0.3.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - humin
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-04-25 00:00:00.000000000 Z
10
+ date: 2025-04-29 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: cocoapods-core
@@ -169,6 +169,7 @@ files:
169
169
  - lib/cocoapods-bb-PodAssistant/command/stable/update.rb
170
170
  - lib/cocoapods-bb-PodAssistant/config/cache_path.rb
171
171
  - lib/cocoapods-bb-PodAssistant/config/data_config.rb
172
+ - lib/cocoapods-bb-PodAssistant/config/json_parser.rb
172
173
  - lib/cocoapods-bb-PodAssistant/config/source_manager.rb
173
174
  - lib/cocoapods-bb-PodAssistant/config/stable_source.rb
174
175
  - lib/cocoapods-bb-PodAssistant/config/stable_specs.rb