@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.
- package/README.md +20 -9
- package/android/build.gradle +40 -6
- package/android/src/main/java/com/dynatrace/android/agent/{DynatraceRNBridge.java → DynatraceRNBridgeImpl.java} +15 -45
- package/android/src/main/java/com/dynatrace/android/agent/DynatraceReactPackage.java +31 -13
- package/android/src/new/java/com/dynatrace/android/agent/DynatraceRNBridge.java +187 -0
- package/android/src/old/java/com/dynatrace/android/agent/DynatraceRNBridge.java +189 -0
- package/files/plugin.gradle +1 -1
- package/ios/DynatraceRNBridge.h +9 -1
- package/ios/DynatraceRNBridge.m +16 -1
- package/ios/lib/Dynatrace.xcframework/Info.plist +16 -8
- package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeDirectory +0 -0
- package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeRequirements +0 -0
- package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
- package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeResources +1058 -0
- package/ios/lib/Dynatrace.xcframework/_CodeSignature/CodeSignature +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Dynatrace +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace-Swift.h +106 -59
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace.h +1 -1
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Info.plist +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.abi.json +1 -1
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.private.swiftinterface +3 -2
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.swiftinterface +3 -2
- package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/PrivacyInfo.xcprivacy +100 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace-Swift.h +212 -118
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +1 -1
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json +1 -1
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +3 -2
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3 -2
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json +1 -1
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +3 -2
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3 -2
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/PrivacyInfo.xcprivacy +100 -0
- package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +40 -29
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Dynatrace +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace-Swift.h +106 -59
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace.h +1 -1
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Info.plist +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.private.swiftinterface +3 -2
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.swiftdoc +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.swiftinterface +3 -2
- package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/PrivacyInfo.xcprivacy +100 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace-Swift.h +212 -118
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +1 -1
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.private.swiftinterface +3 -2
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftdoc +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftinterface +3 -2
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.private.swiftinterface +3 -2
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc +0 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface +3 -2
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/PrivacyInfo.xcprivacy +100 -0
- package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +36 -25
- package/lib/instrumentor/DynatraceInstrumentation.js +1 -1
- package/lib/instrumentor/base/Dynatrace.js +23 -23
- package/lib/instrumentor/base/DynatraceAction.js +7 -7
- package/lib/instrumentor/base/DynatraceBridge.js +4 -1
- package/lib/instrumentor/base/DynatraceInternal.js +2 -2
- package/lib/instrumentor/base/DynatraceRootAction.js +1 -1
- package/lib/instrumentor/base/ElementHelper.js +6 -3
- package/lib/instrumentor/base/Picker.js +40 -31
- package/lib/instrumentor/base/RefreshControl.js +29 -17
- package/lib/instrumentor/base/Switch.js +57 -0
- package/lib/instrumentor/base/Touchable.js +12 -12
- package/lib/instrumentor/base/interface/IDynatraceProperties.js +7 -0
- package/lib/instrumentor/base/interface/NativeDynatraceBridge.js +4 -0
- package/lib/instrumentor/base/model/DataCollectionLevel.js +21 -5
- package/lib/instrumentor/base/model/Platform.js +5 -2
- package/lib/instrumentor/model/Types.js +1 -0
- package/lib/react-native/Switch.InstrInfo.js +12 -0
- package/lib/react-native/Switch.js +15 -0
- package/lib/react-native/index.js +3 -1
- package/lib/react-native.js +2 -0
- package/package.json +175 -1
- package/react-native-dynatrace.podspec +25 -0
- package/scripts/Android.js +9 -1
- package/src/lib/instrumentor/base/interface/NativeDynatraceBridge.ts +90 -0
- package/lib/instrumentor/base/interface/IDynatraceBridge.js +0 -2
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 5.
|
|
3
|
-
// swift-module-flags: -target x86_64-apple-
|
|
2
|
+
// swift-compiler-version: Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)
|
|
3
|
+
// swift-module-flags: -target x86_64-apple-tvos12.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name Dynatrace
|
|
4
4
|
// swift-module-flags-ignorable: -enable-bare-slash-regex
|
|
5
5
|
@_exported import Dynatrace
|
|
6
6
|
import Swift
|
|
7
7
|
import _Concurrency
|
|
8
8
|
import _StringProcessing
|
|
9
|
+
import _SwiftConcurrencyShims
|
|
Binary file
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// swift-interface-format-version: 1.0
|
|
2
|
-
// swift-compiler-version: Apple Swift version 5.
|
|
3
|
-
// swift-module-flags: -target x86_64-apple-
|
|
2
|
+
// swift-compiler-version: Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1)
|
|
3
|
+
// swift-module-flags: -target x86_64-apple-tvos12.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name Dynatrace
|
|
4
4
|
// swift-module-flags-ignorable: -enable-bare-slash-regex
|
|
5
5
|
@_exported import Dynatrace
|
|
6
6
|
import Swift
|
|
7
7
|
import _Concurrency
|
|
8
8
|
import _StringProcessing
|
|
9
|
+
import _SwiftConcurrencyShims
|
|
@@ -0,0 +1,100 @@
|
|
|
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>NSPrivacyCollectedDataTypes</key>
|
|
6
|
+
<array>
|
|
7
|
+
<dict>
|
|
8
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
9
|
+
<string>NSPrivacyCollectedDataTypeOtherDiagnosticData</string>
|
|
10
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
11
|
+
<true/>
|
|
12
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
13
|
+
<false/>
|
|
14
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
15
|
+
<array>
|
|
16
|
+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
|
17
|
+
</array>
|
|
18
|
+
</dict>
|
|
19
|
+
<dict>
|
|
20
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
21
|
+
<string>NSPrivacyCollectedDataTypePerformanceData</string>
|
|
22
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
23
|
+
<true/>
|
|
24
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
25
|
+
<false/>
|
|
26
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
27
|
+
<array>
|
|
28
|
+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
|
29
|
+
</array>
|
|
30
|
+
</dict>
|
|
31
|
+
<dict>
|
|
32
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
33
|
+
<string>NSPrivacyCollectedDataTypeCrashData</string>
|
|
34
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
35
|
+
<true/>
|
|
36
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
37
|
+
<false/>
|
|
38
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
39
|
+
<array>
|
|
40
|
+
<string>NSPrivacyCollectedDataTypePurposeAppFunctionality</string>
|
|
41
|
+
</array>
|
|
42
|
+
</dict>
|
|
43
|
+
<dict>
|
|
44
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
45
|
+
<string>NSPrivacyCollectedDataTypeProductInteraction</string>
|
|
46
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
47
|
+
<true/>
|
|
48
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
49
|
+
<false/>
|
|
50
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
51
|
+
<array>
|
|
52
|
+
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
|
53
|
+
</array>
|
|
54
|
+
</dict>
|
|
55
|
+
<dict>
|
|
56
|
+
<key>NSPrivacyCollectedDataType</key>
|
|
57
|
+
<string>NSPrivacyCollectedDataTypeUserID</string>
|
|
58
|
+
<key>NSPrivacyCollectedDataTypeLinked</key>
|
|
59
|
+
<true/>
|
|
60
|
+
<key>NSPrivacyCollectedDataTypeTracking</key>
|
|
61
|
+
<false/>
|
|
62
|
+
<key>NSPrivacyCollectedDataTypePurposes</key>
|
|
63
|
+
<array>
|
|
64
|
+
<string>NSPrivacyCollectedDataTypePurposeAnalytics</string>
|
|
65
|
+
</array>
|
|
66
|
+
</dict>
|
|
67
|
+
</array>
|
|
68
|
+
<key>NSPrivacyAccessedAPITypes</key>
|
|
69
|
+
<array>
|
|
70
|
+
<dict>
|
|
71
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
72
|
+
<array>
|
|
73
|
+
<string>C617.1</string>
|
|
74
|
+
</array>
|
|
75
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
76
|
+
<string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
|
|
77
|
+
</dict>
|
|
78
|
+
<dict>
|
|
79
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
80
|
+
<array>
|
|
81
|
+
<string>35F9.1</string>
|
|
82
|
+
</array>
|
|
83
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
84
|
+
<string>NSPrivacyAccessedAPICategorySystemBootTime</string>
|
|
85
|
+
</dict>
|
|
86
|
+
<dict>
|
|
87
|
+
<key>NSPrivacyAccessedAPITypeReasons</key>
|
|
88
|
+
<array>
|
|
89
|
+
<string>CA92.1</string>
|
|
90
|
+
</array>
|
|
91
|
+
<key>NSPrivacyAccessedAPIType</key>
|
|
92
|
+
<string>NSPrivacyAccessedAPICategoryUserDefaults</string>
|
|
93
|
+
</dict>
|
|
94
|
+
</array>
|
|
95
|
+
<key>NSPrivacyTrackingDomains</key>
|
|
96
|
+
<array/>
|
|
97
|
+
<key>NSPrivacyTracking</key>
|
|
98
|
+
<false/>
|
|
99
|
+
</dict>
|
|
100
|
+
</plist>
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
<dict>
|
|
7
7
|
<key>Headers/Dynatrace-Swift.h</key>
|
|
8
8
|
<data>
|
|
9
|
-
|
|
9
|
+
ijL/EWT2ZFIyN51CYuYBOw5b1GQ=
|
|
10
10
|
</data>
|
|
11
11
|
<key>Headers/Dynatrace.h</key>
|
|
12
12
|
<data>
|
|
13
|
-
|
|
13
|
+
H4PokMrmFZSpnMQzHhG43MVFWyQ=
|
|
14
14
|
</data>
|
|
15
15
|
<key>Headers/DynatraceSwiftUI.h</key>
|
|
16
16
|
<data>
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
</data>
|
|
23
23
|
<key>Info.plist</key>
|
|
24
24
|
<data>
|
|
25
|
-
|
|
25
|
+
8hBKCmsIkj41t8Lx+afM2S+uNmQ=
|
|
26
26
|
</data>
|
|
27
27
|
<key>Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
7NkDSA6uBk3ah1SxyPnY3S+04wc=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo</key>
|
|
32
32
|
<data>
|
|
33
|
-
|
|
33
|
+
ZRnaLxASwgdkud108Z8WnzEUcWo=
|
|
34
34
|
</data>
|
|
35
35
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.abi.json</key>
|
|
36
36
|
<data>
|
|
@@ -38,19 +38,19 @@
|
|
|
38
38
|
</data>
|
|
39
39
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.private.swiftinterface</key>
|
|
40
40
|
<data>
|
|
41
|
-
|
|
41
|
+
zEyhdxpLvbnR0uxNK6Yx5yI9B3M=
|
|
42
42
|
</data>
|
|
43
43
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftdoc</key>
|
|
44
44
|
<data>
|
|
45
|
-
|
|
45
|
+
mc8Lqg+PrM3JO3peMz1XRG53/Dg=
|
|
46
46
|
</data>
|
|
47
47
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftinterface</key>
|
|
48
48
|
<data>
|
|
49
|
-
|
|
49
|
+
zEyhdxpLvbnR0uxNK6Yx5yI9B3M=
|
|
50
50
|
</data>
|
|
51
51
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftmodule</key>
|
|
52
52
|
<data>
|
|
53
|
-
|
|
53
|
+
ewvft4D716PCFBoXUS3FVCgdyIU=
|
|
54
54
|
</data>
|
|
55
55
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.abi.json</key>
|
|
56
56
|
<data>
|
|
@@ -58,24 +58,28 @@
|
|
|
58
58
|
</data>
|
|
59
59
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.private.swiftinterface</key>
|
|
60
60
|
<data>
|
|
61
|
-
|
|
61
|
+
iI9IM7gR6hrRZCFfZke4S0ippM0=
|
|
62
62
|
</data>
|
|
63
63
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc</key>
|
|
64
64
|
<data>
|
|
65
|
-
|
|
65
|
+
wCWqU5yjxe4WuIoCMFSUVLSbimA=
|
|
66
66
|
</data>
|
|
67
67
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface</key>
|
|
68
68
|
<data>
|
|
69
|
-
|
|
69
|
+
iI9IM7gR6hrRZCFfZke4S0ippM0=
|
|
70
70
|
</data>
|
|
71
71
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftmodule</key>
|
|
72
72
|
<data>
|
|
73
|
-
|
|
73
|
+
x68ZzcxhZdzXoSiHtX42X00LHG8=
|
|
74
74
|
</data>
|
|
75
75
|
<key>Modules/module.modulemap</key>
|
|
76
76
|
<data>
|
|
77
77
|
4IdwShX8mXAwkLDyqhT/eGcIHq4=
|
|
78
78
|
</data>
|
|
79
|
+
<key>PrivacyInfo.xcprivacy</key>
|
|
80
|
+
<data>
|
|
81
|
+
Ed9+uiufIHjN5Og2YyN/1BKoLGY=
|
|
82
|
+
</data>
|
|
79
83
|
</dict>
|
|
80
84
|
<key>files2</key>
|
|
81
85
|
<dict>
|
|
@@ -83,14 +87,14 @@
|
|
|
83
87
|
<dict>
|
|
84
88
|
<key>hash2</key>
|
|
85
89
|
<data>
|
|
86
|
-
|
|
90
|
+
5+mmCbCDHjdTkKQRb08Zd/PqAKuVSqocCa0pY8bhOAc=
|
|
87
91
|
</data>
|
|
88
92
|
</dict>
|
|
89
93
|
<key>Headers/Dynatrace.h</key>
|
|
90
94
|
<dict>
|
|
91
95
|
<key>hash2</key>
|
|
92
96
|
<data>
|
|
93
|
-
|
|
97
|
+
4Ra3OLfYLOK175c1ME2CVoFV5J5xW7wH4U+efni6ucQ=
|
|
94
98
|
</data>
|
|
95
99
|
</dict>
|
|
96
100
|
<key>Headers/DynatraceSwiftUI.h</key>
|
|
@@ -111,14 +115,14 @@
|
|
|
111
115
|
<dict>
|
|
112
116
|
<key>hash2</key>
|
|
113
117
|
<data>
|
|
114
|
-
|
|
118
|
+
CQOE8fU8wGFLU2vKbi6Xs+aNUOBAoo6rrN8/A6BwoJo=
|
|
115
119
|
</data>
|
|
116
120
|
</dict>
|
|
117
121
|
<key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo</key>
|
|
118
122
|
<dict>
|
|
119
123
|
<key>hash2</key>
|
|
120
124
|
<data>
|
|
121
|
-
|
|
125
|
+
OyiDb6HLikIr+S5lHFhyplhHTWRTq6tfFfREr1h4vSk=
|
|
122
126
|
</data>
|
|
123
127
|
</dict>
|
|
124
128
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.abi.json</key>
|
|
@@ -132,28 +136,28 @@
|
|
|
132
136
|
<dict>
|
|
133
137
|
<key>hash2</key>
|
|
134
138
|
<data>
|
|
135
|
-
|
|
139
|
+
c4sdgwg7n79WPOyfnN6/ZjbABxxB/sAYm8sgxodG0+o=
|
|
136
140
|
</data>
|
|
137
141
|
</dict>
|
|
138
142
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftdoc</key>
|
|
139
143
|
<dict>
|
|
140
144
|
<key>hash2</key>
|
|
141
145
|
<data>
|
|
142
|
-
|
|
146
|
+
AqL+L+Xvkvg3YcsV0MNCVzBZBgddOQC1Gq2AcKU95+4=
|
|
143
147
|
</data>
|
|
144
148
|
</dict>
|
|
145
149
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftinterface</key>
|
|
146
150
|
<dict>
|
|
147
151
|
<key>hash2</key>
|
|
148
152
|
<data>
|
|
149
|
-
|
|
153
|
+
c4sdgwg7n79WPOyfnN6/ZjbABxxB/sAYm8sgxodG0+o=
|
|
150
154
|
</data>
|
|
151
155
|
</dict>
|
|
152
156
|
<key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftmodule</key>
|
|
153
157
|
<dict>
|
|
154
158
|
<key>hash2</key>
|
|
155
159
|
<data>
|
|
156
|
-
|
|
160
|
+
wHF1o13AIFpXWhnzel0qEOtYPYR0fXRIv34Pl3XDRtc=
|
|
157
161
|
</data>
|
|
158
162
|
</dict>
|
|
159
163
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.abi.json</key>
|
|
@@ -167,28 +171,28 @@
|
|
|
167
171
|
<dict>
|
|
168
172
|
<key>hash2</key>
|
|
169
173
|
<data>
|
|
170
|
-
|
|
174
|
+
GdeZyKnPfwrlEp3d8iKjsn0xwX974ASq0JIExNWvfWI=
|
|
171
175
|
</data>
|
|
172
176
|
</dict>
|
|
173
177
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc</key>
|
|
174
178
|
<dict>
|
|
175
179
|
<key>hash2</key>
|
|
176
180
|
<data>
|
|
177
|
-
|
|
181
|
+
ociEJOhnUfJ7dy7yk7FByGwoVaA43lgpzz6IJci97oo=
|
|
178
182
|
</data>
|
|
179
183
|
</dict>
|
|
180
184
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface</key>
|
|
181
185
|
<dict>
|
|
182
186
|
<key>hash2</key>
|
|
183
187
|
<data>
|
|
184
|
-
|
|
188
|
+
GdeZyKnPfwrlEp3d8iKjsn0xwX974ASq0JIExNWvfWI=
|
|
185
189
|
</data>
|
|
186
190
|
</dict>
|
|
187
191
|
<key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftmodule</key>
|
|
188
192
|
<dict>
|
|
189
193
|
<key>hash2</key>
|
|
190
194
|
<data>
|
|
191
|
-
|
|
195
|
+
NYeIhdgxdONmXANfH14xwkAfol2o0RqX0Uuf053TM0Y=
|
|
192
196
|
</data>
|
|
193
197
|
</dict>
|
|
194
198
|
<key>Modules/module.modulemap</key>
|
|
@@ -198,6 +202,13 @@
|
|
|
198
202
|
g60C3JrkicuNdgJaXD2wYp2GZTbknV3kWXwfrmZLdNU=
|
|
199
203
|
</data>
|
|
200
204
|
</dict>
|
|
205
|
+
<key>PrivacyInfo.xcprivacy</key>
|
|
206
|
+
<dict>
|
|
207
|
+
<key>hash2</key>
|
|
208
|
+
<data>
|
|
209
|
+
9qjCJkcI/Weu/JaiEb9UoI6VxwzmUQzkvn/HK2lKXiQ=
|
|
210
|
+
</data>
|
|
211
|
+
</dict>
|
|
201
212
|
</dict>
|
|
202
213
|
<key>rules</key>
|
|
203
214
|
<dict>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var o,n=require("@babel/runtime/helpers/interopRequireDefault"),r=n(require("@babel/runtime/helpers/toConsumableArray")),a=(Object.defineProperty(exports,"t",{value:!0}),exports.instrument=void 0,require("path")),c=require("jscodeshift"),i=require("jscodeshift/src/Collection"),e=require("../../scripts/FileOperationHelper"),t=require("../../scripts/PathsConstants"),u=require("../react-native/Touchables.InstrInfo"),l=require("../react-native/RefreshControl.InstrInfo"),f=require("../community/gesture-handler/Touchables.InstrInfo"),s=require("../community/Picker.InstrInfo"),v=require("./parser/Babel"),d=require("./model/Types"),p=(!function(n){n[n.i=-1]="Filtered",n[n.u=0]="Normal",n[n.o=1]="ReactNative",n[n.l=2]="React"}(o=o||{}),[]),m=(p.push.apply(p,(0,r.default)(u.instrumentationInfo)),p.push.apply(p,(0,r.default)(l.instrumentationInfo)),p.push.apply(p,(0,r.default)(f.instrumentationInfo)),p.push.apply(p,(0,r.default)(s.instrumentationInfo)),["AppRegistry","renderApplication","setUpErrorHandling"]),instrument=function(n,r,e){r=O(r);var t=J(r);if(t!==o.i){var i=!1,u=h(r,n);if(t===o.l)T(u),i=!0;else if(t===o.o)r.endsWith("AppRegistry.js")?void 0!==e&&e.autoStart&&(U(u),i=!0):r.endsWith("renderApplication.js")?(b(u),i=!0):r.endsWith("setUpErrorHandling.js")&&(w(u,e.autoStart),i=!0);else{var t=P(r,e);if(e.custom.reactnavigation&&y(r,u))i=!0;else{if(!t.input&&!t.lifecycle)return null!=e&&e.debug&&console.log("Dynatrace - Filtered All: ".concat(r)),H(r),n;t.lifecycle&&b(u)&&(i=!0),t.input&&p.forEach(function(n){n=z(u,n);u=n.root,i=i||n.v})}}i?(n=u.toSource({quote:"single"}),x(n,r)):H(r),null!=e&&e.debug&&i&&console.log("Dynatrace - Modified Filename: "+r)}else r.includes(a.join("@dynatrace","react-native-plugin"))&&r.endsWith(a.join("lib","instrumentor","base","configuration","ConfigurationPreset.js"))&&void 0!==e&&(t=h(r,n),void 0!==e.lifecycle&&N(t,"getLifecycleUpdate",e.lifecycle.includeUpdate),void 0!==e.debug&&N(t,"getLogLevel",e.debug?0:1),void 0!==e.bundleName&&N(t,"getBundleName",e.bundleName),void 0!==e.input&&void 0!==e.input.actionNamePrivacy&&N(t,"getActionNamePrivacy",e.input.actionNamePrivacy),e.autoStart&&N(t,"isAutoStartupEnabled",e.autoStart),n=t.toSource({quote:"single"}),x(n,r));return n},y=(exports.instrument=instrument,function(n,r){return!!g(n,r)&&(r.find(c.ImportDeclaration).at(0).insertBefore("import { registerListener } from '@dynatrace/react-native-plugin/lib/react-navigation/ReactNavigation';"),!0)}),g=function(n,r){var e=!1;return n.includes("react-navigation")&&n.includes("NavigationContainer.tsx")&&r.find(c.VariableDeclarator).forEach(function(n){e||null==n.value||null==n.value.id||"refContainer"!==n.value.id.name||null!=n.parent&&null!=n.parent.value&&null!=n.parent.value.type&&"VariableDeclaration"===n.parent.value.type&&(n.parent.insertAfter("registerListener(refContainer);"),e=!0)}),e},b=function(n){var r=n.findJSXElements(),t=!1;return 0<r.length&&(n.find(c.FunctionDeclaration).forEach(function(n){var r,e=(0,i.fromPaths)([n]);0<e.findJSXElements().length&&null!=n&&null!=n.value&&null!=n.value.id&&n.value.id.name&&(r=e.find(c.ClassDeclaration),e=e.find(c.ClassExpression),0===r.length)&&0===e.length&&(q(n,d.Types.FunctionalComponent,n.value.id.name),t=!0)}),n.find(c.ClassDeclaration).forEach(function(n){0<(0,i.fromPaths)([n]).findJSXElements().length&&null!=n&&null!=n.value&&n.value.id&&n.value.id.name&&(q(n,d.Types.ClassComponent,n.value.id.name),t=!0)}),n.find(c.ArrowFunctionExpression).forEach(function(n){0<(0,i.fromPaths)([n]).findJSXElements().length&&null!=n.parent&&null!=n.parent.value&&null!=n.parent.value.id&&null!=n.parent.value.id.name&&(q(n,d.Types.FunctionalComponent,n.parent.value.id.name),t=!0)})),t},q=function(n,r,e){for(r=c.expressionStatement(c.assignmentExpression("=",c.memberExpression(c.identifier(e),c.identifier("_dtInfo")),A(r,e)));void 0!==n.parentPath&&"body"!==n.parentPath.name;)n=n.parentPath;void 0!==n.parentPath&&n.insertAfter(r)},A=function(n,r){return c.objectExpression([c.objectProperty(c.identifier("type"),c.numericLiteral(n)),c.objectProperty(c.identifier("name"),c.stringLiteral(r))])},N=function(n,r,e){var n=n.find(c.Identifier).filter(function(n){return n.node.name===r});1===n.length&&"ReturnStatement"===(n=n.paths()[0].parent.value.body.body[0]).type&&("boolean"==typeof e&&(n.argument=c.booleanLiteral(e)),"string"==typeof e&&(n.argument=c.stringLiteral(e)),"number"==typeof e)&&(n.argument=c.numericLiteral(e))},h=function(n,r){return c.withParser((0,v.babelParser)(a.extname(n)))(r)},O=function(n){return a.isAbsolute(n)?n.replace(t.default.getApplicationPath()+a.sep,""):n},H=function(n){try{var r=a.join(t.default.getBuildPath(),n+".dtx");e.default.checkIfFileExistsSync(r),e.default.deleteFileSync(r)}catch(n){}},x=function(n,r){r=a.join(t.default.getBuildPath(),r);try{e.default.checkIfFileExistsSync(a.dirname(r))}catch(n){e.default.createDirectorySync(a.dirname(r))}e.default.writeTextToFileSync(r+".dtx",n)},P=function(n,r){var e={input:!1,lifecycle:!1};return void 0!==r&&(void 0!==r.lifecycle&&void 0!==r.lifecycle.instrument&&r.lifecycle.instrument(n)&&(e.lifecycle=!0),void 0!==r.input)&&void 0!==r.input.instrument&&r.input.instrument(n)&&(e.input=!0),e},T=function(n){var r,n=n.find(c.Program);1===n.length&&(r=c.expressionStatement(c.callExpression(c.memberExpression(c.callExpression(c.identifier("require"),[c.stringLiteral("@dynatrace/react-native-plugin/lib/instrumentor/base/ElementHelper")]),c.identifier("instrumentCreateElement")),[c.memberExpression(c.identifier("module"),c.identifier("exports"))])),n.paths()[0].node.body.push(r))},U=function(n){var r=B(n,"runApplication",!0);1===r.length&&(nn(n,{p:"_DynatraceApplicationHandler",module:"@dynatrace/react-native-plugin",reference:"ApplicationHandler"}),I(r.paths()[0].parent.value.body.body,0,R("_DynatraceApplicationHandler","startup",[])))},w=function(n,r){n=n.paths()[0].value.program.body;null!=n&&(I(n,n.length,_({p:"_DynatraceErrorHandler",module:"@dynatrace/react-native-plugin/lib/instrumentor/base/ErrorHandler",reference:""})),I(n,n.length,R("_DynatraceErrorHandler","registerErrorHandler",[])))},I=function(n,r){for(var e=arguments.length,t=new Array(2<e?e-2:0),i=2;i<e;i++)t[i-2]=arguments[i];return n.splice.apply(n,[r,0].concat(t))},B=function(n,r,t){for(var e=arguments.length,i=new Array(3<e?e-3:0),u=3;u<e;u++)i[u-3]=arguments[u];return n.find(c.Identifier).filter(function(n){return n.node.name===r}).filter(function(n){var r=void 0!==n.parent&&void 0!==n.parent.value;t||(r=r&&void 0!==n.parent.value.params&&n.parent.value.params.length===i.length);for(var e=0;e<0;e++)r=r&&n.parent.value.params[e].name===i[e];return r})},J=function(n){if(n.includes("@dynatrace"))return o.i;var r=a.extname(n);if(".js"!==r&&".ts"!==r&&".tsx"!==r&&".jsx"!==r)return o.i;for(var e=a.parse(n),t=e.dir.split(a.sep),i=0;i<t.length;i++)if("node_modules"===t[i]){if("react-native"===t[i+1]||"create-react-class"===t[i+1]||"react-clone-referenced-element"===t[i+1])return m.includes(e.name)?o.o:o.i;if("react"===t[i+1]&&"index"===e.name)return o.l}return o.u},M=function(n,r,e){var t=k(n,r,e);return V(n,r,e)||t},k=function(n,r,e){var t=G(n,r);return 0<t.length&&(void 0!==(t=E(t,r.reference,!1))&&(e.p=t.localName),Z(n,e),!0)},V=function(n,r,e){var t=C(n,r.module);if(1===t.length){t=E(t,r.reference,!0);if(void 0!==t)return $(n,e.defaultImport,t.localName,"ImportNamespaceSpecifier"===t.type),!0}return!1},z=function(n,r){var e=JSON.parse(JSON.stringify(r.new));return{root:n,v:M(n,r.old,e)||K(n,r.old,r.new.defaultImport)}},G=function(n,r){return n.find(c.ImportDeclaration).filter(function(n){return n.node.source.value===r.module&&null!=n.node.specifiers&&n.node.specifiers.some(function(n){return j(n)&&n.imported.name===r.reference||n.local&&n.local.name===r.reference})})},j=function(n){return void 0!==n.imported},K=function(n,r,e){var t=!1;return n.find(c.CallExpression).filter(function(n){return Q(n.node.callee)&&W(n.node.arguments[0])&&n.node.arguments[0].value===r.module&&void 0!==n.parent}).forEach(function(n){(void 0===n.parent.value.property||void 0!==n.parent.value.property&&void 0!==n.parent.value.property.name&&n.parent.value.property.name===r.reference)&&(n.node.arguments[0].value=e,t=t||!0)}),t},Q=function(n){return"require"===n.name},W=function(n){return"StringLiteral"===n.type||"Literal"===n.type},C=function(n,r){return n.find(c.ImportDeclaration).filter(function(n){return n.node.source.value===r})},E=function(n,e,t){var i;return n.forEach(function(n){void 0!==n.node.specifiers&&(n.node.specifiers=n.node.specifiers.filter(function(n){var r;return j(n)&&!t?((r=n.imported.name!==e)||null==n.local||n.imported.name===n.local.name||(i={localName:n.local.name,type:n.type}),r):!(!j(n)&&t&&(null!=n.local&&(i={localName:n.local.name,type:n.type}),1))}),0===n.node.specifiers.length)&&n.prune()}),i},X=function(n,r){n.find(c.ImportDeclaration).filter(function(n){return n.node.source.value===r.module}).forEach(function(n){null!=n.node.specifiers&&n.node.specifiers.push(F(r))})},Y=function(n,r,e){n.find(c.ImportDeclaration).filter(function(n){return n.node.source.value===r}).forEach(function(n){null!=n.node.specifiers&&n.node.specifiers.push(e)})},D=function(n,r,e){var t=n.find(c.ImportDeclaration);0<t.length?c(t.paths()[0]).insertAfter(S(r,e)):1===(t=n.find(c.Program)).length&&t.paths()[0].node.body.unshift(S(r,e))},Z=function(n,r){0<C(n,r.module).length?X(n,r):D(n,r.module,[F(r)])},$=function(n,r,e,t){var i=C(n,r),t=(t?an:on)(e);0<i.length?Y(n,r,t):D(n,r,[t])},nn=function(n,r){n=n.find(c.VariableDeclaration);0<n.length&&c(n.paths()[0]).insertAfter(_(r))},R=function(n,r,e){return c.expressionStatement(rn(n,r,e))},rn=function(n,r,e){return c.callExpression(un(n,r),e)},_=function(n){return c.variableDeclaration("var",[en(n)])},en=function(n){return c.variableDeclarator(void 0!==n.p?c.identifier(n.p):c.identifier(n.reference),(0<n.reference.length?tn:L)(n))},tn=function(n){return c.memberExpression(L(n),c.identifier(n.reference))},un=function(n,r){return c.memberExpression(c.identifier(n),c.identifier(r))},L=function(n){return c.callExpression(c.identifier("require"),[c.literal(n.module)])},S=function(n,r){return c.importDeclaration(r,c.literal(n))},F=function(n){return void 0!==n.p?c.importSpecifier(c.identifier(n.reference),c.identifier(n.p)):c.importSpecifier(c.identifier(n.reference))},on=function(n){return c.importDefaultSpecifier(c.identifier(n))},an=function(n){return c.importNamespaceSpecifier(c.identifier(n))};
|
|
1
|
+
"use strict";var o,n=require("@babel/runtime/helpers/interopRequireDefault"),r=n(require("@babel/runtime/helpers/toConsumableArray")),a=(Object.defineProperty(exports,"t",{value:!0}),exports.instrument=void 0,require("path")),c=require("jscodeshift"),i=require("jscodeshift/src/Collection"),e=require("../../scripts/FileOperationHelper"),t=require("../../scripts/PathsConstants"),u=require("../react-native/Touchables.InstrInfo"),l=require("../react-native/RefreshControl.InstrInfo"),f=require("../react-native/Switch.InstrInfo"),s=require("../community/gesture-handler/Touchables.InstrInfo"),v=require("../community/Picker.InstrInfo"),d=require("./parser/Babel"),p=require("./model/Types"),m=(!function(n){n[n.i=-1]="Filtered",n[n.u=0]="Normal",n[n.o=1]="ReactNative",n[n.l=2]="React"}(o=o||{}),[]),y=(m.push.apply(m,(0,r.default)(u.instrumentationInfo)),m.push.apply(m,(0,r.default)(l.instrumentationInfo)),m.push.apply(m,(0,r.default)(f.instrumentationInfo)),m.push.apply(m,(0,r.default)(s.instrumentationInfo)),m.push.apply(m,(0,r.default)(v.instrumentationInfo)),["AppRegistry","renderApplication","setUpErrorHandling"]),instrument=function(n,r,e){r=P(r);var t=M(r);if(t!==o.i){var i=!1,u=N(r,n);if(t===o.l)T(u),i=!0;else if(t===o.o)r.endsWith("AppRegistry.js")?void 0!==e&&e.autoStart&&(U(u),i=!0):r.endsWith("renderApplication.js")?(q(u),i=!0):r.endsWith("setUpErrorHandling.js")&&(B(u,e.autoStart),i=!0);else{var t=w(r,e);if(e.custom.reactnavigation&&g(r,u))i=!0;else{if(!t.input&&!t.lifecycle)return null!=e&&e.debug&&console.log("Dynatrace - Filtered All: ".concat(r)),I(r),n;t.lifecycle&&q(u)&&(i=!0),t.input&&m.forEach(function(n){n=G(u,n);u=n.root,i=i||n.v})}}i?(n=u.toSource({quote:"single"}),H(n,r)):I(r),null!=e&&e.debug&&i&&console.log("Dynatrace - Modified Filename: "+r)}else r.includes(a.join("@dynatrace","react-native-plugin"))&&r.endsWith(a.join("lib","instrumentor","base","configuration","ConfigurationPreset.js"))&&void 0!==e&&(t=N(r,n),void 0!==e.lifecycle&&h(t,"getLifecycleUpdate",e.lifecycle.includeUpdate),void 0!==e.debug&&h(t,"getLogLevel",e.debug?0:1),void 0!==e.bundleName&&h(t,"getBundleName",e.bundleName),void 0!==e.input&&void 0!==e.input.actionNamePrivacy&&h(t,"getActionNamePrivacy",e.input.actionNamePrivacy),e.autoStart&&h(t,"isAutoStartupEnabled",e.autoStart),n=t.toSource({quote:"single"}),H(n,r));return n},g=(exports.instrument=instrument,function(n,r){return!!b(n,r)&&(r.find(c.ImportDeclaration).at(0).insertBefore("import { registerListener } from '@dynatrace/react-native-plugin/lib/react-navigation/ReactNavigation';"),!0)}),b=function(n,r){var e=!1;return n.includes("react-navigation")&&n.includes("NavigationContainer.tsx")&&r.find(c.VariableDeclarator).forEach(function(n){e||null==n.value||null==n.value.id||"refContainer"!==n.value.id.name||null!=n.parent&&null!=n.parent.value&&null!=n.parent.value.type&&"VariableDeclaration"===n.parent.value.type&&(n.parent.insertAfter("registerListener(refContainer);"),e=!0)}),e},q=function(n){var r=n.findJSXElements(),t=!1;return 0<r.length&&(n.find(c.FunctionDeclaration).forEach(function(n){var r,e=(0,i.fromPaths)([n]);0<e.findJSXElements().length&&null!=n&&null!=n.value&&null!=n.value.id&&n.value.id.name&&(r=e.find(c.ClassDeclaration),e=e.find(c.ClassExpression),0===r.length)&&0===e.length&&(A(n,p.Types.FunctionalComponent,n.value.id.name),t=!0)}),n.find(c.ClassDeclaration).forEach(function(n){0<(0,i.fromPaths)([n]).findJSXElements().length&&null!=n&&null!=n.value&&n.value.id&&n.value.id.name&&(A(n,p.Types.ClassComponent,n.value.id.name),t=!0)}),n.find(c.ArrowFunctionExpression).forEach(function(n){0<(0,i.fromPaths)([n]).findJSXElements().length&&null!=n.parent&&null!=n.parent.value&&null!=n.parent.value.id&&null!=n.parent.value.id.name&&(A(n,p.Types.FunctionalComponent,n.parent.value.id.name),t=!0)})),t},A=function(n,r,e){for(r=c.expressionStatement(c.assignmentExpression("=",c.memberExpression(c.identifier(e),c.identifier("_dtInfo")),O(r,e)));void 0!==n.parentPath&&"body"!==n.parentPath.name;)n=n.parentPath;void 0!==n.parentPath&&n.insertAfter(r)},O=function(n,r){return c.objectExpression([c.objectProperty(c.identifier("type"),c.numericLiteral(n)),c.objectProperty(c.identifier("name"),c.stringLiteral(r))])},h=function(n,r,e){var n=n.find(c.Identifier).filter(function(n){return n.node.name===r});1===n.length&&"ReturnStatement"===(n=n.paths()[0].parent.value.body.body[0]).type&&("boolean"==typeof e&&(n.argument=c.booleanLiteral(e)),"string"==typeof e&&(n.argument=c.stringLiteral(e)),"number"==typeof e)&&(n.argument=c.numericLiteral(e))},N=function(n,r){return c.withParser((0,d.babelParser)(a.extname(n)))(r)},P=function(n){return a.isAbsolute(n)?n.replace(t.default.getApplicationPath()+a.sep,""):n},I=function(n){try{var r=a.join(t.default.getBuildPath(),n+".dtx");e.default.checkIfFileExistsSync(r),e.default.deleteFileSync(r)}catch(n){}},H=function(n,r){r=a.join(t.default.getBuildPath(),r);try{e.default.checkIfFileExistsSync(a.dirname(r))}catch(n){e.default.createDirectorySync(a.dirname(r))}e.default.writeTextToFileSync(r+".dtx",n)},w=function(n,r){var e={input:!1,lifecycle:!1};return void 0!==r&&(void 0!==r.lifecycle&&void 0!==r.lifecycle.instrument&&r.lifecycle.instrument(n)&&(e.lifecycle=!0),void 0!==r.input)&&void 0!==r.input.instrument&&r.input.instrument(n)&&(e.input=!0),e},T=function(n){var r,n=n.find(c.Program);1===n.length&&(r=c.expressionStatement(c.callExpression(c.memberExpression(c.callExpression(c.identifier("require"),[c.stringLiteral("@dynatrace/react-native-plugin/lib/instrumentor/base/ElementHelper")]),c.identifier("instrumentCreateElement")),[c.memberExpression(c.identifier("module"),c.identifier("exports"))])),n.paths()[0].node.body.push(r))},U=function(n){var r=J(n,"runApplication",!0);1===r.length&&(rn(n,{p:"_DynatraceApplicationHandler",module:"@dynatrace/react-native-plugin",reference:"ApplicationHandler"}),x(r.paths()[0].parent.value.body.body,0,R("_DynatraceApplicationHandler","startup",[])))},B=function(n,r){n=n.paths()[0].value.program.body;null!=n&&(x(n,n.length,_({p:"_DynatraceErrorHandler",module:"@dynatrace/react-native-plugin/lib/instrumentor/base/ErrorHandler",reference:""})),x(n,n.length,R("_DynatraceErrorHandler","registerErrorHandler",[])))},x=function(n,r){for(var e=arguments.length,t=new Array(2<e?e-2:0),i=2;i<e;i++)t[i-2]=arguments[i];return n.splice.apply(n,[r,0].concat(t))},J=function(n,r,t){for(var e=arguments.length,i=new Array(3<e?e-3:0),u=3;u<e;u++)i[u-3]=arguments[u];return n.find(c.Identifier).filter(function(n){return n.node.name===r}).filter(function(n){return void 0!==n.parent&&void 0!==n.parent.value&&void 0!==n.parent.value.params}).filter(function(n){var r=void 0!==n.parent&&void 0!==n.parent.value;t||(r=r&&n.parent.value.params.length===i.length);for(var e=0;e<0;e++)r=r&&n.parent.value.params[e].name===i[e];return r})},M=function(n){if(n.includes("@dynatrace"))return o.i;var r=a.extname(n);if(".js"!==r&&".ts"!==r&&".tsx"!==r&&".jsx"!==r)return o.i;for(var e=a.parse(n),t=e.dir.split(a.sep),i=0;i<t.length;i++)if("node_modules"===t[i]){if("react-native"===t[i+1]||"create-react-class"===t[i+1]||"react-clone-referenced-element"===t[i+1])return y.includes(e.name)?o.o:o.i;if("react"===t[i+1]&&"index"===e.name)return o.l}return o.u},k=function(n,r,e){var t=V(n,r,e);return z(n,r,e)||t},V=function(n,r,e){var t=K(n,r);return 0<t.length&&(void 0!==(t=E(t,r.reference,!1))&&(e.p=t.localName),$(n,e),!0)},z=function(n,r,e){var t=C(n,r.module);if(1===t.length){t=E(t,r.reference,!0);if(void 0!==t)return nn(n,e.defaultImport,t.localName,"ImportNamespaceSpecifier"===t.type),!0}return!1},G=function(n,r){var e=JSON.parse(JSON.stringify(r.new));return{root:n,v:k(n,r.old,e)||Q(n,r.old,r.new.defaultImport)}},K=function(n,r){return n.find(c.ImportDeclaration).filter(function(n){return n.node.source.value===r.module&&null!=n.node.specifiers&&n.node.specifiers.some(function(n){return j(n)&&n.imported.name===r.reference||n.local&&n.local.name===r.reference})})},j=function(n){return void 0!==n.imported},Q=function(n,r,e){var t=!1;return n.find(c.CallExpression).filter(function(n){return W(n.node.callee)&&X(n.node.arguments[0])&&n.node.arguments[0].value===r.module&&void 0!==n.parent}).forEach(function(n){(void 0===n.parent.value.property||void 0!==n.parent.value.property&&void 0!==n.parent.value.property.name&&n.parent.value.property.name===r.reference)&&(n.node.arguments[0].value=e,t=t||!0)}),t},W=function(n){return"require"===n.name},X=function(n){return"StringLiteral"===n.type||"Literal"===n.type},C=function(n,r){return n.find(c.ImportDeclaration).filter(function(n){return n.node.source.value===r})},E=function(n,e,t){var i;return n.forEach(function(n){void 0!==n.node.specifiers&&(n.node.specifiers=n.node.specifiers.filter(function(n){var r;return j(n)&&!t?((r=n.imported.name!==e)||null==n.local||n.imported.name===n.local.name||(i={localName:n.local.name,type:n.type}),r):!(!j(n)&&t&&(null!=n.local&&(i={localName:n.local.name,type:n.type}),1))}),0===n.node.specifiers.length)&&n.prune()}),i},Y=function(n,r){n.find(c.ImportDeclaration).filter(function(n){return n.node.source.value===r.module}).forEach(function(n){null!=n.node.specifiers&&n.node.specifiers.push(F(r))})},Z=function(n,r,e){n.find(c.ImportDeclaration).filter(function(n){return n.node.source.value===r}).forEach(function(n){null!=n.node.specifiers&&n.node.specifiers.push(e)})},D=function(n,r,e){var t=n.find(c.ImportDeclaration);0<t.length?c(t.paths()[0]).insertAfter(S(r,e)):1===(t=n.find(c.Program)).length&&t.paths()[0].node.body.unshift(S(r,e))},$=function(n,r){0<C(n,r.module).length?Y(n,r):D(n,r.module,[F(r)])},nn=function(n,r,e,t){var i=C(n,r),t=(t?cn:an)(e);0<i.length?Z(n,r,t):D(n,r,[t])},rn=function(n,r){n=n.find(c.VariableDeclaration);0<n.length&&c(n.paths()[0]).insertAfter(_(r))},R=function(n,r,e){return c.expressionStatement(en(n,r,e))},en=function(n,r,e){return c.callExpression(on(n,r),e)},_=function(n){return c.variableDeclaration("var",[tn(n)])},tn=function(n){return c.variableDeclarator(void 0!==n.p?c.identifier(n.p):c.identifier(n.reference),(0<n.reference.length?un:L)(n))},un=function(n){return c.memberExpression(L(n),c.identifier(n.reference))},on=function(n,r){return c.memberExpression(c.identifier(n),c.identifier(r))},L=function(n){return c.callExpression(c.identifier("require"),[c.literal(n.module)])},S=function(n,r){return c.importDeclaration(r,c.literal(n))},F=function(n){return void 0!==n.p?c.importSpecifier(c.identifier(n.reference),c.identifier(n.p)):c.importSpecifier(c.identifier(n.reference))},an=function(n){return c.importDefaultSpecifier(c.identifier(n))},cn=function(n){return c.importNamespaceSpecifier(c.identifier(n))};
|
|
@@ -26,7 +26,7 @@ exports.Dynatrace = {
|
|
|
26
26
|
start: (configuration) => __awaiter(void 0, void 0, void 0, function* () {
|
|
27
27
|
if (!ConfigurationHandler_1.ConfigurationHandler.isConfigurationAvailable()) {
|
|
28
28
|
if (configuration !== undefined) {
|
|
29
|
-
|
|
29
|
+
DynatraceBridge_1.DynatraceNative.start(configuration);
|
|
30
30
|
ConfigurationHandler_1.ConfigurationHandler.setConfiguration(configuration);
|
|
31
31
|
Logger_1.Logger.logDebug('Manual Configuration set: ' + JSON.stringify(configuration));
|
|
32
32
|
}
|
|
@@ -65,7 +65,7 @@ exports.Dynatrace = {
|
|
|
65
65
|
}
|
|
66
66
|
if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(name)) {
|
|
67
67
|
Logger_1.Logger.logDebug(`Dynatrace enterManualAction(${name})`);
|
|
68
|
-
DynatraceBridge_1.DynatraceNative.enterManualAction(name, key, platform);
|
|
68
|
+
DynatraceBridge_1.DynatraceNative.enterManualAction(name, key, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
69
69
|
return new DynatraceRootAction_1.DynatraceRootAction(key, name);
|
|
70
70
|
}
|
|
71
71
|
else {
|
|
@@ -89,7 +89,7 @@ exports.Dynatrace = {
|
|
|
89
89
|
}
|
|
90
90
|
if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(name)) {
|
|
91
91
|
Logger_1.Logger.logDebug(`Dynatrace enterAutoAction(${name})`);
|
|
92
|
-
DynatraceBridge_1.DynatraceNative.enterAction(name, key, platform);
|
|
92
|
+
DynatraceBridge_1.DynatraceNative.enterAction(name, key, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
93
93
|
return new DynatraceAction_1.DynatraceAction(key, name, false);
|
|
94
94
|
}
|
|
95
95
|
else {
|
|
@@ -105,7 +105,7 @@ exports.Dynatrace = {
|
|
|
105
105
|
reportError: (errorName, errorCode, platform) => {
|
|
106
106
|
if (ConfigurationHandler_1.ConfigurationHandler.isConfigurationAvailable()) {
|
|
107
107
|
Logger_1.Logger.logDebug(`Dynatrace reportError(${errorName}, ${errorCode})`);
|
|
108
|
-
DynatraceBridge_1.DynatraceNative.reportErrorWithoutStacktrace(errorName, errorCode, platform);
|
|
108
|
+
DynatraceBridge_1.DynatraceNative.reportErrorWithoutStacktrace(errorName, errorCode, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
109
109
|
}
|
|
110
110
|
else {
|
|
111
111
|
Logger_1.Logger.logInfo(`Dynatrace reportError(${errorName}, ${errorCode}): React Native plugin has not been started yet! Error will not be reported!`);
|
|
@@ -120,7 +120,7 @@ exports.Dynatrace = {
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
Logger_1.Logger.logDebug(`Dynatrace reportErrorStacktrace(${errorName}, ${reason}, ${stacktrace})`);
|
|
123
|
-
DynatraceBridge_1.DynatraceNative.reportError(errorName, '-', reason, stacktrace, platform);
|
|
123
|
+
DynatraceBridge_1.DynatraceNative.reportError(errorName, '-', reason, stacktrace, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
124
124
|
}
|
|
125
125
|
else {
|
|
126
126
|
Logger_1.Logger.logInfo(`Dynatrace reportErrorStacktrace(${errorName}, ${reason}, ${stacktrace}): React Native plugin has not been started yet! Error will not be reported!`);
|
|
@@ -135,7 +135,7 @@ exports.Dynatrace = {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
Logger_1.Logger.logDebug(`Dynatrace reportErrorStacktrace(${errorName}, ${errorValue}, ${reason}, ${stacktrace})`);
|
|
138
|
-
DynatraceBridge_1.DynatraceNative.reportError(errorName, errorValue, reason, stacktrace, platform);
|
|
138
|
+
DynatraceBridge_1.DynatraceNative.reportError(errorName, errorValue, reason, stacktrace, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
139
139
|
}
|
|
140
140
|
else {
|
|
141
141
|
Logger_1.Logger.logInfo(`Dynatrace reportErrorStacktrace(${errorName}, ${errorValue}, ${reason}, ${stacktrace}): React Native plugin has not been started yet! Error will not be reported!`);
|
|
@@ -151,7 +151,7 @@ exports.Dynatrace = {
|
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
Logger_1.Logger.logDebug(`Dynatrace reportCrash(${crashName}, ${reason}, ${stacktrace})`);
|
|
154
|
-
DynatraceBridge_1.DynatraceNative.reportCrash(crashName, reason, stacktrace, false, true, platform);
|
|
154
|
+
DynatraceBridge_1.DynatraceNative.reportCrash(crashName, reason, stacktrace, false, true, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
else {
|
|
@@ -170,7 +170,7 @@ exports.Dynatrace = {
|
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
Logger_1.Logger.logDebug(`Dynatrace reportCrashWithException(${crashName}, ${crash.stack})`);
|
|
173
|
-
DynatraceBridge_1.DynatraceNative.reportCrash(crashName, crashReason, crash.stack, true, true, platform);
|
|
173
|
+
DynatraceBridge_1.DynatraceNative.reportCrash(crashName, crashReason, crash.stack, true, true, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
else {
|
|
@@ -191,7 +191,7 @@ exports.Dynatrace = {
|
|
|
191
191
|
}
|
|
192
192
|
const internalAttributes = Object.assign({}, attributes);
|
|
193
193
|
Logger_1.Logger.logDebug(`Dynatrace sendEvent(${name}, ${internalAttributes})`);
|
|
194
|
-
DynatraceBridge_1.DynatraceNative.sendEvent(name, internalAttributes, platform);
|
|
194
|
+
DynatraceBridge_1.DynatraceNative.sendEvent(name, internalAttributes, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
195
195
|
}
|
|
196
196
|
else {
|
|
197
197
|
Logger_1.Logger.logInfo(`Dynatrace sendEvent(${name}, ${attributes}): React Native plugin has not been started yet! Event will not be reported!`);
|
|
@@ -211,7 +211,7 @@ exports.Dynatrace = {
|
|
|
211
211
|
}
|
|
212
212
|
const internalAttributes = Object.assign({}, attributes);
|
|
213
213
|
Logger_1.Logger.logDebug(`Dynatrace sendBizEvent(${type}, ${internalAttributes})`);
|
|
214
|
-
DynatraceBridge_1.DynatraceNative.sendBizEvent(type, internalAttributes, platform);
|
|
214
|
+
DynatraceBridge_1.DynatraceNative.sendBizEvent(type, internalAttributes, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
215
215
|
}
|
|
216
216
|
else {
|
|
217
217
|
Logger_1.Logger.logInfo(`Dynatrace sendBizEvent(${type}, ${attributes}): React Native plugin has not been started yet! Biz Event will not be reported!`);
|
|
@@ -220,7 +220,7 @@ exports.Dynatrace = {
|
|
|
220
220
|
endSession: (platform) => {
|
|
221
221
|
if (ConfigurationHandler_1.ConfigurationHandler.isConfigurationAvailable()) {
|
|
222
222
|
Logger_1.Logger.logDebug('Dynatrace endSession()');
|
|
223
|
-
DynatraceBridge_1.DynatraceNative.endVisit(platform);
|
|
223
|
+
DynatraceBridge_1.DynatraceNative.endVisit(platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
224
224
|
}
|
|
225
225
|
else {
|
|
226
226
|
Logger_1.Logger.logInfo('Dynatrace endSession(): React Native plugin has not been started yet! Session will not be ended!');
|
|
@@ -229,7 +229,7 @@ exports.Dynatrace = {
|
|
|
229
229
|
identifyUser: (user, platform) => {
|
|
230
230
|
if (ConfigurationHandler_1.ConfigurationHandler.isConfigurationAvailable()) {
|
|
231
231
|
Logger_1.Logger.logDebug(`Dynatrace identifyUser(${user})`);
|
|
232
|
-
DynatraceBridge_1.DynatraceNative.identifyUser(user, platform);
|
|
232
|
+
DynatraceBridge_1.DynatraceNative.identifyUser(user, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
233
233
|
}
|
|
234
234
|
else {
|
|
235
235
|
Logger_1.Logger.logInfo(`Dynatrace identifyUser(${user}): React Native plugin has not been started yet! Session will not be tagged!`);
|
|
@@ -238,7 +238,7 @@ exports.Dynatrace = {
|
|
|
238
238
|
setGPSLocation: (latitude, longitude, platform) => {
|
|
239
239
|
if (ConfigurationHandler_1.ConfigurationHandler.isConfigurationAvailable()) {
|
|
240
240
|
Logger_1.Logger.logDebug(`Dynatrace setGPSLocation(${latitude}, ${longitude})`);
|
|
241
|
-
DynatraceBridge_1.DynatraceNative.setGPSLocation(latitude, longitude, platform);
|
|
241
|
+
DynatraceBridge_1.DynatraceNative.setGPSLocation(latitude, longitude, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
242
242
|
}
|
|
243
243
|
else {
|
|
244
244
|
Logger_1.Logger.logInfo(`Dynatrace setGPSLocation(${latitude}, ${longitude}): React Native plugin has not been started yet! GPS Position will not be set!`);
|
|
@@ -247,7 +247,7 @@ exports.Dynatrace = {
|
|
|
247
247
|
isCrashReportingOptedIn: (platform) => __awaiter(void 0, void 0, void 0, function* () {
|
|
248
248
|
if (ConfigurationHandler_1.ConfigurationHandler.isConfigurationAvailable()) {
|
|
249
249
|
Logger_1.Logger.logDebug('Dynatrace isCrashReportingOptedIn()');
|
|
250
|
-
return DynatraceBridge_1.DynatraceNative.isCrashReportingOptedIn(platform);
|
|
250
|
+
return DynatraceBridge_1.DynatraceNative.isCrashReportingOptedIn(platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
251
251
|
}
|
|
252
252
|
else {
|
|
253
253
|
Logger_1.Logger.logInfo('Dynatrace isCrashReportingOptedIn(): React Native plugin has not been started yet! Crash reporting value not available!');
|
|
@@ -257,7 +257,7 @@ exports.Dynatrace = {
|
|
|
257
257
|
setCrashReportingOptedIn: (crashReporting, platform) => {
|
|
258
258
|
if (ConfigurationHandler_1.ConfigurationHandler.isConfigurationAvailable()) {
|
|
259
259
|
Logger_1.Logger.logDebug(`Dynatrace setCrashReportingOptedIn(${crashReporting})`);
|
|
260
|
-
DynatraceBridge_1.DynatraceNative.setCrashReportingOptedIn(crashReporting, platform);
|
|
260
|
+
DynatraceBridge_1.DynatraceNative.setCrashReportingOptedIn(crashReporting, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
261
261
|
}
|
|
262
262
|
else {
|
|
263
263
|
Logger_1.Logger.logInfo(`Dynatrace setCrashReportingOptedIn(${crashReporting}): React Native plugin has not been started yet! Crash reporting value will not be set!`);
|
|
@@ -266,7 +266,7 @@ exports.Dynatrace = {
|
|
|
266
266
|
getDataCollectionLevel: (platform) => __awaiter(void 0, void 0, void 0, function* () {
|
|
267
267
|
if (ConfigurationHandler_1.ConfigurationHandler.isConfigurationAvailable()) {
|
|
268
268
|
Logger_1.Logger.logDebug('Dynatrace getDataCollectionLevel()');
|
|
269
|
-
return DynatraceBridge_1.DynatraceNative.getDataCollectionLevel(platform);
|
|
269
|
+
return (0, DataCollectionLevel_1.StringToDataCollectionLevel)(yield DynatraceBridge_1.DynatraceNative.getDataCollectionLevel(platform === null || platform === void 0 ? void 0 : platform.toString()));
|
|
270
270
|
}
|
|
271
271
|
else {
|
|
272
272
|
Logger_1.Logger.logInfo('Dynatrace getDataCollectionLevel(): React Native plugin has not been started yet! Data Collection level not available!');
|
|
@@ -276,7 +276,7 @@ exports.Dynatrace = {
|
|
|
276
276
|
setDataCollectionLevel: (dataCollectionLevel, platform) => {
|
|
277
277
|
if (ConfigurationHandler_1.ConfigurationHandler.isConfigurationAvailable()) {
|
|
278
278
|
Logger_1.Logger.logDebug(`Dynatrace setDataCollectionLevel(${dataCollectionLevel})`);
|
|
279
|
-
DynatraceBridge_1.DynatraceNative.setDataCollectionLevel(dataCollectionLevel, platform);
|
|
279
|
+
DynatraceBridge_1.DynatraceNative.setDataCollectionLevel(dataCollectionLevel.toString(), platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
280
280
|
}
|
|
281
281
|
else {
|
|
282
282
|
Logger_1.Logger.logInfo(`Dynatrace setDataCollectionLevel(${dataCollectionLevel}): React Native plugin has not been started yet! Data Collection level will not be set!`);
|
|
@@ -285,8 +285,8 @@ exports.Dynatrace = {
|
|
|
285
285
|
getUserPrivacyOptions: (platform) => __awaiter(void 0, void 0, void 0, function* () {
|
|
286
286
|
if (ConfigurationHandler_1.ConfigurationHandler.isConfigurationAvailable()) {
|
|
287
287
|
Logger_1.Logger.logDebug('Dynatrace getUserPrivacyOptions()');
|
|
288
|
-
const options = yield DynatraceBridge_1.DynatraceNative.getUserPrivacyOptions(platform);
|
|
289
|
-
const currentOptions = new UserPrivacyOptions_1.UserPrivacyOptions(options.dataCollectionLevel, options.crashReportingOptedIn);
|
|
288
|
+
const options = yield DynatraceBridge_1.DynatraceNative.getUserPrivacyOptions(platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
289
|
+
const currentOptions = new UserPrivacyOptions_1.UserPrivacyOptions((0, DataCollectionLevel_1.StringToDataCollectionLevel)(options.dataCollectionLevel), options.crashReportingOptedIn);
|
|
290
290
|
return currentOptions;
|
|
291
291
|
}
|
|
292
292
|
else {
|
|
@@ -300,7 +300,7 @@ exports.Dynatrace = {
|
|
|
300
300
|
userPrivacyOptions.crashReportingOptedIn === false) &&
|
|
301
301
|
userPrivacyOptions.dataCollectionLevel in DataCollectionLevel_1.DataCollectionLevel) {
|
|
302
302
|
Logger_1.Logger.logDebug(`Dynatrace applyUserPrivacyOptions(${JSON.stringify(userPrivacyOptions)})`);
|
|
303
|
-
DynatraceBridge_1.DynatraceNative.applyUserPrivacyOptions(userPrivacyOptions, platform);
|
|
303
|
+
DynatraceBridge_1.DynatraceNative.applyUserPrivacyOptions(userPrivacyOptions, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
else {
|
|
@@ -310,7 +310,7 @@ exports.Dynatrace = {
|
|
|
310
310
|
flushEvents: (platform) => {
|
|
311
311
|
if (ConfigurationHandler_1.ConfigurationHandler.isConfigurationAvailable()) {
|
|
312
312
|
Logger_1.Logger.logDebug('Dynatrace flushEvents()');
|
|
313
|
-
DynatraceBridge_1.DynatraceNative.flushEvents(platform);
|
|
313
|
+
DynatraceBridge_1.DynatraceNative.flushEvents(platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
314
314
|
}
|
|
315
315
|
else {
|
|
316
316
|
Logger_1.Logger.logInfo('Dynatrace flushEvents(): React Native plugin has not been started yet! Flushing Event not possible!');
|
|
@@ -322,10 +322,10 @@ exports.Dynatrace = {
|
|
|
322
322
|
if (headers && headers.size > 0) {
|
|
323
323
|
const obj = {};
|
|
324
324
|
headers.forEach((value, key) => (obj[key] = value));
|
|
325
|
-
DynatraceBridge_1.DynatraceNative.setBeaconHeaders(obj, platform);
|
|
325
|
+
DynatraceBridge_1.DynatraceNative.setBeaconHeaders(obj, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
326
326
|
}
|
|
327
327
|
else if (!headers || typeof headers !== 'undefined') {
|
|
328
|
-
DynatraceBridge_1.DynatraceNative.setBeaconHeaders(null, platform);
|
|
328
|
+
DynatraceBridge_1.DynatraceNative.setBeaconHeaders(null, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
else {
|
|
@@ -17,7 +17,7 @@ class DynatraceAction {
|
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
19
|
if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(errorName)) {
|
|
20
|
-
DynatraceBridge_1.DynatraceNative.reportErrorInAction(this.key, errorName, errorCode, platform);
|
|
20
|
+
DynatraceBridge_1.DynatraceNative.reportErrorInAction(this.key, errorName, errorCode, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
21
21
|
Logger_1.Logger.logDebug(`DynatraceAction reportError(${errorName}, ${errorCode}): in Action - ${this.name}`);
|
|
22
22
|
}
|
|
23
23
|
else {
|
|
@@ -30,7 +30,7 @@ class DynatraceAction {
|
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
32
|
if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(eventName)) {
|
|
33
|
-
DynatraceBridge_1.DynatraceNative.reportEventInAction(this.key, eventName, platform);
|
|
33
|
+
DynatraceBridge_1.DynatraceNative.reportEventInAction(this.key, eventName, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
34
34
|
Logger_1.Logger.logDebug(`DynatraceAction reportEvent(${eventName}): in Action - ${this.name}`);
|
|
35
35
|
}
|
|
36
36
|
else {
|
|
@@ -43,7 +43,7 @@ class DynatraceAction {
|
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(valueName)) {
|
|
46
|
-
DynatraceBridge_1.DynatraceNative.reportStringValueInAction(this.key, valueName, value, platform);
|
|
46
|
+
DynatraceBridge_1.DynatraceNative.reportStringValueInAction(this.key, valueName, value, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
47
47
|
Logger_1.Logger.logDebug(`DynatraceAction reportStringValue(${valueName}, ${value}): in Action - ${this.name}`);
|
|
48
48
|
}
|
|
49
49
|
else {
|
|
@@ -56,7 +56,7 @@ class DynatraceAction {
|
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
58
|
if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(valueName)) {
|
|
59
|
-
DynatraceBridge_1.DynatraceNative.reportIntValueInAction(this.key, valueName, value, platform);
|
|
59
|
+
DynatraceBridge_1.DynatraceNative.reportIntValueInAction(this.key, valueName, value, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
60
60
|
Logger_1.Logger.logDebug(`DynatraceAction reportIntValue(${valueName}, ${value}): in Action - ${this.name}`);
|
|
61
61
|
}
|
|
62
62
|
else {
|
|
@@ -69,7 +69,7 @@ class DynatraceAction {
|
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
71
|
if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(valueName)) {
|
|
72
|
-
DynatraceBridge_1.DynatraceNative.reportDoubleValueInAction(this.key, valueName, value, platform);
|
|
72
|
+
DynatraceBridge_1.DynatraceNative.reportDoubleValueInAction(this.key, valueName, value, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
73
73
|
Logger_1.Logger.logDebug(`DynatraceAction reportDoubleValue(${valueName}, ${value}): in Action - ${this.name}`);
|
|
74
74
|
}
|
|
75
75
|
else {
|
|
@@ -83,7 +83,7 @@ class DynatraceAction {
|
|
|
83
83
|
}
|
|
84
84
|
this.closed = true;
|
|
85
85
|
Logger_1.Logger.logDebug(`DynatraceAction leaveAction(): ${this.name}`);
|
|
86
|
-
DynatraceBridge_1.DynatraceNative.leaveAction(this.key, this.manual, platform);
|
|
86
|
+
DynatraceBridge_1.DynatraceNative.leaveAction(this.key, this.manual, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
87
87
|
}
|
|
88
88
|
cancel(platform) {
|
|
89
89
|
if (this.closed) {
|
|
@@ -92,7 +92,7 @@ class DynatraceAction {
|
|
|
92
92
|
}
|
|
93
93
|
this.closed = true;
|
|
94
94
|
Logger_1.Logger.logDebug(`DynatraceAction cancelAction(): ${this.name}`);
|
|
95
|
-
DynatraceBridge_1.DynatraceNative.cancelAction(this.key, platform);
|
|
95
|
+
DynatraceBridge_1.DynatraceNative.cancelAction(this.key, platform === null || platform === void 0 ? void 0 : platform.toString());
|
|
96
96
|
}
|
|
97
97
|
getRequestTag(url) {
|
|
98
98
|
if (this.closed) {
|