@dynatrace/react-native-plugin 2.255.1 → 2.257.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 (88) hide show
  1. package/LICENSE.md +1 -0
  2. package/README.md +41 -16
  3. package/android/build.gradle +1 -1
  4. package/android/src/main/java/com/dynatrace/android/agent/DynatraceRNBridge.java +74 -21
  5. package/files/plugin.gradle +1 -1
  6. package/ios/DynatraceRNBridge.h +2 -2
  7. package/ios/DynatraceRNBridge.m +38 -17
  8. package/ios/lib/Dynatrace.xcframework/Info.plist +10 -10
  9. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Dynatrace +0 -0
  10. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace-Swift.h +46 -1
  11. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace.h +3 -3
  12. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Info.plist +0 -0
  13. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  14. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.abi.json +21 -0
  15. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.private.swiftinterface +9 -0
  16. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  17. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.swiftinterface +4 -2
  18. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/module.modulemap +2 -2
  19. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
  20. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace-Swift.h +82 -2
  21. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +3 -3
  22. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
  23. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  24. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  25. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json +21 -0
  26. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +9 -0
  27. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  28. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftinterface +4 -2
  29. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json +21 -0
  30. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +9 -0
  31. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  32. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +4 -2
  33. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/module.modulemap +2 -2
  34. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +61 -65
  35. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Dynatrace +0 -0
  36. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace-Swift.h +46 -1
  37. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace.h +3 -3
  38. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Info.plist +0 -0
  39. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo +0 -0
  40. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.abi.json +21 -0
  41. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.private.swiftinterface +9 -0
  42. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.swiftdoc +0 -0
  43. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos.swiftinterface +3 -1
  44. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/module.modulemap +2 -2
  45. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
  46. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace-Swift.h +82 -2
  47. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +3 -3
  48. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
  49. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo +0 -0
  50. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo +0 -0
  51. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.abi.json +21 -0
  52. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.private.swiftinterface +9 -0
  53. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftdoc +0 -0
  54. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftinterface +3 -1
  55. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.abi.json +21 -0
  56. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.private.swiftinterface +9 -0
  57. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc +0 -0
  58. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface +3 -1
  59. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/module.modulemap +2 -2
  60. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +67 -23
  61. package/lib/instrumentor/DynatraceInstrumentation.js +1 -1
  62. package/lib/instrumentor/base/Dynatrace.js +48 -31
  63. package/lib/instrumentor/base/DynatraceAction.js +44 -0
  64. package/lib/instrumentor/base/DynatraceInternal.js +25 -0
  65. package/lib/instrumentor/base/DynatraceRootAction.js +38 -0
  66. package/lib/instrumentor/base/DynatraceWebRequestTiming.js +37 -0
  67. package/lib/instrumentor/base/ElementHelper.js +3 -2
  68. package/lib/instrumentor/base/ErrorHandler.js +2 -1
  69. package/lib/instrumentor/base/NullAction.js +8 -0
  70. package/lib/instrumentor/base/NullRootAction.js +10 -0
  71. package/lib/instrumentor/base/NullWebRequestTiming.js +15 -0
  72. package/lib/instrumentor/base/Picker.js +1 -1
  73. package/lib/instrumentor/base/RefreshControl.js +1 -1
  74. package/lib/instrumentor/base/Touchable.js +11 -7
  75. package/lib/instrumentor/base/configuration/AutoStartupConfiguration.js +4 -0
  76. package/lib/instrumentor/base/configuration/Configuration.js +1 -0
  77. package/lib/instrumentor/base/configuration/ConfigurationDefaults.js +4 -2
  78. package/lib/instrumentor/base/configuration/ManualStartupConfiguration.js +5 -5
  79. package/lib/instrumentor/base/{interface → configuration/interface}/IAutoConfiguration.js +0 -0
  80. package/lib/instrumentor/base/configuration/interface/IManualConfiguration.js +3 -0
  81. package/lib/instrumentor/base/interface/IDynatraceInternal.js +2 -0
  82. package/lib/instrumentor/base/interface/IDynatraceRootAction.js +2 -0
  83. package/lib/instrumentor/base/interface/IWebRequestTiming.js +1 -0
  84. package/lib/instrumentor/base/util/StringUtils.js +1 -0
  85. package/lib/react/Component.js +3 -3
  86. package/package.json +5 -3
  87. package/react-native-dynatrace.podspec +3 -2
  88. package/typings/react-native-dynatrace.d.ts +242 -110
@@ -0,0 +1,21 @@
1
+ {
2
+ "ABIRoot": {
3
+ "kind": "Root",
4
+ "name": "TopLevel",
5
+ "printedName": "TopLevel",
6
+ "children": [
7
+ {
8
+ "kind": "Import",
9
+ "name": "Foundation",
10
+ "printedName": "Foundation",
11
+ "declKind": "Import",
12
+ "moduleName": "Dynatrace",
13
+ "declAttributes": [
14
+ "RawDocComment"
15
+ ]
16
+ }
17
+ ],
18
+ "json_format_version": 8
19
+ },
20
+ "ConstValues": []
21
+ }
@@ -0,0 +1,9 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
3
+ // swift-module-flags: -target arm64-apple-tvos11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name Dynatrace
4
+ // swift-module-flags-ignorable: -enable-bare-slash-regex
5
+ @_exported import Dynatrace
6
+ import Foundation
7
+ import Swift
8
+ import _Concurrency
9
+ import _StringProcessing
@@ -1,7 +1,9 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
2
+ // swift-compiler-version: Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
3
3
  // swift-module-flags: -target arm64-apple-tvos11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name Dynatrace
4
+ // swift-module-flags-ignorable: -enable-bare-slash-regex
4
5
  @_exported import Dynatrace
5
6
  import Foundation
6
7
  import Swift
7
8
  import _Concurrency
9
+ import _StringProcessing
@@ -0,0 +1,21 @@
1
+ {
2
+ "ABIRoot": {
3
+ "kind": "Root",
4
+ "name": "TopLevel",
5
+ "printedName": "TopLevel",
6
+ "children": [
7
+ {
8
+ "kind": "Import",
9
+ "name": "Foundation",
10
+ "printedName": "Foundation",
11
+ "declKind": "Import",
12
+ "moduleName": "Dynatrace",
13
+ "declAttributes": [
14
+ "RawDocComment"
15
+ ]
16
+ }
17
+ ],
18
+ "json_format_version": 8
19
+ },
20
+ "ConstValues": []
21
+ }
@@ -0,0 +1,9 @@
1
+ // swift-interface-format-version: 1.0
2
+ // swift-compiler-version: Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
3
+ // swift-module-flags: -target x86_64-apple-tvos11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name Dynatrace
4
+ // swift-module-flags-ignorable: -enable-bare-slash-regex
5
+ @_exported import Dynatrace
6
+ import Foundation
7
+ import Swift
8
+ import _Concurrency
9
+ import _StringProcessing
@@ -1,7 +1,9 @@
1
1
  // swift-interface-format-version: 1.0
