peachsim 0.1.1881 → 0.1.1886

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 (153) hide show
  1. package/cli/commands/control.ts +11 -10
  2. package/cli/commands/reset.ts +1 -1
  3. package/cli/outbound-endpoints.ts +1 -1
  4. package/detox/index.ts +62 -1
  5. package/dist-lib/agent-daemon-client.cjs +1 -1
  6. package/dist-lib/agent-events.cjs +1 -1
  7. package/dist-lib/attached-projects.cjs +1 -1
  8. package/dist-lib/auth/shared-session.cjs +1 -1
  9. package/dist-lib/backend-origin.cjs +1 -1
  10. package/dist-lib/beta.cjs +1 -1
  11. package/dist-lib/beta.mjs +1 -1
  12. package/dist-lib/bridge-constants.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.mjs +1 -1
  15. package/dist-lib/bridge-contract.cjs +1 -1
  16. package/dist-lib/bridge-contract.mjs +1 -1
  17. package/dist-lib/bundle-channel.cjs +8914 -4264
  18. package/dist-lib/capture-contract.cjs +1 -1
  19. package/dist-lib/capture-contract.mjs +1 -1
  20. package/dist-lib/cloud-contract.cjs +1 -1
  21. package/dist-lib/cloud-contract.mjs +1 -1
  22. package/dist-lib/cloud-test-args.cjs +1 -1
  23. package/dist-lib/cloud-test-args.mjs +1 -1
  24. package/dist-lib/cloud.cjs +1 -1
  25. package/dist-lib/cloud.mjs +1 -1
  26. package/dist-lib/config.cjs +1 -1
  27. package/dist-lib/config.mjs +1 -1
  28. package/dist-lib/detox/index.cjs +35 -2
  29. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  30. package/dist-lib/expo-swift-bundle.cjs +8494 -3955
  31. package/dist-lib/expo-swift-metadata.cjs +5 -1
  32. package/dist-lib/expo-swift-metadata.mjs +5 -1
  33. package/dist-lib/home-paths.cjs +1 -1
  34. package/dist-lib/host/bridge-host.cjs +9679 -5057
  35. package/dist-lib/host/fetch-proxy-handler.cjs +93 -13
  36. package/dist-lib/host/fetch-proxy-overrides.cjs +10 -2
  37. package/dist-lib/host/fetch-proxy-overrides.mjs +8 -2
  38. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  39. package/dist-lib/host/websocket-proxy.cjs +1 -1
  40. package/dist-lib/index.cjs +525 -120
  41. package/dist-lib/jump-to-source-babel.cjs +1 -1
  42. package/dist-lib/jump-to-source-native.cjs +1 -1
  43. package/dist-lib/kotlin-host.cjs +1 -1
  44. package/dist-lib/menu.cjs +1 -1
  45. package/dist-lib/menu.mjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  47. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  48. package/dist-lib/metro-production-bundle.cjs +1 -1
  49. package/dist-lib/metro-production-bundle.mjs +1 -1
  50. package/dist-lib/metro.cjs +523 -118
  51. package/dist-lib/native-app-identity-project.cjs +395 -72
  52. package/dist-lib/native-app-identity-project.mjs +720 -375
  53. package/dist-lib/native-app-identity.cjs +37 -1
  54. package/dist-lib/native-app-identity.mjs +36 -1
  55. package/dist-lib/native-firebase-metadata.cjs +1 -1
  56. package/dist-lib/native-firebase-metadata.mjs +1 -1
  57. package/dist-lib/pdfium-raster.cjs +1 -1
  58. package/dist-lib/pdfium-raster.mjs +1 -1
  59. package/dist-lib/plist.cjs +1 -1
  60. package/dist-lib/plist.mjs +1 -1
  61. package/dist-lib/profiles.cjs +1 -1
  62. package/dist-lib/public-brand.cjs +1 -1
  63. package/dist-lib/public-origins-lib-esm.json +58 -28
  64. package/dist-lib/public-origins-lib.json +233 -92
  65. package/dist-lib/react-native-host-modules.cjs +1 -1
  66. package/dist-lib/react-native-host-modules.mjs +1 -1
  67. package/dist-lib/reap-browser.cjs +1 -1
  68. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  69. package/dist-lib/sdk.cjs +1 -1
  70. package/dist-lib/sdk.mjs +1 -1
  71. package/dist-lib/skills.cjs +30711 -25956
  72. package/dist-lib/swift-compile.cjs +6782 -2533
  73. package/dist-lib/swift-compile.mjs +6112 -1864
  74. package/dist-lib/swift-package.cjs +20 -3
  75. package/dist-lib/swift-package.mjs +20 -3
  76. package/dist-lib/swift-submit.cjs +2 -2
  77. package/dist-lib/swift-submit.mjs +2 -2
  78. package/dist-lib/swift-toolchain.cjs +19 -1
  79. package/dist-lib/swift.cjs +1 -1
  80. package/dist-lib/vite-swift.cjs +8640 -4109
  81. package/dist-lib/vite.cjs +93 -13
  82. package/dist-lib/worklet-executable.cjs +1 -1
  83. package/dist-lib/worklet-executable.mjs +1 -1
  84. package/dist-types/packages/peach-engine/src/engine/canvaskit-api.d.ts +1 -1
  85. package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +2 -0
  86. package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
  87. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +1 -0
  88. package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +11 -1
  89. package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +2 -1
  90. package/dist-types/packages/peach-globals/src/nodeContract.d.ts +1 -0
  91. package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +10 -1
  92. package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
  93. package/dist-types/packages/peach-kit/src/ui/popover-placement.d.ts +1 -1
  94. package/dist-types/packages/sootsim-swift/src/securityHostContract.d.ts +10 -0
  95. package/package.json +1 -1
  96. package/runtime-companion.json +1 -1
  97. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFHost.h +555 -0
  98. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +1 -0
  99. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +6 -0
  100. package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtocol.h +0 -1
  101. package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +6 -0
  102. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarButtonItemBadge.h +1 -1
  103. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarMinimization.h +1 -1
  104. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h +1 -1
  105. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UISearchTab.h +1 -1
  106. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITab.h +1 -1
  107. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabAccessory.h +2 -2
  108. package/sdk/ios/usr/include/os/activity.h +534 -0
  109. package/sdk/ios/usr/include/os.modulemap +15 -0
  110. package/sdk/ios/wasm/include/fcntl.h +16 -0
  111. package/sdk/ios/wasm/include/string.h +5 -0
  112. package/sdk/native-hashes.json +1 -1
  113. package/src/dns-over-https.ts +61 -9
  114. package/src/expo-swift-host.ts +11 -3
  115. package/src/host/fetch-proxy-handler.ts +51 -2
  116. package/src/host/fetch-proxy-overrides.ts +4 -0
  117. package/src/host/hostname-resolver.ts +9 -5
  118. package/src/native-app-identity-project.ts +13 -2
  119. package/src/native-app-identity.ts +47 -0
  120. package/src/nitro-adapter.lock.json +260 -260
  121. package/src/nitro-superset.lock.json +4 -4
  122. package/src/storageSnapshotContract.ts +20 -1
  123. package/src/swift-compile.ts +399 -72
  124. package/src/swift-compiler-digest.ts +15 -0
  125. package/src/swift-coverage/xcode-packages.ts +3 -2
  126. package/src/swift-distribution.lock.json +12 -12
  127. package/src/swift-guest-archive.ts +153 -0
  128. package/src/swift-guest-compile.ts +449 -0
  129. package/src/swift-guest-image-ledger.ts +656 -0
  130. package/src/swift-guest-link-plan.ts +52 -0
  131. package/src/swift-guest-link.ts +1414 -0
  132. package/src/swift-guest-linked-spans.ts +338 -0
  133. package/src/swift-guest-manifest.ts +141 -0
  134. package/src/swift-guest-projection-storage.ts +310 -0
  135. package/src/swift-guest-projection.ts +252 -0
  136. package/src/swift-guest-runtime-plan.ts +834 -0
  137. package/src/swift-guest-source-inputs.ts +427 -0
  138. package/src/swift-guest-source-plan.ts +279 -0
  139. package/src/swift-host.ts +125 -17
  140. package/src/swift-link-roots.ts +27 -50
  141. package/src/swift-package-manifest.ts +34 -18
  142. package/src/swift-package.ts +32 -2
  143. package/src/swift-packages.ts +138 -17
  144. package/src/swift-runtime-products.ts +73 -0
  145. package/src/swift-shared-sdk.ts +1 -1
  146. package/src/swift-submit.ts +13 -3
  147. package/src/swift-toolchain.ts +18 -0
  148. package/src/swift-wasm-prune.ts +313 -14
  149. package/src/swiftContract.ts +83 -0
  150. package/src/swiftRuntimeProductContract.ts +85 -45
  151. package/src/turbo-runtime.lock.json +23 -23
  152. package/src/wasm-optimize.ts +16 -4
  153. package/src/xcode-project.ts +142 -14
