@dynatrace/react-native-plugin 2.307.1 → 2.309.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 (130) hide show
  1. package/README.md +7 -3
  2. package/android/build.gradle +3 -1
  3. package/android/src/main/java/com/dynatrace/android/agent/DynatraceAppStartModule.kt +128 -0
  4. package/android/src/main/java/com/dynatrace/android/agent/DynatraceInternalModule.kt +22 -0
  5. package/android/src/main/java/com/dynatrace/android/agent/DynatraceRNBridgeImpl.kt +411 -0
  6. package/android/src/main/java/com/dynatrace/android/agent/DynatraceReactPackage.kt +54 -0
  7. package/android/src/main/java/com/dynatrace/android/agent/DynatraceUtils.kt +86 -0
  8. package/android/src/main/java/com/dynatrace/android/agent/model/AppStartMeasurement.kt +15 -0
  9. package/android/src/main/java/com/dynatrace/android/agent/model/AppStartMeasurementType.kt +18 -0
  10. package/android/src/new/java/com/dynatrace/android/agent/DynatraceRNBridge.kt +228 -0
  11. package/android/src/old/java/com/dynatrace/android/agent/DynatraceRNBridge.kt +258 -0
  12. package/files/plugin.gradle +1 -1
  13. package/index.js +10 -10
  14. package/instrumentation/DynatraceInstrumentation.js +1 -0
  15. package/{lib → instrumentation/jsx}/CreateElement.js +6 -5
  16. package/{lib/instrumentor/base → instrumentation/jsx}/ElementHelper.js +14 -12
  17. package/{lib/jsx-dev-runtime.js → instrumentation/jsx/JsxDevRuntime.js} +10 -19
  18. package/instrumentation/jsx/JsxRuntime.js +63 -0
  19. package/instrumentation/jsx/JsxRuntimeUtil.js +31 -0
  20. package/instrumentation/jsx/components/ClassComponent.js +49 -0
  21. package/instrumentation/jsx/components/ComponentUtil.js +33 -0
  22. package/instrumentation/jsx/components/FunctionalComponent.js +20 -0
  23. package/{lib/instrumentor/base → instrumentation/jsx/components}/Picker.js +1 -1
  24. package/{lib/instrumentor/base → instrumentation/jsx/components}/RefreshControl.js +1 -1
  25. package/{lib/instrumentor/base → instrumentation/jsx/components}/Switch.js +1 -1
  26. package/{lib/instrumentor/base → instrumentation/jsx/components}/Touchable.js +5 -5
  27. package/instrumentation/libs/community/Picker.InstrInfo.js +20 -0
  28. package/{lib → instrumentation/libs}/community/Picker.js +1 -1
  29. package/instrumentation/libs/community/gesture-handler/Touchables.InstrInfo.js +23 -0
  30. package/{lib → instrumentation/libs}/community/gesture-handler/Touchables.js +1 -1
  31. package/{lib → instrumentation/libs}/react-native/RefreshControl.InstrInfo.js +2 -2
  32. package/{lib → instrumentation/libs}/react-native/RefreshControl.js +5 -5
  33. package/{lib → instrumentation/libs}/react-native/Switch.InstrInfo.js +2 -2
  34. package/{lib → instrumentation/libs}/react-native/Switch.js +5 -5
  35. package/instrumentation/libs/react-native/Touchables.InstrInfo.js +25 -0
  36. package/{lib → instrumentation/libs}/react-native/Touchables.js +1 -1
  37. package/{lib → instrumentation/libs}/react-navigation/ReactNavigation.js +6 -5
  38. package/{lib/instrumentor → instrumentation}/model/Types.js +1 -14
  39. package/instrumentation/model/TypesUtil.js +17 -0
  40. package/ios/DynatraceRNBridge.h +10 -1
  41. package/ios/DynatraceRNBridge.mm +152 -0
  42. package/jsx-dev-runtime.js +1 -1
  43. package/jsx-runtime.js +1 -1
  44. package/lib/core/Application.js +20 -0
  45. package/lib/{instrumentor/base → core}/Dynatrace.js +57 -48
  46. package/lib/{instrumentor/base → core}/DynatraceAction.js +23 -22
  47. package/lib/core/DynatraceInternal.js +46 -0
  48. package/lib/{instrumentor/base → core}/DynatraceRootAction.js +5 -4
  49. package/lib/{instrumentor/base → core}/DynatraceWebRequestTiming.js +6 -5
  50. package/lib/{instrumentor/base → core}/ErrorHandler.js +6 -5
  51. package/lib/{instrumentor/base → core}/configuration/Configuration.js +1 -1
  52. package/lib/{instrumentor/base → core}/configuration/ConfigurationDefaults.js +1 -2
  53. package/lib/{instrumentor/base → core}/configuration/ConfigurationHandler.js +2 -2
  54. package/lib/{instrumentor/base → core}/configuration/ManualStartupConfiguration.js +1 -1
  55. package/lib/core/logging/ConsoleLogger.js +27 -0
  56. package/lib/core/logging/LogLevel.js +12 -0
  57. package/lib/dynatrace-transformer.js +1 -1
  58. package/lib/next/Dynatrace.js +86 -0
  59. package/lib/next/DynatraceSecondGenForwarder.js +17 -0
  60. package/lib/next/IDynatrace.js +2 -0
  61. package/lib/next/IDynatraceForwarder.js +2 -0
  62. package/lib/next/appstart/AppStartObserver.js +32 -0
  63. package/lib/next/appstart/AppStartType.js +38 -0
  64. package/lib/next/events/EventCreator.js +77 -0
  65. package/lib/next/events/EventPipeline.js +57 -0
  66. package/lib/next/events/EventTimestamp.js +24 -0
  67. package/lib/next/events/ViewInfoCreator.js +27 -0
  68. package/lib/next/events/modifier/BaseDataEventModifier.js +31 -0
  69. package/lib/next/events/modifier/EventLimitation.js +69 -0
  70. package/lib/next/events/modifier/EventModifierUtil.js +88 -0
  71. package/lib/next/events/modifier/IEventModifier.js +2 -0
  72. package/lib/next/events/modifier/ModifyEventValidation.js +187 -0
  73. package/lib/next/events/modifier/NonFiniteNumbersModifier.js +50 -0
  74. package/lib/next/events/modifier/SendEventValidation.js +84 -0
  75. package/lib/next/events/spec/EventFieldKeysEnum.js +2 -0
  76. package/lib/next/events/spec/EventSpecContstants.js +46 -0
  77. package/lib/next/events/spec/IAppStartEvent.js +2 -0
  78. package/lib/next/events/spec/ICrashEvent.js +2 -0
  79. package/lib/next/events/spec/IErrorCodeEvent.js +2 -0
  80. package/lib/next/events/spec/IErrorExceptionEvent.js +2 -0
  81. package/lib/next/events/spec/IReactNativeEvent.js +2 -0
  82. package/lib/next/events/spec/IRumEvent.js +2 -0
  83. package/lib/next/provider/ITimestampProvider.js +2 -0
  84. package/lib/next/provider/TimestampProvider.js +10 -0
  85. package/package.json +41 -33
  86. package/react-native-dynatrace.podspec +1 -1
  87. package/src/lib/{instrumentor/base → core}/interface/NativeDynatraceBridge.ts +8 -0
  88. package/typings/react-native-dynatrace.d.ts +0 -1
  89. package/android/src/main/java/com/dynatrace/android/agent/DynatraceRNBridgeImpl.java +0 -366
  90. package/android/src/main/java/com/dynatrace/android/agent/DynatraceReactPackage.java +0 -67
  91. package/android/src/main/java/com/dynatrace/android/agent/DynatraceUtils.java +0 -108
  92. package/android/src/main/java/com/dynatrace/android/agent/PrivateDTBridge.java +0 -28
  93. package/android/src/new/java/com/dynatrace/android/agent/DynatraceRNBridge.java +0 -192
  94. package/android/src/old/java/com/dynatrace/android/agent/DynatraceRNBridge.java +0 -194
  95. package/lib/community/Picker.InstrInfo.js +0 -20
  96. package/lib/community/gesture-handler/Touchables.InstrInfo.js +0 -56
  97. package/lib/instrumentor/DynatraceInstrumentation.js +0 -1
  98. package/lib/instrumentor/base/Application.js +0 -16
  99. package/lib/instrumentor/base/DynatraceInternal.js +0 -34
  100. package/lib/instrumentor/base/Logger.js +0 -16
  101. package/lib/instrumentor/base/model/LogLevel.js +0 -17
  102. package/lib/jsx-runtime.js +0 -69
  103. package/lib/react/Component.js +0 -90
  104. package/lib/react-native/Touchables.InstrInfo.js +0 -60
  105. /package/{lib/instrumentor/base/interface → instrumentation/jsx}/IDynatraceProperties.js +0 -0
  106. /package/{lib → instrumentation/libs}/community/gesture-handler/index.js +0 -0
  107. /package/{lib → instrumentation/libs}/gesture-handler.js +0 -0
  108. /package/{lib → instrumentation/libs}/react-native/index.js +0 -0
  109. /package/{lib → instrumentation/libs}/react-native.js +0 -0
  110. /package/{lib/instrumentor → instrumentation}/model/Reference.js +0 -0
  111. /package/{lib/instrumentor → instrumentation}/parser/Babel.js +0 -0
  112. /package/lib/{instrumentor/base → core}/DynatraceBridge.js +0 -0
  113. /package/lib/{instrumentor/base → core}/NullAction.js +0 -0
  114. /package/lib/{instrumentor/base → core}/NullRootAction.js +0 -0
  115. /package/lib/{instrumentor/base → core}/NullWebRequestTiming.js +0 -0
  116. /package/lib/{instrumentor/base → core}/UserPrivacyOptions.js +0 -0
  117. /package/lib/{instrumentor/base → core}/configuration/ConfigurationBuilder.js +0 -0
  118. /package/lib/{instrumentor/base → core}/configuration/ConfigurationPreset.js +0 -0
  119. /package/lib/{instrumentor/base → core}/configuration/IConfiguration.js +0 -0
  120. /package/lib/{instrumentor/base → core}/interface/IDynatrace.js +0 -0
  121. /package/lib/{instrumentor/base → core}/interface/IDynatraceAction.js +0 -0
  122. /package/lib/{instrumentor/base → core}/interface/IDynatraceInternal.js +0 -0
  123. /package/lib/{instrumentor/base → core}/interface/IDynatraceRootAction.js +0 -0
  124. /package/lib/{instrumentor/base → core}/interface/IWebRequestTiming.js +0 -0
  125. /package/lib/{instrumentor/base → core}/interface/NativeDynatraceBridge.js +0 -0
  126. /package/lib/{instrumentor/base/interface → core/logging}/ILogger.js +0 -0
  127. /package/lib/{instrumentor/base → core}/model/DataCollectionLevel.js +0 -0
  128. /package/lib/{instrumentor/base → core}/model/Json.js +0 -0
  129. /package/lib/{instrumentor/base → core}/model/Platform.js +0 -0
  130. /package/lib/{instrumentor/base → core}/util/StringUtils.js +0 -0
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SendSessionPropertyEventValidation = exports.SendEventValidation = void 0;
4
+ const ConsoleLogger_1 = require("../../../core/logging/ConsoleLogger");
5
+ const TimestampProvider_1 = require("../../provider/TimestampProvider");
6
+ const EventTimestamp_1 = require("../EventTimestamp");
7
+ const EventSpecContstants_1 = require("../spec/EventSpecContstants");
8
+ const EventLimitation_1 = require("./EventLimitation");
9
+ class SendEventValidationImpl {
10
+ constructor(timestampProvider, namespaceWhitelist, fieldWhitelist, loggerName) {
11
+ this.logger = new ConsoleLogger_1.ConsoleLogger(loggerName);
12
+ this.timestampProvider = timestampProvider;
13
+ this.fieldWhitelist = fieldWhitelist;
14
+ this.namespaceWhitelist = namespaceWhitelist;
15
+ }
16
+ modifyEvent(event) {
17
+ this.logger.debug(`modifyEvent(${JSON.stringify(event)})`);
18
+ if (event == null) {
19
+ return null;
20
+ }
21
+ else if (Object.keys(event).length === 0) {
22
+ return Object.assign({}, new EventTimestamp_1.EventTimestamp(this.timestampProvider).getEventTimeInfo());
23
+ }
24
+ const timeNow = this.timestampProvider.getCurrentTimestamp();
25
+ const eventCopy = Object.entries(event).slice();
26
+ const filteredEvent = eventCopy
27
+ .filter(this.isKeyNameAllowed, this)
28
+ .filter(this.isFieldTypeAllowed, this);
29
+ const limitedEntries = new EventLimitation_1.EventLimitation().limitEventEntries(filteredEvent);
30
+ const sizedEntries = new EventLimitation_1.EventLimitation().limitEventProperties(limitedEntries);
31
+ this.applyOverriddenKeys(sizedEntries);
32
+ sizedEntries.push([
33
+ "dt.rum.api.has_dropped_fields",
34
+ sizedEntries.length < eventCopy.length,
35
+ ]);
36
+ const jsonObject = Object.fromEntries(sizedEntries);
37
+ if (jsonObject["duration"] !== undefined) {
38
+ jsonObject["start_time"] =
39
+ timeNow - jsonObject["duration"];
40
+ }
41
+ else {
42
+ jsonObject["start_time"] = timeNow;
43
+ jsonObject["duration"] = 0;
44
+ }
45
+ return jsonObject;
46
+ }
47
+ applyOverriddenKeys(eventEntries) {
48
+ const overriddenKeys = [];
49
+ for (const [key, value] of eventEntries) {
50
+ if (this.fieldWhitelist.includes(key)) {
51
+ overriddenKeys.push(key);
52
+ }
53
+ }
54
+ if (overriddenKeys.length > 0) {
55
+ eventEntries.push([
56
+ "dt.rum.overridden_keys",
57
+ overriddenKeys,
58
+ ]);
59
+ }
60
+ }
61
+ isFieldTypeAllowed(entry) {
62
+ const [key, value] = entry;
63
+ if (key === "duration" ||
64
+ key === "start_time") {
65
+ return typeof value === 'number' && isFinite(value) && value >= 0;
66
+ }
67
+ return true;
68
+ }
69
+ isKeyNameAllowed(entry) {
70
+ const [key] = entry;
71
+ for (const namespace of this.namespaceWhitelist) {
72
+ if (key.startsWith(`${namespace}.`)) {
73
+ return true;
74
+ }
75
+ }
76
+ if (this.fieldWhitelist.includes(key)) {
77
+ return true;
78
+ }
79
+ this.logger.debug(`isKeyNameAllowed(): Filtering key ${key} as this field or namespace is reserved!`);
80
+ return false;
81
+ }
82
+ }
83
+ exports.SendEventValidation = new SendEventValidationImpl(TimestampProvider_1.defaultTimestampProvider, EventSpecContstants_1.SEND_EVENT_WHITELIST_NAMESPACES, EventSpecContstants_1.SEND_EVENT_WHITELIST_FIELDS, 'SendEventValidation');
84
+ exports.SendSessionPropertyEventValidation = new SendEventValidationImpl(TimestampProvider_1.defaultTimestampProvider, EventSpecContstants_1.SEND_SESSION_PROPERTY_EVENT_WHITELIST_NAMESPACES, EventSpecContstants_1.SEND_SESSION_PROPERTY_EVENT_WHITELIST_FIELDS, 'SendSessionPropertyEventValidation');
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MODIFY_EVENT_WHITELIST_NAMESPACE = exports.MODIFY_EVENT_WHITELIST_FIELDS = exports.SEND_SESSION_PROPERTY_EVENT_WHITELIST_FIELDS = exports.SEND_EVENT_WHITELIST_FIELDS = exports.SEND_SESSION_PROPERTY_EVENT_WHITELIST_NAMESPACES = exports.SEND_EVENT_WHITELIST_NAMESPACES = exports.AllCharacteristicsKeys = exports.KEY_NAME_REGEX = exports.MAX_CUSTOM_EVENT_VALUE_LENGTH = exports.MAX_CUSTOM_EVENT_KEY_LENGTH = exports.MAX_CUSTOM_EVENT_FIELDS = void 0;
4
+ exports.MAX_CUSTOM_EVENT_FIELDS = 50;
5
+ exports.MAX_CUSTOM_EVENT_KEY_LENGTH = 100;
6
+ exports.MAX_CUSTOM_EVENT_VALUE_LENGTH = 5000;
7
+ exports.KEY_NAME_REGEX = RegExp('^[a-z0-9]+(?:\\.[a-z][a-z0-9]*|_[a-z0-9]+)*$');
8
+ exports.AllCharacteristicsKeys = [
9
+ "characteristics.has_anr",
10
+ "characteristics.has_crash",
11
+ "characteristics.has_csp_violation",
12
+ "characteristics.has_error",
13
+ "characteristics.has_exception",
14
+ "characteristics.has_failed_request",
15
+ "characteristics.has_request",
16
+ "characteristics.has_w3c_navigation_timings",
17
+ "characteristics.has_w3c_resource_timings",
18
+ "characteristics.has_navigation",
19
+ "characteristics.has_page_summary",
20
+ "characteristics.has_user_interaction",
21
+ "characteristics.has_view_summary",
22
+ "characteristics.is_api_reported",
23
+ "characteristics.is_app_start",
24
+ "characteristics.is_internal",
25
+ "characteristics.is_self_monitoring",
26
+ "characteristics.is_visibility_change",
27
+ "characteristics.has_event_properties",
28
+ "characteristics.has_session_properties",
29
+ ];
30
+ exports.SEND_EVENT_WHITELIST_NAMESPACES = [
31
+ "event_properties",
32
+ ];
33
+ exports.SEND_SESSION_PROPERTY_EVENT_WHITELIST_NAMESPACES = [
34
+ "session_properties",
35
+ ];
36
+ exports.SEND_EVENT_WHITELIST_FIELDS = [
37
+ "duration",
38
+ ];
39
+ exports.SEND_SESSION_PROPERTY_EVENT_WHITELIST_FIELDS = exports.SEND_EVENT_WHITELIST_FIELDS;
40
+ exports.MODIFY_EVENT_WHITELIST_FIELDS = [
41
+ "exception.stack_trace",
42
+ ];
43
+ exports.MODIFY_EVENT_WHITELIST_NAMESPACE = [
44
+ "session_properties",
45
+ "event_properties",
46
+ ];
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.defaultTimestampProvider = exports.TimestampProvider = void 0;
4
+ class TimestampProvider {
5
+ getCurrentTimestamp() {
6
+ return new Date().getTime();
7
+ }
8
+ }
9
+ exports.TimestampProvider = TimestampProvider;
10
+ exports.defaultTimestampProvider = new TimestampProvider();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynatrace/react-native-plugin",
3
- "version": "2.307.1",
3
+ "version": "2.309.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",
@@ -74,8 +74,8 @@
74
74
  "author": "Dynatrace",
75
75
  "license": "SEE LICENSE IN LICENSE.md",
76
76
  "dependencies": {
77
- "@babel/runtime": "^7.26.7",
78
- "jscodeshift": "^17.1.2",
77
+ "@babel/runtime": "^7.26.10",
78
+ "jscodeshift": "^17.2.0",
79
79
  "plist": "^3.1.0",
80
80
  "proxy-polyfill": "^0.3.2",
81
81
  "semver": "^7.7.1"
@@ -129,46 +129,54 @@
129
129
  "uglify-js": "^3.17.4"
130
130
  },
131
131
  "files": [
132
- "command/command.js",
133
- "command/util/*",
134
- "command/interface/*",
135
- "android/build.gradle",
136
- "android/src/**/*",
137
- "ios/**/*",
138
- "files/*",
139
- "lib/instrumentor/base/*.js",
140
- "lib/instrumentor/base/model/*.js",
141
- "lib/instrumentor/base/configuration/*.js",
142
- "lib/instrumentor/base/configuration/interface/*.js",
143
- "lib/instrumentor/base/interface/*.js",
144
- "lib/instrumentor/base/util/*.js",
145
- "lib/instrumentor/model/*.js",
146
- "lib/instrumentor/parser/*.js",
147
- "lib/instrumentor/DynatraceInstrumentation.js",
148
- "lib/*.js",
149
- "lib/community/*.js",
150
- "lib/community/gesture-handler/*.js",
151
- "lib/react-navigation/*.js",
152
- "lib/react-native/*.js",
153
- "lib/react-native/Touchables.jsx",
154
- "lib/react/*.js",
155
- "lib/metro/*.js",
156
- "lib/util/*.js",
157
132
  "react-native.config.js",
158
133
  "react-native-dynatrace.js",
159
134
  "react-native-dynatrace.podspec",
135
+ "jsx-runtime.js",
136
+ "jsx-dev-runtime.js",
160
137
  "README.md",
161
138
  "LICENSE.md",
139
+ "package.json",
140
+ "android/build.gradle",
141
+ "android/src/**/*",
142
+ "ios/**/*",
143
+ "files/*",
144
+ "typings/*",
145
+ "command/command.js",
146
+ "command/util/*",
147
+ "command/interface/*",
162
148
  "scripts/*",
163
149
  "scripts/api/*",
164
150
  "scripts/core/*",
165
151
  "scripts/api/model/*",
166
152
  "scripts/util/*",
167
- "typings/*",
168
- "package.json",
169
- "jsx-runtime.js",
170
- "jsx-dev-runtime.js",
171
- "src/lib/instrumentor/base/interface/NativeDynatraceBridge.ts"
153
+ "instrumentation/jsx/*.js",
154
+ "instrumentation/jsx/components/*.js",
155
+ "instrumentation/libs/*.js",
156
+ "instrumentation/libs/community/*.js",
157
+ "instrumentation/libs/community/gesture-handler/*.js",
158
+ "instrumentation/libs/react-navigation/*.js",
159
+ "instrumentation/libs/react-native/*.js",
160
+ "instrumentation/libs/react-native/Touchables.jsx",
161
+ "instrumentation/model/*.js",
162
+ "instrumentation/parser/*.js",
163
+ "instrumentation/DynatraceInstrumentation.js",
164
+ "lib/*.js",
165
+ "lib/core/*.js",
166
+ "lib/core/configuration/*.js",
167
+ "lib/core/interface/*.js",
168
+ "lib/core/logging/*.js",
169
+ "lib/core/model/*.js",
170
+ "lib/core/util/*.js",
171
+ "lib/core/*.js",
172
+ "lib/metro/*.js",
173
+ "lib/next/*.js",
174
+ "lib/next/appstart/*.js",
175
+ "lib/next/events/*.js",
176
+ "lib/next/events/modifier/*.js",
177
+ "lib/next/events/spec/*.js",
178
+ "lib/next/provider/*.js",
179
+ "src/lib/core/interface/NativeDynatraceBridge.ts"
172
180
  ],
173
181
  "codegenConfig": {
174
182
  "name": "DynatraceBridgeSpec",
@@ -111,7 +111,7 @@ Pod::Spec.new do |s|
111
111
  #
112
112
 
113
113
  s.dependency "React"
114
- s.dependency 'Dynatrace', '~> 8.307.1.1014'
114
+ s.dependency 'Dynatrace', '~> 8.309.1.1009'
115
115
 
116
116
  # Allows for better compatibility for older and newer versions
117
117
  if defined?(install_modules_dependencies)
@@ -6,6 +6,10 @@ import { TurboModuleRegistry } from 'react-native';
6
6
  import { UnsafeObject } from 'react-native/Libraries/Types/CodegenTypes';
7
7
 
8
8
  export interface Spec extends TurboModule {
9
+ // Event Listener for AppStart
10
+ addListener: (eventName: string) => void;
11
+ removeListeners: (count: number) => void;
12
+
9
13
  getConstants: () => {
10
14
  DATA_COLLECTION_OFF: string;
11
15
  DATA_COLLECTION_PERFORMANCE: string;
@@ -154,6 +158,10 @@ export interface Spec extends TurboModule {
154
158
  requestSize: number,
155
159
  responseSize: number,
156
160
  ): void;
161
+
162
+ startView(name: string): void;
163
+
164
+ stopView(): void;
157
165
  }
158
166
 
159
167
  // eslint-disable-next-line @typescript-eslint/consistent-type-definitions
@@ -581,7 +581,6 @@ export declare const Dynatrace: {
581
581
  */
582
582
  sendBizEvent(type: string, attributes?: JSONObject, platform?: Platform): void;
583
583
  }
584
-
585
584
  export declare interface IDynatraceAction {
586
585
  /**
587
586
  * Reports an error as key-value pair with the time at which it occurred.