@dynatrace/react-native-plugin 2.263.2 → 2.265.2

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 (49) hide show
  1. package/README.md +7 -2
  2. package/android/build.gradle +1 -1
  3. package/android/src/main/java/com/dynatrace/android/agent/DynatraceRNBridge.java +4 -3
  4. package/files/plugin.gradle +1 -1
  5. package/ios/DynatraceRNBridge.m +35 -3
  6. package/ios/lib/Dynatrace.xcframework/Info.plist +8 -8
  7. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Dynatrace +0 -0
  8. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Dynatrace.h +1 -1
  9. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/DynatraceSwiftUI.h +31 -0
  10. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Headers/Framework.h +2 -1
  11. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Info.plist +0 -0
  12. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  13. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.abi.json +195 -1
  14. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.private.swiftinterface +8 -0
  15. package/ios/lib/Dynatrace.xcframework/ios-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios.swiftinterface +8 -0
  16. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
  17. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +1 -1
  18. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/DynatraceSwiftUI.h +31 -0
  19. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Headers/Framework.h +2 -1
  20. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
  21. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  22. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  23. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.abi.json +195 -1
  24. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +8 -0
  25. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/arm64-apple-ios-simulator.swiftinterface +8 -0
  26. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.abi.json +195 -1
  27. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +8 -0
  28. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +8 -0
  29. package/ios/lib/Dynatrace.xcframework/ios-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +36 -25
  30. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Dynatrace +0 -0
  31. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Dynatrace.h +1 -1
  32. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/DynatraceSwiftUI.h +31 -0
  33. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Headers/Framework.h +2 -1
  34. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Info.plist +0 -0
  35. package/ios/lib/Dynatrace.xcframework/tvos-arm64/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos.swiftsourceinfo +0 -0
  36. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Dynatrace +0 -0
  37. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Dynatrace.h +1 -1
  38. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/DynatraceSwiftUI.h +31 -0
  39. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Headers/Framework.h +2 -1
  40. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Info.plist +0 -0
  41. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/arm64-apple-tvos-simulator.swiftsourceinfo +0 -0
  42. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/Modules/Dynatrace.swiftmodule/Project/x86_64-apple-tvos-simulator.swiftsourceinfo +0 -0
  43. package/ios/lib/Dynatrace.xcframework/tvos-arm64_x86_64-simulator/Dynatrace.framework/_CodeSignature/CodeResources +24 -13
  44. package/lib/instrumentor/base/Dynatrace.js +1 -1
  45. package/lib/instrumentor/base/DynatraceAction.js +3 -2
  46. package/lib/instrumentor/base/DynatraceRootAction.js +2 -2
  47. package/lib/jsx-runtime.js +54 -44
  48. package/package.json +4 -3
  49. package/typings/react-native-dynatrace.d.ts +33 -2
package/README.md CHANGED
@@ -29,8 +29,8 @@ If you want to start using this plugin and are not a Dynatrace customer yet, hea
29
29
  ## Agent Versions
30
30
  This agent versions are configured in this plugin:
31
31
 
32
- * iOS Agent: 8.263.2.1005
33
- * Android Agent: 8.263.1.1002
32
+ * iOS Agent: 8.265.1.1003
33
+ * Android Agent: 8.265.1.1002
34
34
 
35
35
  ## Quick Setup
36
36
 
@@ -1098,6 +1098,11 @@ If you are struggling with a problem, submit a support ticket to Dynatrace (supp
1098
1098
  <br/><br/>
1099
1099
  ## Changelog
1100
1100
 
1101
+ 2.265.2
1102
+ * Updated Android (8.265.1.1002) & iOS Agent (8.265.1.1003)
1103
+ * Fixed Metro problem because of dynamic require
1104
+ * Fixed enterManualAction/enterAutoAction API
1105
+
1101
1106
  2.263.2
1102
1107
  * Updated Android (8.263.1.1002) & iOS Agent (8.263.2.1005)
1103
1108
  * Fixed execution of tests via Jest 28.x
@@ -36,7 +36,7 @@ repositories {
36
36
  }
37
37
 
38
38
  dependencies {
39
- implementation 'com.dynatrace.agent:agent-android:8.263.1.1002'
39
+ implementation 'com.dynatrace.agent:agent-android:8.265.1.1002'
40
40
  implementation "com.facebook.react:react-native:${safeExtGet('reactNative', '+')}"
41
41
  }
42
42
 
@@ -101,20 +101,21 @@ public class DynatraceRNBridge extends ReactContextBaseJavaModule {
101
101
  }
102
102
  }