@@ -0,0 +1,555 @@
1
+ /*
2
+ File: CFNetwork/CFHost.h
3
+
4
+ Contains: CoreFoundation CFHost header
5
+
6
+ Copyright: Copyright (c) 2001-2013 Apple Inc. All rights reserved.
7
+
8
+ Bugs?: For bug reports, consult the following page on
9
+ the World Wide Web:
10
+
11
+ http://developer.apple.com/bugreporter/
12
+
13
+ */
14
+ #ifndef __CFHOST__
15
+ #define __CFHOST__
16
+
17
+ #ifndef __CFNETWORKDEFS__
18
+ #include <CFNetwork/CFNetworkDefs.h>
19
+ #endif
20
+
21
+ #ifndef __COREFOUNDATION__
22
+ #include <CoreFoundation/CoreFoundation.h>
23
+ #endif
24
+
25
+ #ifndef __CFSTREAM__
26
+ #include <CoreFoundation/CFStream.h>
27
+ #endif
28
+
29
+
30
+ /**
31
+ * DEPRECATION NOTICE
32
+ *
33
+ * If you’re using `CFHost` to resolve DNS names so that you can connect to a
34
+ * service, switch to a connect-by-name API, for example, `nw_connection`.
35
+ *
36
+ * If you have other DNS resolution needs, switch to <dns_sd.h>.
37
+ */
38
+
39
+ #if PRAGMA_ONCE
40
+ #pragma once
41
+ #endif
42
+
43
+ CF_EXTERN_C_BEGIN
44
+ CF_ASSUME_NONNULL_BEGIN
45
+
46
+ #pragma pack(push, 2)
47
+
48
+
49
+ /*
50
+ * CFHostRef
51
+ *
52
+ * Discussion:
53
+ * This is the type of a reference to a host name or address lookup.
54
+ */
55
+ typedef struct __CFHost* CFHostRef;
56
+
57
+ /*
58
+ * kCFStreamErrorDomainNetDB
59
+ *
60
+ * Discussion:
61
+ * Errors listed in netdb.h
62
+ *
63
+ */
64
+ CFN_EXPORT const SInt32 kCFStreamErrorDomainNetDB CF_AVAILABLE(10_3, 2_0);
65
+
66
+
67
+ /*
68
+ * kCFStreamErrorDomainSystemConfiguration
69
+ *
70
+ * Discussion:
71
+ * Errors listed in SystemConfiguration/SystemConfiguration.h
72
+ *
73
+ */
74
+ CFN_EXPORT const SInt32 kCFStreamErrorDomainSystemConfiguration CF_AVAILABLE(10_3, 2_0);
75
+
76
+
77
+
78
+ /*
79
+ * CFHostInfoType
80
+ *
81
+ * Discussion:
82
+ * Host information types to be resolved.
83
+ */
84
+ typedef CF_ENUM(int, CFHostInfoType) {
85
+
86
+ /*
87
+ * Results value is a CFArray of CFData's (each being a struct
88
+ * sockaddr)
89
+ */
90
+ kCFHostAddresses = 0,
91
+
92
+ /*
93
+ * Results value is a CFArray of CFString's
94
+ */
95
+ kCFHostNames = 1,
96
+
97
+ /*
98
+ * Results value is a CFData wrapping SCNetworkConnectionFlags
99
+ * (defined in SystemConfiguration/SCNetwork.h)
100
+ */
101
+ kCFHostReachability = 2
102
+ };
103
+
104
+
105
+ /*
106
+ * CFHostClientContext
107
+ *
108
+ * Discussion:
109
+ * Structure containing the user-defined data and callbacks for
110
+ * CFHost objects.
111
+ */
112
+ struct CFHostClientContext {
113
+
114
+ /*
115
+ * The version number of the structure type being passed in as a
116
+ * parameter to the CFHost client function. Valid version number is
117
+ * currently 0.
118
+ */
119
+ CFIndex version;
120
+
121
+ /*
122
+ * An arbitrary pointer to client-defined data, which can be
123
+ * associated with the host and is passed to the callbacks.
124
+ */
125
+ void * __nullable info;
126
+
127
+ /*
128
+ * The callback used to add a retain for the host on the info pointer
129
+ * for the life of the host, and may be used for temporary references
130
+ * the host needs to take. This callback returns the actual info
131
+ * pointer to store in the host, almost always just the pointer
132
+ * passed as the parameter.
133
+ */
134
+ CFAllocatorRetainCallBack __nullable retain;
135
+
136
+ /*
137
+ * The callback used to remove a retain previously added for the host
138
+ * on the info pointer.
139
+ */
140
+ CFAllocatorReleaseCallBack __nullable release;
141
+
142
+ /*
143
+ * The callback used to create a descriptive string representation of
144
+ * the info pointer (or the data pointed to by the info pointer) for
145
+ * debugging purposes. This is used by the CFCopyDescription()
146
+ * function.
147
+ */
148
+ CFAllocatorCopyDescriptionCallBack __nullable copyDescription;
149
+ };
150
+ typedef struct CFHostClientContext CFHostClientContext;
151
+
152
+ /*
153
+ * CFHostClientCallBack
154
+ *
155
+ * Discussion:
156
+ * Callback function which is called upon error or completion of an
157
+ * asynchronous resolve.
158
+ *
159
+ * Parameters:
160
+ *
161
+ * theHost:
162
+ * Host whose resolution is complete.
163
+ *
164
+ * typeInfo:
165
+ * Enum representing which info resolution is complete.
166
+ *
167
+ * error:
168
+ * Reference to an error structure if the resolution failed.
169
+ *
170
+ * info:
171
+ * Client's info reference which was passed into the client
172
+ * context.
173
+ */
174
+ typedef CALLBACK_API_C( void , CFHostClientCallBack )(CFHostRef theHost, CFHostInfoType typeInfo, const CFStreamError * __nullable error, void * __nullable info);
175
+
176
+
177
+ /*
178
+ * CFHostGetTypeID()
179
+ *
180
+ * Discussion:
181
+ * Returns the type identifier of all CFHost instances.
182
+ *
183
+ * Mac OS X threading:
184
+ * Thread safe
185
+ *
186
+ */
187
+ CFN_EXPORT CFTypeID
188
+ CFHostGetTypeID(void) API_DEPRECATED("Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>", macos(10.3, API_TO_BE_DEPRECATED), ios(2.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED));
189
+
190
+
191
+ /*
192
+ * CFHostCreateWithName()
193
+ *
194
+ * Discussion:
195
+ * Creates a new host object with the given name.
196
+ *
197
+ * Mac OS X threading:
198
+ * Thread safe
199
+ *
200
+ * Parameters:
201
+ *
202
+ * allocator:
203
+ * The CFAllocator which should be used to allocate memory for the
204
+ * host. If this reference is not a valid CFAllocator, the
205
+ * behavior is undefined.
206
+ *
207
+ * hostname:
208
+ * A CFStringRef representing the name of the host. Must be
209
+ * non-NULL. If this reference is not a valid CFStringRef, the
210
+ * behavior is undefined.
211
+ *
212
+ * Result:
213
+ * A valid CFHostRef which may now be resolved, or NULL if
214
+ * unsuccessful.
215
+ *
216
+ */
217
+ CFN_EXPORT CFHostRef
218
+ CFHostCreateWithName(CFAllocatorRef __nullable allocator, CFStringRef hostname) API_DEPRECATED("Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>", macos(10.3, API_TO_BE_DEPRECATED), ios(2.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED));
219
+
220
+
221
+ /*
222
+ * CFHostCreateWithAddress()
223
+ *
224
+ * Discussion:
225
+ * Creates a new host object with the given address.
226
+ *
227
+ * Mac OS X threading:
228
+ * Thread safe
229
+ *
230
+ * Parameters:
231
+ *
232
+ * allocator:
233
+ * The CFAllocator which should be used to allocate memory for the
234
+ * host. If this reference is not a valid CFAllocator, the
235
+ * behavior is undefined.
236
+ *
237
+ * addr:
238
+ * A CFDataRef containing a struct sockaddr which is the address
239
+ * of the host. Must be non-NULL. If this reference is not a
240
+ * valid CFDataRef, the behavior is undefined.
241
+ *
242
+ * Result:
243
+ * A valid CFHostRef which may now be resolved, or NULL if
244
+ * unsuccessful.
245
+ *
246
+ */
247
+ CFN_EXPORT CFHostRef
248
+ CFHostCreateWithAddress(CFAllocatorRef __nullable allocator, CFDataRef addr) API_DEPRECATED("Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>", macos(10.3, API_TO_BE_DEPRECATED), ios(2.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED));
249
+
250
+
251
+ /*
252
+ * CFHostCreateCopy()
253
+ *
254
+ * Discussion:
255
+ * Creates a new host object as a copy of host argument.
256
+ *
257
+ * Mac OS X threading:
258
+ * Thread safe
259
+ *
260
+ * Parameters:
261
+ *
262
+ * alloc:
263
+ * The CFAllocator which should be used to allocate memory for the
264
+ * new host. If this reference is not a valid CFAllocator, the
265
+ * behavior is undefined.
266
+ *
267
+ * host:
268
+ * A CFHostRef representing the original host. Must be non-NULL.
269
+ * If this reference is not a valid CFHostRef, the behavior is
270
+ * undefined.
271
+ *
272
+ * Result:
273
+ * A valid CFHostRef which contains a copy of all previously
274
+ * resolved data from the original. NULL is returned in the case of
275
+ * failure.
276
+ *
277
+ */
278
+ CFN_EXPORT CFHostRef
279
+ CFHostCreateCopy(CFAllocatorRef __nullable alloc, CFHostRef host) API_DEPRECATED("Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>", macos(10.3, API_TO_BE_DEPRECATED), ios(2.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED));
280
+
281
+
282
+ /*
283
+ * CFHostStartInfoResolution()
284
+ *
285
+ * Discussion:
286
+ * Performs a lookup for the given host. It will search for the
287
+ * requested information if there is no other active request.
288
+ * Previously cached information of the given type will be released.
289
+ *
290
+ * Mac OS X threading:
291
+ * Thread safe
292
+ *
293
+ * Parameters:
294
+ *
295
+ * theHost:
296
+ * The CFHostRef which should be resolved. Must be non-NULL. If
297
+ * this reference is not a valid CFHostRef, the behavior is
298
+ * undefined.
299
+ *
300
+ * info:
301
+ * The enum representing the type of information to be retrieved.
302
+ * If the value is not a valid type, the behavior is undefined.
303
+ *
304
+ * error:
305
+ * A reference to a CFStreamError structure which will be filled
306
+ * with any error information should an error occur. May be set
307
+ * to NULL if error information is not wanted.
308
+ *
309
+ * Result:
310
+ * Returns TRUE on success and FALSE on failure. In asynchronous
311
+ * mode, this function will return immediately. In synchronous
312
+ * mode, it will block until the resolve has completed or until the
313
+ * resolve is cancelled.
314
+ *
315
+ */
316
+ CFN_EXPORT Boolean
317
+ CFHostStartInfoResolution(CFHostRef theHost, CFHostInfoType info, CFStreamError * __nullable error) API_DEPRECATED("Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>", macos(10.3, API_TO_BE_DEPRECATED), ios(2.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED));
318
+
319
+
320
+ /*
321
+ * CFHostGetAddressing()
322
+ *
323
+ * Discussion:
324
+ * Tries to retrieve the known addresses from the given host.
325
+ * Returns a CFArrayRef of addresses if known and there were some.
326
+ * NULL is returned otherwise. Each address is a CFDataRef wrapping
327
+ * a struct sockaddr.
328
+ *
329
+ * Mac OS X threading:
330
+ * Thread safe
331
+ * The function gets the data in a thread-safe manner, but the
332
+ * resulting data is not safe. Since it is returned as a matter of
333
+ * a get opposed to a copy, the data is not safe if the host is
334
+ * being altered from another thread.
335
+ *
336
+ * Parameters:
337
+ *
338
+ * theHost:
339
+ * The CFHostRef which contains the relevant information. Must be
340
+ * non-NULL. If this reference is not a valid CFHostRef, the
341
+ * behavior is undefined.
342
+ *
343
+ * hasBeenResolved:
344
+ * A reference to a Boolean which returns FALSE if the information
345
+ * was not available (e.g. CFHostStartInfoResolution has not been
346
+ * called), otherwise TRUE will be returned.
347
+ *
348
+ */
349
+ CFN_EXPORT __nullable CFArrayRef
350
+ CFHostGetAddressing(CFHostRef theHost, Boolean * __nullable hasBeenResolved) API_DEPRECATED("Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>", macos(10.3, API_TO_BE_DEPRECATED), ios(2.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED));
351
+
352
+
353
+ /*
354
+ * CFHostGetNames()
355
+ *
356
+ * Discussion:
357
+ * Tries to retrieve the names/aliases from the given host. Returns
358
+ * a CFArrayRef of names for the given host. NULL is returned
359
+ * otherwise.
360
+ *
361
+ * Mac OS X threading:
362
+ * Thread safe
363
+ * The function gets the data in a thread-safe manner, but the
364
+ * resulting data is not safe. Since it is returned as a matter of
365
+ * a get opposed to a copy, the data is not safe if the host is
366
+ * being altered from another thread.
367
+ *
368
+ * Parameters:
369
+ *
370
+ * theHost:
371
+ * The CFHostRef which contains the relevant information. Must be
372
+ * non-NULL. If this reference is not a valid CFHostRef, the
373
+ * behavior is undefined.
374
+ *
375
+ * hasBeenResolved:
376
+ * A reference to a Boolean which returns FALSE if the information
377
+ * was not available (e.g. CFHostStartInfoResolution has not been
378
+ * called), otherwise TRUE will be returned. Can be NULL.
379
+ *
380
+ */
381
+ CFN_EXPORT __nullable CFArrayRef
382
+ CFHostGetNames(CFHostRef theHost, Boolean * __nullable hasBeenResolved) API_DEPRECATED("Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>", macos(10.3, API_TO_BE_DEPRECATED), ios(2.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED));
383
+
384
+
385
+ /*
386
+ * CFHostGetReachability()
387
+ *
388
+ * Discussion:
389
+ * Tries to retrieve the reachability of the given host. Returns a
390
+ * CFDataRef which wraps the reachability flags. NULL will be
391
+ * returned if the value has not been resolved. The possible values
392
+ * of these flags is declared in SystemConfiguration/SCNetwork.h.
393
+ * Returns FALSE if the information was not available, otherwise
394
+ * TRUE will be returned with the results containing the requested
395
+ * information.
396
+ *
397
+ * Mac OS X threading:
398
+ * Thread safe
399
+ * The function gets the data in a thread-safe manner, but the
400
+ * resulting data is not safe. Since it is returned as a matter of
401
+ * a get opposed to a copy, the data is not safe if the host is
402
+ * being altered from another thread.
403
+ *
404
+ * Parameters:
405
+ *
406
+ * theHost:
407
+ * The CFHostRef which contains the relevant information. Must be
408
+ * non-NULL. If this reference is not a valid CFHostRef, the
409
+ * behavior is undefined.
410
+ *
411
+ * hasBeenResolved:
412
+ * A reference to a Boolean which returns FALSE if the information
413
+ * was not available (e.g. CFHostStartInfoResolution has not been
414
+ * called), otherwise TRUE will be returned. Can be NULL.
415
+ *
416
+ */
417
+ CFN_EXPORT __nullable CFDataRef
418
+ CFHostGetReachability(CFHostRef theHost, Boolean * __nullable hasBeenResolved) API_DEPRECATED("Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>", macos(10.3, API_TO_BE_DEPRECATED), ios(2.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED));
419
+
420
+
421
+ /*
422
+ * CFHostCancelInfoResolution()
423
+ *
424
+ * Discussion:
425
+ * Cancels an outstanding asynchronous or synchronous resolve.
426
+ *
427
+ * Mac OS X threading:
428
+ * Thread safe
429
+ *
430
+ * Parameters:
431
+ *
432
+ * theHost:
433
+ * The CFHostRef which is currently resolving. Must be non-NULL.
434
+ * If this reference is not a valid CFHostRef, the behavior is
435
+ * undefined.
436
+ *
437
+ * info:
438
+ * The enum representing which resolution to be canceled. If the
439
+ * value is not a valid type, the behavior is undefined.
440
+ *
441
+ */
442
+ CFN_EXPORT void
443
+ CFHostCancelInfoResolution(CFHostRef theHost, CFHostInfoType info) API_DEPRECATED("Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>", macos(10.3, API_TO_BE_DEPRECATED), ios(2.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED));
444
+
445
+
446
+ /*
447
+ * CFHostSetClient()
448
+ *
449
+ * Discussion:
450
+ * Associates a client context and callback function with a CFHostRef.
451
+ * This is required for asynchronous usage. If not set, resolve will
452
+ * take place synchronously.
453
+ *
454
+ * Mac OS X threading:
455
+ * Thread safe
456
+ *
457
+ * Parameters:
458
+ *
459
+ * theHost:
460
+ * The CFHostRef which is getting a client. Must be non-NULL. If
461
+ * this reference is not a valid CFHostRef, the behavior is
462
+ * undefined.
463
+ *
464
+ * clientCB:
465
+ * A CFHostClientCallBack which will be called when the resolve
466
+ * completes or is cancelled. Use NULL to remove the client
467
+ * association with a host object.
468
+ *
469
+ * clientContext:
470
+ * A CFHostClientContext which is used to set the contextual
471
+ * information associated with the host object. The info pointer
472
+ * from the struct will be passed to the callback function. If
473
+ * setting a client, this value must be non-NULL.
474
+ *
475
+ * Result:
476
+ * Returns TRUE if the procedure was a success, otherwise it returns
477
+ * FALSE.
478
+ *
479
+ */
480
+ CFN_EXPORT Boolean
481
+ CFHostSetClient(CFHostRef theHost, CFHostClientCallBack __nullable clientCB, CFHostClientContext * __nullable clientContext) API_DEPRECATED("Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>", macos(10.3, API_TO_BE_DEPRECATED), ios(2.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED));
482
+
483
+
484
+ /*
485
+ * CFHostScheduleWithRunLoop()
486
+ *
487
+ * Discussion:
488
+ * Schedules the given host on a run loop and mode so the client
489
+ * will receive its callbacks on that loop and mode.
490
+ *
491
+ * Mac OS X threading:
492
+ * Thread safe
493
+ *
494
+ * Parameters:
495
+ *
496
+ * theHost:
497
+ * The CFHostRef which is being scheduled. Must be non-NULL. If
498
+ * this reference is not a valid CFHostRef, the behavior is
499
+ * undefined.
500
+ *
501
+ * runLoop:
502
+ * A CFRunLoopRef on which the host should be scheduled. Must be
503
+ * non-NULL. If this reference is not a valid CFRunLoopRef, the
504
+ * behavior is undefined.
505
+ *
506
+ * runLoopMode:
507
+ * A CFStringRef which is the mode in which the run loop will be
508
+ * running when notification occurs. Must be non-NULL. If this
509
+ * reference is not a valid CFStringRef, the behavior is undefined.
510
+ *
511
+ */
512
+ CFN_EXPORT void
513
+ CFHostScheduleWithRunLoop(CFHostRef theHost, CFRunLoopRef runLoop, CFStringRef runLoopMode) API_DEPRECATED("Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>", macos(10.3, API_TO_BE_DEPRECATED), ios(2.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED));
514
+
515
+
516
+ /*
517
+ * CFHostUnscheduleFromRunLoop()
518
+ *
519
+ * Discussion:
520
+ * Unschedules the given host from a run loop and mode so the client
521
+ * will not receive its callbacks on that loop and mode.
522
+ *
523
+ * Mac OS X threading:
524
+ * Thread safe
525
+ *
526
+ * Parameters:
527
+ *
528
+ * theHost:
529
+ * The CFHostRef which is being unscheduled. Must be non-NULL. If
530
+ * this reference is not a valid CFHostRef, the behavior is
531
+ * undefined.
532
+ *
533
+ * runLoop:
534
+ * A CFRunLoopRef on which the host is scheduled and should now be
535
+ * unscheduled. Must be non-NULL. If this reference is not a
536
+ * valid CFRunLoopRef, the behavior is undefined.
537
+ *
538
+ * runLoopMode:
539
+ * A CFStringRef which is the mode in which the host is scheduled
540
+ * and should be unscheduled. Must be non-NULL. If this reference
541
+ * is not a valid CFStringRef, the behavior is undefined.
542
+ *
543
+ */
544
+ CFN_EXPORT void
545
+ CFHostUnscheduleFromRunLoop(CFHostRef theHost, CFRunLoopRef runLoop, CFStringRef runLoopMode) API_DEPRECATED("Use Network framework instead, see deprecation notice in <CFNetwork/CFHost.h>", macos(10.3, API_TO_BE_DEPRECATED), ios(2.0, API_TO_BE_DEPRECATED), watchos(2.0, API_TO_BE_DEPRECATED), tvos(9.0, API_TO_BE_DEPRECATED));
546
+
547
+
548
+
549
+ #pragma pack(pop)
550
+
551
+ CF_ASSUME_NONNULL_END
552
+ CF_EXTERN_C_END
553
+
554
+ #endif /* __CFHOST__ */
555
+
@@ -4,6 +4,7 @@
4
4
  #include <CFNetwork/CFNetworkErrors.h>
5
5
  #include <CFNetwork/CFHTTPMessage.h>
6
6
  #include <CFNetwork/CFProxySupport.h>
7
+ #include <CFNetwork/CFHost.h>
7
8
  CF_EXTERN_C_BEGIN
8
9
  CFN_EXPORT const CFStringRef kCFStreamPropertySSLPeerTrust CF_AVAILABLE(10_5, 2_0);
9
10
  CFN_EXPORT const CFStringRef kCFStreamSSLValidatesCertificateChain CF_AVAILABLE(10_4, 2_0);
@@ -1377,6 +1377,8 @@ Tags:
1377
1377
  SwiftName: NSLocale.LanguageDirection
1378
1378
  - Name: NSNetServiceOptions
1379
1379
  SwiftName: NSNetService.Options
1380
+ - Name: NSPointerFunctionsOptions
1381
+ SwiftName: NSPointerFunctions.Options
1380
1382
  - Name: NSRelativeDateTimeFormatterStyle
1381
1383
  SwiftName: RelativeDateTimeFormatter.DateTimeStyle
1382
1384
  - Name: NSRelativeDateTimeFormatterUnitsStyle
@@ -1696,6 +1698,10 @@ Enumerators:
1696
1698
  SwiftName: currencyPlural
1697
1699
  - Name: NSNumberFormatterCurrencyAccountingStyle
