@dynatrace/cordova-plugin 2.277.1 → 2.279.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.
- package/README.md +14 -6
- package/files/default.config.js +1 -1
- package/files/iOS/Dynatrace.xcframework/Info.plist +8 -8
- package/files/iOS/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Dynatrace +0 -0
- package/files/iOS/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace.h +1 -1
- package/files/iOS/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Info.plist +0 -0
- package/files/iOS/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/files/iOS/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.abi.json +1 -1
- package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
- package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +1 -1
- package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
- package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json +1 -1
- package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json +1 -1
- package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +15 -15
- package/files/iOS/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Dynatrace +0 -0
- package/files/iOS/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace.h +1 -1
- package/files/iOS/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Info.plist +0 -0
- package/files/iOS/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo +0 -0
- package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
- package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +1 -1
- package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
- package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo +0 -0
- package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo +0 -0
- package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +11 -11
- package/files/plugin.gradle +1 -1
- package/networking/NativeNetworkInterceptorUtils.js +1 -1
- package/package.json +3 -3
- package/plugin.xml +2 -2
- package/scripts/config/ConfigurationReader.js +4 -4
- package/scripts/config/javascript/JavaScriptAgentMode.js +1 -1
- package/scripts/helpers/FileHelper.js +1 -1
- package/scripts/helpers/PathHelper.js +1 -1
- package/scripts/utils/InstrumentUtil.js +5 -4
- package/scripts/utils/PluginUtil.js +9 -1
- package/typings/main.d.ts +4 -4
package/README.md
CHANGED
|
@@ -31,8 +31,8 @@ For information as to why this is necessary, read more [here](#migration-from-ma
|
|
|
31
31
|
|
|
32
32
|
This agent versions are configured in this plugin:
|
|
33
33
|
|
|
34
|
-
* Android Agent: 8.
|
|
35
|
-
* iOS Agent: 8.
|
|
34
|
+
* Android Agent: 8.279.1.1002
|
|
35
|
+
* iOS Agent: 8.279.2.1010
|
|
36
36
|
|
|
37
37
|
## Quick Setup
|
|
38
38
|
|
|
@@ -302,16 +302,16 @@ Basically all needed properties for the JavaScript Agent are predefined by the d
|
|
|
302
302
|
Using a specific mode can allow you during build to insert any of the available JavaScript agent code snippet options that are offered.
|
|
303
303
|
[Click here](https://www.dynatrace.com/support/help/shortlink/rum-injection#manual-insertion) for more details on the options listed below:
|
|
304
304
|
* 0 - `jsInlineScript`
|
|
305
|
-
* 1 - `jsTagComplete`
|
|
306
|
-
* 2 - `syncCS`
|
|
305
|
+
* 1 - `jsTagComplete` (Default)
|
|
306
|
+
* 2 - `syncCS`
|
|
307
307
|
* 3 - `asyncCS`
|
|
308
|
-
* 4 - `jsTag`
|
|
308
|
+
* 4 - `jsTag`
|
|
309
309
|
|
|
310
310
|
```js
|
|
311
311
|
module.exports = {
|
|
312
312
|
js : {
|
|
313
313
|
url : `https://.../jsInlineScript/...`,
|
|
314
|
-
mode:
|
|
314
|
+
mode: 1
|
|
315
315
|
},
|
|
316
316
|
}
|
|
317
317
|
```
|
|
@@ -840,6 +840,14 @@ When using Apple Pay with WKWebView, there are specific checks that WebKit (Appl
|
|
|
840
840
|
|
|
841
841
|
## Changelog
|
|
842
842
|
|
|
843
|
+
2.279.2
|
|
844
|
+
* Sanitizing paths to support relative paths for custom arguments
|
|
845
|
+
* Updated typings
|
|
846
|
+
* Fixed x-dtc issue for native web requests
|
|
847
|
+
* Changed default injection mode from SyncCS to JsTagComplete
|
|
848
|
+
* Fixed issue with path for npx and capacitor
|
|
849
|
+
* Updated Android (8.279.1.1002) & iOS Agent (8.279.2.1010)
|
|
850
|
+
|
|
843
851
|
2.277.1
|
|
844
852
|
* Updated requirements for Cordova 10+
|
|
845
853
|
* Changed plugin id to @dynatrace/cordova-plugin and removed old workarounds used for plugin migration
|
package/files/default.config.js
CHANGED
|
@@ -6,30 +6,30 @@
|
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
8
|
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>ios-
|
|
9
|
+
<string>ios-arm64_x86_64-simulator</string>
|
|
10
10
|
<key>LibraryPath</key>
|
|
11
11
|
<string>Dynatrace.framework</string>
|
|
12
12
|
<key>SupportedArchitectures</key>
|
|
13
13
|
<array>
|
|
14
14
|
<string>arm64</string>
|
|
15
|
+
<string>x86_64</string>
|
|
15
16
|
</array>
|
|
16
17
|
<key>SupportedPlatform</key>
|
|
17
18
|
<string>ios</string>
|
|
19
|
+
<key>SupportedPlatformVariant</key>
|
|
20
|
+
<string>simulator</string>
|
|
18
21
|
</dict>
|
|
19
22
|
<dict>
|
|
20
23
|
<key>LibraryIdentifier</key>
|
|
21
|
-
<string>
|
|
24
|
+
<string>tvos-arm64</string>
|
|
22
25
|
<key>LibraryPath</key>
|
|
23
26
|
<string>Dynatrace.framework</string>
|
|
24
27
|
<key>SupportedArchitectures</key>
|
|
25
28
|
<array>
|
|
26
29
|
<string>arm64</string>
|
|
27
|
-
<string>x86_64</string>
|
|
28
30
|
</array>
|
|
29
31
|
<key>SupportedPlatform</key>
|
|
30
|
-
<string>
|
|
31
|
-
<key>SupportedPlatformVariant</key>
|
|
32
|
-
<string>simulator</string>
|
|
32
|
+
<string>tvos</string>
|
|
33
33
|
</dict>
|
|
34
34
|
<dict>
|
|
35
35
|
<key>LibraryIdentifier</key>
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
</dict>
|
|
49
49
|
<dict>
|
|
50
50
|
<key>LibraryIdentifier</key>
|
|
51
|
-
<string>
|
|
51
|
+
<string>ios-arm64</string>
|
|
52
52
|
<key>LibraryPath</key>
|
|
53
53
|
<string>Dynatrace.framework</string>
|
|
54
54
|
<key>SupportedArchitectures</key>
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
<string>arm64</string>
|
|
57
57
|
</array>
|
|
58
58
|
<key>SupportedPlatform</key>
|
|
59
|
-
<string>
|
|
59
|
+
<string>ios</string>
|
|
60
60
|
</dict>
|
|
61
61
|
</array>
|
|
62
62
|
<key>CFBundlePackageType</key>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -572,7 +572,7 @@
|
|
|
572
572
|
},
|
|
573
573
|
"ConstValues": [
|
|
574
574
|
{
|
|
575
|
-
"filePath": "\/opt\/jenkins\/workspace\/eAgent_ios-agent_release_8.
|
|
575
|
+
"filePath": "\/opt\/jenkins\/workspace\/eAgent_ios-agent_release_8.279.x\/adk\/DynatraceUEM\/Dynatrace\/SwiftUIExtensions.swift",
|
|
576
576
|
"kind": "BooleanLiteral",
|
|
577
577
|
"offset": 1277,
|
|
578
578
|
"length": 4,
|
package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace
CHANGED
|
Binary file
|
package/files/iOS/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Info.plist
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -572,7 +572,7 @@
|
|
|
572
572
|
},
|
|
573
573
|
"ConstValues": [
|
|
574
574
|
{
|
|
575
|
-
"filePath": "\/opt\/jenkins\/workspace\/eAgent_ios-agent_release_8.
|
|
575
|
+
"filePath": "\/opt\/jenkins\/workspace\/eAgent_ios-agent_release_8.279.x\/adk\/DynatraceUEM\/Dynatrace\/SwiftUIExtensions.swift",
|
|
576
576
|
"kind": "BooleanLiteral",
|
|
577
577
|
"offset": 1277,
|
|
578
578
|
"length": 4,
|
|
@@ -572,7 +572,7 @@
|
|
|
572
572
|
},
|
|
573
573
|
"ConstValues": [
|
|
574
574
|
{
|
|
575
|
-
"filePath": "\/opt\/jenkins\/workspace\/eAgent_ios-agent_release_8.
|
|
575
|
+
"filePath": "\/opt\/jenkins\/workspace\/eAgent_ios-agent_release_8.279.x\/adk\/DynatraceUEM\/Dynatrace\/SwiftUIExtensions.swift",
|
|
576
576
|
"kind": "BooleanLiteral",
|
|
577
577
|
"offset": 1277,
|
|
578
578
|
"length": 4,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</data>
|
|
11
11
|
<key>Headers/Dynatrace.h</key>
|
|
12
12
|
<data>
|
|
13
|
-
|
|
13
|
+
LyDTTZfOBXd8VJm7bRbHAGHzwkE=
|
|
14
14
|
</data>
|
|
15
15
|
<key>Headers/DynatraceSwiftUI.h</key>
|
|
16
16
|
<data>
|
|
@@ -22,19 +22,19 @@
|
|
|
22
22
|
</data>
|
|
23
23
|
<key>Info.plist</key>
|
|
24
24
|
<data>
|
|
25
|
-
|
|
25
|
+
ze1fCZUx+oWbKiLbot0+Szev8Yw=
|
|
26
26
|
</data>
|
|
27
27
|
<key>Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
bmCD6f1fBC2zAo9wjrn1uqdedsc=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
|
|
32
32
|
<data>
|
|
33
|
-
+
|
|
33
|
+
ryvIQ8dUrIOd4OCFV8LN+qskkrc=
|
|
34
34
|
</data>
|
|
35
35
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
36
36
|
<data>
|
|
37
|
-
|
|
37
|
+
xv2Ho3pny/r5G2cLYIotrVqBC4o=
|
|
38
38
|
</data>
|
|
39
39
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
40
40
|
<data>
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
</data>
|
|
51
51
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
|
|
52
52
|
<data>
|
|
53
|
-
|
|
53
|
+
McIMSYevb7EMazqlTDW/axnAPck=
|
|
54
54
|
</data>
|
|
55
55
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
56
56
|
<data>
|
|
57
|
-
|
|
57
|
+
xv2Ho3pny/r5G2cLYIotrVqBC4o=
|
|
58
58
|
</data>
|
|
59
59
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
60
60
|
<data>
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
</data>
|
|
71
71
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
|
|
72
72
|
<data>
|
|
73
|
-
|
|
73
|
+
OPbffP0WHjrZAAnHb+NQ8zA0Xfs=
|
|
74
74
|
</data>
|
|
75
75
|
<key>Modules/module.modulemap</key>
|
|
76
76
|
<data>
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
<dict>
|
|
91
91
|
<key>hash2</key>
|
|
92
92
|
<data>
|
|
93
|
-
|
|
93
|
+
+XQRp61fY8oLubG+DgtcqcfmKq75yaU4O7+G37qcB+I=
|
|
94
94
|
</data>
|
|
95
95
|
</dict>
|
|
96
96
|
<key>Headers/DynatraceSwiftUI.h</key>
|
|
@@ -111,21 +111,21 @@
|
|
|
111
111
|
<dict>
|
|
112
112
|
<key>hash2</key>
|
|
113
113
|
<data>
|
|
114
|
-
|
|
114
|
+
Atv0R/3JcuFSWiexr0KWyuthRdfDI9zhquzgnMYKyQc=
|
|
115
115
|
</data>
|
|
116
116
|
</dict>
|
|
117
117
|
<key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
|
|
118
118
|
<dict>
|
|
119
119
|
<key>hash2</key>
|
|
120
120
|
<data>
|
|
121
|
-
|
|
121
|
+
u/ALdmWD9c+nb5EbL9WY+MsKuX4XuaBeNFTHSKZb3qc=
|
|
122
122
|
</data>
|
|
123
123
|
</dict>
|
|
124
124
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
125
125
|
<dict>
|
|
126
126
|
<key>hash2</key>
|
|
127
127
|
<data>
|
|
128
|
-
|
|
128
|
+
H7xvM6xiHnJcWchlKEKnEgZlr9CKS8IeaM8rKwZGo9Y=
|
|
129
129
|
</data>
|
|
130
130
|
</dict>
|
|
131
131
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
@@ -153,14 +153,14 @@
|
|
|
153
153
|
<dict>
|
|
154
154
|
<key>hash2</key>
|
|
155
155
|
<data>
|
|
156
|
-
|
|
156
|
+
1CfxTeEJBsxtg9l0KUEfcULcNMhLlhrlJS/k5C+GufU=
|
|
157
157
|
</data>
|
|
158
158
|
</dict>
|
|
159
159
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
160
160
|
<dict>
|
|
161
161
|
<key>hash2</key>
|
|
162
162
|
<data>
|
|
163
|
-
|
|
163
|
+
H7xvM6xiHnJcWchlKEKnEgZlr9CKS8IeaM8rKwZGo9Y=
|
|
164
164
|
</data>
|
|
165
165
|
</dict>
|
|
166
166
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
<dict>
|
|
189
189
|
<key>hash2</key>
|
|
190
190
|
<data>
|
|
191
|
-
|
|
191
|
+
8nbYuGCzAnNBz33m1LvZJPmHWne8stV6BIcCU1KtMME=
|
|
192
192
|
</data>
|
|
193
193
|
</dict>
|
|
194
194
|
<key>Modules/module.modulemap</key>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace
CHANGED
|
Binary file
|
package/files/iOS/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Info.plist
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</data>
|
|
11
11
|
<key>Headers/Dynatrace.h</key>
|
|
12
12
|
<data>
|
|
13
|
-
|
|
13
|
+
LyDTTZfOBXd8VJm7bRbHAGHzwkE=
|
|
14
14
|
</data>
|
|
15
15
|
<key>Headers/DynatraceSwiftUI.h</key>
|
|
16
16
|
<data>
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
</data>
|
|
23
23
|
<key>Info.plist</key>
|
|
24
24
|
<data>
|
|
25
|
-
|
|
25
|
+
loxO7F4U5bIQ8rJqS4FCMtmWy34=
|
|
26
26
|
</data>
|
|
27
27
|
<key>Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
5+pOoUg6pJD0s1sQpddbeAqZ74c=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo</key>
|
|
32
32
|
<data>
|
|
33
|
-
|
|
33
|
+
QBcepOw7uy7qbVHecYvnkXcKC14=
|
|
34
34
|
</data>
|
|
35
35
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.abi.json</key>
|
|
36
36
|
<data>
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
</data>
|
|
51
51
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftmodule</key>
|
|
52
52
|
<data>
|
|
53
|
-
|
|
53
|
+
PsqR8XNEaAqsS0PnMk2bjiGF4lA=
|
|
54
54
|
</data>
|
|
55
55
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.abi.json</key>
|
|
56
56
|
<data>
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
</data>
|
|
71
71
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftmodule</key>
|
|
72
72
|
<data>
|
|
73
|
-
|
|
73
|
+
RVGYCD9TSNihbSBpFaBJdenY1qI=
|
|
74
74
|
</data>
|
|
75
75
|
<key>Modules/module.modulemap</key>
|
|
76
76
|
<data>
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
<dict>
|
|
91
91
|
<key>hash2</key>
|
|
92
92
|
<data>
|
|
93
|
-
|
|
93
|
+
+XQRp61fY8oLubG+DgtcqcfmKq75yaU4O7+G37qcB+I=
|
|
94
94
|
</data>
|
|
95
95
|
</dict>
|
|
96
96
|
<key>Headers/DynatraceSwiftUI.h</key>
|
|
@@ -111,14 +111,14 @@
|
|
|
111
111
|
<dict>
|
|
112
112
|
<key>hash2</key>
|
|
113
113
|
<data>
|
|
114
|
-
|
|
114
|
+
EwHPNJpH4JmWLwhV+KMpGUJA0rsLPfD/Z5Co+gE2Bd0=
|
|
115
115
|
</data>
|
|
116
116
|
</dict>
|
|
117
117
|
<key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo</key>
|
|
118
118
|
<dict>
|
|
119
119
|
<key>hash2</key>
|
|
120
120
|
<data>
|
|
121
|
-
|
|
121
|
+
mgLzg+gNIFQvZod/eWpMZ2Fhpuq9aWkiDXyBERYEXcE=
|
|
122
122
|
</data>
|
|
123
123
|
</dict>
|
|
124
124
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.abi.json</key>
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
<dict>
|
|
154
154
|
<key>hash2</key>
|
|
155
155
|
<data>
|
|
156
|
-
|
|
156
|
+
7RLSnVnlem6sCnFmVowLLOrpSDT5ROLnxKwwlsVenY0=
|
|
157
157
|
</data>
|
|
158
158
|
</dict>
|
|
159
159
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.abi.json</key>
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
<dict>
|
|
189
189
|
<key>hash2</key>
|
|
190
190
|
<data>
|
|
191
|
-
+
|
|
191
|
+
K+cSCK+4df10M7RMyYcdGm5jv3YJ+vIZc9X0CXWICK0=
|
|
192
192
|
</data>
|
|
193
193
|
</dict>
|
|
194
194
|
<key>Modules/module.modulemap</key>
|
package/files/plugin.gradle
CHANGED
|
@@ -9,7 +9,7 @@ var getDTC = function (actionId) {
|
|
|
9
9
|
dtAdk = getLocalStorageValue('dtAdk');
|
|
10
10
|
}
|
|
11
11
|
return "sn=\"".concat(getSessionNumber(getCookieValue('dtCookie')), "\", pc=\"").concat(patchPageContext(getCookieValue('dtPC'), actionId), "\"")
|
|
12
|
-
+ ", v=\"".concat(getCookieValue('rxVisitor'), "\", r=\"").concat(referer, "\", app=\"").concat(getApplicationId(), "\" adk=\"").concat(dtAdk, "\"");
|
|
12
|
+
+ ", v=\"".concat(getCookieValue('rxVisitor'), "\", r=\"").concat(referer, "\", app=\"").concat(getApplicationId(), "\", adk=\"").concat(dtAdk, "\"");
|
|
13
13
|
};
|
|
14
14
|
var getReferer = function (actionId) {
|
|
15
15
|
var referer = '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace/cordova-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.279.2",
|
|
4
4
|
"description": "This plugin gives you the ability to use the Dynatrace instrumentation in your hybrid application (Cordova, Ionic, ..). It uses the Mobile Agent, the JavaScript Agent. The Mobile Agent will give you all device specific values containing lifecycle information and the Javascript Agent will allow you to manually instrument your JavaScript/TypeScript code out of the box (Typescript definitions included). The JavaScript Agent will cover the network calls and will automatically detect them.",
|
|
5
5
|
"cordova": {
|
|
6
6
|
"id": "@dynatrace/cordova-plugin",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"homepage": "https://www.dynatrace.com/",
|
|
38
38
|
"license" : "SEE LICENSE IN LICENSE.md",
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"axios": "^1.
|
|
41
|
-
"jsdom": "^
|
|
40
|
+
"axios": "^1.6.2",
|
|
41
|
+
"jsdom": "^23.0.1",
|
|
42
42
|
"plist": "^3.1.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
package/plugin.xml
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
|
|
4
4
|
id="@dynatrace/cordova-plugin"
|
|
5
|
-
version="2.
|
|
5
|
+
version="2.279.2">
|
|
6
6
|
<name>Dynatrace</name>
|
|
7
7
|
<description>Dynatrace Cordova Plugin</description>
|
|
8
8
|
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
<source-file src="other/DynatraceCordovaPlugin.m"/>
|
|
42
42
|
</platform>
|
|
43
43
|
<platform name="android">
|
|
44
|
-
<framework src="com.dynatrace.agent:agent-android:8.
|
|
44
|
+
<framework src="com.dynatrace.agent:agent-android:8.279.1.1002" />
|
|
45
45
|
<source-file src="other/DynatraceCordovaPlugin.java" target-dir="src/com/dynatrace/cordova/plugin" />
|
|
46
46
|
|
|
47
47
|
<config-file target="config.xml" parent="/*">
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConfigurationReader = void 0;
|
|
4
4
|
var DownloadAgent_1 = require("../DownloadAgent");
|
|
5
|
+
var PluginUtil_1 = require("../utils/PluginUtil");
|
|
5
6
|
var ConfigurationDefaults_1 = require("./ConfigurationDefaults");
|
|
6
7
|
var CordovaPluginConfigurationBuilder_1 = require("./cordova/CordovaPluginConfigurationBuilder");
|
|
7
8
|
var MobileAgentConfiguration_1 = require("./mobile/MobileAgentConfiguration");
|
|
@@ -11,7 +12,6 @@ var ConfigurationReader = (function () {
|
|
|
11
12
|
function ConfigurationReader() {
|
|
12
13
|
}
|
|
13
14
|
ConfigurationReader.prototype.readConfiguration = function (pathToConfiguration) {
|
|
14
|
-
debugger;
|
|
15
15
|
var readConfig;
|
|
16
16
|
try {
|
|
17
17
|
readConfig = require(pathToConfiguration);
|
|
@@ -37,9 +37,9 @@ var ConfigurationReader = (function () {
|
|
|
37
37
|
cordovaConfigurationBuilder.setDebugMode(Boolean(rawConfig.cordova.debug));
|
|
38
38
|
cordovaConfigurationBuilder.setCSPUrl(rawConfig.cordova.cspURL);
|
|
39
39
|
cordovaConfigurationBuilder.setCookieProxy(Boolean(rawConfig.cordova.cookieProxy));
|
|
40
|
-
cordovaConfigurationBuilder.setJsAgentPath(rawConfig.cordova.jsAgentPath);
|
|
41
|
-
cordovaConfigurationBuilder.setGradlePath(rawConfig.cordova.gradlePath);
|
|
42
|
-
cordovaConfigurationBuilder.setPlistPath(rawConfig.cordova.plistPath);
|
|
40
|
+
cordovaConfigurationBuilder.setJsAgentPath((0, PluginUtil_1.sanitizePath)(rawConfig.cordova.jsAgentPath));
|
|
41
|
+
cordovaConfigurationBuilder.setGradlePath((0, PluginUtil_1.sanitizePath)(rawConfig.cordova.gradlePath));
|
|
42
|
+
cordovaConfigurationBuilder.setPlistPath((0, PluginUtil_1.sanitizePath)(rawConfig.cordova.plistPath));
|
|
43
43
|
}
|
|
44
44
|
return cordovaConfigurationBuilder.build();
|
|
45
45
|
};
|
|
@@ -9,7 +9,7 @@ var JavaScriptAgentMode;
|
|
|
9
9
|
JavaScriptAgentMode[JavaScriptAgentMode["AsyncCs"] = 3] = "AsyncCs";
|
|
10
10
|
JavaScriptAgentMode[JavaScriptAgentMode["JsTag"] = 4] = "JsTag";
|
|
11
11
|
})(JavaScriptAgentMode = exports.JavaScriptAgentMode || (exports.JavaScriptAgentMode = {}));
|
|
12
|
-
exports.DEFAULT_JAVASCRIPT_AGENT_MODE = JavaScriptAgentMode.
|
|
12
|
+
exports.DEFAULT_JAVASCRIPT_AGENT_MODE = JavaScriptAgentMode.JsTagComplete;
|
|
13
13
|
exports.JAVA_SCRIPT_AGENT_MODE_NAMES = ['jsInlineScript', 'jsTagComplete', 'syncCS', 'asyncCS', 'jsTag'];
|
|
14
14
|
var parseNumberToMode = function (mode) {
|
|
15
15
|
switch (mode) {
|
|
@@ -309,7 +309,7 @@ var copyFileSync = function (filePath, destPath) {
|
|
|
309
309
|
};
|
|
310
310
|
exports.copyFileSync = copyFileSync;
|
|
311
311
|
var isPlatformAvailable = function (path, platform) {
|
|
312
|
-
if (!(0, fs_1.existsSync)(path)) {
|
|
312
|
+
if (path == null || !(0, fs_1.existsSync)(path)) {
|
|
313
313
|
Logger_1.Logger.getInstance().logWarning("".concat(platform, " Location doesn't exist - Skip ").concat(platform, " instrumentation and configuration."));
|
|
314
314
|
return false;
|
|
315
315
|
}
|
|
@@ -31,7 +31,7 @@ exports.getDynatraceGradleFile = getDynatraceGradleFile;
|
|
|
31
31
|
var getDynatracePluginGradleFile = function () { return (0, path_1.join)(getPluginPath(), FOLDER_FILES, 'plugin.gradle'); };
|
|
32
32
|
exports.getDynatracePluginGradleFile = getDynatracePluginGradleFile;
|
|
33
33
|
var getApplicationPath = function () {
|
|
34
|
-
return
|
|
34
|
+
return (0, path_1.join)(getPluginPath(), '..', '..', '..');
|
|
35
35
|
};
|
|
36
36
|
exports.getApplicationPath = getApplicationPath;
|
|
37
37
|
var getPluginPackage = function () { return (0, path_1.join)(getPluginPath(), FILE_PACKAGE); };
|
|
@@ -5,6 +5,7 @@ var path_1 = require("path");
|
|
|
5
5
|
var FileHelper_1 = require("../helpers/FileHelper");
|
|
6
6
|
var PathHelper_1 = require("../helpers/PathHelper");
|
|
7
7
|
var ConfigurationReader_1 = require("../config/ConfigurationReader");
|
|
8
|
+
var PluginUtil_1 = require("./PluginUtil");
|
|
8
9
|
var setCliBuildArgs = function (process) {
|
|
9
10
|
var buildArgs = {};
|
|
10
11
|
var commandArgs = process.argv.slice(2);
|
|
@@ -30,11 +31,11 @@ var setBuildProperties = function (argv) {
|
|
|
30
31
|
buildProperties.isCapacitor = (0, PathHelper_1.isCapacitorApp)();
|
|
31
32
|
buildProperties.pathToConfig = (0, PathHelper_1.getConfigFilePath)();
|
|
32
33
|
if (argv.config !== undefined) {
|
|
33
|
-
buildProperties.pathToConfig = argv.config;
|
|
34
|
+
buildProperties.pathToConfig = (0, PluginUtil_1.sanitizePath)(argv.config);
|
|
34
35
|
}
|
|
35
36
|
var configJson = new ConfigurationReader_1.ConfigurationReader().readConfiguration(buildProperties.pathToConfig);
|
|
36
37
|
if (argv.gradle !== undefined) {
|
|
37
|
-
buildProperties.pathToGradle = (0, path_1.resolve)(argv.gradle);
|
|
38
|
+
buildProperties.pathToGradle = (0, PluginUtil_1.sanitizePath)((0, path_1.resolve)(argv.gradle));
|
|
38
39
|
buildProperties.androidAvailable = (0, FileHelper_1.isPlatformAvailable)(buildProperties.pathToGradle, 'Android');
|
|
39
40
|
}
|
|
40
41
|
else if (configJson.getCordovaPluginConfiguration().isGradlePathAvailable()) {
|
|
@@ -48,7 +49,7 @@ var setBuildProperties = function (argv) {
|
|
|
48
49
|
(0, FileHelper_1.isPlatformAvailable)((0, PathHelper_1.getAndroidPathCapacitor)(), 'Android') : (0, FileHelper_1.isPlatformAvailable)((0, PathHelper_1.getAndroidPath)(), 'Android');
|
|
49
50
|
}
|
|
50
51
|
if (argv.plist !== undefined) {
|
|
51
|
-
buildProperties.pathToPList = (0, path_1.resolve)(argv.plist);
|
|
52
|
+
buildProperties.pathToPList = (0, PluginUtil_1.sanitizePath)((0, path_1.resolve)(argv.plist));
|
|
52
53
|
buildProperties.iosAvailable = (0, FileHelper_1.isPlatformAvailable)(buildProperties.pathToPList, 'iOS');
|
|
53
54
|
}
|
|
54
55
|
else if (configJson.getCordovaPluginConfiguration().isPlistPathAvailable()) {
|
|
@@ -60,7 +61,7 @@ var setBuildProperties = function (argv) {
|
|
|
60
61
|
buildProperties.iosAvailable = (0, FileHelper_1.isPlatformAvailable)((0, PathHelper_1.getIosPath)(), 'iOS');
|
|
61
62
|
}
|
|
62
63
|
if (argv.jsagent !== undefined) {
|
|
63
|
-
buildProperties.pathToJsAgent = (0, path_1.resolve)(argv.jsagent);
|
|
64
|
+
buildProperties.pathToJsAgent = (0, PluginUtil_1.sanitizePath)((0, path_1.resolve)(argv.jsagent));
|
|
64
65
|
}
|
|
65
66
|
else if (configJson.getCordovaPluginConfiguration().isJsAgentPathAvailable()) {
|
|
66
67
|
buildProperties.pathToJsAgent = (0, path_1.resolve)(configJson.getCordovaPluginConfiguration().getJsAgentPath());
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.logPluginVersion = void 0;
|
|
3
|
+
exports.sanitizePath = exports.logPluginVersion = void 0;
|
|
4
|
+
var path_1 = require("path");
|
|
4
5
|
var Logger_1 = require("../logger/Logger");
|
|
5
6
|
var logPluginVersion = function (packageJson) {
|
|
6
7
|
if (packageJson !== undefined && packageJson.version !== undefined) {
|
|
@@ -11,3 +12,10 @@ var logPluginVersion = function (packageJson) {
|
|
|
11
12
|
}
|
|
12
13
|
};
|
|
13
14
|
exports.logPluginVersion = logPluginVersion;
|
|
15
|
+
var sanitizePath = function (path) {
|
|
16
|
+
if (path == null || (0, path_1.isAbsolute)(path)) {
|
|
17
|
+
return path;
|
|
18
|
+
}
|
|
19
|
+
return (0, path_1.join)(process.cwd(), path);
|
|
20
|
+
};
|
|
21
|
+
exports.sanitizePath = sanitizePath;
|
package/typings/main.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ interface MobileFirstNetworkInterceptor {
|
|
|
29
29
|
/**
|
|
30
30
|
* Disables the interceptor again
|
|
31
31
|
*/
|
|
32
|
-
disableInterceptor();
|
|
32
|
+
disableInterceptor(): void;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
interface NativeNetworkInterceptorUtils {
|
|
@@ -87,7 +87,7 @@ interface DynatraceMobile {
|
|
|
87
87
|
* @param error callback used when the endSession is not successful
|
|
88
88
|
* @returns Status from if the endVisit call was successful or not
|
|
89
89
|
*/
|
|
90
|
-
endVisit(success: any, error: any);
|
|
90
|
+
endVisit(success: any, error: any): void;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* Returns an interceptor which helps you to monitor requests to the Mobile First environment. They are wrapped
|
|
@@ -108,7 +108,7 @@ interface DynatraceMobile {
|
|
|
108
108
|
* @param error callback used when retrieving UserPrivacyOptions is not successful
|
|
109
109
|
* @returns Current user privacy options for the mobile session
|
|
110
110
|
*/
|
|
111
|
-
getUserPrivacyOptions(success: (userPrivacyOptions: UserPrivacyOptions) => any, error: any);
|
|
111
|
+
getUserPrivacyOptions(success: (userPrivacyOptions: UserPrivacyOptions) => any, error: any): void;
|
|
112
112
|
|
|
113
113
|
/**
|
|
114
114
|
* Set the data collection level (Off, Performance, UserBehavior)
|
|
@@ -119,7 +119,7 @@ interface DynatraceMobile {
|
|
|
119
119
|
* @param error callback used when applying UserPrivacyOptions is not successful
|
|
120
120
|
* @returns true is applying the UserPrivacyOptions was successful and false if not
|
|
121
121
|
*/
|
|
122
|
-
applyUserPrivacyOptions(dataCollectionLevel: DataCollectionLevel, crashReportingOptedIn: boolean, success: any, error: any);
|
|
122
|
+
applyUserPrivacyOptions(dataCollectionLevel: DataCollectionLevel, crashReportingOptedIn: boolean, success: any, error: any): void;
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
interface UserPrivacyOptions {
|