2
- // swift-compiler-version: Apple Swift version 5.6 (swiftlang-5.6.0.323.62 clang-1316.0.20.8)
2
+ // swift-compiler-version: Apple Swift version 5.7.1 (swiftlang-5.7.1.135.3 clang-1400.0.29.51)
3
3
  // swift-module-flags: -target x86_64-apple-tvos11.0-simulator -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name Dynatrace
4
+ // swift-module-flags-ignorable: -enable-bare-slash-regex
4
5
  @_exported import Dynatrace
5
6
  import Foundation
6
7
  import Swift
7
8
  import _Concurrency
9
+ import _StringProcessing
@@ -6,6 +6,6 @@ framework module Dynatrace {
6
6
  }
7
7
 
8
8
  module Dynatrace.Swift {
9
- header "Dynatrace-Swift.h"
10
- requires objc
9
+ header "Dynatrace-Swift.h"
10
+ requires objc
11
11
  }
@@ -6,11 +6,11 @@
6
6
  <dict>
7
7
  <key>Headers/Dynatrace-Swift.h</key>
8
8
  <data>
9
- ij7uy3jHYA1Wm3l0kqWYfE5yxS8=
9
+ I9vDXk61EV73GnNjx6CKxGJsPZQ=
10
10
  </data>
11
11
  <key>Headers/Dynatrace.h</key>
12
12
  <data>
13
- hwrLUKELrQH22SW8s+rriAoELqs=
13
+ P3A1pOhTAYTtLVRwA8nZtcl7KIA=
14
14
  </data>
15
15
  <key>Headers/Framework.h</key>
16
16
  <data>
@@ -18,43 +18,59 @@
18
18
  </data>
19
19
  <key>Info.plist</key>
20
20
  <data>
21
- uX+K4PpfdhRA72hzCALbaOaTcbE=
21
+ EkiKCZwp1jCZLO7XrLPwza0n9Uo=
22
22
  </data>
23
23
  <key>Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo</key>
24
24
  <data>
25
- wSwFS6KE2nvMz+7qbaggvAJGNsU=
25
+ q8TFTF7zaD3VndEXP3owgLfyXwE=
26
26
  </data>
27
27
  <key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo</key>
28
28
  <data>
29
- zTOEEZgVVZmaFVVGnGoRR9IeRGs=
29
+ EOLIunbvtXou2woodl315ZwfYzM=
30
+ </data>
31
+ <key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.abi.json</key>
32
+ <data>
33
+ UcIMUzAHEoZMg8EoGyDHVcJ6RBM=
34
+ </data>
35
+ <key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.private.swiftinterface</key>
36
+ <data>
37
+ g8JjOMyVL/qv8657uSDx7yAiyIk=
30
38
  </data>
31
39
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftdoc</key>
32
40
  <data>
33
- IcIhjUMCLUjmOmjnjTl9AgU95UU=
41
+ sbShkwaTxiTevl2GNjW3scWRICM=
34
42
  </data>
35
43
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftinterface</key>
36
44
  <data>
37
- ryVrLsmXWQACXpIoF3SbhIzdpUk=
45
+ g8JjOMyVL/qv8657uSDx7yAiyIk=
38
46
  </data>
39
47
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftmodule</key>
40
48
  <data>
41
- Ie7rKO4KHPtsZrnGQvZ+lga2gaw=
49
+ qfISM8vQ/WFD894MIY6+e3CiQRU=
50
+ </data>
51
+ <key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.abi.json</key>
52
+ <data>
53
+ UcIMUzAHEoZMg8EoGyDHVcJ6RBM=
54
+ </data>
55
+ <key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.private.swiftinterface</key>
56
+ <data>
57
+ vsiqwfs0kLLuAV5wFOthTMW5Q9w=
42
58
  </data>
43
59
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc</key>
44
60
  <data>
45
- qZo7EB9D7KO20fpgwBUQEt3+O3o=
61
+ BxWUg3c7ZdEZ8TnFIbF0k7b54ZA=
46
62
  </data>
47
63
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface</key>
48
64
  <data>
49
- d9jRPeUyVOVSeXUuRGNa+lQvdvU=
65
+ vsiqwfs0kLLuAV5wFOthTMW5Q9w=
50
66
  </data>
51
67
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftmodule</key>
52
68
  <data>
53
- 8Wlf0h2w6HzlCLpcCdZujMvxtLM=
69
+ 5zXO/bKzAwB/1ZvxWUmKkiXuwIs=
54
70
  </data>
55
71
  <key>Modules/module.modulemap</key>
56
72
  <data>
57
- ErjJJdbKx2kQwapNuhkWXS4Dhn0=
73
+ 4IdwShX8mXAwkLDyqhT/eGcIHq4=
58
74
  </data>
59
75
  </dict>
60
76
  <key>files2</key>
@@ -63,14 +79,14 @@
63
79
  <dict>
64
80
  <key>hash2</key>
65
81
  <data>
66
- a77kaLGVvWBgXsjDn5SUnQoGnC5p3v1kibEF2B7tNJM=
82
+ Dz0Dxe8u1lN9pv/bzAgmE6csrrnvqR1Ky7n4Y8xgiaA=
67
83
  </data>
68
84
  </dict>
69
85
  <key>Headers/Dynatrace.h</key>
70
86
  <dict>
71
87
  <key>hash2</key>
72
88
  <data>
73
- 3E9hEUSWdNoEe96CUr3HeW6vVzBulRVeKkDHnY0zOlk=
89
+ Ua3kfTs2zSmpOKCT5oUdQqHjbbtb2X6q5Qk+/ZCdU8I=
74
90
  </data>
75
91
  </dict>
76
92
  <key>Headers/Framework.h</key>
@@ -84,63 +100,91 @@
84
100
  <dict>
85
101
  <key>hash2</key>
86
102
  <data>
87
- +JivIEPEWh/Ca/tcHxDDKA6t8sTp4VWBn4AljZoDljI=
103
+ SxoIZv+7zVQ7OqLyz2Mi2V32H8xATNDp3O4q85nc0m0=
88
104
  </data>
89
105
  </dict>
90
106
  <key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo</key>
91
107
  <dict>
92
108
  <key>hash2</key>
93
109
  <data>
