fastlane-plugin-upload_symbols_to_shake 1.1.1 → 2.0.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b103acffb5d4a051645872b921e3e3dce3a34c14b712620e083723c40fce3c25
|
4
|
+
data.tar.gz: fa53cbb332b67d1c0ddf00438af82eb7b1ca503854217904d264520e541b52b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b40fd5a5e5f1d8f9ef0209c4dc56000f1c96fa1488d3e00a6d45ab1391f5ae35e1645884dfc00c17a1a98a5ae875e031d99ed54528f56ec81c9266f9fff72ef1
|
7
|
+
data.tar.gz: d2b85f37bf89837f67b14b4b3ec5ae74d98f0399c1600a9bdb58e9643bf128e10028796f119cc78467299d321d96e7884d26478fed46b0c6d9682588ffcb0973
|
@@ -9,23 +9,9 @@ module Fastlane
|
|
9
9
|
def self.run(params)
|
10
10
|
@shake_dsyms_directory = 'Shake_dsym_files_fastlane'
|
11
11
|
|
12
|
-
|
13
|
-
client_secret = params[:client_secret]
|
12
|
+
api_key = params[:api_key]
|
14
13
|
endpoint_url = params[:upload_url]
|
15
14
|
|
16
|
-
auth_endpoint = "#{endpoint_url}/auth/oauth2/token"
|
17
|
-
command = "curl --silent -d \"grant_type=client_credentials&client_id=#{client_id}&client_secret=#{client_secret}\" #{auth_endpoint}"
|
18
|
-
|
19
|
-
result = Actions.sh(command)
|
20
|
-
|
21
|
-
json_data = JSON.parse(result)
|
22
|
-
if json_data.has_key? 'error'
|
23
|
-
UI.error('Please check your credentials')
|
24
|
-
return 1
|
25
|
-
end
|
26
|
-
|
27
|
-
api_token = json_data['access_token']
|
28
|
-
|
29
15
|
if params[:app_version_name] == nil && params[:app_version_code] == nil
|
30
16
|
if params[:plist_path] == nil
|
31
17
|
UI.error('Please enter app_version_name and app_version_code or provide path to Info.plist')
|
@@ -36,7 +22,7 @@ module Fastlane
|
|
36
22
|
UI.verbose "Path to Info.plist: '#{path}'"
|
37
23
|
code = GetInfoPlistValueAction.run(path: path, key: "CFBundleVersion")
|
38
24
|
name = GetInfoPlistValueAction.run(path: path, key: "CFBundleShortVersionString")
|
39
|
-
|
25
|
+
|
40
26
|
else
|
41
27
|
name = params[:app_version_name]
|
42
28
|
code = params[:app_version_code]
|
@@ -44,8 +30,8 @@ module Fastlane
|
|
44
30
|
end
|
45
31
|
|
46
32
|
bundle_id = params[:bundle_id]
|
47
|
-
upload_file_endpoint = "#{endpoint_url}/api/
|
48
|
-
command = "curl #{upload_file_endpoint} --write-out %{http_code} --silent --output /dev/null -H \"
|
33
|
+
upload_file_endpoint = "#{endpoint_url}/api/2.0/crash_reporting/app_debug_file/#{bundle_id}"
|
34
|
+
command = "curl #{upload_file_endpoint} --write-out %{http_code} --silent --output /dev/null -H \"X-API-KEY: #{api_key}\" -F os=\"iOS\" -F platform=\"iOS\" -F app_version_name=\"#{name}\" -F app_version_code=\"#{code}\" -F file="
|
49
35
|
|
50
36
|
dsym_paths = []
|
51
37
|
#Paths provided by the user
|
@@ -74,7 +60,7 @@ module Fastlane
|
|
74
60
|
if result == '200'
|
75
61
|
UI.success 'dSYM is successfully uploaded to Shake'
|
76
62
|
UI.verbose 'Removing The directory'
|
77
|
-
else
|
63
|
+
else
|
78
64
|
UI.error "Something went wrong during Shake dSYM upload. Status cose is #{result}"
|
79
65
|
end
|
80
66
|
|
@@ -102,21 +88,12 @@ module Fastlane
|
|
102
88
|
|
103
89
|
def self.available_options
|
104
90
|
[
|
105
|
-
FastlaneCore::ConfigItem.new(key: :
|
106
|
-
description: "
|
107
|
-
type: String,
|
108
|
-
verify_block: proc do |value|
|
109
|
-
unless value && !value.empty?
|
110
|
-
UI.user_error!("No Client id for shake action given, pass using `client_id: 'client id'`")
|
111
|
-
end
|
112
|
-
end),
|
113
|
-
|
114
|
-
FastlaneCore::ConfigItem.new(key: :client_secret,
|
115
|
-
description: "Client secret used for auth",
|
91
|
+
FastlaneCore::ConfigItem.new(key: :api_key,
|
92
|
+
description: "Api key used for auth",
|
116
93
|
type: String,
|
117
94
|
verify_block: proc do |value|
|
118
95
|
unless value && !value.empty?
|
119
|
-
UI.user_error!("No
|
96
|
+
UI.user_error!("No Api key for shake action given, pass using `api_key: 'api key'`")
|
120
97
|
end
|
121
98
|
end),
|
122
99
|
|
@@ -145,8 +122,8 @@ module Fastlane
|
|
145
122
|
description: "Application version code",
|
146
123
|
optional: true,
|
147
124
|
default_value: nil,
|
148
|
-
type: Integer),
|
149
|
-
|
125
|
+
type: Integer),
|
126
|
+
|
150
127
|
FastlaneCore::ConfigItem.new(key: :upload_url,
|
151
128
|
description: "Custom endpoint url",
|
152
129
|
default_value: "https://api.shakebugs.com",
|
@@ -163,7 +140,7 @@ module Fastlane
|
|
163
140
|
def self.generate_shake_directory
|
164
141
|
cleanup_shake_directory
|
165
142
|
FileUtils.mkdir_p @shake_dsyms_directory
|
166
|
-
end
|
143
|
+
end
|
167
144
|
|
168
145
|
def self.cleanup_shake_directory
|
169
146
|
FileUtils.rm_f "#{@shake_dsyms_directory}.zip"
|
@@ -183,7 +160,7 @@ module Fastlane
|
|
183
160
|
if File.extname(path) == '.dSYM'
|
184
161
|
destination_path = "#{directory_path}/#{File.basename(path)}"
|
185
162
|
FileUtils.copy_entry(path, destination_path) if File.exist?(path)
|
186
|
-
else
|
163
|
+
else
|
187
164
|
Actions.sh("unzip -n #{Shellwords.shellescape(path)} -d #{Shellwords.shellescape(directory_path)}")
|
188
165
|
end
|
189
166
|
end
|
@@ -193,8 +170,8 @@ module Fastlane
|
|
193
170
|
file_path = if dsym_path.end_with?('.zip')
|
194
171
|
dsym_path.shellescape
|
195
172
|
else
|
196
|
-
ZipAction.run(path: dsym_path,
|
197
|
-
include: [],
|
173
|
+
ZipAction.run(path: dsym_path,
|
174
|
+
include: [],
|
198
175
|
exclude: []).shellescape
|
199
176
|
end
|
200
177
|
command + "@\"#{Shellwords.shellescape(file_path)}\""
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-upload_symbols_to_shake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shake Team
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -136,7 +136,7 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 2.171.0
|
139
|
-
description:
|
139
|
+
description:
|
140
140
|
email: team@shakebugs.com
|
141
141
|
executables: []
|
142
142
|
extensions: []
|
@@ -152,7 +152,7 @@ homepage: https://github.com/shakebugs/fastlane-plugin-shake
|
|
152
152
|
licenses:
|
153
153
|
- MIT
|
154
154
|
metadata: {}
|
155
|
-
post_install_message:
|
155
|
+
post_install_message:
|
156
156
|
rdoc_options: []
|
157
157
|
require_paths:
|
158
158
|
- lib
|
@@ -167,8 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
- !ruby/object:Gem::Version
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
|
-
rubygems_version: 3.
|
171
|
-
signing_key:
|
170
|
+
rubygems_version: 3.1.6
|
171
|
+
signing_key:
|
172
172
|
specification_version: 4
|
173
173
|
summary: Upload dSYM to Shake
|
174
174
|
test_files: []
|