103
103
 
104
- private void enterManualActionWithParent(String name, String key, int parentKey, String platform) {
104
+ @ReactMethod
105
+ public void enterManualActionWithParent(String name, String key, String parentKey, String platform) {
105
106
  if (this.shouldWorkOnAndroid(platform)) {
106
107
  DTXAction parent = actions.get(parentKey);
107
108
 
108
109
  if (parent != null) {
109
110
  actions.put(key, Dynatrace.enterAction(name, parent));
110
111
  } else {
111
- enterAction(name, key, platform);
112
+ enterManualAction(name, key, platform);
112
113
  }
113
114
  }
114
115
  }
115
116
 
116
117
  @ReactMethod
117
- public void leaveAction(String key, String platform) {
118
+ public void leaveAction(String key, boolean leave, String platform) {
118
119
  if (this.shouldWorkOnAndroid(platform)) {
119
120
  DTXAction action = getAction(key);
120
121
  if (action == null) return;
@@ -1,3 +1,3 @@
1
1
  dependencies {
2
- classpath 'com.dynatrace.tools.android:gradle-plugin:8.263.1.1002'
2
+ classpath 'com.dynatrace.tools.android:gradle-plugin:8.265.1.1002'
3
3
  }
@@ -79,21 +79,53 @@ RCT_EXPORT_METHOD(enterAction:(NSString *)name key:(nonnull NSString *)key platf
79
79
  }
80
80
  }
81
81
 
82
- RCT_EXPORT_METHOD(enterActionWithParent:(NSString *)name key:(nonnull NSString *)key parentKey:(nonnull NSString *)parentKey platform: (NSString *) platform)
82
+ RCT_EXPORT_METHOD(enterManualAction:(NSString *)name key:(nonnull NSString *)key platform: (NSString *) platform)
83
+ {
84
+ if ([self shouldWorkOnIosWithPlatform: platform])
85
+ {
86
+ DTXAction *action = [DTXAction enterActionWithName:name];
87
+
88
+ if (action)
89
+ {
90
+ [actionDict setObject:action forKey:key];
91
+ }
92
+ }
93
+ }
94
+
95
+ RCT_EXPORT_METHOD(enterManualActionWithParent:(NSString *)name key:(nonnull NSString *)key parentKey:(nonnull NSString *)parentKey platform: (NSString *) platform)
83
96
  {
84
97
  if ([self shouldWorkOnIosWithPlatform: platform])
85
98
  {
86
- [self newAction:name key:key parentAction:[self getAction:parentKey]];
99
+ DTXAction *parentAction = [self getAction:parentKey];
100
+
101
+ if (parentAction != nil)
102
+ {
103
+ DTXAction *childAction = [DTXAction enterActionWithName:name parentAction:parentAction];
104
+
105
+ if (childAction)
106
+ {
107
+ [actionDict setObject:childAction forKey:key];
108
+ }
109
+ }
110
+ else
111
+ {
112
+ [self enterManualAction:name key:key platform:platform];
113
+ }
87
114
  }
88
115
  }
89
116
 
90
- RCT_EXPORT_METHOD(leaveAction:(nonnull NSString *)key platform: (NSString *) platform)
117
+ RCT_EXPORT_METHOD(leaveAction:(nonnull NSString *)key leave: (BOOL) leave platform: (NSString *) platform)
91
118
  {
92
119
  if ([self shouldWorkOnIosWithPlatform: platform])
93
120
  {
94
121
  DTXAction *action = [self getAction:key];
95
122
  if (action == nil) return;
96
123
  [actionDict removeObjectForKey:key];
124
+
125
+ if(leave)
126
+ {
127
+ [action leaveAction];
128
+ }
97
129
  }
98
130
  }
99
131
 
@@ -6,18 +6,15 @@
6
6
  <array>
7
7
  <dict>
8
8
  <key>LibraryIdentifier</key>
9
- <string>tvos-arm64_x86_64-simulator</string>
9
+ <string>tvos-arm64</string>
10
10
  <key>LibraryPath</key>
11
11
  <string>Dynatrace.framework</string>
12
12
  <key>SupportedArchitectures</key>
13
13
  <array>
14
14
  <string>arm64</string>
15
- <string>x86_64</string>
16
15
  </array>
17
16
  <key>SupportedPlatform</key>
18
17
  <string>tvos</string>
19
- <key>SupportedPlatformVariant</key>
20
- <string>simulator</string>
21
18
  </dict>
22
19
  <dict>
23
20
  <key>LibraryIdentifier</key>
@@ -36,19 +33,22 @@
36
33
  </dict>
37
34
  <dict>
38
35
  <key>LibraryIdentifier</key>
39
- <string>ios-arm64</string>
36
+ <string>tvos-arm64_x86_64-simulator</string>
40
37
  <key>LibraryPath</key>
41
38
  <string>Dynatrace.framework</string>
42
39
  <key>SupportedArchitectures</key>
43
40
  <array>
44
41
  <string>arm64</string>
42
+ <string>x86_64</string>
45
43
  </array>
46
44
  <key>SupportedPlatform</key>
47
- <string>ios</string>
45
+ <string>tvos</string>
46
+ <key>SupportedPlatformVariant</key>
47
+ <string>simulator</string>
48
48
  </dict>
49
49
  <dict>
50
50
  <key>LibraryIdentifier</key>
51
- <string>tvos-arm64</string>
51
+ <string>ios-arm64</string>
52
52
  <key>LibraryPath</key>
53
53
  <string>Dynatrace.framework</string>
54
54
  <key>SupportedArchitectures</key>
@@ -56,7 +56,7 @@
56
56
  <string>arm64</string>
57
57
  </array>
58
58
  <key>SupportedPlatform</key>
59
- <string>tvos</string>
59
+ <string>ios</string>
60
60
  </dict>
61
61
  </array>
62
62
  <key>CFBundlePackageType</key>
@@ -1,5 +1,5 @@
1
1
  // Dynatrace.h
2
- // Version: 8.263.2.1005
2
+ // Version: 8.265.1.1003
3
3
  //
4
4
  // These materials contain confidential information and
5
5
  // trade secrets of Dynatrace Corporation. You shall
@@ -0,0 +1,31 @@
1
+ // DynatraceSwiftUI.h
2
+ // Version: ${version}
3
+ //
4
+ // These materials contain confidential information and
5
+ // trade secrets of Dynatrace Corporation. You shall
6
+ // maintain the materials as confidential and shall not
7
+ // disclose its contents to any third party except as may
8
+ // be required by law or regulation. Use, disclosure,
9
+ // or reproduction is prohibited without the prior express
10
+ // written permission of Dynatrace LLC.
11
+ //
12
+ // All Dynatrace products listed within the materials are
13
+ // trademarks of Dynatrace Corporation. All other company
14
+ // or product names are trademarks of their respective owners.
15
+ //
16
+ // Copyright 2011-2023 Dynatrace LLC
17
+
18
+ #import <Foundation/Foundation.h>
19
+
20
+ @interface DynatraceSwiftUI: NSObject
21
+ /*!
22
+ @brief Gets invoked automatically by the SwiftUI instrumentor before a SwiftUI view has appeared.
23
+ */
24
+ + (void)swiftUIViewWillAppear:(NSDictionary* _Nonnull)reportValues viewName:(NSString* _Nonnull)viewName view:(id _Nonnull)view with:(id _Nonnull)lifecycleHolder createAction:(BOOL)createAction;
25
+
26
+ /*!
27
+ @brief Gets invoked automatically by the SwiftUI instrumentor when a SwiftUI view has disappeared.
28
+ */
29
+ + (void)swiftUIViewDidDisappear:(id _Nonnull)view with:(id _Nonnull)lifecycleHolder;
30
+
31
+ @end
@@ -15,4 +15,5 @@ FOUNDATION_EXPORT double Dynatrace_FrameworkVersionNumber;
15
15
  FOUNDATION_EXPORT const unsigned char Dynatrace_FrameworkVersionString[];
16
16
 
17
17
  // In this header, you should import all the public headers of your framework
18
- #import <Dynatrace/Dynatrace.h>
18
+ #import "Dynatrace.h"
19
+ #import "DynatraceSwiftUI.h"
@@ -11,6 +11,192 @@
11
11
  "declKind": "Import",
12
12
  "moduleName": "Dynatrace"
13
13
  },
14
+ {
15
+ "kind": "TypeDecl",
16
+ "name": "instrument",
17
+ "printedName": "instrument",
18
+ "children": [
19
+ {
20
+ "kind": "Constructor",
21
+ "name": "init",
22
+ "printedName": "init(with:viewName:createAction:_:)",
23
+ "children": [
24
+ {
25
+ "kind": "TypeNominal",
26
+ "name": "instrument",
27
+ "printedName": "Dynatrace.instrument<τ_0_0>",
28
+ "children": [
29
+ {
30
+ "kind": "TypeNominal",
31
+ "name": "GenericTypeParam",
32
+ "printedName": "τ_0_0"
33
+ }
34
+ ],
35
+ "usr": "s:9Dynatrace10instrumentV"
36
+ },
37
+ {
38
+ "kind": "TypeNominal",
39
+ "name": "Dictionary",
40
+ "printedName": "[Swift.String : Swift.String]",
41
+ "children": [
42
+ {
43
+ "kind": "TypeNominal",
44
+ "name": "String",
45
+ "printedName": "Swift.String",
46
+ "usr": "s:SS"
47
+ },
48
+ {
49
+ "kind": "TypeNominal",
50
+ "name": "String",
51
+ "printedName": "Swift.String",
52
+ "usr": "s:SS"
53
+ }
54
+ ],
55
+ "usr": "s:SD"
56
+ },
57
+ {
58
+ "kind": "TypeNominal",
59
+ "name": "String",
60
+ "printedName": "Swift.String",
61
+ "usr": "s:SS"
62
+ },
63
+ {
64
+ "kind": "TypeNominal",
65
+ "name": "Bool",
66
+ "printedName": "Swift.Bool",
67
+ "hasDefaultArg": true,
68
+ "usr": "s:Sb"
69
+ },
70
+ {
71
+ "kind": "TypeFunc",
72
+ "name": "Function",
73
+ "printedName": "() -> τ_0_0",
74
+ "children": [
75
+ {
76
+ "kind": "TypeNominal",
77
+ "name": "GenericTypeParam",
78
+ "printedName": "τ_0_0"
79
+ },
80
+ {
81
+ "kind": "TypeNominal",
82
+ "name": "Void",
83
+ "printedName": "()"
84
+ }
85
+ ]
86
+ }
87
+ ],
88
+ "declKind": "Constructor",
89
+ "usr": "s:9Dynatrace10instrumentV4with8viewName12createAction_ACyxGSDyS2SG_SSSbxyctcfc",
90
+ "mangledName": "$s9Dynatrace10instrumentV4with8viewName12createAction_ACyxGSDyS2SG_SSSbxyctcfc",
91
+ "moduleName": "Dynatrace",
92
+ "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.View>",
93
+ "sugared_genericSig": "<Content where Content : SwiftUI.View>",
94
+ "declAttributes": [
95
+ "AccessControl"
96
+ ],
97
+ "init_kind": "Designated"
98
+ },
99
+ {
100
+ "kind": "Var",
101
+ "name": "body",
102
+ "printedName": "body",
103
+ "children": [
104
+ {
105
+ "kind": "TypeNominal",
106
+ "name": "OpaqueTypeArchetype",
107
+ "printedName": "some SwiftUI.View",
108
+ "children": [
109
+ {
110
+ "kind": "TypeNominal",
111
+ "name": "View",
112
+ "printedName": "SwiftUI.View",
113
+ "usr": "s:7SwiftUI4ViewP"
114
+ }
115
+ ]
116
+ }
117
+ ],
118
+ "declKind": "Var",
119
+ "usr": "s:9Dynatrace10instrumentV4bodyQrvp",
120
+ "mangledName": "$s9Dynatrace10instrumentV4bodyQrvp",
121
+ "moduleName": "Dynatrace",
122
+ "declAttributes": [
123
+ "Custom",
124
+ "AccessControl"
125
+ ],
126
+ "accessors": [
127
+ {
128
+ "kind": "Accessor",
129
+ "name": "Get",
130
+ "printedName": "Get()",
131
+ "children": [
132
+ {
133
+ "kind": "TypeNominal",
134
+ "name": "OpaqueTypeArchetype",
135
+ "printedName": "some SwiftUI.View",
136
+ "children": [
137
+ {
138
+ "kind": "TypeNominal",
139
+ "name": "View",
140
+ "printedName": "SwiftUI.View",
141
+ "usr": "s:7SwiftUI4ViewP"
142
+ }
143
+ ]
144
+ }
145
+ ],
146
+ "declKind": "Accessor",
147
+ "usr": "s:9Dynatrace10instrumentV4bodyQrvg",
148
+ "mangledName": "$s9Dynatrace10instrumentV4bodyQrvg",
149
+ "moduleName": "Dynatrace",
150
+ "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.View>",
151
+ "sugared_genericSig": "<Content where Content : SwiftUI.View>",
152
+ "accessorKind": "get"
153
+ }
154
+ ]
155
+ }
156
+ ],
157
+ "declKind": "Struct",
158
+ "usr": "s:9Dynatrace10instrumentV",
159
+ "mangledName": "$s9Dynatrace10instrumentV",
160
+ "moduleName": "Dynatrace",
161
+ "genericSig": "<τ_0_0 where τ_0_0 : SwiftUI.View>",
162
+ "sugared_genericSig": "<Content where Content : SwiftUI.View>",
163
+ "intro_iOS": "13.0",
164
+ "declAttributes": [
165
+ "AccessControl",
166
+ "Available"
167
+ ],
168
+ "conformances": [
169
+ {
170
+ "kind": "Conformance",
171
+ "name": "View",
172
+ "printedName": "View",
173
+ "children": [
174
+ {
175
+ "kind": "TypeWitness",
176
+ "name": "Body",
177
+ "printedName": "Body",
178
+ "children": [
179
+ {
180
+ "kind": "TypeNominal",
181
+ "name": "OpaqueTypeArchetype",
182
+ "printedName": "some SwiftUI.View",
183
+ "children": [
184
+ {
185
+ "kind": "TypeNominal",
186
+ "name": "View",
187
+ "printedName": "SwiftUI.View",
188
+ "usr": "s:7SwiftUI4ViewP"
189
+ }
190
+ ]
191
+ }
192
+ ]
193
+ }
194
+ ],
195
+ "usr": "s:7SwiftUI4ViewP",
196
+ "mangledName": "$s7SwiftUI4ViewP"
197
+ }
198
+ ]
199
+ },
14
200
  {
15
201
  "kind": "TypeDecl",
16
202
  "name": "View",
@@ -67,5 +253,13 @@
67
253
  ],
68
254
  "json_format_version": 8
69
255
  },
70
- "ConstValues": []
256
+ "ConstValues": [
257
+ {
258
+ "filePath": "\/opt\/jenkins\/workspace\/eagent_ios-agent_release_8.265.x\/adk\/DynatraceUEM\/Dynatrace\/SwiftUIExtensions.swift",
259
+ "kind": "BooleanLiteral",
260
+ "offset": 683,
261
+ "length": 4,
262
+ "value": "true"
263
+ }
264
+ ]
71
265
  }
