@dynatrace/react-native-plugin 2.283.3 → 2.285.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
|
@@ -29,8 +29,8 @@ If you want to start using this plugin and are not a Dynatrace customer yet, hea
|
|
|
29
29
|
## Agent Versions
|
|
30
30
|
This agent versions are configured in this plugin:
|
|
31
31
|
|
|
32
|
-
* Android Agent: 8.
|
|
33
|
-
* iOS Agent: 8.
|
|
32
|
+
* Android Agent: 8.285.1.1006
|
|
33
|
+
* iOS Agent: 8.285.1.1004
|
|
34
34
|
|
|
35
35
|
## Quick Setup
|
|
36
36
|
|
|
@@ -1053,6 +1053,25 @@ module.exports = {
|
|
|
1053
1053
|
};
|
|
1054
1054
|
```
|
|
1055
1055
|
|
|
1056
|
+
Using `@react-native/babel-preset`:
|
|
1057
|
+
|
|
1058
|
+
```js
|
|
1059
|
+
module.exports = {
|
|
1060
|
+
presets: [
|
|
1061
|
+
['module:@react-native/babel-preset'],
|
|
1062
|
+
],
|
|
1063
|
+
plugins: [
|
|
1064
|
+
[
|
|
1065
|
+
'@babel/plugin-transform-react-jsx',
|
|
1066
|
+
{
|
|
1067
|
+
runtime: 'automatic',
|
|
1068
|
+
importSource: "@dynatrace/react-native-plugin"
|
|
1069
|
+
},
|
|
1070
|
+
],
|
|
1071
|
+
],
|
|
1072
|
+
};
|
|
1073
|
+
```
|
|
1074
|
+
|
|
1056
1075
|
Using `metro-react-native-babel-preset`:
|
|
1057
1076
|
|
|
1058
1077
|
```js
|
|
@@ -1277,6 +1296,10 @@ If you are struggling with a problem, submit a support ticket to Dynatrace (supp
|
|
|
1277
1296
|
<br/><br/>
|
|
1278
1297
|
## Changelog
|
|
1279
1298
|
|
|
1299
|
+
2.285.1
|
|
1300
|
+
* Introduced support for @react-native/metro-babel-transformer
|
|
1301
|
+
* Update Android (8.285.1.1006) & iOS Agent (8.285.1.1004)
|
|
1302
|
+
|
|
1280
1303
|
2.283.3
|
|
1281
1304
|
* Added Auto-Instrumentation for React Native Switch
|
|
1282
1305
|
* Updated instrumentation of RefreshControl (dtActionIgnore & dtActionName)
|
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.285.1.1006'
|
|
74
74
|
implementation "com.facebook.react:react-native:${safeExtGet('reactNative', '+')}"
|
|
75
75
|
}
|
|
76
76
|
|
package/files/plugin.gradle
CHANGED
|
@@ -46,7 +46,12 @@ const getUpstreamTransformer = (reactOptions) => {
|
|
|
46
46
|
return require(reactOptions.upstreamTransformer);
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
49
|
-
|
|
49
|
+
try {
|
|
50
|
+
return require('metro-react-native-babel-transformer/src/index');
|
|
51
|
+
}
|
|
52
|
+
catch (e) {
|
|
53
|
+
return require('@react-native/metro-babel-transformer');
|
|
54
|
+
}
|
|
50
55
|
}
|
|
51
56
|
};
|
|
52
57
|
exports.getUpstreamTransformer = getUpstreamTransformer;
|
|
@@ -101,7 +101,7 @@ class DynatraceAction {
|
|
|
101
101
|
resolve('');
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
|
-
Logger_1.Logger.logDebug(`DynatraceAction
|
|
104
|
+
Logger_1.Logger.logDebug(`DynatraceAction getRequestTag(${url}): in Action - ${this.name}`);
|
|
105
105
|
return DynatraceBridge_1.DynatraceNative.getRequestTag(this.key, url);
|
|
106
106
|
}
|
|
107
107
|
getRequestTagHeader() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynatrace/react-native-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.285.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.
|
|
75
|
-
"jscodeshift": "^0.15.
|
|
74
|
+
"@babel/runtime": "^7.24.0",
|
|
75
|
+
"jscodeshift": "^0.15.2",
|
|
76
76
|
"plist": "^3.1.0",
|
|
77
77
|
"proxy-polyfill": "^0.3.2",
|
|
78
78
|
"semver": "^7.6.0"
|
|
@@ -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.285.1.1004'
|
|
115
115
|
|
|
116
116
|
# Allows for better compatibility for older and newer versions
|
|
117
117
|
if defined?(install_modules_dependencies)
|