pod-builder 4.3.0 → 4.4.0

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: e63869c0a451bb9da5d5ecb974125bb7bc7e30a959d4f76f513734dc4cff8d10
4
- data.tar.gz: be4e23baac9d74eadc8ef402b6fbc388598dedaaab2bae2f4fdeebe9e96c79f1
3
+ metadata.gz: 9251bdb4914c0a4974426de85c7e66fbdd8f614db41ae376834b1fed4bdb6565
4
+ data.tar.gz: 04126b48df0bcfcc10269bd33ff0ea1731cbeb1b12fcdef306dad4fd59efcd49
5
5
  SHA512:
6
- metadata.gz: 93cee03862ea2a53db8a181b2a37e245618e4c0945322f4bca4e37e1db377daab61cc18ef9057d85ce61f59749f85e33cd14f50fa2438d676b7f842910f4f908
7
- data.tar.gz: 8279100eacb50a378422e64595437dc1246d83ac62b49f3bdb5f92e325aa76b1a5220795271880a8b9b5ccf7720d5cd67ccb99d2f0f6d3a882e69962eb3b8baa
6
+ metadata.gz: f985c18756f4c1bf0fe71b1f1d039a7f0ecfe2032648f3d2f2437d5139e9b9001dfd07d63dbf9cfdb56005267c49547bcd8faf28fdc6b1f5a2e15819ec368699
7
+ data.tar.gz: 3bffc37c735676923ec3649580503413423f4acb0f9bcc0c460cb7484efde64756531a6d2cc7d6361466fee78586c2a87465fc5db68fb569a088e3b2c52b065f
@@ -406,7 +406,7 @@ module PodBuilder
406
406
 
407
407
  # Now copy
408
408
  non_prebuilt_items.each do |item|
409
- source_path = PodBuilder::buildpath_prebuiltpath(item.module_name)
409
+ source_path = PodBuilder::buildpath_prebuiltpath(item.root_name)
410
410
 
411
411
  unless File.directory?(source_path)
412
412
  puts "Prebuilt items for #{item.root_name} not found".blue
@@ -360,6 +360,7 @@ Pod::HooksManager.register('podbuilder-rome', :post_install) do |installer_conte
360
360
 
361
361
  built_items = Dir.glob("#{build_dir}/#{xcodebuild_settings[0].platform_name}.xcarchive/Products/Library/Frameworks/*").reject { |t| File.basename(t, ".*") == "Pods_DummyTarget" }
362
362
 
363
+ specs = installer_context.umbrella_targets.map(&:specs).flatten
363
364
  built_items.each do |built_item|
364
365
  built_item_paths = [built_item]
365
366
  xcodebuild_settings.drop(1).each do |xcodebuild_setting|
@@ -374,8 +375,12 @@ Pod::HooksManager.register('podbuilder-rome', :post_install) do |installer_conte
374
375
 
375
376
  next if built_item_paths.count == 0
376
377
 
377
- framework_name = File.basename(built_item_paths.first, ".*")
378
- xcframework_path = "#{base_destination}/#{framework_name}/#{framework_name}.xcframework"
378
+ module_name = File.basename(built_item_paths.first, ".*")
379
+ spec = specs.detect { |t| t.module_name == module_name }
380
+
381
+ next if spec.nil?
382
+
383
+ xcframework_path = "#{base_destination}/#{spec.name}/#{module_name}.xcframework"
379
384
  framework_params = built_item_paths.map { |t| "-framework '#{t}'"}.join(" ")
380
385
  raise "\n\nFailed packing xcframework!\n".red if !system("xcodebuild -create-xcframework #{framework_params} -output '#{xcframework_path}' > /dev/null 2>&1")
381
386
 
@@ -383,7 +388,7 @@ Pod::HooksManager.register('podbuilder-rome', :post_install) do |installer_conte
383
388
  xcodebuild_settings.each do |xcodebuild_setting|
384
389
  dsym_source = "#{build_dir}/#{xcodebuild_setting.platform_name}.xcarchive/dSYMs/"
385
390
  if File.directory?(dsym_source)
386
- destination = sandbox_root.parent + "dSYMs"
391
+ destination = PodBuilder::buildpath_dsympath
387
392
  FileUtils.mkdir_p(destination)
388
393
  FileUtils.mv(dsym_source, destination)
389
394
  FileUtils.mv("#{destination}/dSYMs", "#{destination}/#{xcodebuild_setting.platform_name}")
@@ -438,7 +443,7 @@ Pod::HooksManager.register('podbuilder-rome', :post_install) do |installer_conte
438
443
  if enable_dsym
439
444
  dsym_source = "#{build_dir}/dSYM"
440
445
  if File.directory?(dsym_source)
441
- FileUtils.mv(dsym_source, sandbox_root.parent)
446
+ FileUtils.mv(dsym_source, PodBuilder::buildpath_dsympath)
442
447
  end
443
448
  else
444
449
  raise "\n\nNot implemented\n".red
@@ -1,3 +1,3 @@
1
1
  module PodBuilder
2
- VERSION = "4.3.0"
2
+ VERSION = "4.4.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pod-builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.0
4
+ version: 4.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Camin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-01 00:00:00.000000000 Z
11
+ date: 2022-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler