gonative-cli 2.1.1 → 2.1.2

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: 73a5e31bef5b80d3835934ed1c1b8e92b6aeecba42ed23f5cb1bd6431c157c72
4
- data.tar.gz: eafc68f276485a0706706a554c8ce65a92c9f9ead19f1eea42588f7dd3a22bb6
3
+ metadata.gz: 073e0214b6ad0ada956f93e770130ee06608c61793a59c54a11c5722b5ca71be
4
+ data.tar.gz: 6c38a76729e16b26c75d27313bf447914e1ddc4e0f026c447d85b1baa2e1e501
5
5
  SHA512:
6
- metadata.gz: c1fa7111fce7c95b336ab328d06216016a329d020f2418c1f2f35ca3fa568af23ea0aa1ec502a8ddddc231aeb391cdbcffe1ed2d6c5e59c243ccd8be1498dd38
7
- data.tar.gz: f0043f7b72dd2263f688b0b13b9d9ce2eb21ba451c81dc601a0d6e0bd44d00fe9e3aa9f9279b66b80f49a44f7947e1f3ca973908630218a55eaa03ddcee1e54c
6
+ metadata.gz: 2815121dab597534abcd5ea731307debd50191f14e331a5a24125453e590d6c9dbd933e3eb5699b0be3ba1eabf173de7d020fe606c2f6a53a81bc66ecf4b8e85
7
+ data.tar.gz: f6abe9f73f0d6cbe32c21f0788e9b6efe7625f97c77f39a29ac1fd3d7619103666d20d1e6339a74e16bb7aac0249d8dc44f7747f88d4f39cfb7792f26896327f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gonative-cli (2.1.0)
4
+ gonative-cli (2.1.2)
5
5
  activesupport (~> 6.0)
6
6
  aws-sdk-s3 (~> 1)
7
7
  cocoapods (~> 1.10)
@@ -71,6 +71,16 @@ module GoNative
71
71
  Utils::UI.info "Signing frameworks with identity: #{identity}"
72
72
 
73
73
  Dir.glob(File.join(frameworks_dir, '*.xcframework')).each do |xcframework_path|
74
+ name = File.basename(xcframework_path, '.xcframework')
75
+
76
+ unless name.end_with?('Plugin')
77
+ Utils::UI.info "Skipping #{File.basename(xcframework_path)} (dependency)"
78
+ # Strip any stale signature: Xcode hard-fails on an invalid seal,
79
+ # but accepts unsigned binary targets.
80
+ system "codesign --remove-signature #{Shellwords.escape(xcframework_path)} 2>/dev/null"
81
+ next
82
+ end
83
+
74
84
  Dir.glob(File.join(xcframework_path, '**', '*.framework')).each do |framework_path|
75
85
  Utils::UI.info "Signing #{File.basename(framework_path)}"
76
86
  sign_command = [
@@ -149,9 +159,11 @@ module GoNative
149
159
 
150
160
  FileUtils.rm_f(temp_zip)
151
161
 
152
- # Create zip from Frameworks/ directory
162
+ # Create zip from Frameworks/ directory.
163
+ # -y stores symlinks as symlinks: macOS/Catalyst framework slices use
164
+ # Versions/A symlink layouts, and materializing them breaks codesign seals.
153
165
  FileUtils.cd(frameworks_dir) do
154
- system "zip -Xqr #{Shellwords.escape(temp_zip)} #{Shellwords.escape("#{name}.xcframework")}" or
166
+ system "zip -Xqry #{Shellwords.escape(temp_zip)} #{Shellwords.escape("#{name}.xcframework")}" or
155
167
  raise Error, "Failed to zip #{name}.xcframework"
156
168
  end
157
169
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = '2.1.1'
4
+ VERSION = '2.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gonative-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan