@dynatrace/react-native-plugin 2.257.1 → 2.259.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 (28) hide show
  1. package/README.md +9 -5
  2. package/android/build.gradle +1 -1
  3. package/files/plugin.gradle +1 -1
  4. package/index.js +1 -15
  5. package/ios/lib/Dynatrace.xcframework/Info.plist +8 -8
  6. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Dynatrace +0 -0
  7. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace.h +4 -4
  8. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Info.plist +0 -0
  9. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  10. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
  11. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +4 -4
  12. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
  13. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  14. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  15. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +11 -11
  16. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Dynatrace +0 -0
  17. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace.h +4 -4
  18. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Info.plist +0 -0
  19. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo +0 -0
  20. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
  21. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +4 -4
  22. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
  23. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo +0 -0
  24. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo +0 -0
  25. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +11 -11
  26. package/jsx-runtime.js +4 -0
  27. package/lib/jsx-runtime.js +19 -1
  28. package/package.json +3 -2
package/README.md CHANGED
@@ -28,8 +28,8 @@ If you want to start using this plugin and are not a Dynatrace customer yet, hea
28
28
  ## Agent Versions
29
29
  This agent versions are configured in this plugin:
30
30
 
31
- * iOS Agent: 8.257.1.1007
32
- * Android Agent: 8.257.1.1007
31
+ * iOS Agent: 8.259.1.1009
32
+ * Android Agent: 8.259.1.1008
33
33
 
34
34
  ## Quick Setup
35
35
 
@@ -903,7 +903,7 @@ module.exports = {
903
903
  "@babel/plugin-transform-react-jsx",
904
904
  {
905
905
  runtime: "automatic",
906
- importSource: "@dynatrace/react-native-plugin/lib"
906
+ importSource: "@dynatrace/react-native-plugin"
907
907
  }
908
908
  ]
909
909
  ]
@@ -918,7 +918,7 @@ module.exports = {
918
918
  ['babel-preset-expo',
919
919
  {
920
920
  jsxRuntime: 'automatic',
921
- jsxImportSource: '@dynatrace/react-native-plugin/lib',
921
+ jsxImportSource: '@dynatrace/react-native-plugin',
922
922
  },
923
923
  ],
924
924
  ],
@@ -937,7 +937,7 @@ module.exports = {
937
937
  '@babel/plugin-transform-react-jsx',
938
938
  {
939
939
  runtime: 'automatic',
940
- importSource: "@dynatrace/react-native-plugin/lib"
940
+ importSource: "@dynatrace/react-native-plugin"
941
941
  },
942
942
  ],
943
943
  ],