94
- ivNRy313OjM/xNuNmScBlMwpMlQ6NKnLgnvV1nRNWL8=
110
+ H1ag5TMp/g+rQt96FIPJjNi7BSffvYJfyRA/b9Skm44=
111
+ </data>
112
+ </dict>
113
+ <key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.abi.json</key>
114
+ <dict>
115
+ <key>hash2</key>
116
+ <data>
117
+ BJGZK9VQLWR1+NflFcGnauK6RcAqy89ps56toKj8IoU=
118
+ </data>
119
+ </dict>
120
+ <key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.private.swiftinterface</key>
121
+ <dict>
122
+ <key>hash2</key>
123
+ <data>
124
+ rn4Yk+ySPOAMt15Vn2hs8dEm5irxhEru7jAPIpsKMhU=
95
125
  </data>
96
126
  </dict>
97
127
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftdoc</key>
98
128
  <dict>
99
129
  <key>hash2</key>
100
130
  <data>
101
- ZdFH7NfrFLpS3FoxeWYNtbn1Xpg4rBy99lR1uXxXLxQ=
131
+ kTYHVjMQwCSNZan/nr9f9BDjab0EeJnHBmKKOPd/igk=
102
132
  </data>
103
133
  </dict>
104
134
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftinterface</key>
105
135
  <dict>
106
136
  <key>hash2</key>
107
137
  <data>
108
- 0z8XMBPoCXFRmEQJPAFVfL4+y+vogHLdNeMkmSnsk/g=
138
+ rn4Yk+ySPOAMt15Vn2hs8dEm5irxhEru7jAPIpsKMhU=
109
139
  </data>
110
140
  </dict>
111
141
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftmodule</key>
112
142
  <dict>
113
143
  <key>hash2</key>
114
144
  <data>
115
- nNCZxrpIAdatz/xfjPhOm2QylVk9BkVT/mS7mYJNJ0I=
145
+ FZhLHQkMI9Asraxf8kPpdQpXNWUlvtCw6Y8w+Nsxa2o=
146
+ </data>
147
+ </dict>
148
+ <key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.abi.json</key>
149
+ <dict>
150
+ <key>hash2</key>
151
+ <data>
152
+ BJGZK9VQLWR1+NflFcGnauK6RcAqy89ps56toKj8IoU=
153
+ </data>
154
+ </dict>
155
+ <key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.private.swiftinterface</key>
156
+ <dict>
157
+ <key>hash2</key>
158
+ <data>
159
+ 1r0JoOSmU7EOmha52ilOmATj67Fs9Zgag7WVgd+w9o0=
116
160
  </data>
117
161
  </dict>
118
162
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftdoc</key>
119
163
  <dict>
120
164
  <key>hash2</key>
121
165
  <data>
122
- sO+XtxMazHcND8QwOAvIoB7nY2k0uY0DkmkxOafx7JM=
166
+ 5tJ0m7kQobMdFtotJh8zwlI6/KkeOO0C3PEiyRfqolk=
123
167
  </data>
124
168
  </dict>
125
169
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftinterface</key>
126
170
  <dict>
127
171
  <key>hash2</key>
128
172
  <data>
129
- Rf6XzB8qQ08erdH84nQNC52Yl0G7OIzE2Y49mvgrh00=
173
+ 1r0JoOSmU7EOmha52ilOmATj67Fs9Zgag7WVgd+w9o0=
130
174
  </data>
131
175
  </dict>
132
176
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftmodule</key>
133
177
  <dict>
134
178
  <key>hash2</key>
135
179
  <data>
136
- Vi2+2Rm69zWer9J8/qrP+YwdkaZtnWGFo50p2TjcJt0=
180
+ 1krvi4VwC2uTdjVN2daDe2HeuSfdVf965q0aQ4Sd+kI=
137
181
  </data>
138
182
  </dict>
139
183
  <key>Modules/module.modulemap</key>
140
184
  <dict>
141
185
  <key>hash2</key>
142
186
  <data>
143
- 2S4eNYljCIVSQ4jBKDAsodhvPLIlArqI21KOaI5jbso=
187
+ g60C3JrkicuNdgJaXD2wYp2GZTbknV3kWXwfrmZLdNU=
144
188
  </data>
145
189
  </dict>
146
190
  </dict>
