@dynatrace/react-native-plugin 2.301.2 → 2.303.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
@@ -24,15 +24,15 @@ If you want to start using this plugin and are not a Dynatrace customer yet, hea
24
24
  * For Android users:
25
25
  * SDK version 21+
26
26
  * Gradle version 6.1.1+ ([How to update?](#updating-to-gradle-6))
27
- * Android Gradle plugin version 4.0+
27
+ * Android Gradle plugin version 7.0+
28
28
  * Java 11
29
29
  * For iOS users: Minimum iOS 12
30
30
 
31
31
  ## Agent Versions
32
32
  This agent versions are configured in this plugin:
33
33
 
34
- * Android Agent: 8.301.1.1004
35
- * iOS Agent: 8.301.1.1008
34
+ * Android Agent: 8.303.2.1014
35
+ * iOS Agent: 8.303.1.1004
36
36
 
37
37
  ## Quick Setup
38
38
 
@@ -1460,6 +1460,11 @@ If you are struggling with a problem, submit a support ticket to Dynatrace (supp
1460
1460
  <br/><br/>
1461
1461
  ## Changelog
1462
1462
 
1463
+ 2.303.1
1464
+ * Updated Android (8.303.2.1014) & iOS Agent (8.303.1.1004)
1465
+ * Android Gradle Plugin version requirement raised to 7.0+
1466
+ * Fixed warnings for jsx runtime when using expo
1467
+
1463
1468
  2.301.2
1464
1469
  * Updated Android (8.301.1.1004) & iOS Agent (8.301.1.1008)
1465
1470
  * Fix iOS crashes to not report on session after crash
@@ -70,7 +70,7 @@ repositories {
70
70
  }
71
71
 
72
72
  dependencies {
73
- implementation 'com.dynatrace.agent:agent-android:8.301.1.1004'
73
+ implementation 'com.dynatrace.agent:agent-android:8.303.2.1014'
74
74
  implementation "com.facebook.react:react-native:${safeExtGet('reactNative', '+')}"
75
75
  }
76
76
 
@@ -1,3 +1,3 @@
1
1
  dependencies {
2
- classpath 'com.dynatrace.tools.android:gradle-plugin:8.301.1.1004'
2
+ classpath 'com.dynatrace.tools.android:gradle-plugin:8.303.2.1014'
3
3
  }
@@ -23,24 +23,32 @@ try {
23
23
  !(0, ElementHelper_1.isDtActionIgnore)(args[1])) {
24
24
  if (args[0]._dtInfo.type === Types_1.Types.FunctionalComponent) {
25
25
  const wrapperProps = {
26
- children: [],
26
+ children: _jsxDevRuntime.jsxDEV(...args),
27
27
  };
28
28
  wrapperProps.dtActionName =
29
29
  args[1] !== undefined &&
30
30
  args[1].dtActionName !== undefined
31
31
  ? args[1].dtActionName
32
32
  : args[0]._dtInfo.name;
33
- wrapperProps.children.push(_jsxDevRuntime.jsxDEV(args[0], args[1], ...args));
34
- return _jsxDevRuntime.jsxDEV(Component_1.DynatraceFnWrapper, wrapperProps);
33
+ if (args[2] !== undefined) {
34
+ return _jsxDevRuntime.jsxDEV(Component_1.DynatraceFnWrapper, wrapperProps, args[2] + '_dt');
35
+ }
36
+ else {
37
+ return _jsxDevRuntime.jsxDEV(Component_1.DynatraceFnWrapper, wrapperProps);
38
+ }
35
39
  }
36
40
  else if (args[0]._dtInfo.type === Types_1.Types.ClassComponent &&
37
41
  args[0].prototype !== undefined &&
38
42
  args[0].prototype.isReactComponent !== undefined) {
39
43
  const wrapperProps = {
40
- children: [],
44
+ children: _jsxDevRuntime.jsxDEV(...args),
41
45
  };
42
- wrapperProps.children.push(_jsxDevRuntime.jsxDEV(args[0], args[1], ...args));
43
- return _jsxDevRuntime.jsxDEV(Component_1.DynatraceClassWrapper, wrapperProps);
46
+ if (args[2] !== undefined) {
47
+ return _jsxDevRuntime.jsxDEV(Component_1.DynatraceClassWrapper, wrapperProps, args[2] + '_dt');
48
+ }
49
+ else {
50
+ return _jsxDevRuntime.jsxDEV(Component_1.DynatraceClassWrapper, wrapperProps);
51
+ }
44
52
  }
45
53
  if (Array.isArray(args[1].children)) {
46
54
  (0, ElementHelper_1.modifyElement)(args[0], args[1], ...args[1].children);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynatrace/react-native-plugin",
3
- "version": "2.301.2",
3
+ "version": "2.303.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",
@@ -111,7 +111,7 @@ Pod::Spec.new do |s|
111
111
  #
112
112
 
113
113
  s.dependency "React"
114
- s.dependency 'Dynatrace', '~> 8.301.1.1008'
114
+ s.dependency 'Dynatrace', '~> 8.303.1.1004'
115
115
 
116
116
  # Allows for better compatibility for older and newer versions
117
117
  if defined?(install_modules_dependencies)