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: 7dc1807dfc7b759b257aa6b6725b889cc5ec0fb6d26d8a4fc30f7e6bb01eaff9
4
- data.tar.gz: '0418cd456753adee380bcdde4811fa68f5b3389e404d69355bdf2e53c15150b9'
3
+ metadata.gz: 4a6bca22cd83ff7948d1a4b2e74de07fd9eec1baec4befcf4dba12e7e0e63fa7
4
+ data.tar.gz: cce8b9e5fdfdd5af14f21efea1cbc782549c09050d9051b9a62c4291e1c268bb
5
5
  SHA512:
6
- metadata.gz: '09b71e57883fa5fb63eef6dcd0296f373515c2f353fcd20bb3b7a7becef6822cb7ee2293be65a6a634f102b0c9395d562f523436c6eb2a81b572fecf2c0461a6'
7
- data.tar.gz: a1699564e8c5a5401d672b29b6b20e429a5fbb46ffb6872ab9547c120f5ed83027d9f857c6457b206f384cb4c36c562d80998d48eb5b5f5a2f3f63abc1f8b53c
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 = Gem::Version.new(`#{bundled_sentry_cli_path} --version`.scan(/(?:\d+\.?){3}/).first)
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 = Gem::Version.new(`#{sentry_cli_path} --version`.scan(/(?:\d+\.?){3}/).first)
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')
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Sentry
3
- VERSION = "2.8.1"
3
+ VERSION = "2.8.2"
4
4
  end
5
5
  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: 2.8.1
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-10-28 00:00:00.000000000 Z
11
+ date: 2026-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: os