@@ -1 +1 @@
1
- "use strict";var n=require("@babel/runtime/helpers/interopRequireDefault"),r=n(require("@babel/runtime/helpers/toConsumableArray"));Object.defineProperty(exports,"n",{value:!0}),exports.instrument=void 0;var c,f=require("path"),o=require("jscodeshift"),u=require("jscodeshift/src/Collection"),t=require("../../scripts/FileOperationHelper"),i=require("../../scripts/PathsConstants"),e=require("../react-native/Touchables.InstrInfo"),a=require("../react-native/RefreshControl.InstrInfo"),l=require("../community/gesture-handler/Touchables.InstrInfo"),v=require("../community/Picker.InstrInfo"),s=require("./parser/Babel"),d=require("./model/Types");!function(n){n[n.r=-1]="Filtered",n[n.e=0]="Normal",n[n.t=1]="ReactNative",n[n.i=2]="React"}(c=c||{});var p=[];p.push.apply(p,(0,r.default)(e.instrumentationInfo)),p.push.apply(p,(0,r.default)(a.instrumentationInfo)),p.push.apply(p,(0,r.default)(l.instrumentationInfo)),p.push.apply(p,(0,r.default)(v.instrumentationInfo));var m=["AppRegistry","renderApplication"],instrument=function(n,r,e){r=h(r);var t,i=_(r);if(i!==c.r){var u=!1,o=g(r,n);if(i===c.i)j(o),u=!0;else if(i===c.t)r.endsWith("AppRegistry.js")?void 0!==e&&e.autoStart&&(D(o),u=!0):r.endsWith("renderApplication.js")&&(y(o),u=!0);else{var a=x(r,e);if(!a.input&&!a.lifecycle)return null!=e&&e.debug&&console.log("Dynatrace - Filtered All: ".concat(r)),I(r),n;a.lifecycle&&y(o)&&(u=!0),a.input&&p.forEach(function(n){var r=F(o,n);o=r.u,u=u||r.o})}u?(n=o.toSource({a:"single"}),N(n,r)):I(r),null!=e&&e.debug&&u&&console.log("Dynatrace - Modified Filename: "+r)}else{r.includes(f.join("@dynatrace","react-native-plugin"))&&r.endsWith(f.join("lib","instrumentor","base","configuration","ConfigurationDefaults.js"))&&void 0!==e&&(t=g(r,n),void 0!==e.debug&&A(t,"debugAuto",e.debug),void 0!==e.lifecycle&&A(t,"lifecycleUpdateAuto",e.lifecycle.includeUpdate),void 0!==e.input&&A(t,"actionNamePrivacyAuto",e.input.actionNamePrivacy),n=t.toSource({a:"single"}),N(n,r))}return n};exports.instrument=instrument;var y=function(n){var r=n.findJSXElements(),i=!1;return 0<r.length&&(n.find(o.FunctionDeclaration).forEach(function(n){var r,e,t=(0,u.fromPaths)([n]);0<t.findJSXElements().length&&null!=n&&null!=n.value&&null!=n.value.id&&n.value.id.name&&(r=t.find(o.ClassDeclaration),e=t.find(o.c),0===r.length&&0===e.length&&(q(n,d.Types.FunctionalComponent,n.value.id.name),i=!0))}),n.find(o.ClassDeclaration).forEach(function(n){0<(0,u.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),i=!0)}),n.find(o.ArrowFunctionExpression).forEach(function(n){0<(0,u.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),i=!0)})),i},q=function(n,r,e){for(var t=o.expressionStatement(o.assignmentExpression("=",o.memberExpression(o.identifier(e),o.identifier("_dtInfo")),b(r,e)));void 0!==n.parentPath&&"body"!==n.parentPath.name;)n=n.parentPath;void 0!==n.parentPath&&n.insertAfter(t)},b=function(n,r){return o.objectExpression([o.objectProperty(o.identifier("type"),o.numericLiteral(n)),o.objectProperty(o.identifier("name"),o.stringLiteral(r))])},A=function(n,r,e){var t,i=n.find(o.Identifier).filter(function(n){return n.node.name===r&&"VariableDeclarator"===n.parent.value.type});1===i.length&&("NumericLiteral"===(t=i.paths()[0].parent.value).init.type&&"number"==typeof e?t.init=o.numericLiteral(e):"StringLiteral"===t.init.type&&"string"==typeof e?t.init=o.stringLiteral(e):"BooleanLiteral"===t.init.type&&"boolean"==typeof e&&(t.init=o.booleanLiteral(e)))},g=function(n,r){return o.withParser((0,s.babelParser)(f.extname(n)))(r)},h=function(n){return f.isAbsolute(n)?n.replace(i.default.f()+f.sep,""):n},I=function(n){try{var r=f.join(i.default.getBuildPath(),n+".dtx");t.default.checkIfFileExistsSync(r),t.default.deleteFileSync(r)}catch(n){}},N=function(n,r){var e=f.join(i.default.getBuildPath(),r);try{t.default.checkIfFileExistsSync(f.dirname(e))}catch(n){t.default.createDirectorySync(f.dirname(e))}t.default.writeTextToFileSync(e+".dtx",n)},x=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},j=function(n){var r,e=n.find(o.Program);1===e.length&&(r=o.expressionStatement(o.callExpression(o.memberExpression(o.callExpression(o.identifier("require"),[o.stringLiteral("@dynatrace/react-native-plugin/lib/instrumentor/base/ElementHelper")]),o.identifier("instrumentCreateElement")),[o.memberExpression(o.identifier("module"),o.identifier("exports"))])),e.paths()[0].node.body.push(r))},D=function(n){var r=R(n,"runApplication",!0);1===r.length&&(G(n,{l:"_DynatraceApplicationHandler",module:"@dynatrace/react-native-plugin",reference:"ApplicationHandler"}),C(r.paths()[0].parent.value.body.body,0,K("_DynatraceApplicationHandler","startup")))},C=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))},R=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(o.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})},_=function(n){if(n.includes("@dynatrace"))return c.r;var r=f.extname(n);if(".js"!==r&&".ts"!==r&&".tsx"!==r&&".jsx"!==r)return c.r;for(var e=f.parse(n),t=e.dir.split(f.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)?c.t:c.r;if("react"===t[i+1]&&"index"===e.name)return c.i}return c.e},H=function(n,r,e){var t=L(n,r,e);return S(n,r,e)||t},L=function(n,r,e){var t=O(n,r);if(0<t.length){var i=J(t,r.reference,!1);return void 0!==i&&(e.l=i.localName),V(n,e),!0}return!1},S=function(n,r,e){var t=E(n,r.module);if(1===t.length){var i=J(t,r.reference,!0);if(void 0!==i)return z(n,e.defaultImport,i.localName,"ImportNamespaceSpecifier"===i.type),!0}return!1},F=function(n,r){var e=JSON.parse(JSON.stringify(r.new));return{u:n,o:H(n,r.old,e)||T(n,r.old,r.new.defaultImport)}},O=function(n,r){return n.find(o.ImportDeclaration).filter(function(n){return n.node.source.value===r.module&&n.node.specifiers.some(function(n){return P(n)&&n.imported.name===r.reference||n.local&&n.local.name===r.reference})})},P=function(n){return void 0!==n.imported},T=function(n,r,e){var t=!1;return n.find(o.CallExpression).filter(function(n){return w(n.node.callee)&&B(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},B=function(n){return"StringLiteral"===n.type||"Literal"===n.type},E=function(n,r){return n.find(o.ImportDeclaration).filter(function(n){return n.node.source.value===r})},J=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){if(!P(n)||t)return!(!P(n)&&t)||(null!==n.local&&(i={localName:n.local.name,type:n.type}),!1);var r=n.imported.name!==e;return r||null===n.local||n.imported.name===n.local.name||(i={localName:n.local.name,type:n.type}),r}),0===n.node.specifiers.length&&n.prune())}),i},M=function(n,r){n.find(o.ImportDeclaration).filter(function(n){return n.node.source.value===r.module}).forEach(function(n){n.node.specifiers.push(rn(r))})},k=function(n,r,e){n.find(o.ImportDeclaration).filter(function(n){return n.node.source.value===r}).forEach(function(n){n.node.specifiers.push(e)})},U=function(n,r,e){var t,i=n.find(o.ImportDeclaration);0<i.length?o(i.paths()[0]).insertAfter(nn(r,e)):1===(t=n.find(o.Program)).length&&t.paths()[0].node.body.unshift(nn(r,e))},V=function(n,r){0<E(n,r.module).length?M(n,r):U(n,r.module,[rn(r)])},z=function(n,r,e,t){var i=E(n,r),u=(t?tn:en)(e);0<i.length?k(n,r,u):U(n,r,[u])},G=function(n,r){var e=n.find(o.VariableDeclaration);0<e.length&&o(e.paths()[0]).insertAfter(W(r))},K=function(n,r){return o.expressionStatement(Q(n,r,[]))},Q=function(n,r,e){return o.callExpression(Z(n,r),e)},W=function(n){return o.variableDeclaration("var",[X(n)])},X=function(n){return o.variableDeclarator(void 0!==n.l?o.identifier(n.l):o.identifier(n.reference),Y(n))},Y=function(n){return o.memberExpression($(n),o.identifier(n.reference))},Z=function(n,r){return o.memberExpression(o.identifier(n),o.identifier(r))},$=function(n){return o.callExpression(o.identifier("require"),[o.literal(n.module)])},nn=function(n,r){return o.importDeclaration(r,o.literal(n))},rn=function(n){return void 0!==n.l?o.importSpecifier(o.identifier(n.reference),o.identifier(n.l)):o.importSpecifier(o.identifier(n.reference))},en=function(n){return o.importDefaultSpecifier(o.identifier(n))},tn=function(n){return o.importNamespaceSpecifier(o.identifier(n))};
1
+ "use strict";var n=require("@babel/runtime/helpers/interopRequireDefault"),r=n(require("@babel/runtime/helpers/toConsumableArray"));Object.defineProperty(exports,"n",{value:!0}),exports.instrument=void 0;var c,f=require("path"),o=require("jscodeshift"),u=require("jscodeshift/src/Collection"),t=require("../../scripts/FileOperationHelper"),i=require("../../scripts/PathsConstants"),e=require("../react-native/Touchables.InstrInfo"),a=require("../react-native/RefreshControl.InstrInfo"),l=require("../community/gesture-handler/Touchables.InstrInfo"),v=require("../community/Picker.InstrInfo"),s=require("./parser/Babel"),d=require("./model/Types");!function(n){n[n.r=-1]="Filtered",n[n.e=0]="Normal",n[n.t=1]="ReactNative",n[n.i=2]="React"}(c=c||{});var p=[];p.push.apply(p,(0,r.default)(e.instrumentationInfo)),p.push.apply(p,(0,r.default)(a.instrumentationInfo)),p.push.apply(p,(0,r.default)(l.instrumentationInfo)),p.push.apply(p,(0,r.default)(v.instrumentationInfo));var m=["AppRegistry","renderApplication"],instrument=function(n,r,e){r=h(r);var t,i=_(r);if(i!==c.r){var u=!1,o=g(r,n);if(i===c.i)j(o),u=!0;else if(i===c.t)r.endsWith("AppRegistry.js")?void 0!==e&&e.autoStart&&(D(o),u=!0):r.endsWith("renderApplication.js")&&(y(o),u=!0);else{var a=x(r,e);if(!a.input&&!a.lifecycle)return null!=e&&e.debug&&console.log("Dynatrace - Filtered All: ".concat(r)),N(r),n;a.lifecycle&&y(o)&&(u=!0),a.input&&p.forEach(function(n){var r=F(o,n);o=r.u,u=u||r.o})}u?(n=o.toSource({a:"single"}),I(n,r)):N(r),null!=e&&e.debug&&u&&console.log("Dynatrace - Modified Filename: "+r)}else{r.includes(f.join("@dynatrace","react-native-plugin"))&&r.endsWith(f.join("lib","instrumentor","base","configuration","ConfigurationDefaults.js"))&&void 0!==e&&(t=g(r,n),void 0!==e.debug&&A(t,"debugAuto",e.debug),void 0!==e.lifecycle&&A(t,"lifecycleUpdateAuto",e.lifecycle.includeUpdate),void 0!==e.c&&A(t,"bundleNameAuto",e.c),void 0!==e.input&&A(t,"actionNamePrivacyAuto",e.input.actionNamePrivacy),n=t.toSource({a:"single"}),I(n,r))}return n};exports.instrument=instrument;var y=function(n){var r=n.findJSXElements(),i=!1;return 0<r.length&&(n.find(o.FunctionDeclaration).forEach(function(n){var r,e,t=(0,u.fromPaths)([n]);0<t.findJSXElements().length&&null!=n&&null!=n.value&&null!=n.value.id&&n.value.id.name&&(r=t.find(o.ClassDeclaration),e=t.find(o.f),0===r.length&&0===e.length&&(b(n,d.Types.FunctionalComponent,n.value.id.name),i=!0))}),n.find(o.ClassDeclaration).forEach(function(n){0<(0,u.fromPaths)([n]).findJSXElements().length&&null!=n&&null!=n.value&&n.value.id&&n.value.id.name&&(b(n,d.Types.ClassComponent,n.value.id.name),i=!0)}),n.find(o.ArrowFunctionExpression).forEach(function(n){0<(0,u.fromPaths)([n]).findJSXElements().length&&null!=n.parent&&null!=n.parent.value&&null!=n.parent.value.id&&null!=n.parent.value.id.name&&(b(n,d.Types.FunctionalComponent,n.parent.value.id.name),i=!0)})),i},b=function(n,r,e){for(var t=o.expressionStatement(o.assignmentExpression("=",o.memberExpression(o.identifier(e),o.identifier("_dtInfo")),q(r,e)));void 0!==n.parentPath&&"body"!==n.parentPath.name;)n=n.parentPath;void 0!==n.parentPath&&n.insertAfter(t)},q=function(n,r){return o.objectExpression([o.objectProperty(o.identifier("type"),o.numericLiteral(n)),o.objectProperty(o.identifier("name"),o.stringLiteral(r))])},A=function(n,r,e){var t,i=n.find(o.Identifier).filter(function(n){return n.node.name===r&&"VariableDeclarator"===n.parent.value.type});1===i.length&&("NumericLiteral"===(t=i.paths()[0].parent.value).init.type&&"number"==typeof e?t.init=o.numericLiteral(e):"StringLiteral"===t.init.type&&"string"==typeof e?t.init=o.stringLiteral(e):"BooleanLiteral"===t.init.type&&"boolean"==typeof e&&(t.init=o.booleanLiteral(e)))},g=function(n,r){return o.withParser((0,s.babelParser)(f.extname(n)))(r)},h=function(n){return f.isAbsolute(n)?n.replace(i.default.l()+f.sep,""):n},N=function(n){try{var r=f.join(i.default.getBuildPath(),n+".dtx");t.default.checkIfFileExistsSync(r),t.default.deleteFileSync(r)}catch(n){}},I=function(n,r){var e=f.join(i.default.getBuildPath(),r);try{t.default.checkIfFileExistsSync(f.dirname(e))}catch(n){t.default.createDirectorySync(f.dirname(e))}t.default.writeTextToFileSync(e+".dtx",n)},x=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},j=function(n){var r,e=n.find(o.Program);1===e.length&&(r=o.expressionStatement(o.callExpression(o.memberExpression(o.callExpression(o.identifier("require"),[o.stringLiteral("@dynatrace/react-native-plugin/lib/instrumentor/base/ElementHelper")]),o.identifier("instrumentCreateElement")),[o.memberExpression(o.identifier("module"),o.identifier("exports"))])),e.paths()[0].node.body.push(r))},D=function(n){var r=R(n,"runApplication",!0);1===r.length&&(G(n,{v:"_DynatraceApplicationHandler",module:"@dynatrace/react-native-plugin",reference:"ApplicationHandler"}),C(r.paths()[0].parent.value.body.body,0,K("_DynatraceApplicationHandler","startup")))},C=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))},R=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(o.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})},_=function(n){if(n.includes("@dynatrace"))return c.r;var r=f.extname(n);if(".js"!==r&&".ts"!==r&&".tsx"!==r&&".jsx"!==r)return c.r;for(var e=f.parse(n),t=e.dir.split(f.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)?c.t:c.r;if("react"===t[i+1]&&"index"===e.name)return c.i}return c.e},H=function(n,r,e){var t=L(n,r,e);return S(n,r,e)||t},L=function(n,r,e){var t=O(n,r);if(0<t.length){var i=J(t,r.reference,!1);return void 0!==i&&(e.v=i.localName),V(n,e),!0}return!1},S=function(n,r,e){var t=E(n,r.module);if(1===t.length){var i=J(t,r.reference,!0);if(void 0!==i)return z(n,e.defaultImport,i.localName,"ImportNamespaceSpecifier"===i.type),!0}return!1},F=function(n,r){var e=JSON.parse(JSON.stringify(r.new));return{u:n,o:H(n,r.old,e)||T(n,r.old,r.new.defaultImport)}},O=function(n,r){return n.find(o.ImportDeclaration).filter(function(n){return n.node.source.value===r.module&&n.node.specifiers.some(function(n){return P(n)&&n.imported.name===r.reference||n.local&&n.local.name===r.reference})})},P=function(n){return void 0!==n.imported},T=function(n,r,e){var t=!1;return n.find(o.CallExpression).filter(function(n){return w(n.node.callee)&&B(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},B=function(n){return"StringLiteral"===n.type||"Literal"===n.type},E=function(n,r){return n.find(o.ImportDeclaration).filter(function(n){return n.node.source.value===r})},J=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){if(!P(n)||t)return!(!P(n)&&t)||(null!==n.local&&(i={localName:n.local.name,type:n.type}),!1);var r=n.imported.name!==e;return r||null===n.local||n.imported.name===n.local.name||(i={localName:n.local.name,type:n.type}),r}),0===n.node.specifiers.length&&n.prune())}),i},M=function(n,r){n.find(o.ImportDeclaration).filter(function(n){return n.node.source.value===r.module}).forEach(function(n){n.node.specifiers.push(rn(r))})},k=function(n,r,e){n.find(o.ImportDeclaration).filter(function(n){return n.node.source.value===r}).forEach(function(n){n.node.specifiers.push(e)})},U=function(n,r,e){var t,i=n.find(o.ImportDeclaration);0<i.length?o(i.paths()[0]).insertAfter(nn(r,e)):1===(t=n.find(o.Program)).length&&t.paths()[0].node.body.unshift(nn(r,e))},V=function(n,r){0<E(n,r.module).length?M(n,r):U(n,r.module,[rn(r)])},z=function(n,r,e,t){var i=E(n,r),u=(t?tn:en)(e);0<i.length?k(n,r,u):U(n,r,[u])},G=function(n,r){var e=n.find(o.VariableDeclaration);0<e.length&&o(e.paths()[0]).insertAfter(W(r))},K=function(n,r){return o.expressionStatement(Q(n,r,[]))},Q=function(n,r,e){return o.callExpression(Z(n,r),e)},W=function(n){return o.variableDeclaration("var",[X(n)])},X=function(n){return o.variableDeclarator(void 0!==n.v?o.identifier(n.v):o.identifier(n.reference),Y(n))},Y=function(n){return o.memberExpression($(n),o.identifier(n.reference))},Z=function(n,r){return o.memberExpression(o.identifier(n),o.identifier(r))},$=function(n){return o.callExpression(o.identifier("require"),[o.literal(n.module)])},nn=function(n,r){return o.importDeclaration(r,o.literal(n))},rn=function(n){return void 0!==n.v?o.importSpecifier(o.identifier(n.reference),o.identifier(n.v)):o.importSpecifier(o.identifier(n.reference))},en=function(n){return o.importDefaultSpecifier(o.identifier(n))},tn=function(n){return o.importNamespaceSpecifier(o.identifier(n))};
@@ -12,22 +12,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Dynatrace = void 0;
13
13
  const Types_1 = require("../model/Types");
