fastlane-plugin-sentry 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 943f62c00416b3aade1f829755a018fe6930e29f
4
- data.tar.gz: 9a03647bcb4d7bbd4eeaff13d3ba2b8839ad2175
2
+ SHA256:
3
+ metadata.gz: b3d2ba266ef763533fbb5f24ae84132303539fa3e2eb17e764890dafc72eaed2
4
+ data.tar.gz: 4196d95ad6ddabe9e9cf29a56987b2fbdd81c8c7b277f98d0538c4c60916b44b
5
5
  SHA512:
6
- metadata.gz: '09d8f06e8519e4d8e4d27206e12f50f2d159d9e61362c97e6005e35600851d66247fc07a542f9afa046f7c1f777a075c88d6f666936e6d64b63844e17a9bd4c2'
7
- data.tar.gz: b6de262c2d24c005d922fde175d5586402e33b8cccc3a054b6eaf6fa2501c2999e6e49fbbb84802e37d03a24c227066f28727c6616e70ce410d0e42b51e4d631
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://github.com/fastlane/fastlane/blob/master/fastlane/docs/Plugins.md) in the main `fastlane` repo.
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
- skip_params_check = false
45
- if !has_org || !has_project || !has_auth_token
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 !skip_params_check
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
- ENV['SENTRY_URL'] = url unless url.to_s.empty?
61
- ENV['SENTRY_LOG_LEVEL'] = 'INFO' if FastlaneCore::Globals.verbose?
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.fallback_sentry_cli
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
@@ -1,6 +1,6 @@
1
1
  module Fastlane
2
2
  module Sentry
3
- VERSION = "1.6.0"
4
- CLI_VERSION = "1.48.0"
3
+ VERSION = "1.7.0"
4
+ CLI_VERSION = "1.58.0"
5
5
  end
6
6
  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.6.0
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: 2019-10-10 00:00:00.000000000 Z
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
- rubyforge_project:
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