@dynatrace/cordova-plugin 2.279.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 +4 -3
- package/files/iOS/Dynatrace.xcframework/Info.plist +7 -7
- 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_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/_CodeSignature/CodeResources +7 -7
- 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 +7 -7
- package/package.json +2 -2
- package/plugin.xml +1 -1
- package/scripts/config/ConfigurationReader.js +4 -4
- package/scripts/helpers/FileHelper.js +1 -1
- package/scripts/utils/InstrumentUtil.js +5 -4
- package/scripts/utils/PluginUtil.js +9 -1
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ For information as to why this is necessary, read more [here](#migration-from-ma
|
|
|
32
32
|
This agent versions are configured in this plugin:
|
|
33
33
|
|
|
34
34
|
* Android Agent: 8.279.1.1002
|
|
35
|
-
* iOS Agent: 8.279.
|
|
35
|
+
* iOS Agent: 8.279.2.1010
|
|
36
36
|
|
|
37
37
|
## Quick Setup
|
|
38
38
|
|
|
@@ -840,12 +840,13 @@ When using Apple Pay with WKWebView, there are specific checks that WebKit (Appl
|
|
|
840
840
|
|
|
841
841
|
## Changelog
|
|
842
842
|
|
|
843
|
-
2.279.
|
|
843
|
+
2.279.2
|
|
844
|
+
* Sanitizing paths to support relative paths for custom arguments
|
|
844
845
|
* Updated typings
|
|
845
846
|
* Fixed x-dtc issue for native web requests
|
|
846
847
|
* Changed default injection mode from SyncCS to JsTagComplete
|
|
847
848
|
* Fixed issue with path for npx and capacitor
|
|
848
|
-
* Updated Android (8.279.1.1002) & iOS Agent (8.279.
|
|
849
|
+
* Updated Android (8.279.1.1002) & iOS Agent (8.279.2.1010)
|
|
849
850
|
|
|
850
851
|
2.277.1
|
|
851
852
|
* Updated requirements for Cordova 10+
|
|
@@ -6,30 +6,30 @@
|
|
|
6
6
|
<array>
|
|
7
7
|
<dict>
|
|
8
8
|
<key>LibraryIdentifier</key>
|
|
9
|
-
<string>
|
|
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
|
-
<string>
|
|
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>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
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
|
|
@@ -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
|
+
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>
|
|
@@ -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
|
+
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>
|
|
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>
|
|
@@ -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>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace/cordova-plugin",
|
|
3
|
-
"version": "2.279.
|
|
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",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"license" : "SEE LICENSE IN LICENSE.md",
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"axios": "^1.6.2",
|
|
41
|
-
"jsdom": "^
|
|
41
|
+
"jsdom": "^23.0.1",
|
|
42
42
|
"plist": "^3.1.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
package/plugin.xml
CHANGED
|
@@ -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
|
};
|
|
@@ -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
|
}
|
|
@@ -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;
|