14
14
  const StringUtils_1 = require("./util/StringUtils");
15
- const DynatraceAction_1 = require("./DynatraceAction");
16
15
  const DynatraceBridge_1 = require("./DynatraceBridge");
17
- const NullAction_1 = require("./NullAction");
18
16
  const DataCollectionLevel_1 = require("./model/DataCollectionLevel");
19
17
  const UserPrivacyOptions_1 = require("./UserPrivacyOptions");
20
18
  const Logger_1 = require("./Logger");
21
19
  const Configuration_1 = require("./configuration/Configuration");
22
20
  const ErrorHandler_1 = require("./ErrorHandler");
23
- let counter = 0;
24
- const getCounter = () => counter++;
21
+ const DynatraceRootAction_1 = require("./DynatraceRootAction");
22
+ const NullRootAction_1 = require("./NullRootAction");
23
+ const DynatraceInternal_1 = require("./DynatraceInternal");
24
+ const DynatraceAction_1 = require("./DynatraceAction");
25
+ const NullAction_1 = require("./NullAction");
25
26
  exports.Dynatrace = {
26
27
  start: (configuration) => __awaiter(void 0, void 0, void 0, function* () {
27
28
  if (!Configuration_1.Configuration.isConfigurationAvailable()) {
28
29
  if (configuration !== undefined) {
29
30
  yield DynatraceBridge_1.DynatraceNative.start(configuration);
30
- if (configuration.reportCrash) {
31
+ if (configuration.reportCrash != null) {
31
32
  (0, ErrorHandler_1.ErrorHandler)(exports.Dynatrace, Logger_1.Logger).registerErrorHandler();
32
33
  }
33
34
  Configuration_1.Configuration.setConfiguration(configuration);
@@ -56,11 +57,42 @@ exports.Dynatrace = {
56
57
  }
57
58
  return Component;
58
59
  },
59
- enterAction: (name, platform) => {
60
+ enterAction: (name, platform) => exports.Dynatrace.enterAutoAction(name, platform),
61
+ enterManualAction: (name, platform) => {
60
62
  if (Configuration_1.Configuration.isConfigurationAvailable()) {
61
- const key = getCounter();
63
+ let key;
64
+ if (Configuration_1.Configuration.getBundleName() != null) {
65
+ key = Configuration_1.Configuration.getBundleName() + '_' + DynatraceInternal_1.DynatraceInternal.getCounter();
66
+ }
67
+ else {
68
+ key = 'DEFAULT_' + DynatraceInternal_1.DynatraceInternal.getCounter();
69
+ }
62
70
  if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(name)) {
63
- Logger_1.Logger.logDebug(`Dynatrace enterAction(${name})`);
71
+ Logger_1.Logger.logDebug(`Dynatrace enterManualAction(${name})`);
72
+ DynatraceBridge_1.DynatraceNative.enterManualAction(name, key, platform);
73
+ return new DynatraceRootAction_1.DynatraceRootAction(key, name);
74
+ }
75
+ else {
76
+ Logger_1.Logger.logDebug('Action Name was empty or null! Action will have no effect.');
77
+ return new NullRootAction_1.NullRootAction();
78
+ }
79
+ }
80
+ else {
81
+ Logger_1.Logger.logInfo(`Dynatrace enterManualAction(${name}): React Native plugin has not been started yet! Action can't be created!`);
82
+ return new NullRootAction_1.NullRootAction();
83
+ }
84
+ },
85
+ enterAutoAction: (name, platform) => {
86
+ if (Configuration_1.Configuration.isConfigurationAvailable()) {
87
+ let key;
88
+ if (Configuration_1.Configuration.getBundleName() != null) {
89
+ key = Configuration_1.Configuration.getBundleName() + '_' + DynatraceInternal_1.DynatraceInternal.getCounter();
90
+ }
91
+ else {
92
+ key = 'DEFAULT_' + DynatraceInternal_1.DynatraceInternal.getCounter();
93
+ }
94
+ if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(name)) {
95
+ Logger_1.Logger.logDebug(`Dynatrace enterAutoAction(${name})`);
64
96
  DynatraceBridge_1.DynatraceNative.enterAction(name, key, platform);
65
97
  return new DynatraceAction_1.DynatraceAction(key, name);
66
98
  }
@@ -70,7 +102,7 @@ exports.Dynatrace = {
70
102
  }
71
103
  }
72
104
  else {
73
- Logger_1.Logger.logInfo(`Dynatrace enterAction(${name}): React Native plugin has not been started yet! Action can't be created!`);
105
+ Logger_1.Logger.logInfo(`Dynatrace enterAutoAction(${name}): React Native plugin has not been started yet! Action can't be created!`);
74
106
  return new NullAction_1.NullAction();
75
107
  }
76
108
  },
@@ -83,21 +115,6 @@ exports.Dynatrace = {
83
115
  Logger_1.Logger.logInfo(`Dynatrace reportError(${errorName}, ${errorCode}): React Native plugin has not been started yet! Error will not be reported!`);
84
116
  }
85
117
  },
86
- reportErrorFromHandler: (isFatal, errorName, reason, stacktrace, platform) => {
87
- if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(reason)) {
88
- const reasonNewLineIndex = reason.indexOf('\n');
89
- if (reasonNewLineIndex !== -1) {
90
- reason = reason.substring(0, reasonNewLineIndex);
91
- }
92
- }
93
- Logger_1.Logger.logDebug(`Dynatrace reportErrorStacktrace(${isFatal}, ${errorName}, ${reason}, ${stacktrace})`);
94
- if (isFatal) {
95
- DynatraceBridge_1.DynatraceNative.reportCrash(errorName, reason, stacktrace, true, platform);
96
- }
97
- else {
98
- DynatraceBridge_1.DynatraceNative.reportError(errorName, '-', reason, stacktrace, platform);
99
- }
100
- },
101
118
  reportErrorWithStacktrace: (errorName, reason, stacktrace, platform) => {
102
119
  if (Configuration_1.Configuration.isConfigurationAvailable()) {
103
120
  if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(reason)) {
@@ -206,7 +223,7 @@ exports.Dynatrace = {
206
223
  },
207
224
  endSession: (platform) => {
208
225
  if (Configuration_1.Configuration.isConfigurationAvailable()) {
209
- Logger_1.Logger.logDebug(`Dynatrace endSession()`);
226
+ Logger_1.Logger.logDebug('Dynatrace endSession()');
210
227
  DynatraceBridge_1.DynatraceNative.endVisit(platform);
211
228
  }
212
229
  else {
@@ -233,11 +250,11 @@ exports.Dynatrace = {
233
250
  },
234
251
  isCrashReportingOptedIn: (platform) => __awaiter(void 0, void 0, void 0, function* () {
235
252
  if (Configuration_1.Configuration.isConfigurationAvailable()) {
236
- Logger_1.Logger.logDebug(`Dynatrace isCrashReportingOptedIn()`);
253
+ Logger_1.Logger.logDebug('Dynatrace isCrashReportingOptedIn()');
237
254
  return DynatraceBridge_1.DynatraceNative.isCrashReportingOptedIn(platform);
238
255
  }
239
256
  else {
240
- Logger_1.Logger.logInfo(`Dynatrace isCrashReportingOptedIn(): React Native plugin has not been started yet! Crash reporting value not available!`);
257
+ Logger_1.Logger.logInfo('Dynatrace isCrashReportingOptedIn(): React Native plugin has not been started yet! Crash reporting value not available!');
241
258
  return false;
242
259
  }
243
260
  }),
@@ -252,7 +269,7 @@ exports.Dynatrace = {
252
269
  },
253
270
  getDataCollectionLevel: (platform) => __awaiter(void 0, void 0, void 0, function* () {
254
271
  if (Configuration_1.Configuration.isConfigurationAvailable()) {
255
- Logger_1.Logger.logDebug(`Dynatrace getDataCollectionLevel()`);
272
+ Logger_1.Logger.logDebug('Dynatrace getDataCollectionLevel()');
256
273
  return DynatraceBridge_1.DynatraceNative.getDataCollectionLevel(platform);
257
274
  }
258
275
  else {
@@ -271,7 +288,7 @@ exports.Dynatrace = {
271
288
  },
272
289
  getUserPrivacyOptions: (platform) => __awaiter(void 0, void 0, void 0, function* () {
273
290
  if (Configuration_1.Configuration.isConfigurationAvailable()) {
274
- Logger_1.Logger.logDebug(`Dynatrace getUserPrivacyOptions()`);
291
+ Logger_1.Logger.logDebug('Dynatrace getUserPrivacyOptions()');
275
292
  const options = yield DynatraceBridge_1.DynatraceNative.getUserPrivacyOptions(platform);
276
293
  const currentOptions = new UserPrivacyOptions_1.UserPrivacyOptions(options.dataCollectionLevel, options.crashReportingOptedIn);
277
294
  return currentOptions;
@@ -296,7 +313,7 @@ exports.Dynatrace = {
296
313
  },
297
314
  flushEvents: (platform) => {
298
315
  if (Configuration_1.Configuration.isConfigurationAvailable()) {
299
- Logger_1.Logger.logDebug(`Dynatrace flushEvents()`);
316
+ Logger_1.Logger.logDebug('Dynatrace flushEvents()');
300
317
  DynatraceBridge_1.DynatraceNative.flushEvents(platform);
301
318
  }
302
319
  else {
@@ -305,7 +322,7 @@ exports.Dynatrace = {
305
322
  },
306
323
  setBeaconHeaders: (headers, platform) => {
307
324
  if (Configuration_1.Configuration.isConfigurationAvailable()) {
308
- Logger_1.Logger.logDebug(`Dynatrace setBeaconHeaders(headers)`);
325
+ Logger_1.Logger.logDebug('Dynatrace setBeaconHeaders(headers)');
309
326
  if (headers && headers.size > 0) {
310
327
  const obj = {};
311
328
  headers.forEach((value, key) => (obj[key] = value));
@@ -8,8 +8,13 @@ class DynatraceAction {
8
8
  constructor(key, name) {
9
9
  this.key = key;
10
10
  this.name = name;
11
+ this.closed = false;
11
12
  }
12
13
  reportError(errorName, errorCode, platform) {
14
+ if (this.closed) {
15
+ Logger_1.Logger.logDebug(`DynatraceAction reportError(${errorName}, ${errorCode}): Action was closed already!`);
16
+ return;
17
+ }
13
18
  if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(errorName)) {
14
19
  DynatraceBridge_1.DynatraceNative.reportErrorInAction(this.key, errorName, errorCode, platform);
15
20
  Logger_1.Logger.logDebug(`DynatraceAction reportError(${errorName}, ${errorCode}) in Action: ${this.name}`);
@@ -19,6 +24,10 @@ class DynatraceAction {
19
24
  }
20
25
  }
21
26
  reportEvent(eventName, platform) {
27
+ if (this.closed) {
28
+ Logger_1.Logger.logDebug(`DynatraceAction reportEvent(${eventName}): Action was closed already!`);
29
+ return;
30
+ }
22
31
  if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(eventName)) {
23
32
  DynatraceBridge_1.DynatraceNative.reportEventInAction(this.key, eventName, platform);
24
33
  Logger_1.Logger.logDebug(`DynatraceAction reportEvent(${eventName}): in Action - ${this.name}`);
@@ -28,6 +37,10 @@ class DynatraceAction {
28
37
  }
29
38
  }
30
39
  reportStringValue(valueName, value, platform) {
40
+ if (this.closed) {
41
+ Logger_1.Logger.logDebug(`DynatraceAction reportStringValue(${valueName}, ${value}): Action was closed already!`);
42
+ return;
43
+ }
31
44
  if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(valueName)) {
32
45
  DynatraceBridge_1.DynatraceNative.reportStringValueInAction(this.key, valueName, value, platform);
33
46
  Logger_1.Logger.logDebug(`DynatraceAction reportStringValue(${valueName}, ${value}): in Action - ${this.name}`);
@@ -37,6 +50,10 @@ class DynatraceAction {
37
50
  }
38
51
  }
39
52
  reportIntValue(valueName, value, platform) {
53
+ if (this.closed) {
54
+ Logger_1.Logger.logDebug(`DynatraceAction reportIntValue(${valueName}, ${value}): Action was closed already!`);
55
+ return;
56
+ }
40
57
  if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(valueName)) {
41
58
  DynatraceBridge_1.DynatraceNative.reportIntValueInAction(this.key, valueName, value, platform);
42
59
  Logger_1.Logger.logDebug(`DynatraceAction reportIntValue(${valueName}, ${value}): in Action - ${this.name}`);
@@ -46,6 +63,10 @@ class DynatraceAction {
46
63
  }
47
64
  }
48
65
  reportDoubleValue(valueName, value, platform) {
66
+ if (this.closed) {
67
+ Logger_1.Logger.logDebug(`DynatraceAction reportDoubleValue(${valueName}, ${value}): Action was closed already!`);
68
+ return;
69
+ }
49
70
  if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(valueName)) {
50
71
  DynatraceBridge_1.DynatraceNative.reportDoubleValueInAction(this.key, valueName, value, platform);
51
72
  Logger_1.Logger.logDebug(`DynatraceAction reportDoubleValue(${valueName}, ${value}): in Action - ${this.name}`);
@@ -55,12 +76,35 @@ class DynatraceAction {
55
76
  }
56
77
  }
57
78
  leaveAction(platform) {
79
+ if (this.closed) {
80
+ Logger_1.Logger.logDebug('DynatraceAction leaveAction(): Action was closed already!');
81
+ return;
82
+ }
83
+ this.closed = true;
58
84
  Logger_1.Logger.logDebug(`DynatraceAction leaveAction(): ${this.name}`);
59
85
  DynatraceBridge_1.DynatraceNative.leaveAction(this.key, platform);
60
86
  }
61
87
  cancel(platform) {
88
+ if (this.closed) {
89
+ Logger_1.Logger.logDebug('DynatraceAction cancelAction(): Action was closed already!');
90
+ return;
91
+ }
92
+ this.closed = true;
62
93
  Logger_1.Logger.logDebug(`DynatraceAction cancelAction(): ${this.name}`);
63
94
  DynatraceBridge_1.DynatraceNative.cancelAction(this.key, platform);
64
95
  }
96
+ getRequestTag(url) {
97
+ if (this.closed) {
98
+ Logger_1.Logger.logDebug(`DynatraceAction getRequestTag(${url}): Action was closed already!`);
99
+ return new Promise((resolve) => {
100
+ resolve('');
101
+ });
102
+ }
103
+ Logger_1.Logger.logDebug(`DynatraceAction getRequest(${url}): in Action - ${this.name}`);
104
+ return DynatraceBridge_1.DynatraceNative.getRequestTag(this.key, url);
105
+ }
106
+ getRequestTagHeader() {
107
+ return 'x-dynatrace';
108
+ }
65
109
  }
66
110
  exports.DynatraceAction = DynatraceAction;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DynatraceInternal = void 0;
4
+ const StringUtils_1 = require("./util/StringUtils");
5
+ const DynatraceBridge_1 = require("./DynatraceBridge");
6
+ const Logger_1 = require("./Logger");
7
+ let counter = 0;
8
+ exports.DynatraceInternal = {
9
+ reportErrorFromHandler: (isFatal, errorName, reason, stacktrace, platform) => {
10
+ if (!StringUtils_1.StringUtils.isStringNullEmptyOrUndefined(reason)) {
11
+ const reasonNewLineIndex = reason.indexOf('\n');
12
+ if (reasonNewLineIndex !== -1) {
13
+ reason = reason.substring(0, reasonNewLineIndex);
14
+ }
15
+ }
16
+ Logger_1.Logger.logDebug(`Dynatrace reportErrorStacktrace(${isFatal}, ${errorName}, ${reason}, ${stacktrace})`);
17
+ if (isFatal) {
18
+ DynatraceBridge_1.DynatraceNative.reportCrash(errorName, reason, stacktrace, true, platform);
19
+ }
20
+ else {
21
+ DynatraceBridge_1.DynatraceNative.reportError(errorName, '-', reason, stacktrace, platform);
22
+ }
23
+ },
24
+ getCounter: () => counter++,
25
+ };