fastlane-plugin-sentry 1.18.0 → 1.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -2
- data/bin/sentry-cli-Darwin-universal +0 -0
- data/bin/sentry-cli-Linux-i686 +0 -0
- data/bin/sentry-cli-Linux-x86_64 +0 -0
- data/bin/sentry-cli-Windows-i686.exe +0 -0
- data/bin/sentry-cli-Windows-x86_64.exe +0 -0
- data/lib/fastlane/plugin/sentry/actions/sentry_debug_files_upload.rb +166 -0
- data/lib/fastlane/plugin/sentry/actions/sentry_upload_dif.rb +3 -1
- data/lib/fastlane/plugin/sentry/actions/sentry_upload_dsym.rb +2 -0
- data/lib/fastlane/plugin/sentry/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 334d29502fcbaeb00e45401227f35de26f2d8b6528eeb3260d5c6307a9ba40eb
|
4
|
+
data.tar.gz: 2d03a552921f1d78e2a0d690e2631c68bf9ec3da8d5f84270d2d96c5c08ffeb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c12ec35b3647964dda2b7b9b64bcf4c6a23a4b0996711a39dd6e579c157846d453251c5b00ea69f4d0979e40e50c071ed9f65a8d8cf7d35587a8f9e342ff71a
|
7
|
+
data.tar.gz: f50416d5b3a4d36acbc95748bd9dd4900d00fb427633cb15657efb6d7ac8a6daaff6fe8f356eeaf6cf777128c95a7af141510e562a209a07d01e215b897511e2
|
data/README.md
CHANGED
@@ -59,7 +59,7 @@ The following environment variables may be used in place of parameters: `SENTRY_
|
|
59
59
|
### Uploading Debug Information Files
|
60
60
|
|
61
61
|
```ruby
|
62
|
-
|
62
|
+
sentry_debug_files_upload(
|
63
63
|
api_key: '...', # Do not use if using auth_token
|
64
64
|
auth_token: '...', # Do not use if using api_key
|
65
65
|
org_slug: '...',
|
@@ -88,8 +88,17 @@ Further options:
|
|
88
88
|
- __wait__: Wait for the server to fully process uploaded files. Errors can only be displayed if --wait is specified, but this will significantly slow down the upload process.
|
89
89
|
- __upload_symbol_maps__: Optional. Upload any BCSymbolMap files found to allow Sentry to resolve hidden symbols, e.g. when it downloads dSYMs directly from App Store Connect or when you upload dSYMs without first resolving the hidden symbols using --symbol-maps.
|
90
90
|
|
91
|
+
Or the deprecated ways, which will be removed in the next major update:
|
91
92
|
|
92
|
-
|
93
|
+
```ruby
|
94
|
+
sentry_upload_dif(
|
95
|
+
api_key: '...', # Do not use if using auth_token
|
96
|
+
auth_token: '...', # Do not use if using api_key
|
97
|
+
org_slug: '...',
|
98
|
+
project_slug: '...',
|
99
|
+
path: '/path/to/files', # Optional. Defaults to '.' when no value is provided. Path(s) can be a string, a comma-separated string, or an array of strings.
|
100
|
+
)
|
101
|
+
```
|
93
102
|
|
94
103
|
```ruby
|
95
104
|
sentry_upload_dsym(
|
Binary file
|
data/bin/sentry-cli-Linux-i686
CHANGED
Binary file
|
data/bin/sentry-cli-Linux-x86_64
CHANGED
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,166 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
class SentryDebugFilesUploadAction < Action
|
4
|
+
def self.run(params)
|
5
|
+
require 'shellwords'
|
6
|
+
|
7
|
+
Helper::SentryConfig.parse_api_params(params)
|
8
|
+
|
9
|
+
paths = params[:path]
|
10
|
+
paths = ['.'] if paths.nil?
|
11
|
+
|
12
|
+
command = [
|
13
|
+
"debug-files",
|
14
|
+
"upload"
|
15
|
+
]
|
16
|
+
command += paths
|
17
|
+
|
18
|
+
command.push('--type').push(params[:type]) unless params[:type].nil?
|
19
|
+
command.push('--no-unwind') unless params[:no_unwind].nil?
|
20
|
+
command.push('--no-debug') unless params[:no_debug].nil?
|
21
|
+
command.push('--no-sources') unless params[:no_sources].nil?
|
22
|
+
command.push('--ids').push(params[:ids]) unless params[:ids].nil?
|
23
|
+
command.push('--require-all') unless params[:require_all].nil?
|
24
|
+
command.push('--symbol-maps').push(params[:symbol_maps]) unless params[:symbol_maps].nil?
|
25
|
+
command.push('--derived-data') unless params[:derived_data].nil?
|
26
|
+
command.push('--no-zips') unless params[:no_zips].nil?
|
27
|
+
command.push('--info-plist').push(params[:info_plist]) unless params[:info_plist].nil?
|
28
|
+
command.push('--no-reprocessing') unless params[:no_reprocessing].nil?
|
29
|
+
command.push('--force-foreground') unless params[:force_foreground].nil?
|
30
|
+
command.push('--include-sources') unless params[:include_sources] != true
|
31
|
+
command.push('--wait') unless params[:wait].nil?
|
32
|
+
command.push('--upload-symbol-maps') unless params[:upload_symbol_maps].nil?
|
33
|
+
|
34
|
+
Helper::SentryHelper.call_sentry_cli(params, command)
|
35
|
+
UI.success("Successfully ran debug-files upload")
|
36
|
+
end
|
37
|
+
|
38
|
+
#####################################################
|
39
|
+
# @!group Documentation
|
40
|
+
#####################################################
|
41
|
+
|
42
|
+
def self.description
|
43
|
+
"Upload debugging information files."
|
44
|
+
end
|
45
|
+
|
46
|
+
def self.details
|
47
|
+
[
|
48
|
+
"Files can be uploaded using the `debug-files upload` command. This command will scan a given folder recursively for files and upload them to Sentry.",
|
49
|
+
"See https://docs.sentry.io/product/cli/dif/#uploading-files for more information."
|
50
|
+
].join(" ")
|
51
|
+
end
|
52
|
+
|
53
|
+
def self.available_options
|
54
|
+
Helper::SentryConfig.common_api_config_items + [
|
55
|
+
FastlaneCore::ConfigItem.new(key: :path,
|
56
|
+
description: "Path or an array of paths to search recursively for symbol files",
|
57
|
+
type: Array,
|
58
|
+
optional: true),
|
59
|
+
FastlaneCore::ConfigItem.new(key: :type,
|
60
|
+
short_option: "-t",
|
61
|
+
description: "Only consider debug information files of the given \
|
62
|
+
type. By default, all types are considered",
|
63
|
+
optional: true,
|
64
|
+
verify_block: proc do |value|
|
65
|
+
UI.user_error! "Invalid value '#{value}'" unless ['dsym', 'elf', 'breakpad', 'pdb', 'pe', 'sourcebundle', 'bcsymbolmap'].include? value
|
66
|
+
end),
|
67
|
+
FastlaneCore::ConfigItem.new(key: :no_unwind,
|
68
|
+
description: "Do not scan for stack unwinding information. Specify \
|
69
|
+
this flag for builds with disabled FPO, or when \
|
70
|
+
stackwalking occurs on the device. This usually \
|
71
|
+
excludes executables and dynamic libraries. They might \
|
72
|
+
still be uploaded, if they contain additional \
|
73
|
+
processable information (see other flags)",
|
74
|
+
is_string: false,
|
75
|
+
optional: true),
|
76
|
+
FastlaneCore::ConfigItem.new(key: :no_debug,
|
77
|
+
description: "Do not scan for debugging information. This will \
|
78
|
+
usually exclude debug companion files. They might \
|
79
|
+
still be uploaded, if they contain additional \
|
80
|
+
processable information (see other flags)",
|
81
|
+
conflicting_options: [:no_unwind],
|
82
|
+
is_string: false,
|
83
|
+
optional: true),
|
84
|
+
FastlaneCore::ConfigItem.new(key: :no_sources,
|
85
|
+
description: "Do not scan for source information. This will \
|
86
|
+
usually exclude source bundle files. They might \
|
87
|
+
still be uploaded, if they contain additional \
|
88
|
+
processable information (see other flags)",
|
89
|
+
is_string: false,
|
90
|
+
optional: true),
|
91
|
+
FastlaneCore::ConfigItem.new(key: :ids,
|
92
|
+
description: "Search for specific debug identifiers",
|
93
|
+
optional: true),
|
94
|
+
FastlaneCore::ConfigItem.new(key: :require_all,
|
95
|
+
description: "Errors if not all identifiers specified with --id could be found",
|
96
|
+
is_string: false,
|
97
|
+
optional: true),
|
98
|
+
FastlaneCore::ConfigItem.new(key: :symbol_maps,
|
99
|
+
description: "Optional path to BCSymbolMap files which are used to \
|
100
|
+
resolve hidden symbols in dSYM files downloaded from \
|
101
|
+
iTunes Connect. This requires the dsymutil tool to be \
|
102
|
+
available",
|
103
|
+
optional: true),
|
104
|
+
FastlaneCore::ConfigItem.new(key: :derived_data,
|
105
|
+
description: "Search for debug symbols in Xcode's derived data",
|
106
|
+
is_string: false,
|
107
|
+
optional: true),
|
108
|
+
FastlaneCore::ConfigItem.new(key: :no_zips,
|
109
|
+
description: "Do not search in ZIP files",
|
110
|
+
is_string: false,
|
111
|
+
optional: true),
|
112
|
+
FastlaneCore::ConfigItem.new(key: :info_plist,
|
113
|
+
description: "Optional path to the Info.plist.{n}We will try to find this \
|
114
|
+
automatically if run from Xcode. Providing this information \
|
115
|
+
will associate the debug symbols with a specific ITC application \
|
116
|
+
and build in Sentry. Note that if you provide the plist \
|
117
|
+
explicitly it must already be processed",
|
118
|
+
optional: true),
|
119
|
+
FastlaneCore::ConfigItem.new(key: :no_reprocessing,
|
120
|
+
description: "Do not trigger reprocessing after uploading",
|
121
|
+
is_string: false,
|
122
|
+
optional: true),
|
123
|
+
FastlaneCore::ConfigItem.new(key: :force_foreground,
|
124
|
+
description: "Wait for the process to finish.{n}\
|
125
|
+
By default, the upload process will detach and continue in the \
|
126
|
+
background when triggered from Xcode. When an error happens, \
|
127
|
+
a dialog is shown. If this parameter is passed Xcode will wait \
|
128
|
+
for the process to finish before the build finishes and output \
|
129
|
+
will be shown in the Xcode build output",
|
130
|
+
is_string: false,
|
131
|
+
optional: true),
|
132
|
+
FastlaneCore::ConfigItem.new(key: :include_sources,
|
133
|
+
description: "Include sources from the local file system and upload \
|
134
|
+
them as source bundles",
|
135
|
+
is_string: false,
|
136
|
+
optional: true),
|
137
|
+
FastlaneCore::ConfigItem.new(key: :wait,
|
138
|
+
description: "Wait for the server to fully process uploaded files. Errors \
|
139
|
+
can only be displayed if --wait is specified, but this will \
|
140
|
+
significantly slow down the upload process",
|
141
|
+
is_string: false,
|
142
|
+
optional: true),
|
143
|
+
FastlaneCore::ConfigItem.new(key: :upload_symbol_maps,
|
144
|
+
description: "Upload any BCSymbolMap files found to allow Sentry to resolve \
|
145
|
+
hidden symbols, e.g. when it downloads dSYMs directly from App \
|
146
|
+
Store Connect or when you upload dSYMs without first resolving \
|
147
|
+
the hidden symbols using --symbol-maps",
|
148
|
+
is_string: false,
|
149
|
+
optional: true)
|
150
|
+
]
|
151
|
+
end
|
152
|
+
|
153
|
+
def self.return_value
|
154
|
+
nil
|
155
|
+
end
|
156
|
+
|
157
|
+
def self.authors
|
158
|
+
["denrase"]
|
159
|
+
end
|
160
|
+
|
161
|
+
def self.is_supported?(platform)
|
162
|
+
true
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
@@ -4,6 +4,8 @@ module Fastlane
|
|
4
4
|
def self.run(params)
|
5
5
|
require 'shellwords'
|
6
6
|
|
7
|
+
UI.deprecated("This action is deprecated. Please use the `sentry_debug_files_upload` action.")
|
8
|
+
|
7
9
|
Helper::SentryConfig.parse_api_params(params)
|
8
10
|
|
9
11
|
paths = params[:path]
|
@@ -44,7 +46,7 @@ module Fastlane
|
|
44
46
|
|
45
47
|
def self.details
|
46
48
|
[
|
47
|
-
"Files can be uploaded using the upload-dif command. This command will scan a given folder recursively for files and upload them to Sentry.",
|
49
|
+
"Files can be uploaded using the `upload-dif` command. This command will scan a given folder recursively for files and upload them to Sentry.",
|
48
50
|
"See https://docs.sentry.io/product/cli/dif/#uploading-files for more information."
|
49
51
|
].join(" ")
|
50
52
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-sentry
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sentry
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: os
|
@@ -117,6 +117,7 @@ files:
|
|
117
117
|
- lib/fastlane/plugin/sentry/actions/sentry_check_cli_installed.rb
|
118
118
|
- lib/fastlane/plugin/sentry/actions/sentry_create_deploy.rb
|
119
119
|
- lib/fastlane/plugin/sentry/actions/sentry_create_release.rb
|
120
|
+
- lib/fastlane/plugin/sentry/actions/sentry_debug_files_upload.rb
|
120
121
|
- lib/fastlane/plugin/sentry/actions/sentry_finalize_release.rb
|
121
122
|
- lib/fastlane/plugin/sentry/actions/sentry_set_commits.rb
|
122
123
|
- lib/fastlane/plugin/sentry/actions/sentry_upload_dif.rb
|