@@ -1097,6 +1097,10 @@ If you are struggling with a problem, submit a support ticket to Dynatrace (supp
1097
1097
  <br/><br/>
1098
1098
  ## Changelog
1099
1099
 
1100
+ 2.259.1
1101
+ * Updated Android (8.259.1.1008) & iOS Agent (8.259.1.1009)
1102
+ * Fixed issue with jsx-runtime and changed [importSource](#react-automatic-runtime)
1103
+
1100
1104
  2.257.1
1101
1105
  * Added API for creating a [manual custom action](#create-custom-actions)
1102
1106
  * Removed option to disable certificate validation
@@ -36,7 +36,7 @@ repositories {
36
36
  }
37
37
 
38
38
  dependencies {
39
- implementation 'com.dynatrace.agent:agent-android:8.257.1.1007'
39
+ implementation 'com.dynatrace.agent:agent-android:8.259.1.1008'
40
40
  implementation "com.facebook.react:react-native:${safeExtGet('reactNative', '+')}"
41
41
  }
42
42
 
@@ -1,3 +1,3 @@
1
1
  dependencies {
2
- classpath 'com.dynatrace.tools.android:gradle-plugin:8.257.1.1007'
2
+ classpath 'com.dynatrace.tools.android:gradle-plugin:8.259.1.1008'
3
3
  }
package/index.js CHANGED
@@ -5,18 +5,4 @@ export { Platform } from './lib/instrumentor/base/model/Platform';
5
5
  export { LogLevel } from './lib/instrumentor/base/model/LogLevel';
6
6
  export { ApplicationHandler } from './lib/instrumentor/base/Application';
7
7
  export { UserPrivacyOptions } from './lib/instrumentor/base/UserPrivacyOptions';
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
8
+ export { createElement } from './jsx-runtime';
@@ -18,34 +18,34 @@
18
18
  </dict>
19
19
  <dict>
20
20
  <key>LibraryIdentifier</key>
21
- <string>tvos-arm64</string>
21
+ <string>tvos-arm64_x86_64-simulator</string>
22
22
  <key>LibraryPath</key>
23
23
  <string>Dynatrace.framework</string>
24
24
  <key>SupportedArchitectures</key>
25
25
  <array>
26
26
  <string>arm64</string>
27
+ <string>x86_64</string>
27
28
  </array>
28
29
  <key>SupportedPlatform</key>
29
30
  <string>tvos</string>
31
+ <key>SupportedPlatformVariant</key>
32
+ <string>simulator</string>
30
33
  </dict>
31
34
  <dict>
32
35
  <key>LibraryIdentifier</key>
33
- <string>ios-arm64_x86_64-simulator</string>
36
+ <string>tvos-arm64</string>
34
37
  <key>LibraryPath</key>
35
38
  <string>Dynatrace.framework</string>
36
39
  <key>SupportedArchitectures</key>
37
40
  <array>
38
41
  <string>arm64</string>
39
- <string>x86_64</string>
40
42
  </array>
41
43
  <key>SupportedPlatform</key>
42
- <string>ios</string>
43
- <key>SupportedPlatformVariant</key>
44
- <string>simulator</string>
44
+ <string>tvos</string>
45
45
  </dict>
46
46
  <dict>
47
47
  <key>LibraryIdentifier</key>
48
- <string>tvos-arm64_x86_64-simulator</string>
48
+ <string>ios-arm64_x86_64-simulator</string>
49
49
  <key>LibraryPath</key>
50
50
  <string>Dynatrace.framework</string>
51
51
  <key>SupportedArchitectures</key>
@@ -54,7 +54,7 @@
54
54
  <string>x86_64</string>
55
55
  </array>
56
56
  <key>SupportedPlatform</key>
57
- <string>tvos</string>
57
+ <string>ios</string>
58
58
  <key>SupportedPlatformVariant</key>
59
59
  <string>simulator</string>
60
60
  </dict>
@@ -1,5 +1,5 @@
1
1
  // Dynatrace.h
2
- // Version: 8.257.1.1007
2
+ // Version: 8.259.1.1009
3
3
  //
4
4
  // These materials contain confidential information and
5
5
  // trade secrets of Dynatrace Corporation. You shall
@@ -13,7 +13,7 @@
13
13
  // trademarks of Dynatrace Corporation. All other company
14
14
  // or product names are trademarks of their respective owners.
15
15
  //
16
- // Copyright 2011-2021 Dynatrace LLC
16
+ // Copyright 2011-2022 Dynatrace LLC
17
17
 
18
18
  #import <Foundation/Foundation.h>
19
19
  #import <CoreLocation/CoreLocation.h>
@@ -775,9 +775,9 @@ When the user optin feature is not used:
775
775
  # pragma mark Logging
776
776
  /*!
777
777
  @const kDTXLogLevel
778
- If this key is present with a valid value (ALL, FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE, OFF),
778
+ If this key is present with a valid value (ALL, INFO, WARNING, SEVERE, OFF),
779
779
  the OneAgent logging level will be set to this value. If a key isn't present or doesn't have a valid value,
780
- logging will default to INFO.
780
+ logging will default to OFF.
781
781
  */
782
782
  extern NSString *_Nonnull const kDTXLogLevel;
783
783
 
@@ -1,5 +1,5 @@
1
1
  // Dynatrace.h
2
- // Version: 8.257.1.1007
2
+ // Version: 8.259.1.1009
3
3
  //
4
4
  // These materials contain confidential information and
5
5
  // trade secrets of Dynatrace Corporation. You shall
@@ -13,7 +13,7 @@
13
13
  // trademarks of Dynatrace Corporation. All other company
14
14
  // or product names are trademarks of their respective owners.
15
15
  //
16
- // Copyright 2011-2021 Dynatrace LLC
16
+ // Copyright 2011-2022 Dynatrace LLC
17
17
 
18
18
  #import <Foundation/Foundation.h>
19
19
  #import <CoreLocation/CoreLocation.h>
@@ -775,9 +775,9 @@ When the user optin feature is not used:
775
775
  # pragma mark Logging
776
776
  /*!
777
777
  @const kDTXLogLevel
778
- If this key is present with a valid value (ALL, FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE, OFF),
778
+ If this key is present with a valid value (ALL, INFO, WARNING, SEVERE, OFF),
779
779
  the OneAgent logging level will be set to this value. If a key isn't present or doesn't have a valid value,
780
- logging will default to INFO.
780
+ logging will default to OFF.
781
781
  */
782
782
  extern NSString *_Nonnull const kDTXLogLevel;
783
783
 
@@ -10,7 +10,7 @@
10
10
  </data>
11
11
  <key>Headers/Dynatrace.h</key>
12
12
  <data>
13
- P3A1pOhTAYTtLVRwA8nZtcl7KIA=
13
+ WvdtHg1tS2J7xOlne1BkkLIgCpQ=
14
14
  </data>
15
15
  <key>Headers/Framework.h</key>
16
16
  <data>
@@ -18,15 +18,15 @@
18
18
  </data>
19
19
  <key>Info.plist</key>
20
20
  <data>
21
- KZFvceRm+gNRC/bop0schnV6ihE=
21
+ Vr/LuUeBy0PQxAHrYF3kNLxudCk=
22
22
  </data>
23
23
  <key>Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo</key>
24
24
  <data>
25
- 2Wz2Wf6T9u3Lci3MIOhxVcqZyJQ=
25
+ L1WJZfEEdd6rLWYaal59NJS5Ixs=
26
26
  </data>
27
27
  <key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
28
28
  <data>
29
- uPYoLv/0vAGnx/V9fEJSXLSipK8=
29
+ uIrLOV/7LQKPKTDprHB66LqDdu8=
30
30
  </data>
31
31
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
32
32
  <data>
@@ -46,7 +46,7 @@
46
46
  </data>
47
47
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
48
48
  <data>
49
- vlNRwSSSWHGcy3PomO2MY8cWBrw=
49
+ FXOCzE+RQXuDPxhupKfgFGO4ElQ=
50
50
  </data>
51
51
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
52
52
  <data>
@@ -66,7 +66,7 @@
66
66
  </data>
67
67
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
68
68
  <data>
69
- 2KvytcdX0sucrl1abvS6H2oOo1o=
69
+ bAJ5tzgrXNP4bxwH10ErHClUgFI=
70
70
  </data>
71
71
  <key>Modules/module.modulemap</key>
72
72
  <data>
@@ -86,7 +86,7 @@
86
86
  <dict>
87
87
  <key>hash2</key>
88
88
  <data>
89
- Ua3kfTs2zSmpOKCT5oUdQqHjbbtb2X6q5Qk+/ZCdU8I=
89
+ MFFWoUGl76BQ1O8HWeF0HEL2ZiKpDlvMS0gd+f9BCzE=
90
90
  </data>
91
91
  </dict>
92
92
  <key>Headers/Framework.h</key>
@@ -100,14 +100,14 @@
100
100
  <dict>
101
101
  <key>hash2</key>
102
102
  <data>
103
- F9+gLk5VgXbamby8v9M3VnSn5NiQulYSbKkrR15kTKI=
103
+ oPflhqBaPrPm09m0iqiS7+QkVRRSfTW0SvzmReG2RpA=
104
104
  </data>
105
105
  </dict>
106
106
  <key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo</key>
107
107
  <dict>
108
108
  <key>hash2</key>
109
109
  <data>
110
- RsSlzsmp8rbjWjXxURNPSLONPGpdPysD/ohMfNIsTWA=
110
+ SXIq1LY/u3Tmkc97eL6dmCuLYc6BoH6IIkWVY7Kf2MY=
111
111
  </data>
112
112
  </dict>
113
113
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
@@ -142,7 +142,7 @@
142
142
  <dict>
143
143
  <key>hash2</key>
144
144
  <data>
145
- 69jMk0bLBulQ/+VjTmmZtdIKKJ3r0AHUD268IFFdWJs=
145
+ RqqQz7RjyDIFNqK8eiN//OIb6eqW15a+aoGRbUNEnik=
146
146
  </data>
147
147
  </dict>
148
148
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
@@ -177,7 +177,7 @@
177
177
  <dict>
178
178
  <key>hash2</key>
179
179
  <data>
180
- UoTvHvF7L8IG5JE6lcBEPEEUlW2xyOFii63A4R6Zbx8=
180
+ CdNiucJKplpcnww0HasRN84bGA3SPP2VfnzrFhqRjNs=
181
181
  </data>
182
182
  </dict>
183
183
  <key>Modules/module.modulemap</key>
@@ -1,5 +1,5 @@
1
1
  // Dynatrace.h
2
- // Version: 8.257.1.1007
2
+ // Version: 8.259.1.1009
3
3
  //
4
4
  // These materials contain confidential information and
5
5
  // trade secrets of Dynatrace Corporation. You shall
@@ -13,7 +13,7 @@
13
13
  // trademarks of Dynatrace Corporation. All other company
14
14
  // or product names are trademarks of their respective owners.
15
15
  //
16
- // Copyright 2011-2021 Dynatrace LLC
16
+ // Copyright 2011-2022 Dynatrace LLC
17
17
 
18
18
  #import <Foundation/Foundation.h>
19
19
  #import <CoreLocation/CoreLocation.h>
@@ -775,9 +775,9 @@ When the user optin feature is not used:
775
775
  # pragma mark Logging
776
776
  /*!
777
777
  @const kDTXLogLevel
778
- If this key is present with a valid value (ALL, FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE, OFF),
778
+ If this key is present with a valid value (ALL, INFO, WARNING, SEVERE, OFF),
779
779
  the OneAgent logging level will be set to this value. If a key isn't present or doesn't have a valid value,
780
- logging will default to INFO.
780
+ logging will default to OFF.
781
781
  */
782
782
  extern NSString *_Nonnull const kDTXLogLevel;
783
783
 
@@ -1,5 +1,5 @@
1
1
  // Dynatrace.h
2
- // Version: 8.257.1.1007
2
+ // Version: 8.259.1.1009
3
3
  //
4
4
  // These materials contain confidential information and
5
5
  // trade secrets of Dynatrace Corporation. You shall
@@ -13,7 +13,7 @@
13
13
  // trademarks of Dynatrace Corporation. All other company
14
14
  // or product names are trademarks of their respective owners.
15
15
  //
16
- // Copyright 2011-2021 Dynatrace LLC
16
+ // Copyright 2011-2022 Dynatrace LLC
17
17
 
18
18
  #import <Foundation/Foundation.h>
19
19
  #import <CoreLocation/CoreLocation.h>
@@ -775,9 +775,9 @@ When the user optin feature is not used:
775
775
  # pragma mark Logging
776
776
  /*!
777
777
  @const kDTXLogLevel
778
- If this key is present with a valid value (ALL, FINEST, FINER, FINE, CONFIG, INFO, WARNING, SEVERE, OFF),
778
+ If this key is present with a valid value (ALL, INFO, WARNING, SEVERE, OFF),
779
779
  the OneAgent logging level will be set to this value. If a key isn't present or doesn't have a valid value,
780
- logging will default to INFO.
780
+ logging will default to OFF.
781
781
  */
782
782
  extern NSString *_Nonnull const kDTXLogLevel;
783
783
 
@@ -10,7 +10,7 @@
10
10
  </data>
11
11
  <key>Headers/Dynatrace.h</key>
12
12
  <data>
13
- P3A1pOhTAYTtLVRwA8nZtcl7KIA=
13
+ WvdtHg1tS2J7xOlne1BkkLIgCpQ=
14
14
  </data>
15
15
  <key>Headers/Framework.h</key>
16
16
  <data>
@@ -18,15 +18,15 @@
18
18
  </data>
19
19
  <key>Info.plist</key>
20
20
  <data>
21
- EkiKCZwp1jCZLO7XrLPwza0n9Uo=
21
+ qp9fUz3hubba0qI7MOCGr+4iX5k=
22
22
  </data>
23
23
  <key>Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo</key>
24
24
  <data>
25
- q8TFTF7zaD3VndEXP3owgLfyXwE=
25
+ 0IjOlmShSkILXU9QeJ/7ERG9lzA=
26
26
  </data>
27
27
  <key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo</key>
28
28
  <data>
29
- EOLIunbvtXou2woodl315ZwfYzM=
29
+ WT/47/eXcCQG2BfitEc2oHke4OA=
30
30
  </data>
31
31
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.abi.json</key>
32
32
  <data>
@@ -46,7 +46,7 @@
46
46
  </data>
47
47
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.swiftmodule</key>
48
48
  <data>
49
- qfISM8vQ/WFD894MIY6+e3CiQRU=
49
+ j8FQrJcBREE7pYKGgmflr3pfsIQ=
50
50
  </data>
51
51
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.abi.json</key>
52
52
  <data>
@@ -66,7 +66,7 @@
66
66
  </data>
67
67
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.swiftmodule</key>
68
68
  <data>
69
- 5zXO/bKzAwB/1ZvxWUmKkiXuwIs=
69
+ GG2jIJjQA5zhkzIy096wbvMYJg0=
70
70
  </data>
71
71
  <key>Modules/module.modulemap</key>
72
72
  <data>
@@ -86,7 +86,7 @@
86
86
  <dict>
87
87
  <key>hash2</key>
88
88
  <data>
89
- Ua3kfTs2zSmpOKCT5oUdQqHjbbtb2X6q5Qk+/ZCdU8I=
89
+ MFFWoUGl76BQ1O8HWeF0HEL2ZiKpDlvMS0gd+f9BCzE=
90
90
  </data>
91
91
  </dict>
92
92
  <key>Headers/Framework.h</key>
@@ -100,14 +100,14 @@
100
100
  <dict>
101
101
  <key>hash2</key>
102
102
  <data>
103
- SxoIZv+7zVQ7OqLyz2Mi2V32H8xATNDp3O4q85nc0m0=
103
+ 7x/SR7jA5ykuf1f4K3AAEcZAnDyVMmMthsMFJlx8Jt8=
104
104
  </data>
105
105
  </dict>
106
106
  <key>Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo</key>
107
107
  <dict>
108
108
  <key>hash2</key>
109
109
  <data>
110
- H1ag5TMp/g+rQt96FIPJjNi7BSffvYJfyRA/b9Skm44=
110
+ 7b4sg36gagRVa9Ualg1BwDxWq2UEVScGbj2WjKK/3bE=
111
111
  </data>
112
112
  </dict>
113
113
  <key>Modules/Dynatrace.swiftmodule/arm64-apple-tvos-simulator.abi.json</key>
@@ -142,7 +142,7 @@
142
142
  <dict>
143
143
  <key>hash2</key>
144
144
  <data>
145
- FZhLHQkMI9Asraxf8kPpdQpXNWUlvtCw6Y8w+Nsxa2o=
145
+ vWhnYNSIWwcjAgxmbpPAgYUbEFwwcDOZcB4pRERSQYQ=
146
146
  </data>
147
147
  </dict>
148
148
  <key>Modules/Dynatrace.swiftmodule/x86_64-apple-tvos-simulator.abi.json</key>
@@ -177,7 +177,7 @@
177
177
  <dict>
178
178
  <key>hash2</key>
179
179
  <data>
180
- 1krvi4VwC2uTdjVN2daDe2HeuSfdVf965q0aQ4Sd+kI=
180
+ S2EJa2aJU6hvXaLuMuWEnON1s72p2QXso8LX5R61dQ8=
181
181
  </data>
182
182
  </dict>
183
183
  <key>Modules/module.modulemap</key>
package/jsx-runtime.js ADDED
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const jsxRuntime = require("./lib/jsx-runtime");
4
+ module.exports = Object.assign({}, jsxRuntime);
@@ -1,9 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.createElement = void 0;
3
4
  const ElementHelper_1 = require("./instrumentor/base/ElementHelper");
4
5
  const Types_1 = require("./instrumentor/model/Types");
5
6
  const Component_1 = require("./react/Component");
6
7
  const _jsxRuntime = require('react/jsx-runtime.js');
8
+ const _createElement = require('react').createElement;
9
+ const createElement = (type, props, ...children) => {
10
+ if (type != null && type._dtInfo != null && !(0, ElementHelper_1.isDtActionIgnore)(props)) {
11
+ if (type._dtInfo.type === Types_1.Types.FunctionalComponent) {
12
+ return _createElement(Component_1.DynatraceFnWrapper, {}, _createElement(type, props, ...children));
13
+ }
14
+ else if (type._dtInfo.type === Types_1.Types.ClassComponent &&
15
+ type.prototype !== undefined && type.prototype.isReactComponent !== undefined) {
16
+ return _createElement(Component_1.DynatraceClassWrapper, {}, _createElement(type, props, ...children));
17
+ }
18
+ else {
19
+ (0, ElementHelper_1.modifyElement)(type, props, ...children);
20
+ }
21
+ }
22
+ return _createElement(type, props, ...children);
23
+ };
24
+ exports.createElement = createElement;
7
25
  const jsxProd = (type, config, maybeKey) => jsxHelper(_jsxRuntime.jsx, type, config, [maybeKey]);
8
26
  const jsxDev = (type, config, maybeKey, source, self) => jsxHelper(_jsxRuntime.jsx, type, config, [maybeKey, source, self]);
9
27
  const jsxsDev = (type, config, maybeKey, source, self) => jsxHelper(_jsxRuntime.jsxs, type, config, [maybeKey, source, self]);
@@ -31,4 +49,4 @@ const jsxHelper = (jsxFn, type, config, args) => {
31
49
  }
32
50
  return jsxFn(type, config, ...args);
33
51
  };
34
- module.exports = Object.assign(Object.assign({}, _jsxRuntime), { jsx: __DEV__ ? jsxDev : jsxProd, jsxs: __DEV__ ? jsxsDev : jsxProd });
52
+ module.exports = Object.assign(Object.assign({}, _jsxRuntime), { jsx: __DEV__ ? jsxDev : jsxProd, jsxs: __DEV__ ? jsxsDev : jsxProd, createElement: exports.createElement });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynatrace/react-native-plugin",
3
- "version": "2.257.1",
3
+ "version": "2.259.1",
4
4
  "description": "This plugin gives you the ability to use the Dynatrace Mobile agent in your react native application.",
5
5
  "main": "index.js",
6
6
  "types": "typings/react-native-dynatrace.d.ts",
@@ -162,6 +162,7 @@
162
162
  "scripts/util/*",
163
163
  "util/*.js",
164
164
  "typings/*",
165
- "package.json"
165
+ "package.json",
166
+ "jsx-runtime.js"
166
167
  ]
167
168
  }