fastlane-plugin-sentry 1.6.0 → 1.7.0
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 +5 -5
- data/README.md +2 -2
- data/lib/fastlane/plugin/sentry/helper/sentry_config.rb +12 -12
- data/lib/fastlane/plugin/sentry/version.rb +2 -2
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: b3d2ba266ef763533fbb5f24ae84132303539fa3e2eb17e764890dafc72eaed2
|
|
4
|
+
data.tar.gz: 4196d95ad6ddabe9e9cf29a56987b2fbdd81c8c7b277f98d0538c4c60916b44b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f39b7a290a091f9337b95ae9010fa28bedd2088659a2d204c81b54a0f1f8e68e100f4be52a8bb27f29ac36fb2dc543162f6107b91fb3d720a1419ad279bc2f1
|
|
7
|
+
data.tar.gz: 853e766892bdacc0b174cbf39a0f5f018a2a79deeaa9cc95c0aa0b88fd20345cf379ccccf776662bb0dcc9c196c17c8abae4caaf9f77e52200b9595659fb4c75
|
data/README.md
CHANGED
|
@@ -38,7 +38,7 @@ sentry_upload_dsym(
|
|
|
38
38
|
auth_token: '...', # Do not use if using api_key
|
|
39
39
|
org_slug: '...',
|
|
40
40
|
project_slug: '...',
|
|
41
|
-
symbol_maps: 'path to bcsymbols folder' # use this if you have a bcsymbols folder
|
|
41
|
+
symbol_maps: 'path to bcsymbols folder', # use this if you have a bcsymbols folder
|
|
42
42
|
dsym_path: './App.dSYM.zip',
|
|
43
43
|
info_plist: '...' # optional, sentry-cli tries to find the correct plist by itself
|
|
44
44
|
)
|
|
@@ -128,7 +128,7 @@ For some more detailed help with plugins problems, check out the [Plugins Troubl
|
|
|
128
128
|
|
|
129
129
|
## Using `fastlane` Plugins
|
|
130
130
|
|
|
131
|
-
For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://
|
|
131
|
+
For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/) in the main `fastlane` repo.
|
|
132
132
|
|
|
133
133
|
## About `fastlane`
|
|
134
134
|
|
|
@@ -41,12 +41,13 @@ module Fastlane
|
|
|
41
41
|
has_api_key = !api_key.to_s.empty?
|
|
42
42
|
has_auth_token = !auth_token.to_s.empty?
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
skip_params_check = fallback_sentry_cli
|
|
47
|
-
end
|
|
44
|
+
ENV['SENTRY_URL'] = url unless url.to_s.empty?
|
|
45
|
+
ENV['SENTRY_LOG_LEVEL'] = 'INFO' if FastlaneCore::Globals.verbose?
|
|
48
46
|
|
|
49
|
-
if
|
|
47
|
+
# Fallback to .sentryclirc if possible when no auth token is provided
|
|
48
|
+
if !has_api_key && !has_auth_token && fallback_sentry_cli_auth
|
|
49
|
+
UI.important("No auth config provided, will fallback to .sentryclirc")
|
|
50
|
+
else
|
|
50
51
|
# Will fail if none or both authentication methods are provided
|
|
51
52
|
if !has_api_key && !has_auth_token
|
|
52
53
|
UI.user_error!("No API key or authentication token found for SentryAction given, pass using `api_key: 'key'` or `auth_token: 'token'`")
|
|
@@ -57,21 +58,20 @@ module Fastlane
|
|
|
57
58
|
end
|
|
58
59
|
ENV['SENTRY_API_KEY'] = api_key unless api_key.to_s.empty?
|
|
59
60
|
ENV['SENTRY_AUTH_TOKEN'] = auth_token unless auth_token.to_s.empty?
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
if has_org && has_project
|
|
62
64
|
ENV['SENTRY_ORG'] = Shellwords.escape(org) unless org.to_s.empty?
|
|
63
65
|
ENV['SENTRY_PROJECT'] = Shellwords.escape(project) unless project.to_s.empty?
|
|
64
66
|
else
|
|
65
|
-
UI.important("No config provided, will fallback to .sentryclirc")
|
|
67
|
+
UI.important("No org/project config provided, will fallback to .sentryclirc")
|
|
66
68
|
end
|
|
67
69
|
end
|
|
68
70
|
|
|
69
|
-
def self.
|
|
71
|
+
def self.fallback_sentry_cli_auth
|
|
70
72
|
sentry_cli_result = JSON.parse(`sentry-cli info --config-status-json`)
|
|
71
73
|
return (sentry_cli_result["auth"]["successful"] &&
|
|
72
|
-
!sentry_cli_result["auth"]["type"].nil?
|
|
73
|
-
!sentry_cli_result["config"]["org"].nil? &&
|
|
74
|
-
!sentry_cli_result["config"]["project"].nil?)
|
|
74
|
+
!sentry_cli_result["auth"]["type"].nil?)
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
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.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sentry
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pry
|
|
@@ -118,8 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
118
118
|
- !ruby/object:Gem::Version
|
|
119
119
|
version: '0'
|
|
120
120
|
requirements: []
|
|
121
|
-
|
|
122
|
-
rubygems_version: 2.5.2.3
|
|
121
|
+
rubygems_version: 3.0.3
|
|
123
122
|
signing_key:
|
|
124
123
|
specification_version: 4
|
|
125
124
|
summary: Upload symbols to Sentry
|