87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
|
# File 'lib/fastlane/plugin/sentry/actions/sentry_upload_sourcemap.rb', line 87
def self.available_options
Helper::SentryConfig.common_api_config_items + [
FastlaneCore::ConfigItem.new(key: :version,
description: "Release version on Sentry"),
FastlaneCore::ConfigItem.new(key: :app_identifier,
short_option: "-a",
env_name: "SENTRY_APP_IDENTIFIER",
description: "App Bundle Identifier, prepended to version",
optional: true),
FastlaneCore::ConfigItem.new(key: :build,
short_option: "-b",
description: "Release build on Sentry",
optional: true),
FastlaneCore::ConfigItem.new(key: :dist,
description: "Distribution in release",
optional: true),
FastlaneCore::ConfigItem.new(key: :sourcemap,
description: "Path or an array of paths to the sourcemap(s) to upload",
type: Array,
verify_block: proc do |values|
[*values].each do |value|
UI.user_error! "Could not find sourcemap at path '#{value}'" unless File.exist?(value)
end
end),
FastlaneCore::ConfigItem.new(key: :rewrite,
description: "Rewrite the sourcemaps before upload",
default_value: false,
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :strip_prefix,
conflicting_options: [:strip_common_prefix],
description: "Chop-off a prefix from uploaded files. Strips the given prefix from all \
sources references inside the upload sourcemaps (paths used within the sourcemap \
content, to map minified code to it's original source). Only sources that start \
with the given prefix will be stripped. This will not modify the uploaded sources \
paths",
optional: true),
FastlaneCore::ConfigItem.new(key: :strip_common_prefix,
conflicting_options: [:strip_prefix],
description: "Automatically guess what the common prefix is and chop that one off",
default_value: false,
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :url_prefix,
description: "Sets a URL prefix in front of all files",
optional: true),
FastlaneCore::ConfigItem.new(key: :url_suffix,
description: "Sets a URL suffix to append to all filenames",
optional: true),
FastlaneCore::ConfigItem.new(key: :note,
description: "Adds an optional note to the uploaded artifact bundle",
optional: true),
FastlaneCore::ConfigItem.new(key: :validate,
description: "Enable basic sourcemap validation",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :decompress,
description: "Enable files gzip decompression prior to upload",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :wait,
description: "Wait for the server to fully process uploaded files",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :wait_for,
description: "Wait for the server to fully process uploaded files, but at most \
for the given number of seconds",
type: Integer,
optional: true),
FastlaneCore::ConfigItem.new(key: :no_sourcemap_reference,
description: "Disable emitting of automatic sourcemap references. By default the \
tool will store a 'Sourcemap' header with minified files so that sourcemaps \
are located automatically if the tool can detect a link. If this causes issues \
it can be disabled",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :debug_id_reference,
description: "Enable emitting of automatic debug id references. By default Debug ID \
reference has to be present both in the source and the related sourcemap. But in \
cases of binary bundles, the tool can't verify presence of the Debug ID. This flag \
allows use of Debug ID from the linked sourcemap",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :bundle,
description: "Path to the application bundle (indexed, file, or regular)",
optional: true),
FastlaneCore::ConfigItem.new(key: :bundle_sourcemap,
description: "Path to the bundle sourcemap",
optional: true),
FastlaneCore::ConfigItem.new(key: :ext,
description: "Set the file extensions that are considered for upload. This overrides \
the default extensions. To add an extension, all default extensions must be repeated. \
Specify once per extension. Defaults to: js, cjs, mjs, map, jsbundle, bundle",
type: Array,
optional: true),
FastlaneCore::ConfigItem.new(key: :strict,
description: "Fail with a non-zero exit code if the specified source map file cannot be uploaded",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :ignore,
description: "Ignores all files and folders matching the given glob or array of globs",
is_string: false,
optional: true),
FastlaneCore::ConfigItem.new(key: :ignore_file,
description: "Ignore all files and folders specified in the given ignore file, e.g. .gitignore",
optional: true)
]
end
|