1698
1700
  SwiftName: currencyAccounting
1701
+ - Name: NSPointerFunctionsStrongMemory
1702
+ SwiftName: strongMemory
1703
+ - Name: NSPointerFunctionsObjectPersonality
1704
+ SwiftName: objectPersonality
1699
1705
  - Name: NSXMLDocumentXMLKind
1700
1706
  SwiftName: xml
1701
1707
  - Name: NSXMLDocumentXHTMLKind
@@ -61,7 +61,6 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
61
61
  /// Don't implement this protocol in your application. Instead, your ``URLProtocol`` subclass calls methods of this protocol on its own ``URLProtocol/client`` property.
62
62
  NS_SWIFT_SENDABLE
63
63
  API_AVAILABLE(macos(10.2), ios(2.0), watchos(2.0), tvos(9.0))
64
- __attribute__((external_source_symbol(language="Swift", defined_in="FoundationNetworking", generated_declaration)))
65
64
  @protocol NSURLProtocolClient <NSObject>
66
65
 
67
66
  /// Indicates to the client that a redirect has occurred.
@@ -1,4 +1,10 @@
1
1
  framework module QuartzCore [system] {
2
2
  umbrella header "QuartzCore.h"
3
+ // textual imports let UIKitEnums use the native display link and its frame
4
+ // rate range without importing all of QuartzCore, whose Swift overlay sits
5
+ // above UIKitCore.
6
+ exclude header "CADisplayLink.h"
7
+ exclude header "CAFrameRateRange.h"
8
+ exclude header "CABase.h"
3
9
  export *
4
10
  }
