fastlane-plugin-dynatrace 1.0.0 → 1.0.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d33abfce5cb589461d864dbb9dd94561b35d4c70079456144c2b15a71b23493
|
4
|
+
data.tar.gz: 41e48c8dc20f1258efd8ec0e0fa24768eba1b2ab344c103ec85abc4192c4f151
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 335db4d66fedc928e82ed2aa3e1394ef0c6cea0010cd8d601417bbf4b55980e6ba654c9392edfd67aca67d67eceb98d09cc6092212af8ecf79e6039f904f0a0c
|
7
|
+
data.tar.gz: c4f8d63463b4edf3c5c50724784372f403d2d2ea35d7da7f3af4278631d0010a14a904bec8a0ceefcbdd4ddf41e1bf709557ca902a3f1e3cb4fa03070610719a
|
data/README.md
CHANGED
@@ -89,6 +89,21 @@ dynatrace_process_symbols(
|
|
89
89
|
| server | The API endpoint for the Dynatrace environment (e.g. `https://environmentID.live.dynatrace.com` or `https://dynatrace-managed.com/e/environmentID`). | |
|
90
90
|
| debugMode | Enable debug logging. | false |
|
91
91
|
|
92
|
+
## AppStore Connect Two-Factor-Authentication
|
93
|
+
When the plugin is used to download symbols from *AppStore Connect* automatically (`downloadDsyms: true`) valid login credentials to an account with permissions to access the dSYM files are required. The preferred method of doing so is by setting the `FASTLANE_USER` and `FASTLANE_PASSWORD` environment variables to their respective values.
|
94
|
+
|
95
|
+
[Apple announced](https://github.com/fastlane/fastlane/discussions/17655) that 2-Factor-Authentication for the *AppStore Connect* API will be enforced starting February 2021. This limits the ability to automate the symbol processing, because it will most likely involve manual interaction, which is not suitable for CI automation. The only workaround at this point in time is to pre-generate a session and cache it in CI.
|
96
|
+
|
97
|
+
### Fastlane Session
|
98
|
+
The full documentation for this can be found on the [fastlane docs](https://docs.fastlane.tools/best-practices/continuous-integration/#two-step-or-two-factor-auth
|
99
|
+
) under **spaceauth**.
|
100
|
+
|
101
|
+
You can generate a session by running `fastlane spaceauth -u user@email.com` on your machine and copy the output into an environment variable `FASTLANE_SESSION` on the target system (e.g. CI).
|
102
|
+
|
103
|
+
###NOTE
|
104
|
+
- Session is only valid in the "region" you create it. If you CI is in a different geographical location the authentication might fail.
|
105
|
+
|
106
|
+
- Generated sessions are valid up to one month. Apple's API doesn't specify details about that, so it will only be visible by a failing build.
|
92
107
|
|
93
108
|
## Example
|
94
109
|
Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
|
@@ -26,15 +26,6 @@ module Fastlane
|
|
26
26
|
UI.message "BundleID: #{bundleId}"
|
27
27
|
end
|
28
28
|
|
29
|
-
UI.message "Checking AppFile for possible username/AppleID"
|
30
|
-
username = CredentialsManager::AppfileConfig.try_fetch_value(:apple_id)
|
31
|
-
if username
|
32
|
-
UI.message "Using #{username} from your AppFile"
|
33
|
-
else
|
34
|
-
username = params[:username]
|
35
|
-
UI.message "Didn't find a username in AppFile, using passed username parameter: #{params[:username]}"
|
36
|
-
end
|
37
|
-
|
38
29
|
dtxDssClientPath = Helper::DynatraceHelper.get_dss_client(params)
|
39
30
|
|
40
31
|
dsym_paths = []
|
@@ -45,6 +36,15 @@ module Fastlane
|
|
45
36
|
UI.message "Downloading dSYMs from App Store Connect"
|
46
37
|
startTime = Time.now
|
47
38
|
|
39
|
+
UI.message "Checking AppFile for possible username/AppleID"
|
40
|
+
username = CredentialsManager::AppfileConfig.try_fetch_value(:apple_id)
|
41
|
+
if username
|
42
|
+
UI.message "Using #{username} from your AppFile"
|
43
|
+
else
|
44
|
+
username = params[:username]
|
45
|
+
UI.message "Didn't find a username in AppFile, using passed username parameter: #{params[:username]}"
|
46
|
+
end
|
47
|
+
|
48
48
|
# it takes a couple of minutes until the new build is available through the API
|
49
49
|
# -> retry until available
|
50
50
|
while params[:waitForDsymProcessing] and # wait is active
|
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: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dynatrace LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -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.
|
170
|
+
rubygems_version: 3.2.3
|
171
171
|
signing_key:
|
172
172
|
specification_version: 4
|
173
173
|
summary: This action processes and uploads your symbol files to Dynatrace
|