@dynatrace/react-native-plugin 2.279.3 → 2.283.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 (89) hide show
  1. package/README.md +20 -9
  2. package/android/build.gradle +40 -6
  3. package/android/src/main/java/com/dynatrace/android/agent/{DynatraceRNBridge.java → DynatraceRNBridgeImpl.java} +15 -45
  4. package/android/src/main/java/com/dynatrace/android/agent/DynatraceReactPackage.java +31 -13
  5. package/android/src/new/java/com/dynatrace/android/agent/DynatraceRNBridge.java +187 -0
  6. package/android/src/old/java/com/dynatrace/android/agent/DynatraceRNBridge.java +189 -0
  7. package/files/plugin.gradle +1 -1
  8. package/ios/DynatraceRNBridge.h +9 -1
  9. package/ios/DynatraceRNBridge.m +16 -1
  10. package/ios/lib/Dynatrace.xcframework/Info.plist +16 -8
  11. package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeDirectory +0 -0
  12. package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeRequirements +0 -0
  13. package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  14. package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeResources +1058 -0
  15. package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeSignature +0 -0
  16. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Dynatrace +0 -0
  17. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace-Swift.h +106 -59
  18. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace.h +1 -1
  19. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Info.plist +0 -0
  20. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  21. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.abi.json +1 -1
  22. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.private.swiftinterface +3 -2
  23. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  24. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.swiftinterface +3 -2
  25. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/PrivacyInfo.xcprivacy +100 -0
  26. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
  27. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace-Swift.h +212 -118
  28. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +1 -1
  29. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
  30. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  31. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  32. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json +1 -1
  33. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +3 -2
  34. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  35. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3 -2
  36. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json +1 -1
  37. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +3 -2
  38. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  39. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3 -2
  40. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/PrivacyInfo.xcprivacy +100 -0
  41. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +40 -29
  42. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Dynatrace +0 -0
  43. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace-Swift.h +106 -59
  44. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace.h +1 -1
  45. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Info.plist +0 -0
  46. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo +0 -0
  47. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.private.swiftinterface +3 -2
  48. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.swiftdoc +0 -0
  49. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.swiftinterface +3 -2
  50. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/PrivacyInfo.xcprivacy +100 -0
  51. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
  52. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace-Swift.h +212 -118
  53. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +1 -1
  54. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
  55. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo +0 -0
  56. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo +0 -0
  57. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.private.swiftinterface +3 -2
  58. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftdoc +0 -0
  59. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftinterface +3 -2
  60. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.private.swiftinterface +3 -2
  61. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc +0 -0
  62. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface +3 -2
  63. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/PrivacyInfo.xcprivacy +100 -0
  64. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +36 -25
  65. package/lib/instrumentor/DynatraceInstrumentation.js +1 -1
  66. package/lib/instrumentor/base/Dynatrace.js +23 -23
  67. package/lib/instrumentor/base/DynatraceAction.js +7 -7
  68. package/lib/instrumentor/base/DynatraceBridge.js +4 -1
  69. package/lib/instrumentor/base/DynatraceInternal.js +2 -2
  70. package/lib/instrumentor/base/DynatraceRootAction.js +1 -1
  71. package/lib/instrumentor/base/ElementHelper.js +6 -3
  72. package/lib/instrumentor/base/Picker.js +40 -31
  73. package/lib/instrumentor/base/RefreshControl.js +29 -17
  74. package/lib/instrumentor/base/Switch.js +57 -0
  75. package/lib/instrumentor/base/Touchable.js +12 -12
  76. package/lib/instrumentor/base/interface/IDynatraceProperties.js +7 -0
  77. package/lib/instrumentor/base/interface/NativeDynatraceBridge.js +4 -0
  78. package/lib/instrumentor/base/model/DataCollectionLevel.js +21 -5
  79. package/lib/instrumentor/base/model/Platform.js +5 -2
  80. package/lib/instrumentor/model/Types.js +1 -0
  81. package/lib/react-native/Switch.InstrInfo.js +12 -0
  82. package/lib/react-native/Switch.js +15 -0
  83. package/lib/react-native/index.js +3 -1
  84. package/lib/react-native.js +2 -0
  85. package/package.json +175 -1
  86. package/react-native-dynatrace.podspec +25 -0
  87. package/scripts/Android.js +9 -1
  88. package/src/lib/instrumentor/base/interface/NativeDynatraceBridge.ts +90 -0
  89. package/lib/instrumentor/base/interface/IDynatraceBridge.js +0 -2