@@ -15,7 +15,7 @@ UIKIT_EXTERN NS_SWIFT_UI_ACTOR NS_REFINED_FOR_SWIFT
15
15
  API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(visionos)
16
16
  API_UNAVAILABLE(watchos, tvos)
17
17
  /// A badge to be rendered on a bar button item.
18
- @interface UIBarButtonItemBadge : NSObject <NSCopying, NSSecureCoding>
18
+ PEACH_SWIFT_CLASS(UIKitCore) @interface UIBarButtonItemBadge : NSObject <NSCopying, NSSecureCoding>
19
19
  /// Creates a badge with the specified `count`.
20
20
  ///
21
21
  /// The count is localized when shown, and will update
@@ -23,7 +23,7 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
23
23
  /// and set its properties to customize minimization.
24
24
  UIKIT_EXTERN NS_SWIFT_UI_ACTOR NS_REFINED_FOR_SWIFT
25
25
  API_AVAILABLE(ios(27.0), tvos(27.0), visionos(27.0)) API_UNAVAILABLE(watchos)
26
- @interface UIBarMinimization : NSObject <NSCopying, NSSecureCoding>
26
+ PEACH_SWIFT_CLASS(UIKitCore) @interface UIBarMinimization : NSObject <NSCopying, NSSecureCoding>
27
27
 
