@dynatrace/react-native-plugin 2.297.2 → 2.301.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.297.1.1003
35
- * iOS Agent: 8.297.1.1004
34
+ * Android Agent: 8.301.1.1004
35
+ * iOS Agent: 8.301.1.1008
36
36
 
37
37
  ## Quick Setup
38
38
 
@@ -1438,32 +1438,41 @@ If you are struggling with a problem, submit a support ticket to Dynatrace (supp
1438
1438
  <br/><br/>
1439
1439
  ## Changelog
1440
1440
 
1441
+ 2.301.1
1442
+ * Updated Android (8.301.1.1004) & iOS Agent (8.301.1.1008)
1443
+ * Fix iOS crashes to not report on session after crash
1444
+ * RectButton check/logic updated
1445
+ * Improved startup log line
1446
+
1447
+ 2.299.1
1448
+ * Updated Android (8.299.1.1004) & iOS Agent (8.299.1.1003)
1449
+
1441
1450
  2.297.2
1442
- * Update Android (8.297.1.1004) & iOS Agent (8.297.1.1003)
1451
+ * Updated Android (8.297.1.1003) & iOS Agent (8.297.1.1004)
1443
1452
  * Added information about [Instrumentation Overhead](#instrumentation-overhead) to README
1444
1453
  * Fixed manual webrequest timing missing stopWebRequestTimingWithSize in iOS
1445
1454
 
1446
1455
  2.295.1
1447
- * Update Android (8.295.1.1006) & iOS Agent (8.295.1.1020)
1456
+ * Updated Android (8.295.1.1006) & iOS Agent (8.295.1.1020)
1448
1457
  * Add list of supported/unsupported libraries to README
1449
1458
 
1450
1459
  2.293.2
1451
- * Update Android (8.293.1.1003) & iOS Agent (8.293.1.1003)
1460
+ * Updated Android (8.293.1.1003) & iOS Agent (8.293.1.1003)
1452
1461
  * Preventing double instrumentation of touchables
1453
1462
  * Fixed instrumentation of Text component because of missing static access
1454
1463
 
1455
1464
  2.291.2
1456
- * Update Android (8.291.1.1002) & iOS Agent (8.291.1.1004)
1465
+ * Updated Android (8.291.1.1002) & iOS Agent (8.291.1.1004)
1457
1466
  * Updated the way we report unhandled errors without a stacktrace
1458
1467
  * Touchable instrumentation was partly broken for static access
1459
1468
 
1460
1469
  2.289.1
1461
- * Update Android (8.289.2.1007) & iOS Agent (8.289.1.1015)
1470
+ * Updated Android (8.289.2.1007) & iOS Agent (8.289.1.1015)
1462
1471
  * Added option to disable error handler for auto and manual start
1463
1472
  * Updated touchable instrumentation for React Native v74
1464
1473
 
1465
1474
  2.287.3
1466
- * Update Android (8.287.1.1006) & iOS Agent (8.287.2.1009)
1475
+ * Updated Android (8.287.1.1006) & iOS Agent (8.287.2.1009)
1467
1476
  * Added request and response size to [manual web request tagging](#manual-web-request-tagging)
1468
1477
  * Improved logging of configuration at startup
1469
1478
  * Fixed dtActionName when using ActionNamePrivacy
@@ -1471,46 +1480,46 @@ If you are struggling with a problem, submit a support ticket to Dynatrace (supp
1471
1480
  2.285.2
1472
1481
  * Fixed bridge module issue for older React Native versions (< 0.65.0)
1473
1482
  * Introduced support for @react-native/metro-babel-transformer
1474
- * Update Android (8.287.1.1006) & iOS Agent (8.285.1.1004)
1483
+ * Updated Android (8.287.1.1006) & iOS Agent (8.285.1.1004)
1475
1484
 
1476
1485
  2.283.3
1477
1486
  * Added Auto-Instrumentation for React Native Switch
1478
1487
  * Updated instrumentation of RefreshControl (dtActionIgnore & dtActionName)
1479
1488
  * Updated instrumentation of Picker (dtActionIgnore & dtActionName)
1480
1489
  * Minimum Support iOS version raised to 12
1481
- * Update Android (8.283.1.1004) & iOS Agent (8.283.1.1004)
1490
+ * Updated Android (8.283.1.1004) & iOS Agent (8.283.1.1004)
1482
1491
 
1483
1492
  2.279.4
1484
1493
  * Updated iOS crash report sending strategy
1485
1494
  * Configuration printed on startup fixed
1486
- * Update Android (8.279.1.1002) & iOS Agent (8.279.1.1008)
1495
+ * Updated Android (8.279.1.1002) & iOS Agent (8.279.1.1008)
1487
1496
  * Improved event handling for touchable instrumentation
1488
1497
  * Added logic for nested arrays when traversing touch event name
1489
1498
  * Fixed Auto Startup issue for RN v73
1490
1499
  * Fixed Android build as execution order of plugins was wrong
1491
1500
 
1492
1501
  2.277.1
1493
- * Update Android (8.277.1.1003) & iOS Agent (8.277.1.1004)
1502
+ * Updated Android (8.277.1.1003) & iOS Agent (8.277.1.1004)
1494
1503
  * Introduced `ConfigurationBuilder` for Manual Startup
1495
1504
  * Deprecating `ManualStartupConfiguration` for Manual Startup
1496
1505
 
1497
1506
  2.275.1
1498
- * Update iOS Agent (8.275.1.1006)
1507
+ * Updated iOS Agent (8.275.1.1006)
1499
1508
  * Add documentation for manually tagging web requests
1500
1509
 
1501
1510
  2.273.1
1502
- * Update Android (8.273.1.1003) & iOS Agent (8.273.1.1006)
1511
+ * Updated Android (8.273.1.1003) & iOS Agent (8.273.1.1006)
1503
1512
  * Crash handler initialization happens earlier in the application
1504
1513
  * Ignoring duplicated crashes through native crash handler
1505
1514
 
1506
1515
  2.271.3
1507
- * Update Android (8.271.1.1003) & iOS Agent (8.271.2.1007)
1516
+ * Updated Android (8.271.1.1003) & iOS Agent (8.271.2.1007)
1508
1517
  * Fixed createElement logic for older React Native versions
1509
1518
  * Fixed asynchronous handler for Touchables
1510
1519
  * Updated instrumentation of RefreshControl
1511
1520
 
1512
1521
  2.269.1
1513
- * Update Android (8.269.1.1009) & iOS Agent (8.269.1.1007)
1522
+ * Updated Android (8.269.1.1009) & iOS Agent (8.269.1.1007)
1514
1523
  * Updated instrumentation for iOS Picker to match Android
1515
1524
 
1516
1525
  2.267.1
@@ -70,7 +70,7 @@ repositories {
70
70
  }
71
71
 
72
72
  dependencies {
73
- implementation 'com.dynatrace.agent:agent-android:8.297.1.1003'
73
+ implementation 'com.dynatrace.agent:agent-android:8.301.1.1004'
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.297.1.1003'
2
+ classpath 'com.dynatrace.tools.android:gradle-plugin:8.301.1.1004'
3
3
  }
@@ -201,8 +201,6 @@ RCT_EXPORT_METHOD(storeCrash:(NSString *)crashName reason:(NSString *)reason sta
201
201
  NSString* crashJson= [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
202
202
  // Store react native crash
203
203
  [[NSFileManager defaultManager] createFileAtPath:[dirPath stringByAppendingPathComponent:@"RNCrash.txt"] contents:[crashJson dataUsingEncoding:NSUTF8StringEncoding] attributes:nil];
204
-
205
- [Dynatrace endVisit];
206
204
  }
207
205
 
208
206
  RCT_EXPORT_METHOD(reportErrorInAction:(nonnull NSString *)key errorName:(NSString *)errorName errorCode:(nonnull NSNumber *)errorCode platform: (NSString *) platform)
@@ -32,4 +32,7 @@ if (gestureHandler !== undefined) {
32
32
  _d._dtInfo = { type: Types_1.Types.RectButtonGestureHandler },
33
33
  _d);
34
34
  }
35
+ else {
36
+ exports.RectButton = Object.assign({ _dtInfo: { type: Types_1.Types.RectButtonGestureHandler } }, gestureHandler.RectButton);
37
+ }
35
38
  }
@@ -18,16 +18,17 @@ class Configuration {
18
18
  }
19
19
  toString() {
20
20
  let configurationString;
21
- if (this.beaconUrl === '' && this.applicationId === '') {
22
- configurationString = '{Startup: Auto Start,';
23
- }
24
- else {
25
- configurationString = `{Startup: Manual Start, applicationId: ${this.applicationId}, beaconUrl: ${this.beaconUrl},`;
26
- }
27
- configurationString += ` reportCrash: ${this.reportCrash}, errorHandler: ${this.errorHandler},`
28
- + ` reportFatalErrorAsCrash: ${this.reportFatalErrorAsCrash},`
29
- + ` lifecycleUpdate: ${this.lifecycleUpdate}, userOptIn: ${this.userOptIn},`
30
- + ` actionNamePrivacy: ${this.actionNamePrivacy}, logLevel: ${(0, LogLevel_1.LogLevelToString)(this.logLevel)}`;
21
+ const isAutoStart = this.beaconUrl === '' && this.applicationId === '';
22
+ configurationString = `{Startup: ${isAutoStart ? 'Auto' : 'Manual'} Start`
23
+ + (isAutoStart ? '' : `, applicationId: ${this.applicationId}`)
24
+ + (isAutoStart ? '' : `, beaconUrl: ${this.beaconUrl}`)
25
+ + `, reportCrash: ${this.reportCrash}`
26
+ + `, errorHandler: ${this.errorHandler}`
27
+ + `, reportFatalErrorAsCrash: ${this.reportFatalErrorAsCrash}`
28
+ + `, lifecycleUpdate: ${this.lifecycleUpdate}`
29
+ + (isAutoStart ? '' : `, userOptIn: ${this.userOptIn}`)
30
+ + `, actionNamePrivacy: ${this.actionNamePrivacy}`
31
+ + `, logLevel: ${(0, LogLevel_1.LogLevelToString)(this.logLevel)}`;
31
32
  if (this.bundleName !== undefined) {
32
33
  configurationString += `, bundleName: ${this.bundleName}`;
33
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynatrace/react-native-plugin",
3
- "version": "2.297.2",
3
+ "version": "2.301.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,7 +71,7 @@
71
71
  "author": "Dynatrace",
72
72
  "license": "SEE LICENSE IN LICENSE.md",
73
73
  "dependencies": {
74
- "@babel/runtime": "^7.25.0",
74
+ "@babel/runtime": "^7.25.7",
75
75
  "jscodeshift": "^17.0.0",
76
76
  "plist": "^3.1.0",
77
77
  "proxy-polyfill": "^0.3.2",
@@ -85,7 +85,7 @@
85
85
  "react-native": ">=0.62.0"
86
86
  },
87
87
  "devDependencies": {
88
- "@babel/cli": "^7.24.5",
88
+ "@babel/cli": "^7.25.7",
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.297.1.1004'
114
+ s.dependency 'Dynatrace', '~> 8.301.1.1008'
115
115
 
116
116
  # Allows for better compatibility for older and newer versions
117
117
  if defined?(install_modules_dependencies)