fastlane-plugin-sentry 2.8.1 → 2.8.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a6bca22cd83ff7948d1a4b2e74de07fd9eec1baec4befcf4dba12e7e0e63fa7
|
|
4
|
+
data.tar.gz: cce8b9e5fdfdd5af14f21efea1cbc782549c09050d9051b9a62c4291e1c268bb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 54ea824a1e667acf2e360240903c31a4908c2fa63da2280ac8538575ce784ec612725012de64efb62c242625e67561ceb3f08ef3c2b97e11dabbe6c8411c09e0
|
|
7
|
+
data.tar.gz: 8a806f98bb93984bd2f71f4c6f0d7f42228824c4de11e9fdebb1280cdfcb9ad89ca1a3a07385abff5df9c574216dff407d7b2dfec990b667d63b9dd3590a27f8
|
|
@@ -5,11 +5,11 @@ module Fastlane
|
|
|
5
5
|
class SentryHelper
|
|
6
6
|
def self.find_and_check_sentry_cli_path!(params)
|
|
7
7
|
bundled_sentry_cli_path = self.bundled_sentry_cli_path
|
|
8
|
-
bundled_sentry_cli_version =
|
|
8
|
+
bundled_sentry_cli_version = self.sentry_cli_version(bundled_sentry_cli_path)
|
|
9
9
|
|
|
10
10
|
sentry_cli_path = params[:sentry_cli_path] || bundled_sentry_cli_path
|
|
11
11
|
|
|
12
|
-
sentry_cli_version =
|
|
12
|
+
sentry_cli_version = self.sentry_cli_version(sentry_cli_path)
|
|
13
13
|
|
|
14
14
|
if sentry_cli_version < bundled_sentry_cli_version
|
|
15
15
|
UI.user_error!("Your sentry-cli is outdated, please upgrade to at least version #{bundled_sentry_cli_version} and start your lane again!")
|
|
@@ -21,7 +21,7 @@ module Fastlane
|
|
|
21
21
|
|
|
22
22
|
def self.call_sentry_cli(params, sub_command)
|
|
23
23
|
sentry_path = self.find_and_check_sentry_cli_path!(params)
|
|
24
|
-
command = [sentry_path] + sub_command
|
|
24
|
+
command = [sentry_path] + self.wait_for_args(sentry_path, sub_command)
|
|
25
25
|
UI.message "Starting sentry-cli..."
|
|
26
26
|
require 'open3'
|
|
27
27
|
|
|
@@ -60,6 +60,29 @@ module Fastlane
|
|
|
60
60
|
end
|
|
61
61
|
end
|
|
62
62
|
|
|
63
|
+
def self.sentry_cli_version(sentry_cli_path)
|
|
64
|
+
Gem::Version.new(`#{sentry_cli_path} --version`.scan(/(?:\d+\.?){3}/).first)
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# sentry-cli v4 replaces `--wait-for <seconds>` with `--wait=<seconds>`, and v3 rejects `--wait=<seconds>`.
|
|
68
|
+
# v4's `--wait=0` waits with no limit, so a zero limit drops the flag instead. v4's `sourcemaps upload`
|
|
69
|
+
# waits by default in CI, so it gets `--no-wait`.
|
|
70
|
+
def self.wait_for_args(sentry_cli_path, sub_command)
|
|
71
|
+
index = sub_command.index('--wait-for')
|
|
72
|
+
return sub_command if index.nil? || self.sentry_cli_version(sentry_cli_path) < Gem::Version.new('4')
|
|
73
|
+
|
|
74
|
+
args = sub_command.dup
|
|
75
|
+
seconds = args[index + 1]
|
|
76
|
+
args[index, 2] = if !seconds.to_i.zero?
|
|
77
|
+
"--wait=#{seconds}"
|
|
78
|
+
elsif args.first == 'sourcemaps'
|
|
79
|
+
'--no-wait'
|
|
80
|
+
else
|
|
81
|
+
[]
|
|
82
|
+
end
|
|
83
|
+
args
|
|
84
|
+
end
|
|
85
|
+
|
|
63
86
|
def self.bundled_sentry_cli_path
|
|
64
87
|
if OS.mac?
|
|
65
88
|
self.bin_folder('sentry-cli-Darwin-universal')
|
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: 2.8.
|
|
4
|
+
version: 2.8.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sentry
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-12-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: os
|