@@ -12,3 +12,11 @@ extension SwiftUI.View {
12
12
  public func skippingInstrumentation() -> some SwiftUI.View
13
13
 
14
14
  }
15
+ @available(iOS 13.0, *)
16
+ public struct instrument<Content> : SwiftUI.View where Content : SwiftUI.View {
17
+ public init(with values: [Swift.String : Swift.String], viewName: Swift.String, createAction: Swift.Bool = true, @SwiftUI.ViewBuilder _ content: @escaping () -> Content)
18
+ @_Concurrency.MainActor(unsafe) public var body: some SwiftUI.View {
19
+ get
20
+ }
21
+ public typealias Body = @_opaqueReturnTypeOf("$s9Dynatrace10instrumentV4bodyQrvp", 0) __<Content>
22
+ }
@@ -12,3 +12,11 @@ extension SwiftUI.View {
12
12
  public func skippingInstrumentation() -> some SwiftUI.View
13
13
 
14
14
  }
15
+ @available(iOS 13.0, *)
16
+ public struct instrument<Content> : SwiftUI.View where Content : SwiftUI.View {
17
+ public init(with values: [Swift.String : Swift.String], viewName: Swift.String, createAction: Swift.Bool = true, @SwiftUI.ViewBuilder _ content: @escaping () -> Content)
18
+ @_Concurrency.MainActor(unsafe) public var body: some SwiftUI.View {
19
+ get
20
+ }
21
+ public typealias Body = @_opaqueReturnTypeOf("$s9Dynatrace10instrumentV4bodyQrvp", 0) __<Content>
22
+ }
@@ -1,5 +1,5 @@
1
1
  // Dynatrace.h
