@dynatrace/react-native-plugin 2.291.1 → 2.293.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.
package/README.md
CHANGED
|
@@ -31,8 +31,8 @@ If you want to start using this plugin and are not a Dynatrace customer yet, hea
|
|
|
31
31
|
## Agent Versions
|
|
32
32
|
This agent versions are configured in this plugin:
|
|
33
33
|
|
|
34
|
-
* Android Agent: 8.
|
|
35
|
-
* iOS Agent: 8.
|
|
34
|
+
* Android Agent: 8.293.1.1003
|
|
35
|
+
* iOS Agent: 8.293.1.1003
|
|
36
36
|
|
|
37
37
|
## Quick Setup
|
|
38
38
|
|
|
@@ -1414,9 +1414,14 @@ If you are struggling with a problem, submit a support ticket to Dynatrace (supp
|
|
|
1414
1414
|
<br/><br/>
|
|
1415
1415
|
## Changelog
|
|
1416
1416
|
|
|
1417
|
-
2.
|
|
1417
|
+
2.293.1
|
|
1418
|
+
* Update Android (8.293.1.1003) & iOS Agent (8.293.1.1003)
|
|
1419
|
+
* Preventing double instrumentation of touchables
|
|
1420
|
+
|
|
1421
|
+
2.291.2
|
|
1418
1422
|
* Update Android (8.291.1.1002) & iOS Agent (8.291.1.1004)
|
|
1419
1423
|
* Updated the way we report unhandled errors without a stacktrace
|
|
1424
|
+
* Touchable instrumentation was partly broken for static access
|
|
1420
1425
|
|
|
1421
1426
|
2.289.1
|
|
1422
1427
|
* Update Android (8.289.2.1007) & iOS Agent (8.289.1.1015)
|
package/android/build.gradle
CHANGED
|
@@ -70,7 +70,7 @@ repositories {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
dependencies {
|
|
73
|
-
implementation 'com.dynatrace.agent:agent-android:8.
|
|
73
|
+
implementation 'com.dynatrace.agent:agent-android:8.293.1.1003'
|
|
74
74
|
implementation "com.facebook.react:react-native:${safeExtGet('reactNative', '+')}"
|
|
75
75
|
}
|
|
76
76
|
|
package/files/plugin.gradle
CHANGED
|
@@ -10,13 +10,18 @@ const TouchableHelper = (Dynatrace, Logger) => ({
|
|
|
10
10
|
: props.onPress;
|
|
11
11
|
const nameOfAction = this._findActionName(props, children);
|
|
12
12
|
const isButton = this._isPropsButton(props);
|
|
13
|
-
|
|
13
|
+
const wrappedFunction = (event) => {
|
|
14
14
|
if (nameOfAction == null) {
|
|
15
15
|
Logger.logDebug('TouchableHelper: Skipping creation of action as no name was found!');
|
|
16
16
|
if (origFunction != null) {
|
|
17
17
|
return origFunction(event);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
+
else if (origFunction != null && origFunction._dtWrapped !== undefined
|
|
21
|
+
&& origFunction._dtWrapped === true) {
|
|
22
|
+
Logger.logDebug(`TouchableHelper: Skip wrapping of ${nameOfAction} onPress as it is already wrapped!`);
|
|
23
|
+
return origFunction(event);
|
|
24
|
+
}
|
|
20
25
|
else if (!ConfigurationHandler_1.ConfigurationHandler.isConfigurationAvailable()) {
|
|
21
26
|
Logger.logInfo('TouchableHelper: React Native plugin has not been started yet! Touch will not be reported!');
|
|
22
27
|
if (origFunction != null) {
|
|
@@ -35,7 +40,7 @@ const TouchableHelper = (Dynatrace, Logger) => ({
|
|
|
35
40
|
const returnValue = origFunction(event);
|
|
36
41
|
if (_isPromise(returnValue)) {
|
|
37
42
|
isSyncError = false;
|
|
38
|
-
return returnValue.finally(() => {
|
|
43
|
+
return Promise.resolve(returnValue).finally(() => {
|
|
39
44
|
action.leaveAction();
|
|
40
45
|
});
|
|
41
46
|
}
|
|
@@ -55,6 +60,8 @@ const TouchableHelper = (Dynatrace, Logger) => ({
|
|
|
55
60
|
}
|
|
56
61
|
}
|
|
57
62
|
};
|
|
63
|
+
wrappedFunction._dtWrapped = true;
|
|
64
|
+
return wrappedFunction;
|
|
58
65
|
},
|
|
59
66
|
_findActionName(props, children) {
|
|
60
67
|
if ((0, IDynatraceProperties_1.isDynatraceNaming)(props)) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _a, _b, _c;
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.Pressable = exports.Text = exports.TouchableWithoutFeedback = exports.TouchableNativeFeedback = exports.TouchableHighlight = exports.TouchableOpacity = exports.Button = void 0;
|
|
4
5
|
const ReactNative = require("react-native");
|
|
@@ -6,12 +7,33 @@ const React = require("react");
|
|
|
6
7
|
const Types_1 = require("../instrumentor/model/Types");
|
|
7
8
|
exports.Button = React.forwardRef((props, ref) => React.createElement(ReactNative.Button, Object.assign({}, props, { ref: ref })));
|
|
8
9
|
exports.Button._dtInfo = { type: Types_1.Types.Button };
|
|
9
|
-
|
|
10
|
-
exports.TouchableOpacity
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
exports.
|
|
14
|
-
|
|
10
|
+
if (typeof ReactNative.TouchableOpacity === 'object') {
|
|
11
|
+
exports.TouchableOpacity = Object.assign({ _dtInfo: { type: Types_1.Types.TouchableOpacity } }, ReactNative.TouchableOpacity);
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
exports.TouchableOpacity = (_a = class TouchableOpacity extends (ReactNative.TouchableOpacity) {
|
|
15
|
+
},
|
|
16
|
+
_a._dtInfo = { type: Types_1.Types.TouchableOpacity },
|
|
17
|
+
_a);
|
|
18
|
+
}
|
|
19
|
+
if (typeof ReactNative.TouchableHighlight === 'object') {
|
|
20
|
+
exports.TouchableHighlight = Object.assign({ _dtInfo: { type: Types_1.Types.TouchableHighlight } }, ReactNative.TouchableHighlight);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
exports.TouchableHighlight = (_b = class TouchableHighlight extends (ReactNative.TouchableHighlight) {
|
|
24
|
+
},
|
|
25
|
+
_b._dtInfo = { type: Types_1.Types.TouchableHighlight },
|
|
26
|
+
_b);
|
|
27
|
+
}
|
|
28
|
+
if (typeof ReactNative.TouchableNativeFeedback === 'object') {
|
|
29
|
+
exports.TouchableNativeFeedback = Object.assign({ _dtInfo: { type: Types_1.Types.TouchableNativeFeedback } }, ReactNative.TouchableNativeFeedback);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
exports.TouchableNativeFeedback = (_c = class TouchableNativeFeedback extends (ReactNative.TouchableNativeFeedback) {
|
|
33
|
+
},
|
|
34
|
+
_c._dtInfo = { type: Types_1.Types.TouchableNativeFeedback },
|
|
35
|
+
_c);
|
|
36
|
+
}
|
|
15
37
|
exports.TouchableWithoutFeedback = React.forwardRef((props, ref) => React.createElement(ReactNative.TouchableWithoutFeedback, Object.assign({}, props, { ref: ref })));
|
|
16
38
|
exports.TouchableWithoutFeedback._dtInfo = { type: Types_1.Types.TouchableWithoutFeedback };
|
|
17
39
|
exports.Text = React.forwardRef((props, ref) => React.createElement(ReactNative.Text, Object.assign({}, props, { ref: ref })));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace/react-native-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.293.1",
|
|
4
4
|
"description": "This plugin gives you the ability to use the Dynatrace Mobile agent in your react native application.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "typings/react-native-dynatrace.d.ts",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"author": "Dynatrace",
|
|
72
72
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@babel/runtime": "^7.24.
|
|
75
|
-
"jscodeshift": "^0.
|
|
74
|
+
"@babel/runtime": "^7.24.7",
|
|
75
|
+
"jscodeshift": "^0.16.0",
|
|
76
76
|
"plist": "^3.1.0",
|
|
77
77
|
"proxy-polyfill": "^0.3.2",
|
|
78
78
|
"semver": "^7.6.2"
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"react-native": ">=0.62.0"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@babel/cli": "^7.
|
|
88
|
+
"@babel/cli": "^7.24.5",
|
|
89
89
|
"@babel/plugin-proposal-class-properties": "^7.8.3",
|
|
90
90
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
|
|
91
91
|
"@babel/plugin-proposal-optional-chaining": "^7.8.3",
|
|
@@ -111,7 +111,7 @@ Pod::Spec.new do |s|
|
|
|
111
111
|
#
|
|
112
112
|
|
|
113
113
|
s.dependency "React"
|
|
114
|
-
s.dependency 'Dynatrace', '~> 8.
|
|
114
|
+
s.dependency 'Dynatrace', '~> 8.293.1.1003'
|
|
115
115
|
|
|
116
116
|
# Allows for better compatibility for older and newer versions
|
|
117
117
|
if defined?(install_modules_dependencies)
|