xcframework_converter 0.2.0 → 0.2.1

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: 105e63e07d147cd791c478f9351e73e1f71bbd861160b5a1391d99c7c0affc9d
4
- data.tar.gz: cf2e6a358aeb0a7018d06a2bf48382ab01d768eb870589da0abddab7044278e3
3
+ metadata.gz: 5109f0543cf6df9ebebacdcdc107e1a9bdfc11e365d918d62775678a9742a51a
4
+ data.tar.gz: 76cbc87f54d47b30e6c371f72c6855439e359eb620c0971821985b8c5697ad42
5
5
  SHA512:
6
- metadata.gz: fe005277c05790de2d906188fbc0ab3818b9dd27980bf68bdeb2e56ec3ef2f0184fc61224ddeb32c29689ad316f3179eb51dd4a3345bf423bdd7cd5d75569697
7
- data.tar.gz: '0805b456eebbfc655bd5991c001b241b29bf614f154615be67be7124d3bc1fc95532a0612647ac1d56e05d10373c97c7f6e14489adb68481e24e6b5a03ff89c6'
6
+ metadata.gz: 3a5650ef13956e95ee516e8d226afa1f282baf3c6268ea52b267c9fb0b5854aa6fc60a9bdf14e315e2274642f584c493da1231f111959f7494875a8d28dc253a
7
+ data.tar.gz: 545cff6294e8dc3734d0599a03dd40f48e0b1016bd7df06e0efba44e9b297373d64cded2c84004961cd3504b0aed9e2d7595ceda162a0f85d36abc8a318efabd
@@ -31,7 +31,7 @@ module XCFrameworkConverter
31
31
 
32
32
  patched_arm_slice_identifier = 'ios-arm64-simulator'
33
33
 
34
- STDERR.puts "Will patch #{xcframework_path}: #{original_arm_slice_identifier} -> #{patched_arm_slice_identifier}"
34
+ warn "Will patch #{xcframework_path}: #{original_arm_slice_identifier} -> #{patched_arm_slice_identifier}"
35
35
 
36
36
  plist = xcframework.plist
37
37
  slice_plist_to_add = plist['AvailableLibraries'].find { |s| s['LibraryIdentifier'] == original_arm_slice_identifier }.dup
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module XCFrameworkConverter
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
@@ -43,6 +43,8 @@ module XCFrameworkConverter
43
43
  end.flatten.uniq
44
44
 
45
45
  convert_xcframeworks_if_present(spec, frameworks_to_convert)
46
+
47
+ remove_troublesome_xcconfig_items(spec)
46
48
  end
47
49
  end
48
50
 
@@ -50,16 +52,12 @@ module XCFrameworkConverter
50
52
  frameworks_to_convert.each do |path|
51
53
  convert_framework_to_xcframework(path) if Dir.exist?(path)
52
54
  end
53
- remove_troublesome_xcconfig_items(spec) unless frameworks_to_convert.empty?
54
55
  end
55
56
 
56
57
  def patch_xcframeworks_if_needed(spec, xcframeworks)
57
- patched = xcframeworks.map do |path|
58
- next nil unless Dir.exist?(path)
59
-
60
- patch_xcframework(path)
61
- end.compact
62
- remove_troublesome_xcconfig_items(spec) unless patched.empty?
58
+ xcframeworks.each do |path|
59
+ patch_xcframework(path) if Dir.exist?(path)
60
+ end
63
61
  end
64
62
 
65
63
  def remove_troublesome_xcconfig_items(spec)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcframework_converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Makarov