28
28
  /// The minimization behavior.
29
29
  ///
@@ -48,7 +48,7 @@ UIKIT_EXTERN const UIScrollViewDecelerationRate UIScrollViewDecelerationRateFast
48
48
 
49
49
  /// Styles for a scroll view's edge effect.
50
50
  UIKIT_FINAL UIKIT_EXTERN NS_SWIFT_UI_ACTOR API_AVAILABLE(ios(26.0), tvos(26.0), visionos(26.0)) API_UNAVAILABLE(watchos) NS_SWIFT_NAME(UIScrollEdgeEffect.Style)
51
- @interface UIScrollEdgeEffectStyle : NSObject
51
+ PEACH_SWIFT_CLASS(UIKitCore) @interface UIScrollEdgeEffectStyle : NSObject
52
52
 
53
53
  - (instancetype)init NS_UNAVAILABLE;
54
54
  + (instancetype)new NS_UNAVAILABLE;
@@ -12,7 +12,7 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
12
12
 
13
13
  UIKIT_EXTERN NS_SWIFT_UI_ACTOR
14
14
  API_AVAILABLE(ios(18.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(watchos)
15
- @interface UISearchTab : UITab
15
+ PEACH_SWIFT_CLASS(UIKitCore) @interface UISearchTab : UITab
16
16
 
17
17
  /// The system-assigned identifier for search tabs.
18
18
  @property (class, nonatomic, copy, readonly) NSString *identifier API_AVAILABLE(ios(26.4), tvos(26.4), visionos(26.4));
@@ -39,7 +39,7 @@ typedef NS_ENUM(NSInteger, UITabPlacement) {
39
39
 
40
40
  UIKIT_EXTERN NS_SWIFT_UI_ACTOR
41
41
  API_AVAILABLE(ios(18.0), tvos(18.0), visionos(2.0)) API_UNAVAILABLE(watchos)
42
- @interface UITab : NSObject
42
+ PEACH_SWIFT_CLASS(UIKitCore) @interface UITab : NSObject
43
43
 
44
44
  /// The identifier associated with the tab, must be unique across the tab bar controller.
45
45
  @property (nonatomic, strong, readonly) NSString *identifier;
@@ -15,7 +15,7 @@ NS_HEADER_AUDIT_BEGIN(nullability, sendability)
15
15
 
16
16
  UIKIT_EXTERN NS_SWIFT_UI_ACTOR
17
17
  API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(visionos, tvos, watchos)
18
- @interface UITabAccessory: NSObject
18
+ PEACH_SWIFT_CLASS(UIKitCore) @interface UITabAccessory: NSObject
19
19
 
20
20
  /// The content view of the accessory.
21
21
  @property (nonatomic, strong, nonnull, readonly) UIView *contentView;
@@ -54,7 +54,7 @@ typedef NS_ENUM(NSInteger, UITabAccessoryEnvironment) {
54
54
  /// UITabBarController.bottomAccessory. Defaults to UITabAccessoryEnvironmentUnspecified.
55
55
  UIKIT_EXTERN NS_SWIFT_UI_ACTOR NS_REFINED_FOR_SWIFT
56
56
  API_AVAILABLE(ios(26.0)) API_UNAVAILABLE(visionos, tvos, watchos)
57
- @interface UITraitTabAccessoryEnvironment : NSObject <UINSIntegerTraitDefinition>
57
+ PEACH_SWIFT_CLASS(UIKitCore) @interface UITraitTabAccessoryEnvironment : NSObject <UINSIntegerTraitDefinition>
58
58
 
59
59
  @end
60
60