gonative-cli 2.1.0 → 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: f8fda458b90459db8f548b5e0667fb1275ea022ffd2349121811b277eb1c4527
4
- data.tar.gz: 774342e3f46fdc0be28c8a75b2955936af10c8ab3e649608f46909d9adf8b417
3
+ metadata.gz: 073e0214b6ad0ada956f93e770130ee06608c61793a59c54a11c5722b5ca71be
4
+ data.tar.gz: 6c38a76729e16b26c75d27313bf447914e1ddc4e0f026c447d85b1baa2e1e501
5
5
  SHA512:
6
- metadata.gz: bcd7406d680402ed90c0c1c78d72fc216e71be442ce374da1eac03059fab6a24fdefe942a51dfeb4d6068c5e731f35547582d6550bc7e5323577a83fecf0d8d9
7
- data.tar.gz: 3d7f76b90ae54aa7df350afa8ea5012635bd7d95e813b40c32a3805f8268db89103ca341e9852a01c258c9416f7efc41945d92e18cb0042dd49a733ca920f1f6
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.0.1)
4
+ gonative-cli (2.1.2)
5
5
  activesupport (~> 6.0)
6
6
  aws-sdk-s3 (~> 1)
7
7
  cocoapods (~> 1.10)
@@ -38,7 +38,7 @@ GEM
38
38
  bigdecimal
39
39
  jmespath (~> 1, >= 1.6.1)
40
40
  logger
41
- aws-sdk-kms (1.123.0)
41
+ aws-sdk-kms (1.124.0)
42
42
  aws-sdk-core (~> 3, >= 3.244.0)
43
43
  aws-sigv4 (~> 1.5)
44
44
  aws-sdk-s3 (1.220.0)
@@ -100,7 +100,6 @@ GEM
100
100
  ffi (>= 1.15.0)
101
101
  logger
102
102
  ffi (1.17.4-arm64-darwin)
103
- ffi (1.17.4-x86_64-darwin)
104
103
  fourflusher (2.3.1)
105
104
  fuzzy_match (2.0.4)
106
105
  gh_inspector (1.1.3)
@@ -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 = [
@@ -84,6 +94,18 @@ module GoNative
84
94
  system(sign_command) or
85
95
  raise Error, "Failed to sign #{framework_path}"
86
96
  end
97
+
98
+ Utils::UI.info "Signing #{File.basename(xcframework_path)}"
99
+ sign_xcframework_command = [
100
+ 'codesign',
101
+ '--sign', Shellwords.escape(identity),
102
+ '--timestamp',
103
+ '--force',
104
+ Shellwords.escape(xcframework_path)
105
+ ].join(' ')
106
+
107
+ system(sign_xcframework_command) or
108
+ raise Error, "Failed to sign #{xcframework_path}"
87
109
  end
88
110
  end
89
111
 
@@ -137,9 +159,11 @@ module GoNative
137
159
 
138
160
  FileUtils.rm_f(temp_zip)
139
161
 
140
- # 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.
141
165
  FileUtils.cd(frameworks_dir) do
142
- 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
143
167
  raise Error, "Failed to zip #{name}.xcframework"
144
168
  end
145
169
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GoNative
4
- VERSION = '2.1.0'
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.0
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hunaid Hassan