@@ -0,0 +1,187 @@
1
+ package com.dynatrace.android.agent;
2
+
3
+ import com.facebook.react.bridge.Promise;
4
+ import com.facebook.react.bridge.ReadableMap;
5
+ import com.facebook.react.bridge.ReactApplicationContext;
6
+
7
+ import java.util.Map;
8
+
9
+ public class DynatraceRNBridge extends NativeDynatraceBridgeSpec {
10
+
11
+ private final DynatraceRNBridgeImpl impl;
12
+
13
+ public DynatraceRNBridge(ReactApplicationContext reactContext, PrivateDTBridge internal) {
14
+ super(reactContext);
15
+ this.impl = new DynatraceRNBridgeImpl(reactContext, internal);
16
+ }
17
+
18
+ @Override
19
+ public String getName(){
20
+ return DynatraceRNBridgeImpl.NAME;
21
+ }
22
+
23
+ @Override
24
+ public Map<String, Object> getTypedExportedConstants() {
25
+ return this.impl.getConstants();
26
+ }
27
+
28
+ @Override
29
+ public void start(ReadableMap configuration, Promise promise) {
30
+ this.impl.start(configuration, promise);
31
+ }
32
+
33
+ @Override
34
+ public void enterAction(String name, String key, String platform) {
35
+ this.impl.enterAction(name, key, platform);
36
+ }
37
+
38
+ @Override
39
+ public void enterManualAction(String name, String key, String platform) {
40
+ this.impl.enterManualAction(name, key, platform);
41
+ }
42
+
43
+ @Override
44
+ public void enterManualActionWithParent(String name, String key, String parentKey, String platform) {
45
+ this.impl.enterManualActionWithParent(name, key, parentKey, platform);
46
+ }
47
+
48
+ @Override
49
+ public void leaveAction(String key, boolean leave, String platform) {
50
+ this.impl.leaveAction(key, leave, platform);
51
+ }
52
+
53
+ @Override
54
+ public void cancelAction(String key, String platform) {
55
+ this.impl.cancelAction(key, platform);
56
+ }
57
+
58
+ @Override
59
+ public void endVisit(String platform) {
60
+ this.impl.endVisit(platform);
61
+ }
62
+
63
+ @Override
64
+ public void reportErrorWithoutStacktrace(String errorName, double errorCode, String platform) {
65
+ this.impl.reportErrorWithoutStacktrace(errorName, (int) errorCode, platform);
66
+ }
67
+
68
+ @Override
69
+ public void reportError(String errorName, String errorValue, String reason, String stacktrace, String platform){
70
+ this.impl.reportError(errorName, errorValue, reason, stacktrace, platform);
71
+ }
72
+
73
+ @Override
74
+ public void reportCrash(String errorName, String reason, String stacktrace, boolean isRealError, boolean newSession, String platform){
75
+ this.impl.reportCrash(errorName, reason, stacktrace, isRealError, newSession, platform);
76
+ }
77
+
78
+ @Override
79
+ public void storeCrash(String errorName, String reason, String stacktrace, String platform){
80
+ // Empty on Purpose
81
+ }
82
+
83
+ @Override
84
+ public void reportErrorInAction(String key, String errorName, double errorCode, String platform) {
85
+ this.impl.reportErrorInAction(key, errorName, (int) errorCode, platform);
86
+ }
87
+
88
+ @Override
89
+ public void reportValue(String key, String valueName, String value, String platform) {
90
+ this.impl.reportValue(key, valueName, value, platform);
91
+ }
92
+
93
+ @Override
94
+ public void getRequestTag(String key, String url, Promise promise){
95
+ this.impl.getRequestTag(key, url, promise);
96
+ }
97
+
98
+ @Override
99
+ public void startWebRequestTiming(String requestTag, String url) {
100
+ this.impl.startWebRequestTiming(requestTag, url);
101
+ }
102
+
103
+ @Override
104
+ public void stopWebRequestTiming(String requestTag, String url, double responseCode, String responseMessage) {
105
+ this.impl.stopWebRequestTiming(requestTag, url, (int) responseCode, responseMessage);
106
+ }
107
+
108
+ @Override
109
+ public void identifyUser(String user, String platform) {
110
+ this.impl.identifyUser(user, platform);
111
+ }
112
+
113
+ @Override
114
+ public void reportEventInAction(String actionKey, String name, String platform) {
115
+ this.impl.reportEventInAction(actionKey, name, platform);
116
+ }
117
+
118
+ @Override
119
+ public void reportStringValueInAction(String actionKey, String name, String value, String platform) {
120
+ this.impl.reportStringValueInAction(actionKey, name, value, platform);
121
+ }
122
+
123
+ @Override
124
+ public void reportIntValueInAction(String actionKey, String name, double value, String platform) {
125
+ this.impl.reportIntValueInAction(actionKey, name, (int) value, platform);
126
+ }
127
+
128
+ @Override
129
+ public void reportDoubleValueInAction(String actionKey, String name, double value, String platform) {
130
+ this.impl.reportDoubleValueInAction(actionKey, name, value, platform);
131
+ }
132
+
133
+ @Override
134
+ public void sendEvent(String name, ReadableMap attributes, String platform) {
135
+ this.impl.sendEvent(name, attributes, platform);
136
+ }
137
+
138
+ @Override
139
+ public void sendBizEvent(String type, ReadableMap attributes, String platform) {
140
+ this.impl.sendBizEvent(type, attributes, platform);
141
+ }
142
+
143
+ @Override
144
+ public void setGPSLocation(double latitude, double longitude, String platform){
145
+ this.impl.setGPSLocation(latitude, longitude, platform);
146
+ }
147
+
148
+ @Override
149
+ public void flushEvents(String platform){
150
+ this.impl.flushEvents(platform);
151
+ }
152
+
153
+ @Override
154
+ public void isCrashReportingOptedIn(String platform, Promise promise){
155
+ this.impl.isCrashReportingOptedIn(platform, promise);
156
+ }
157
+
158
+ @Override
159
+ public void setCrashReportingOptedIn(boolean crashReporting, String platform){
160
+ this.impl.setCrashReportingOptedIn(crashReporting, platform);
161
+ }
162
+
163
+ @Override
164
+ public void setDataCollectionLevel(String collectionLevel, String platform){
165
+ this.impl.setDataCollectionLevel(collectionLevel, platform);
166
+ }
167
+
168
+ @Override
169
+ public void getDataCollectionLevel(String platform, Promise promise){
170
+ this.impl.getDataCollectionLevel(platform, promise);
171
+ }
172
+
173
+ @Override
174
+ public void setBeaconHeaders(ReadableMap headers, String platform){
175
+ this.impl.setBeaconHeaders(headers, platform);
176
+ }
177
+
178
+ @Override
179
+ public void applyUserPrivacyOptions(ReadableMap userPrivacyOptions, String platform){
180
+ this.impl.applyUserPrivacyOptions(userPrivacyOptions, platform);
181
+ }
182
+
183
+ @Override
184
+ public void getUserPrivacyOptions(String platform, Promise promise){
185
+ this.impl.getUserPrivacyOptions(platform, promise);
186
+ }
187
+ }
@@ -0,0 +1,189 @@
1
+ package com.dynatrace.android.agent;
2
+
3
+ import com.facebook.react.bridge.Promise;
4
+ import com.facebook.react.bridge.ReadableMap;
5
+ import com.facebook.react.bridge.ReactContextBaseJavaModule;
6
+ import com.facebook.react.bridge.ReactApplicationContext;
7
+ import com.facebook.react.bridge.ReactMethod;
8
+
9
+ import java.util.Map;
10
+
11
+ public class DynatraceRNBridge extends ReactContextBaseJavaModule {
12
+
13
+ private final DynatraceRNBridgeImpl impl;
14
+
15
+ public DynatraceRNBridge(ReactApplicationContext reactContext, PrivateDTBridge internal) {
16
+ super(reactContext);
17
+ this.impl = new DynatraceRNBridgeImpl(reactContext, internal);
18
+ }
19
+
20
+ @Override
21
+ public String getName(){
22
+ return DynatraceRNBridgeImpl.NAME;
23
+ }
24
+
25
+ @Override
26
+ public Map<String, Object> getConstants() {
27
+ return this.impl.getConstants();
28
+ }
29
+
30
+ @ReactMethod
31
+ public void start(ReadableMap configuration, Promise promise) {
32
+ this.impl.start(configuration, promise);
33
+ }
34
+
35
+ @ReactMethod
36
+ public void enterAction(String name, String key, String platform) {
37
+ this.impl.enterAction(name, key, platform);
38
+ }
39
+
40
+ @ReactMethod
41
+ public void enterManualAction(String name, String key, String platform) {
42
+ this.impl.enterManualAction(name, key, platform);
43
+ }
44
+
45
+ @ReactMethod
46
+ public void enterManualActionWithParent(String name, String key, String parentKey, String platform) {
47
+ this.impl.enterManualActionWithParent(name, key, parentKey, platform);
48
+ }
49
+
50
+ @ReactMethod
51
+ public void leaveAction(String key, boolean leave, String platform) {
52
+ this.impl.leaveAction(key, leave, platform);
53
+ }
54
+
55
+ @ReactMethod
56
+ public void cancelAction(String key, String platform) {
57
+ this.impl.cancelAction(key, platform);
58
+ }
59
+
60
+ @ReactMethod
61
+ public void endVisit(String platform) {
62
+ this.impl.endVisit(platform);
63
+ }
64
+
65
+ @ReactMethod
66
+ public void reportErrorWithoutStacktrace(String errorName, int errorCode, String platform) {
67
+ this.impl.reportErrorWithoutStacktrace(errorName, errorCode, platform);
68
+ }
69
+
70
+ @ReactMethod
71
+ public void reportError(String errorName, String errorValue, String reason, String stacktrace, String platform){
72
+ this.impl.reportError(errorName, errorValue, reason, stacktrace, platform);
73
+ }
74
+
75
+ @ReactMethod
76
+ public void reportCrash(String errorName, String reason, String stacktrace, boolean isRealError, boolean newSession, String platform){
77
+ this.impl.reportCrash(errorName, reason, stacktrace, isRealError, newSession, platform);
78
+ }
79
+
80
+ @ReactMethod
81
+ public void storeCrash(String errorName, String reason, String stacktrace, String platform){
82
+ // Empty on Purpose
83
+ }
84
+
85
+ @ReactMethod
86
+ public void reportErrorInAction(String key, String errorName, int errorCode, String platform) {
87
+ this.impl.reportErrorInAction(key, errorName, errorCode, platform);
88
+ }
89
+
90
+ @ReactMethod
91
+ public void reportValue(String key, String valueName, String value, String platform) {
92
+ this.impl.reportValue(key, valueName, value, platform);
93
+ }
94
+
95
+ @ReactMethod
96
+ public void getRequestTag(String key, String url, Promise promise){
97
+ this.impl.getRequestTag(key, url, promise);
98
+ }
99
+
100
+ @ReactMethod
101
+ public void startWebRequestTiming(String requestTag, String url) {
102
+ this.impl.startWebRequestTiming(requestTag, url);
103
+ }
104
+
105
+ @ReactMethod
106
+ public void stopWebRequestTiming(String requestTag, String url, int responseCode, String responseMessage) {
107
+ this.impl.stopWebRequestTiming(requestTag, url, responseCode, responseMessage);
108
+ }
109
+
110
+ @ReactMethod
111
+ public void identifyUser(String user, String platform) {
112
+ this.impl.identifyUser(user, platform);
113
+ }
114
+
115
+ @ReactMethod
116
+ public void reportEventInAction(String actionKey, String name, String platform) {
117
+ this.impl.reportEventInAction(actionKey, name, platform);
118
+ }
119
+
120
+ @ReactMethod
121
+ public void reportStringValueInAction(String actionKey, String name, String value, String platform) {
122
+ this.impl.reportStringValueInAction(actionKey, name, value, platform);
123
+ }
124
+
125
+ @ReactMethod
126
+ public void reportIntValueInAction(String actionKey, String name, int value, String platform) {
127
+ this.impl.reportIntValueInAction(actionKey, name, value, platform);
128
+ }
129
+
130
+ @ReactMethod
131
+ public void reportDoubleValueInAction(String actionKey, String name, double value, String platform) {
132
+ this.impl.reportDoubleValueInAction(actionKey, name, value, platform);
133
+ }
134
+
135
+ @ReactMethod
136
+ public void sendEvent(String name, ReadableMap attributes, String platform) {
137
+ this.impl.sendEvent(name, attributes, platform);
138
+ }
139
+
140
+ @ReactMethod
141
+ public void sendBizEvent(String type, ReadableMap attributes, String platform) {
142
+ this.impl.sendBizEvent(type, attributes, platform);
143
+ }
144
+
145
+ @ReactMethod
146
+ public void setGPSLocation(double latitude, double longitude, String platform){
147
+ this.impl.setGPSLocation(latitude, longitude, platform);
148
+ }
149
+
150
+ @ReactMethod
151
+ public void flushEvents(String platform){
152
+ this.impl.flushEvents(platform);
153
+ }
154
+
155
+ @ReactMethod
156
+ public void isCrashReportingOptedIn(String platform, Promise promise){
157
+ this.impl.isCrashReportingOptedIn(platform, promise);
158
+ }
159
+
160
+ @ReactMethod
161
+ public void setCrashReportingOptedIn(boolean crashReporting, String platform){
162
+ this.impl.setCrashReportingOptedIn(crashReporting, platform);
163
+ }
164
+
165
+ @ReactMethod
166
+ public void setDataCollectionLevel(String collectionLevel, String platform){
167
+ this.impl.setDataCollectionLevel(collectionLevel, platform);
168
+ }
169
+
170
+ @ReactMethod
171
+ public void getDataCollectionLevel(String platform, Promise promise){
172
+ this.impl.getDataCollectionLevel(platform, promise);
173
+ }
174
+
175
+ @ReactMethod
176
+ public void setBeaconHeaders(ReadableMap headers, String platform){
177
+ this.impl.setBeaconHeaders(headers, platform);
178
+ }
179
+
180
+ @ReactMethod
181
+ public void applyUserPrivacyOptions(ReadableMap userPrivacyOptions, String platform){
182
+ this.impl.applyUserPrivacyOptions(userPrivacyOptions, platform);
183
+ }
184
+
185
+ @ReactMethod
186
+ public void getUserPrivacyOptions(String platform, Promise promise){
187
+ this.impl.getUserPrivacyOptions(platform, promise);
188
+ }
189
+ }
@@ -1,3 +1,3 @@
1
1
  dependencies {
2
- classpath 'com.dynatrace.tools.android:gradle-plugin:8.279.1.1002'
2
+ classpath 'com.dynatrace.tools.android:gradle-plugin:8.283.1.1004'
3
3
  }
