cocoapods-ppbuild 1.0.4 → 1.0.5

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: 177f5365623719afc81ba079dcdfee6b910d37c2ef6bec3cb9e3ed7ca06f5efa
4
- data.tar.gz: 51832c007c5bcdd40fcb1243aae611c5fc36067793f3956f961be62c5fab7c40
3
+ metadata.gz: 53dd9ab48b9084264f5f7251529922c6f338d556634bd765e9e6bdb39ee79b34
4
+ data.tar.gz: 398d6bae393855400ba28dcae5a0db71cbd9b5676a1c43ef423a79934d3e772d
5
5
  SHA512:
6
- metadata.gz: 746936e683627c9a4518cb63ee101c049aea83364054d1e8df39b155e754fd42f0aa1831a10724e6c4f6ecdb15b35406b7dab66aa71efec7c6b5f3ab60be81b1
7
- data.tar.gz: d343d195804b2c435e6b409d4df14e69ec581e05cff39c5046f0202abb9dc5defc32741c17b4e91d0825d211a516ba34de5e87d49c01fbbc82537595e1c314c8
6
+ metadata.gz: d2358845e6481c333ee5e3270fd17160b51975569bfe55220fedc66f27f8d0f3bbfa470a346a708d5ad2c2602e91f69f54d65d8b973f261a80385331e2bc3eac
7
+ data.tar.gz: 1c09d293fc5a76e7116e52cd0acfe7698b364c2a0c234cf5c99365aad3a56ba8a8dd0504cc49bbf8e89d592cd3bad3b9e0b410d1ba6585d58006d1171451b97f
@@ -234,13 +234,20 @@ module Pod
234
234
  cache = []
235
235
 
236
236
  def add_vendered_framework(spec, platform, added_framework_file_path)
237
- if spec.attributes_hash[platform] == nil
238
- spec.attributes_hash[platform] = {}
237
+ platform_map = spec.attributes_hash[platform]
238
+ if platform_map == nil
239
+ platform_map = {}
239
240
  end
240
- vendored_frameworks = spec.attributes_hash[platform]["vendored_frameworks"] || []
241
+ vendored_frameworks = platform_map["vendored_frameworks"] || []
241
242
  vendored_frameworks = [vendored_frameworks] if vendored_frameworks.kind_of?(String)
243
+ vf = spec.attributes_hash["vendored_frameworks"] || []
244
+ vf = [vf] if vf.kind_of?(String)
245
+ vendored_frameworks += vf
242
246
  vendored_frameworks += [added_framework_file_path]
243
- spec.attributes_hash[platform]["vendored_frameworks"] = vendored_frameworks
247
+ spec.attributes_hash["vendored_frameworks"] = vendored_frameworks
248
+ if spec.attributes_hash[platform] != nil
249
+ spec.attributes_hash[platform].delete("vendored_frameworks")
250
+ end
244
251
  end
245
252
  def empty_source_files(spec)
246
253
  spec.attributes_hash["source_files"] = []
@@ -280,12 +287,13 @@ module Pod
280
287
  # target after pod install. But the bundle have already built when the prebuit
281
288
  # phase and saved in the framework folder. We will treat it as a normal resource
282
289
  # file.
290
+
283
291
  if spec.attributes_hash["resource_bundles"]
284
292
  bundle_names = spec.attributes_hash["resource_bundles"].keys
285
293
  spec.attributes_hash["resource_bundles"] = nil
286
294
  spec.attributes_hash["resources"] ||= []
287
295
  spec.attributes_hash["resources"] += bundle_names.map{|n| n+".bundle"}
288
- elsif spec.attributes_hash['ios']["resource_bundles"]
296
+ elsif spec.attributes_hash['ios'] && spec.attributes_hash['ios']["resource_bundles"]
289
297
  bundle_names = spec.attributes_hash['ios']["resource_bundles"].keys
290
298
  spec.attributes_hash['ios']["resource_bundles"] = nil
291
299
  spec.attributes_hash['ios']["resources"] ||= []
@@ -114,13 +114,12 @@ module Pod
114
114
  Pod::UI.puts "Prebuild frameworks (total #{targets.count})"
115
115
  Pod::Prebuild.remove_build_dir(sandbox_path)
116
116
  targets.each do |target|
117
+ output_path = sandbox.framework_folder_path_for_target_name(target.name)
118
+ output_path.rmtree if output_path.exist?
117
119
  if !target.should_build?
118
120
  UI.puts "Prebuilding #{target.label}"
119
121
  next
120
122
  end
121
-
122
- output_path = sandbox.framework_folder_path_for_target_name(target.name)
123
- output_path.rmtree if output_path.exist?
124
123
  output_path.mkpath unless output_path.exist?
125
124
  Pod::Prebuild.build(sandbox_path, target, output_path, bitcode_enabled, Podfile::DSL.custom_build_options, Podfile::DSL.custom_build_options_simulator)
126
125
 
@@ -1,3 +1,3 @@
1
1
  module CocoapodsPpbuild
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-ppbuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - 彭懂
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-21 00:00:00.000000000 Z
11
+ date: 2021-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler