@dynatrace/react-native-plugin 2.283.2 → 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.
Files changed (78) hide show
  1. package/README.md +26 -3
  2. package/android/build.gradle +1 -1
  3. package/files/plugin.gradle +1 -1
  4. package/lib/dynatrace-transformer.js +6 -1
  5. package/lib/instrumentor/base/DynatraceAction.js +1 -1
  6. package/lib/instrumentor/base/ErrorHandler.js +2 -1
  7. package/package.json +4 -4
  8. package/react-native-dynatrace.podspec +3 -9
  9. package/ios/lib/Dynatrace.xcframework/Info.plist +0 -75
  10. package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeDirectory +0 -0
  11. package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeRequirements +0 -0
  12. package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  13. package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeResources +0 -1058
  14. package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeSignature +0 -0
  15. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Dynatrace +0 -0
  16. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace-Swift.h +0 -311
  17. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace.h +0 -1031
  18. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/DynatraceSwiftUI.h +0 -37
  19. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Framework.h +0 -19
  20. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Info.plist +0 -0
  21. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  22. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.abi.json +0 -582
  23. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.private.swiftinterface +0 -42
  24. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  25. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.swiftinterface +0 -42
  26. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/module.modulemap +0 -10
  27. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/PrivacyInfo.xcprivacy +0 -100
  28. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
  29. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace-Swift.h +0 -618
  30. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +0 -1031
  31. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/DynatraceSwiftUI.h +0 -37
  32. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Framework.h +0 -19
  33. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
  34. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  35. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  36. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json +0 -582
  37. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +0 -42
  38. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  39. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftinterface +0 -42
  40. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json +0 -582
  41. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +0 -42
  42. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  43. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +0 -42
  44. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/module.modulemap +0 -10
  45. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/PrivacyInfo.xcprivacy +0 -100
  46. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +0 -300
  47. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Dynatrace +0 -0
  48. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace-Swift.h +0 -311
  49. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace.h +0 -1031
  50. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/DynatraceSwiftUI.h +0 -37
  51. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Framework.h +0 -19
  52. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Info.plist +0 -0
  53. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo +0 -0
  54. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.abi.json +0 -9
  55. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.private.swiftinterface +0 -9
  56. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.swiftdoc +0 -0
  57. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.swiftinterface +0 -9
  58. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/module.modulemap +0 -11
  59. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/PrivacyInfo.xcprivacy +0 -100
  60. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
  61. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace-Swift.h +0 -618
  62. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +0 -1031
  63. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/DynatraceSwiftUI.h +0 -37
  64. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Framework.h +0 -19
  65. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
  66. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo +0 -0
  67. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo +0 -0
  68. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.abi.json +0 -9
  69. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.private.swiftinterface +0 -9
  70. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftdoc +0 -0
  71. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftinterface +0 -9
  72. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.abi.json +0 -9
  73. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.private.swiftinterface +0 -9
  74. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc +0 -0
  75. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface +0 -9
  76. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/module.modulemap +0 -11
  77. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/PrivacyInfo.xcprivacy +0 -100
  78. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +0 -300
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.283.1.1004
33
- * iOS Agent: 8.283.1.1004
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,7 +1296,11 @@ If you are struggling with a problem, submit a support ticket to Dynatrace (supp
1277
1296
  <br/><br/>
1278
1297
  ## Changelog
1279
1298
 
1280
- 2.283.2
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
+
1303
+ 2.283.3
1281
1304
  * Added Auto-Instrumentation for React Native Switch
1282
1305
  * Updated instrumentation of RefreshControl (dtActionIgnore & dtActionName)
1283
1306
  * Updated instrumentation of Picker (dtActionIgnore & dtActionName)
@@ -70,7 +70,7 @@ repositories {
70
70
  }
71
71
 
72
72
  dependencies {
73
- implementation 'com.dynatrace.agent:agent-android:8.283.1.1004'
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
 
@@ -1,3 +1,3 @@
1
1
  dependencies {
2
- classpath 'com.dynatrace.tools.android:gradle-plugin:8.283.1.1004'
2
+ classpath 'com.dynatrace.tools.android:gradle-plugin:8.285.1.1006'
3
3
  }
@@ -46,7 +46,12 @@ const getUpstreamTransformer = (reactOptions) => {
46
46
  return require(reactOptions.upstreamTransformer);
47
47
  }
48
48
  else {
49
- return require('metro-react-native-babel-transformer/src/index');
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 getRequest(${url}): in Action - ${this.name}`);
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() {
@@ -7,6 +7,7 @@ const DynatraceBridge_1 = require("./DynatraceBridge");
7
7
  const Dynatrace_1 = require("./Dynatrace");
8
8
  const StringUtils_1 = require("./util/StringUtils");
9
9
  const Logger_1 = require("./Logger");
10
+ const Platform_1 = require("./model/Platform");
10
11
  let _isCustomErrorHandlerSet = false;
11
12
  const _isReactNativeGlobal = (globalScope) => globalScope.ErrorUtils !== undefined;
12
13
  const registerErrorHandler = () => {
@@ -35,7 +36,7 @@ const _reportErrorToDynatrace = (exception, isFatal, oldHandler) => {
35
36
  }
36
37
  if (exception.stack != null) {
37
38
  if (ReactNative.Platform.OS === 'ios') {
38
- DynatraceBridge_1.DynatraceNative.storeCrash(String(exception.name), adjustedReason(exception.message), exception.stack);
39
+ DynatraceBridge_1.DynatraceNative.storeCrash(String(exception.name), adjustedReason(exception.message), exception.stack, Platform_1.Platform.Ios.toString());
39
40
  Logger_1.Logger.logDebug(`ErrorHandler storeCrash(${exception}, ${isFatal})`);
40
41
  }
41
42
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynatrace/react-native-plugin",
3
- "version": "2.283.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,11 +71,11 @@
71
71
  "author": "Dynatrace",
72
72
  "license": "SEE LICENSE IN LICENSE.md",
73
73
  "dependencies": {
74
- "@babel/runtime": "^7.23.9",
75
- "jscodeshift": "^0.15.1",
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
- "semver": "^7.5.4"
78
+ "semver": "^7.6.0"
79
79
  },
80
80
  "homepage": "https://www.dynatrace.com/",
81
81
  "peerDependencies": {
@@ -12,19 +12,12 @@ Pod::Spec.new do |s|
12
12
  s.version = package['version']
13
13
  s.summary = package['description']
14
14
  s.homepage = package['homepage']
15
- s.ios.deployment_target = "11.0"
16
- s.tvos.deployment_target = "11.0"
15
+ s.ios.deployment_target = "12.0"
16
+ s.tvos.deployment_target = "12.0"
17
17
  s.source_files = ["ios/*.{h,m}","ios/lib/*.h"]
18
- s.vendored_frameworks = 'ios/lib/Dynatrace.xcframework'
19
18
 
20
19
  s.license = { :type => 'Commercial', :text => 'https://github.com/Dynatrace/dem-license/blob/main/LICENSE.md'}
21
20
 
22
- s.ios.frameworks = "CoreLocation", "CoreTelephony", "Security", "SystemConfiguration", "MessageUI", "WebKit"
23
- s.libraries = "sqlite3", "z", "c++"
24
- s.requires_arc = true
25
- s.compiler_flags = '-DOS_OBJECT_USE_OBJC=1'
26
- s.pod_target_xcconfig = { 'OTHER_LDFLAGS' => '-ObjC' }
27
-
28
21
  # --- License ----------------------------------------------------------- #
29
22
  #
30
23
 
@@ -118,6 +111,7 @@ Pod::Spec.new do |s|
118
111
  #
119
112
 
120
113
  s.dependency "React"
114
+ s.dependency 'Dynatrace', '~> 8.285.1.1004'
121
115
 
122
116
  # Allows for better compatibility for older and newer versions
123
117
  if defined?(install_modules_dependencies)
@@ -1,75 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>AvailableLibraries</key>
6
- <array>
7
- <dict>
8
- <key>BinaryPath</key>
9
- <string>Dynatrace.framework/Dynatrace</string>
10
- <key>LibraryIdentifier</key>
11
- <string>tvos-arm64</string>
12
- <key>LibraryPath</key>
13
- <string>Dynatrace.framework</string>
14
- <key>SupportedArchitectures</key>
15
- <array>
16
- <string>arm64</string>
17
- </array>
18
- <key>SupportedPlatform</key>
19
- <string>tvos</string>
20
- </dict>
21
- <dict>
22
- <key>BinaryPath</key>
23
- <string>Dynatrace.framework/Dynatrace</string>
24
- <key>LibraryIdentifier</key>
25
- <string>tvos-arm64_x86_64-simulator</string>
26
- <key>LibraryPath</key>
27
- <string>Dynatrace.framework</string>
28
- <key>SupportedArchitectures</key>
29
- <array>
30
- <string>arm64</string>
31
- <string>x86_64</string>
32
- </array>
33
- <key>SupportedPlatform</key>
34
- <string>tvos</string>
35
- <key>SupportedPlatformVariant</key>
36
- <string>simulator</string>
37
- </dict>
38
- <dict>
39
- <key>BinaryPath</key>
40
- <string>Dynatrace.framework/Dynatrace</string>
41
- <key>LibraryIdentifier</key>
42
- <string>ios-arm64</string>
43
- <key>LibraryPath</key>
44
- <string>Dynatrace.framework</string>
45
- <key>SupportedArchitectures</key>
46
- <array>
47
- <string>arm64</string>
48
- </array>
49
- <key>SupportedPlatform</key>
50
- <string>ios</string>
51
- </dict>
52
- <dict>
53
- <key>BinaryPath</key>
54
- <string>Dynatrace.framework/Dynatrace</string>
55
- <key>LibraryIdentifier</key>
56
- <string>ios-arm64_x86_64-simulator</string>
57
- <key>LibraryPath</key>
58
- <string>Dynatrace.framework</string>
59
- <key>SupportedArchitectures</key>
60
- <array>
61
- <string>arm64</string>
62
- <string>x86_64</string>
63
- </array>
64
- <key>SupportedPlatform</key>
65
- <string>ios</string>
66
- <key>SupportedPlatformVariant</key>
67
- <string>simulator</string>
68
- </dict>
69
- </array>
70
- <key>CFBundlePackageType</key>
71
- <string>XFWK</string>
72
- <key>XCFrameworkFormatVersion</key>
73
- <string>1.0</string>
74
- </dict>
75
- </plist>