@@ -5,11 +5,19 @@
5
5
  #ifndef DynatraceRNBridge_h
6
6
  #define DynatraceRNBridge_h
7
7
 
8
- #import <React/RCTBridgeModule.h>
9
8
  @import Dynatrace;
10
9
 
10
+ // For Turbo Module
11
+ #ifdef RCT_NEW_ARCH_ENABLED
12
+ #import "DynatraceBridgeSpec.h"
13
+
14
+ @interface DynatraceRNBridge : NSObject <DynatraceBridgeSpec>
15
+ // For Legacy Native Module
16
+ #else
17
+ #import <React/RCTBridgeModule.h>
11
18
 
12
19
  @interface DynatraceRNBridge : NSObject <RCTBridgeModule>
20
+ #endif
13
21
  - (void) newAction:(NSString *)name key:(NSString *)key parentAction:(DTXAction *)parentAction;
14
22
  - (DTXAction *) getAction:(NSString *)key;
15
23
  - (BOOL) shouldWorkOnIosWithPlatform: (NSString *) platform;
@@ -3,6 +3,12 @@
3
3
  //
4
4
 
5
5
  #import "DynatraceRNBridge.h"
6
+
7
+ // For Turbo Module
8
+ #ifdef RCT_NEW_ARCH_ENABLED
9
+ #import "DynatraceBridgeSpec.h"
10
+ #endif
11
+
6
12
  #import <Foundation/Foundation.h>