2
- // Version: 8.263.2.1005
2
+ // Version: 8.265.1.1003
3
3
  //
4
4
  // These materials contain confidential information and
5
5
  // trade secrets of Dynatrace Corporation. You shall
@@ -0,0 +1,31 @@
1
+ // DynatraceSwiftUI.h
2
+ // Version: ${version}
3
+ //
4
+ // These materials contain confidential information and
5
+ // trade secrets of Dynatrace Corporation. You shall
6
+ // maintain the materials as confidential and shall not
7
+ // disclose its contents to any third party except as may
8
+ // be required by law or regulation. Use, disclosure,
9
+ // or reproduction is prohibited without the prior express
10
+ // written permission of Dynatrace LLC.
11
+ //
12
+ // All Dynatrace products listed within the materials are
13
+ // trademarks of Dynatrace Corporation. All other company
14
+ // or product names are trademarks of their respective owners.
15
+ //
16
+ // Copyright 2011-2023 Dynatrace LLC
17
+
18
+ #import <Foundation/Foundation.h>
19
+
20
+ @interface DynatraceSwiftUI: NSObject
21
+ /*!
22
+ @brief Gets invoked automatically by the SwiftUI instrumentor before a SwiftUI view has appeared.
23
+ */
24
+ + (void)swiftUIViewWillAppear:(NSDictionary* _Nonnull)reportValues viewName:(NSString* _Nonnull)viewName view:(id _Nonnull)view with:(id _Nonnull)lifecycleHolder createAction:(BOOL)createAction;
25
+
26
+ /*!
27
+ @brief Gets invoked automatically by the SwiftUI instrumentor when a SwiftUI view has disappeared.
28
+ */
29
+ + (void)swiftUIViewDidDisappear:(id _Nonnull)view with:(id _Nonnull)lifecycleHolder;
30
+
31
+ @end
@@ -15,4 +15,5 @@ FOUNDATION_EXPORT double Dynatrace_FrameworkVersionNumber;
15
15
  FOUNDATION_EXPORT const unsigned char Dynatrace_FrameworkVersionString[];
16
16
 
17
17
  // In this header, you should import all the public headers of your framework
18
- #import <Dynatrace/Dynatrace.h>
18
+ #import "Dynatrace.h"
19
+ #import "DynatraceSwiftUI.h"