fastlane-plugin-dynatrace 0.1.5 → 0.1.7

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
2
  SHA256:
3
- metadata.gz: db0adc22d10e8104c2ec6776dc2315936943ee06f91810735185b570792ee9a8
4
- data.tar.gz: a85ed623888c6bc6b3e805783d7b449a308aea8f60e61a986244076ad006060a
3
+ metadata.gz: b49a3f45e6625a4c48847a6759dc5010c3432cc408e65ae1cae111c082494cef
4
+ data.tar.gz: 1c2cae60282c8a418269b28b7b2186d5fac753f98d4b694ea35e835fd8b84e3e
5
5
  SHA512:
6
- metadata.gz: f9f797b1415f7a9e534581f97f7425c0a5341f9c4c290efef0254fb6d5e4daac16ab07fab14cdfe4aa572c950cb1fe3cfbe2b362859e55cf21ee7adc1b921e75
7
- data.tar.gz: 911f7bf2bcef8ecdacec9ffd73250ae382bd0c9fd0297694cc16821183aadc0b0e1244e037fb4c0be998725067a6d9f65f87386ce26db6befcbd930a604d027b
6
+ metadata.gz: 6cfc4dc0ca440502a86514fe059fd5050fb9376a8d7a1f560402b297589a74bd54b2c7a19366d84cdbe894eed126844d02ee470028b20ac1385bccdbbd632266
7
+ data.tar.gz: a198f27fdaeeee690b481e2779787fdfce0b37916a5d12956bd9727961e065852ea6fd825265fcddc94bc1ff197f4108398b223522d542868cf344b1f09e5981
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # dynatrace plugin
1
+ # Dynatrace Fastlane plugin
2
2
 
3
3
  [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-dynatrace)
4
4
 
@@ -34,7 +34,9 @@ If your app is bitcode enabled, then the dSYMs that are generated during the Xco
34
34
 
35
35
  ### Important
36
36
 
37
- There is a time gap between the application being uploaded to AppStore Connect and the dSYM files to be ready. So **_you have to introduce some "sleep" or "wait" time in your CI to accomodate for this._** Unfortunately, Apple does not specify how long this time is. But the recommended minimum is 300 seconds (5 minutes).
37
+ There is a time gap between the application being uploaded to AppStore Connect and the dSYM files to be ready. So **_you have to introduce some "wait" time in your CI to accomodate for this._** Unfortunately, Apple does not specify how long this time is. But the minimum is 600 seconds (10 minutes). However, we recommend 1800 seconds (30 mins) as this ensures the symbols are ready for download. You can however increase this timeout if needed.
38
+
39
+ > Notice that this timeout is only the maximum waiting time. If the symbol files are processed and are ready sooner, it will execute sooner and will not wait for the whole duration of the timeout.
38
40
 
39
41
  ### Automatically downloading dSYMs and using AppFile for authentication
40
42
 
@@ -48,20 +50,39 @@ apple_id("user@email.com") # Your Apple email address
48
50
  #### Fastfile
49
51
 
50
52
  ```ruby
51
- dynatrace_process_symbols(
52
- downloadDsyms: true,
53
- dtxDssClientPath:"<path>/DTXDssClient",
54
- appId: "your DT appID",
55
- apitoken: "your DT API token",
56
- os: "<ios> or <android>",
57
- bundleName: "MyApp",
58
- versionStr: "1.0",
59
- version: "1",
60
- server: "<your dynatrace environment URL>",
61
- debugMode: true)
53
+
54
+ lane :downloadAndProcessBitcodeSymbols do
55
+
56
+ # Define variables
57
+ version = <the version on AppStoreConnect (CFBundleShortVersionString)>
58
+ build = <your uploaded build number (CFBundleVersion)>
59
+ symbols_wait_timeout = 1800
60
+
61
+ # Get Bitcode dsyms from AppStoreConnect and store locally
62
+ download_dsyms(
63
+ wait_for_dsym_processing: true,
64
+ wait_timeout: symbols_wait_timeout,
65
+ app_identifier: "<your application bundle id (CFBundleIdentifier)>",
66
+ version: version,
67
+ build_number: build
68
+ )
69
+
70
+ #Pass the dsyms to Dynatrace for processing
71
+ dynatrace_process_symbols(
72
+ symbolsfile: lane_context[SharedValues::DSYM_PATHS][0],
73
+ dtxDssClientPath:"<path>/DTXDssClient",
74
+ appId: "<your Dynatrace application ID>",
75
+ apitoken: "<your Dynatrace API token>",
76
+ os: "ios",
77
+ versionStr: build,
78
+ version: version,
79
+ server: "<your dynatrace environment URL>",
80
+ )
81
+ end
62
82
 
63
83
  ```
64
84
 
85
+
65
86
  ## If you are NOT using Bitcode, or if you have already downloaded your new symbols from AppStore Connect manually.
66
87
 
67
88
  ### Supply all parameters locally
@@ -86,7 +107,6 @@ dynatrace_process_symbols(
86
107
 
87
108
  | Key | Description | default value |
88
109
  |------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------|
89
- | downloadDsyms | Boolean variable that enables downloading the dSYMs from AppStore Connect (iOS only) | false |
90
110
  | username | The username or the AppleID to use to download the dSYMs. You can also store this in your AppFile as "apple_id and it will be automatically retrieved." | |
91
111
  | dtxDssClientPath | The full path to your DTXDssClient. For example, it could be `./ios/agent/DTXDssClient` | `./DTXDssClient` |
92
112
  | action | The action to perform. upload/decode | `upload` |
@@ -14,12 +14,13 @@ module Fastlane
14
14
  UI.message "Version: #{params[:version]}"
15
15
  UI.message "Server URL: #{params[:server]}"
16
16
 
17
- UI.message("Checking AppFile for possible AppID")
17
+ UI.message "Checking AppFile for possible AppID"
18
18
  bundleId = CredentialsManager::AppfileConfig.try_fetch_value(:app_identifier)
19
- UI.message("Using #{bundleId} from your AppFile")
20
-
21
- if !(bundleId)
22
- UI.message "BundleID: #{params[:bundleId]}"
19
+ if (bundleId)
20
+ UI.message "Using #{bundleId} from your AppFile"
21
+ else
22
+ bundleId = params[:bundleId]
23
+ UI.message "BundleID: #{bundleId}"
23
24
  end
24
25
 
25
26
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module Dynatrace
3
- VERSION = "0.1.5"
3
+ VERSION = "0.1.7"
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: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
- - Mohamed Nassar
7
+ - Dynatrace LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-04 00:00:00.000000000 Z
11
+ date: 2020-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -137,7 +137,7 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: 2.142.0
139
139
  description:
140
- email: mohamed.nassar@dynatrace.com
140
+ email: mobile.agent@dynatrace.com
141
141
  executables: []
142
142
  extensions: []
143
143
  extra_rdoc_files: []
@@ -167,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
- rubygems_version: 3.0.1
170
+ rubygems_version: 3.1.3
171
171
  signing_key:
172
172
  specification_version: 4
173
173
  summary: This action processes and uploads your symbol files to Dynatrace