7
13
  #import <CoreLocation/CoreLocation.h>
8
14
 
@@ -59,7 +65,7 @@ RCT_EXPORT_METHOD(start:(NSDictionary *) options)
59
65
  }
60
66
 
61
67
  if (options[@"reportCrash"] != NULL && [[options valueForKey:@"reportCrash"] isEqual: @(NO)]) {
62
- properties[@"DTXCrashReporting"] = @NO;
68
+ properties[@"DTXCrashReportingEnabled"] = @NO;
63
69
  }
64
70
 
65
71
  if (options[@"logLevel"] != NULL && [((NSNumber *) options[@"logLevel"]) intValue] == 0){
@@ -466,4 +472,13 @@ RCT_EXPORT_METHOD(applyUserPrivacyOptions:(NSDictionary *) userPrivacyOptions pl
466
472
  return platform == nil || [platform isEqualToString:PlatformiOS] || [platform isEqualToString:@""];
467
473
  }
468
474
 
475
+ // For Turbo Module
476
+ #ifdef RCT_NEW_ARCH_ENABLED
477
+ - (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
478
+ (const facebook::react::ObjCTurboModule::InitParams &)params
479
+ {
480
+ return std::make_shared<facebook::react::<NativeDynatraceBridgeSpecJSI>>(params);
481
+ }
482
+ #endif
483
+
469
484
  @end
@@ -5,6 +5,8 @@
5
5
  <key>AvailableLibraries</key>
6
6
  <array>
7
7
  <dict>
8
+ <key>BinaryPath</key>
9
+ <string>Dynatrace.framework/Dynatrace</string>
8
10
  <key>LibraryIdentifier</key>
9
11
  <string>tvos-arm64</string>
10
12
  <key>LibraryPath</key>
@@ -17,8 +19,10 @@
17
19
  <string>tvos</string>
18
20
  </dict>
19
21
  <dict>
22
+ <key>BinaryPath</key>
23
+ <string>Dynatrace.framework/Dynatrace</string>
20
24
  <key>LibraryIdentifier</key>
21
- <string>ios-arm64_x86_64-simulator</string>
25
+ <string>tvos-arm64_x86_64-simulator</string>
22
26
  <key>LibraryPath</key>
23
27
  <string>Dynatrace.framework</string>
24
28
  <key>SupportedArchitectures</key>
@@ -27,36 +31,40 @@
27
31
  <string>x86_64</string>
28
32
  </array>
29
33
  <key>SupportedPlatform</key>
30
- <string>ios</string>
34
+ <string>tvos</string>
31
35
  <key>SupportedPlatformVariant</key>
32
36
  <string>simulator</string>
33
37
  </dict>
34
38
  <dict>
39
+ <key>BinaryPath</key>
40
+ <string>Dynatrace.framework/Dynatrace</string>
35
41
  <key>LibraryIdentifier</key>
36
- <string>tvos-arm64_x86_64-simulator</string>
42
+ <string>ios-arm64</string>
37
43
  <key>LibraryPath</key>
38
44
  <string>Dynatrace.framework</string>
39
45
  <key>SupportedArchitectures</key>
40
46
  <array>
41
47
  <string>arm64</string>
42
- <string>x86_64</string>
43
48
  </array>
44
49
  <key>SupportedPlatform</key>
45
- <string>tvos</string>
46
- <key>SupportedPlatformVariant</key>
47
- <string>simulator</string>
50
+ <string>ios</string>
48
51
  </dict>
49
52
  <dict>
53
+ <key>BinaryPath</key>
54
+ <string>Dynatrace.framework/Dynatrace</string>
50
55
  <key>LibraryIdentifier</key>
51
- <string>ios-arm64</string>
56
+ <string>ios-arm64_x86_64-simulator</string>
52
57
  <key>LibraryPath</key>
53
58
  <string>Dynatrace.framework</string>
54
59
  <key>SupportedArchitectures</key>
55
60
  <array>
56
61
  <string>arm64</string>
62
+ <string>x86_64</string>
57
63
  </array>
58
64
  <key>SupportedPlatform</key>
59
65
  <string>ios</string>
66
+ <key>SupportedPlatformVariant</key>
67
+ <string>simulator</string>
60
68
  </dict>
61
69
  </array>
62
70
  <key>CFBundlePackageType</key>