fastlane-plugin-sentry 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane/plugin/sentry/actions/sentry_create_release.rb +1 -3
- data/lib/fastlane/plugin/sentry/actions/sentry_finalize_release.rb +10 -2
- data/lib/fastlane/plugin/sentry/actions/sentry_upload_file.rb +4 -5
- data/lib/fastlane/plugin/sentry/actions/sentry_upload_sourcemap.rb +2 -2
- data/lib/fastlane/plugin/sentry/helper/sentry_helper.rb +2 -1
- data/lib/fastlane/plugin/sentry/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af49c66cfc8efdf4ae25c334f362f76c4596d34a
|
4
|
+
data.tar.gz: 3ac7e68fbf6e51ee1db654205fad6712dbd17cf4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a83d0ebca78f478f2d835a060f0eb4fcd4a04dcc4a70b21dc921fa3ba464eb24679310474778ddf3a9db293d40d85da5af263051acf208ba1334f715ab24135b
|
7
|
+
data.tar.gz: c5450415b2c29193b7a5a63f61d52501e581e1653dbf53733f6dc096aae8e91df7b68de1dae5aa770f183569d7df75cdbc8421180d91b2f2845bfb7bd7a4f722
|
@@ -10,13 +10,11 @@ module Fastlane
|
|
10
10
|
version = params[:version]
|
11
11
|
version = "#{params[:app_identifier]}-#{params[:version]}" if params[:app_identifier]
|
12
12
|
|
13
|
-
#finalize_arg = params[:finalize] ? '--finalize'
|
14
|
-
|
15
13
|
command = [
|
16
14
|
"sentry-cli",
|
17
15
|
"releases",
|
18
16
|
"new",
|
19
|
-
|
17
|
+
version
|
20
18
|
]
|
21
19
|
command.push("--finalize") if params[:finalize].nil?
|
22
20
|
|
@@ -8,12 +8,13 @@ module Fastlane
|
|
8
8
|
Helper::SentryConfig.parse_api_params(params)
|
9
9
|
|
10
10
|
version = params[:version]
|
11
|
+
version = "#{params[:app_identifier]}-#{params[:version]}" if params[:app_identifier]
|
11
12
|
|
12
13
|
command = [
|
13
14
|
"sentry-cli",
|
14
15
|
"releases",
|
15
16
|
"finalize",
|
16
|
-
|
17
|
+
version
|
17
18
|
]
|
18
19
|
|
19
20
|
Helper::SentryHelper.call_sentry_cli(command)
|
@@ -38,7 +39,14 @@ module Fastlane
|
|
38
39
|
def self.available_options
|
39
40
|
Helper::SentryConfig.common_api_config_items + [
|
40
41
|
FastlaneCore::ConfigItem.new(key: :version,
|
41
|
-
description: "Release version to finalize on Sentry")
|
42
|
+
description: "Release version to finalize on Sentry"),
|
43
|
+
FastlaneCore::ConfigItem.new(key: :app_identifier,
|
44
|
+
short_option: "-a",
|
45
|
+
env_name: "SENTRY_APP_IDENTIFIER",
|
46
|
+
description: "App Bundle Identifier",
|
47
|
+
optional: true,
|
48
|
+
default_value: CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier))
|
49
|
+
|
42
50
|
]
|
43
51
|
end
|
44
52
|
|
@@ -7,21 +7,21 @@ module Fastlane
|
|
7
7
|
Helper::SentryHelper.check_sentry_cli!
|
8
8
|
Helper::SentryConfig.parse_api_params(params)
|
9
9
|
|
10
|
-
version = params[:version]
|
11
10
|
file = params[:file]
|
12
11
|
|
12
|
+
version = params[:version]
|
13
13
|
version = "#{params[:app_identifier]}-#{params[:version]}" if params[:app_identifier]
|
14
14
|
|
15
15
|
command = [
|
16
16
|
"sentry-cli",
|
17
17
|
"releases",
|
18
18
|
"files",
|
19
|
-
|
19
|
+
version,
|
20
20
|
"upload",
|
21
21
|
file
|
22
22
|
]
|
23
|
-
command.push(params[:file_url])
|
24
|
-
command.push("--dist").push(params[:dist])
|
23
|
+
command.push(params[:file_url]) unless params[:file_url].nil?
|
24
|
+
command.push("--dist").push(params[:dist]) unless params[:dist].nil?
|
25
25
|
|
26
26
|
Helper::SentryHelper.call_sentry_cli(command)
|
27
27
|
UI.success("Successfully uploaded files to release: #{version}")
|
@@ -56,7 +56,6 @@ module Fastlane
|
|
56
56
|
FastlaneCore::ConfigItem.new(key: :file_url,
|
57
57
|
description: "Optional URL we should associate with the file",
|
58
58
|
optional: true),
|
59
|
-
|
60
59
|
FastlaneCore::ConfigItem.new(key: :app_identifier,
|
61
60
|
short_option: "-a",
|
62
61
|
env_name: "SENTRY_APP_IDENTIFIER",
|
@@ -24,8 +24,8 @@ module Fastlane
|
|
24
24
|
command.push('--rewrite') if params[:rewrite]
|
25
25
|
command.push('--strip-prefix') if params[:strip_prefix]
|
26
26
|
command.push('--strip-common-prefix') if params[:strip_common_prefix]
|
27
|
-
command.push('--url-prefix').push(params[:url_prefix])
|
28
|
-
command.push('--dist').push(params[:dist])
|
27
|
+
command.push('--url-prefix').push(params[:url_prefix]) unless params[:url_prefix].nil?
|
28
|
+
command.push('--dist').push(params[:dist]) unless params[:dist].nil?
|
29
29
|
|
30
30
|
Helper::SentryHelper.call_sentry_cli(command)
|
31
31
|
UI.success("Successfully uploaded files to release: #{version}")
|
@@ -31,7 +31,8 @@ module Fastlane
|
|
31
31
|
UI.command(command.to_s)
|
32
32
|
UI.verbose("\n\n")
|
33
33
|
end
|
34
|
-
|
34
|
+
final_command = command.map { |arg| Shellwords.escape(arg) }.join(" ")
|
35
|
+
Open3.popen3(final_command) do |stdin, stdout, stderr, wait_thr|
|
35
36
|
while (line = stderr.gets)
|
36
37
|
error << line.strip!
|
37
38
|
end
|