fastlane-plugin-dynatrace 2.0.1 → 2.0.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: 58ed6912adbea0ca9a55066716a2aa6dbc22affdac8ad25c4bc93fc0da852682
4
- data.tar.gz: 3b0b6706d78c1243b2454b432532823a0043e6405aff4501ec15e16bc400d054
3
+ metadata.gz: 4c4a6f8d1227ec74720d2e742f0d223851e5289b2b90bd3014c4e786e684ed1a
4
+ data.tar.gz: a03496e08564907a0598c68e35ae4a91374b9430a10c7d3b52ff9341eef26342
5
5
  SHA512:
6
- metadata.gz: 147aa55c0aef9dc4632fbe355a2a7ed38c864e3830e3e69be6627b0c9a21221f17504dfc7ed31b3734a33f5f75de3b0e358befadfe4acceee09c13fcbcf48c20
7
- data.tar.gz: 7a683def56df76f503569f417a9691c1042642c3c0a6d588227d7d31379aba11f16f1876f5860dbb3c84a2cea6816aad6dd44544c79dbac022116ef7f793be95
6
+ metadata.gz: 8b1a244982e3dbb67b333e45cc61f26d48c5caedae2f1b75bb46d1340e3163216891fda2bc1416e8f530af074604876dda906df1c3194e9718d3121ea50416f0
7
+ data.tar.gz: efdbe03451df9edf0bab421ba3066c1d86bdceb777420a0ff9e450b3807847ad56a9ef1de8ab1b255079b232b337d20acf17eacd5fcdf6d784b3053d99e7f610
@@ -32,28 +32,25 @@ module Fastlane
32
32
  if params[:os] == "android"
33
33
  symbols_path = Helper::DynatraceHelper.zip_if_required(params)
34
34
  response, request = Helper::DynatraceHelper.put_android_symbols(params, bundleId, symbols_path)
35
- case response.code
36
- when '204'
37
- UI.success "Success. The file has been uploaded and stored."
38
- when '400'
39
- UI.user_error! "Failed. The input is invalid."
40
- when '401'
41
- UI.user_error! "Invalid Dynatrace API token. See https://www.dynatrace.com/support/help/dynatrace-api/basics/dynatrace-api-authentication/#token-permissions and https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/mobile-symbolication-api/"
42
- when '413'
43
- UI.user_error! "Failed. The symbol file storage quota is exhausted. See https://www.dynatrace.com/support/help/shortlink/mobile-symbolication#manage-the-uploaded-symbol-files for more information."
44
- else
35
+
36
+ # https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/mobile-symbolication-api/put-files-app-version
37
+ if response.code == '204'
38
+ UI.success "API response: Success."
39
+ else
45
40
  message = nil
46
41
  unless response.body.nil?
47
42
  message = JSON.parse(response.body)["error"]["message"]
48
43
  end
49
44
  if message.nil?
50
- UI.user_error! "Symbol upload error (Response Code: #{response.code}). Please try again in a few minutes or contact the Dynatrace support (https://www.dynatrace.com/services-support/)."
45
+ UI.user_error! "API response: #{response.code}. Please try again in a few minutes or contact the Dynatrace support (https://www.dynatrace.com/services-support/)."
51
46
  else
52
- UI.user_error! "Symbol upload error (Response Code: #{response.code}). #{message}"
47
+ UI.user_error! "API response: #{message} (Response code: #{response.code})"
53
48
  end
54
49
  end
55
50
  return
56
- elsif params[:os] != "ios" && params[:os] != "tvos"
51
+ end
52
+
53
+ if params[:os] != "ios" && params[:os] != "tvos"
57
54
  UI.user_error! "Unsopported value os=#{params[:os]}"
58
55
  end
59
56
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Dynatrace
3
- VERSION = "2.0.1"
3
+ VERSION = "2.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-dynatrace
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dynatrace LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-15 00:00:00.000000000 Z
11
+ date: 2023-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -265,7 +265,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
265
265
  - !ruby/object:Gem::Version
266
266
  version: '0'
267
267
  requirements: []
268
- rubygems_version: 3.3.11
268
+ rubygems_version: 3.4.10
269
269
  signing_key:
270
270
  specification_version: 4
271
271
  summary: This action processes and uploads your symbol files to Dynatrace