peachsim 0.1.1716 → 0.1.1738
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -3
- package/cli/app-bundle-resources.ts +2 -1
- package/cli/app-fonts.ts +4 -4
- package/cli/app-splash.ts +4 -4
- package/cli/app-stubs.ts +17 -0
- package/cli/command-registry.ts +1 -0
- package/cli/commands/control.ts +83 -822
- package/cli/commands/coverage-swift.ts +112 -4
- package/cli/commands/daemon.ts +8 -0
- package/cli/commands/detox.ts +3 -0
- package/cli/commands/doctor.ts +19 -2
- package/cli/commands/inspect/actions.ts +74 -14
- package/cli/commands/inspect/core.ts +5 -1
- package/cli/commands/inspect/settling.ts +5 -2
- package/cli/commands/inspect/wait-ready.ts +6 -0
- package/cli/commands/inspect.ts +48 -45
- package/cli/commands/kotlin.ts +12 -2
- package/cli/commands/package.ts +760 -0
- package/cli/commands/serve.ts +6 -0
- package/cli/commands/shell-url.ts +838 -0
- package/cli/commands/swift.ts +42 -102
- package/cli/commands/test.ts +20 -0
- package/cli/commands/upload.ts +1 -1
- package/cli/device-option.ts +1 -1
- package/cli/main.ts +13 -1
- package/cli/native-input.ts +199 -0
- package/cli/outbound-endpoints.ts +26 -1
- package/cli/packaged-app-launcher.ts +95 -0
- package/cli/scene-video.ts +36 -12
- package/detox/index.ts +196 -24
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +5 -2
- package/dist-lib/auth/shared-session.cjs +5 -2
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +39889 -31873
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +195 -63
- package/dist-lib/dev-bundle-resolution.cjs +14 -13
- package/dist-lib/expo-swift-bundle.cjs +18507 -11835
- package/dist-lib/expo-swift-metadata.cjs +4 -1
- package/dist-lib/expo-swift-metadata.mjs +3 -1
- package/dist-lib/home-paths.cjs +27 -3
- package/dist-lib/host/bridge-host.cjs +28373 -24090
- package/dist-lib/host/fetch-proxy-handler.cjs +235 -225
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +915 -399
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +335 -47
- package/dist-lib/menu.cjs +13 -1
- package/dist-lib/menu.mjs +13 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +918 -411
- package/dist-lib/native-app-identity-project.cjs +703 -283
- package/dist-lib/native-app-identity-project.mjs +500 -87
- package/dist-lib/native-app-identity.cjs +13 -2
- package/dist-lib/native-app-identity.mjs +13 -2
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +5 -2
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +28 -23
- package/dist-lib/public-origins-lib.json +418 -224
- package/dist-lib/react-native-host-modules.cjs +35 -2
- package/dist-lib/react-native-host-modules.mjs +35 -2
- package/dist-lib/reap-browser.cjs +12 -4
- package/dist-lib/scripts/dev-server-scanner.cjs +15 -8
- package/dist-lib/sdk.cjs +17 -7
- package/dist-lib/sdk.mjs +16 -7
- package/dist-lib/skills.cjs +44825 -29141
- package/dist-lib/swift-compile.cjs +616 -400
- package/dist-lib/swift-compile.mjs +528 -315
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +105 -17
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +4660 -2252
- package/dist-lib/vite.cjs +248 -234
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/native-seams/react-native-cookies.d.ts +17 -8
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +7 -4
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +9 -6
- package/dist-types/packages/peach-engine/src/engine/liquid-glass.d.ts +0 -5
- package/dist-types/packages/peach-engine/src/engine/memory-counts.d.ts +11 -1
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +5 -12
- package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/engine/text-paragraph.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/native-preview-bundle.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +9 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-commandContract.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +7 -2
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +36 -2
- package/dist-types/packages/peach-engine/src/shell-events.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/audioBridgeContract.d.ts +5 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -1
- package/dist-types/packages/peach-globals/src/keyboardBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/shellBridgeContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +9 -2
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/kotlin/README.md +3 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/scripts/dev-server-scanner.ts +12 -25
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccount.h +55 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountCredential.h +35 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountStore.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACAccountType.h +53 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/ACError.h +37 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/Accounts.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Headers/AccountsDefines.h +13 -0
- package/sdk/ios/System/Library/Frameworks/Accounts.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASFoundation.h +52 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSession.h +128 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSessionCallback.h +35 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/AuthenticationServices.h +3 -0
- package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFHTTPMessage.h +724 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +4 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkDefs.h +27 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h +1301 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +3 -1
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h +21 -50
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLRegion.h +6 -6
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +58 -3
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +711 -46
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h +23 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +7 -9
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIOrientation.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIStringDrawing.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIView.h +14 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewAnimating.h +12 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIViewController.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIWindow.h +2 -0
- package/sdk/ios/usr/include/ConditionalMacros.h +619 -0
- package/sdk/ios/usr/include/module.modulemap +1 -0
- package/sdk/ios/usr/include/objc/objc-sync.h +59 -0
- package/sdk/ios/usr/include/os/signpost.h +414 -0
- package/sdk/ios/usr/include/os.modulemap +10 -0
- package/sdk/ios/usr/include/sys/cdefs.h +5 -0
- package/sdk/ios/usr/include/sys/ioccom.h +99 -0
- package/sdk/ios/usr/include/sys/syslog.h +236 -0
- package/sdk/ios/usr/include/syslog.h +24 -0
- package/sdk/ios/wasm/include/errno.h +4 -20
- package/sdk/ios/wasm/include/fcntl.h +4 -2
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/setjmp.h +57 -0
- package/sdk/ios/wasm/include/stdio.h +24 -0
- package/sdk/ios/wasm/include/stdlib.h +32 -7
- package/sdk/ios/wasm/include/sys/file.h +7 -0
- package/sdk/ios/wasm/include/sys/ioctl.h +6 -0
- package/sdk/ios/wasm/include/sys/resource.h +2 -2
- package/sdk/ios/wasm/include/sys/syscall.h +9 -0
- package/sdk/ios/wasm/include/sys/time.h +10 -0
- package/sdk/ios/wasm/include/unistd.h +12 -3
- package/sdk/native-hashes.json +4 -3
- package/skills/contrast/SKILL.md +2 -1
- package/skills/peach-debug/SKILL.md +0 -1
- package/skills/peach-perf/SKILL.md +0 -1
- package/skills/peach-setup/SKILL.md +0 -1
- package/skills/peach-test/SKILL.md +7 -4
- package/skills/peach-visual/SKILL.md +0 -1
- package/src/admitted-mac-build.ts +3 -0
- package/src/android-app-identity.ts +18 -0
- package/src/android-autolinking.ts +1 -0
- package/src/android-bridge-packages.ts +279 -0
- package/src/android-root-module.ts +9 -9
- package/src/appPackageContract.ts +83 -0
- package/src/bridge-contract.ts +50 -0
- package/src/bundle-channel.mjs +41 -6
- package/src/cli-runtime.ts +9 -5
- package/src/dev-bundle-resolution.ts +7 -27
- package/src/dom-source-reference.ts +15 -0
- package/src/expo-discovery-cache.ts +134 -26
- package/src/expo-kotlin-host.ts +97 -26
- package/src/expo-manifest-body.ts +33 -0
- package/src/expo-native-workspace.ts +158 -38
- package/src/expo-swift-host.ts +350 -75
- package/src/expo-swift-ready.ts +5 -1
- package/src/expoKotlinContract.ts +12 -2
- package/src/expoSwiftContract.ts +10 -0
- package/src/generated/swift-c-predefines.json +1 -1
- package/src/home-paths.ts +41 -2
- package/src/host/app-package-handler.ts +47 -0
- package/src/host/bridge-host.ts +8 -0
- package/src/host/fetch-proxy-handler.ts +10 -0
- package/src/host/staged-host-files.ts +18 -0
- package/src/index.ts +3 -0
- package/src/kotlin-host.ts +225 -48
- package/src/kotlin-instance-source.ts +126 -0
- package/src/kotlinSdkContract.ts +2 -1
- package/src/menu.ts +14 -0
- package/src/native-app-identity-project.ts +7 -2
- package/src/native-app-identity.ts +11 -0
- package/src/native-firebase-config.ts +24 -1
- package/src/native-prebuilt.ts +154 -0
- package/src/nitro-adapter.lock.json +270 -270
- package/src/nitro-adapter.ts +56 -50
- package/src/nitro-bundle.ts +92 -74
- package/src/nitro-compile.ts +45 -14
- package/src/nitro-dependencies.ts +63 -46
- package/src/nitro-source.ts +64 -26
- package/src/nitroAdapterContract.ts +146 -98
- package/src/nitroContract.ts +71 -21
- package/src/react-native-bridge-modules.ts +70 -42
- package/src/react-native-host-modules.ts +34 -1
- package/src/reactNativeConfigurationContract.ts +14 -0
- package/src/reap-browser.ts +15 -3
- package/src/sdk.ts +5 -0
- package/src/settingsContract.ts +38 -1
- package/src/sim-client.ts +4 -1
- package/src/storageSnapshotContract.ts +32 -81
- package/src/swift-compile.ts +268 -89
- package/src/swift-coverage/indexdump.ts +22 -6
- package/src/swift-coverage/indexing.ts +4 -4
- package/src/swift-coverage/provenance.ts +1 -0
- package/src/swift-coverage/sdk.ts +104 -20
- package/src/swift-coverage/types.ts +34 -0
- package/src/swift-coverage/xcode-asset-symbols.ts +922 -0
- package/src/swift-coverage/xcode-assets.ts +89 -131
- package/src/swift-coverage/xcode.ts +10 -2
- package/src/swift-cxx-reachable.ts +2 -1
- package/src/swift-distribution.lock.json +20 -16
- package/src/swift-host.ts +98 -22
- package/src/swift-icu.ts +1 -1
- package/src/swift-link-roots.ts +118 -0
- package/src/swift-objc-compile.ts +144 -22
- package/src/swift-objc-import.ts +6 -0
- package/src/swift-objc-standin.ts +2 -14
- package/src/swift-package-manifest.ts +14 -6
- package/src/swift-packages.ts +75 -11
- package/src/swift-pdf-raster.ts +1 -0
- package/src/swift-root-lock.ts +17 -1
- package/src/swift-source-pods.ts +2 -10
- package/src/swift-standin-emit.ts +597 -57
- package/src/swift-standins.ts +599 -56
- package/src/swift-submit.ts +7 -1
- package/src/swift-toolchain.ts +140 -17
- package/src/turbo-bundle.ts +81 -0
- package/src/turbo-codegen-intake.ts +91 -0
- package/src/turbo-compile.ts +120 -0
- package/src/turbo-runtime.lock.json +69 -0
- package/src/turbo-source.ts +754 -0
- package/src/vite-plugin-one.ts +17 -12
- package/src/vite-plugin.ts +28 -15
- package/src/xcode-project.ts +223 -22
|
@@ -116,7 +116,9 @@ CG_EXTERN void CGContextConcatCTM(CGContextRef _Nullable c, CGAffineTransform tr
|
|
|
116
116
|
CG_EXTERN void CGContextDrawPDFPage(CGContextRef _Nullable c, CGPDFPageRef _Nullable page) __attribute__((availability(macos,introduced=10.3), availability(ios,introduced=2.0)));
|
|
117
117
|
CG_EXTERN CGDataProviderRef _Nullable CGDataProviderCreateWithCFData( CFDataRef _Nullable data) __attribute__((availability(macos,introduced=10.4), availability(ios,introduced=2.0)));
|
|
118
118
|
CG_EXTERN CGPDFDocumentRef _Nullable CGPDFDocumentCreateWithProvider( CGDataProviderRef _Nullable provider) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
|
|
119
|
+
CG_EXTERN CGPDFDocumentRef _Nullable CGPDFDocumentCreateWithURL( CFURLRef _Nullable url) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
|
|
119
120
|
CG_EXTERN CGPDFPageRef _Nullable CGPDFDocumentGetPage( CGPDFDocumentRef _Nullable document, size_t pageNumber) __attribute__((availability(macos,introduced=10.3), availability(ios,introduced=2.0)));
|
|
121
|
+
CG_EXTERN CGPDFDocumentRef _Nullable CGPDFDocumentRetain( CGPDFDocumentRef _Nullable document) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
|
|
120
122
|
CG_EXTERN void CGPDFDocumentRelease(CGPDFDocumentRef _Nullable document) __attribute__((availability(macos,introduced=10.0), availability(ios,introduced=2.0)));
|
|
121
123
|
CG_EXTERN CGRect CGPDFPageGetBoxRect(CGPDFPageRef _Nullable page, CGPDFBox box) __attribute__((availability(macos,introduced=10.3), availability(ios,introduced=2.0)));
|
|
122
124
|
CG_EXTERN CGAffineTransform CGPDFPageGetDrawingTransform( CGPDFPageRef _Nullable page, CGPDFBox box, CGRect rect, int rotate, bool preserveAspectRatio) __attribute__((availability(macos,introduced=10.3), availability(ios,introduced=2.0)));
|
|
@@ -166,7 +168,7 @@ typedef CF_ENUM (int32_t, CGInterpolationQuality) {
|
|
|
166
168
|
kCGInterpolationHigh = 3
|
|
167
169
|
};
|
|
168
170
|
typedef void (*CGDataProviderReleaseDataCallback)(void * __nullable info,
|
|
169
|
-
const void *
|
|
171
|
+
const void * _Nonnull data, size_t size);
|
|
170
172
|
CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformConcat(CGAffineTransform t1,
|
|
171
173
|
CGAffineTransform t2) API_AVAILABLE(macos(10.0), ios(2.0));
|
|
172
174
|
CG_EXTERN CGAffineTransform CG_PURE CGAffineTransformMake(CGFloat a, CGFloat b,
|
package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManager.h
CHANGED
|
@@ -24,15 +24,15 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
24
24
|
* Specifies a physical device orientation, equivalent to UIDeviceOrientation.
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
|
-
typedef
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
27
|
+
typedef enum __attribute__((enum_extensibility(open))) CLDeviceOrientation : int32_t {
|
|
28
|
+
CLDeviceOrientationUnknown __attribute__((swift_name("CLDeviceOrientation.unknown"))) = 0,
|
|
29
|
+
CLDeviceOrientationPortrait __attribute__((swift_name("CLDeviceOrientation.portrait"))) = 1,
|
|
30
|
+
CLDeviceOrientationPortraitUpsideDown __attribute__((swift_name("CLDeviceOrientation.portraitUpsideDown"))) = 2,
|
|
31
|
+
CLDeviceOrientationLandscapeLeft __attribute__((swift_name("CLDeviceOrientation.landscapeLeft"))) = 3,
|
|
32
|
+
CLDeviceOrientationLandscapeRight __attribute__((swift_name("CLDeviceOrientation.landscapeRight"))) = 4,
|
|
33
|
+
CLDeviceOrientationFaceUp __attribute__((swift_name("CLDeviceOrientation.faceUp"))) = 5,
|
|
34
|
+
CLDeviceOrientationFaceDown __attribute__((swift_name("CLDeviceOrientation.faceDown"))) = 6,
|
|
35
|
+
} CLDeviceOrientation;
|
|
36
36
|
|
|
37
37
|
/*
|
|
38
38
|
* CLAuthorizationStatus
|
|
@@ -79,21 +79,10 @@ typedef NS_ENUM(int, CLAuthorizationStatus) {
|
|
|
79
79
|
kCLAuthorizationStatusAuthorized API_DEPRECATED("Use kCLAuthorizationStatusAuthorizedAlways", ios(2.0, 8.0)) API_AVAILABLE(macos(10.6)) API_UNAVAILABLE(watchos, tvos, visionos) = kCLAuthorizationStatusAuthorizedAlways
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
typedef
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
// The user has chosen to grant this application access to location information with reduced accuracy.
|
|
87
|
-
// Region monitoring and beacon ranging are not available to the application. Other CoreLocation APIs
|
|
88
|
-
// are available with reduced accuracy.
|
|
89
|
-
|
|
90
|
-
// Location estimates will have a horizontalAccuracy on the order of about 5km. To achieve the
|
|
91
|
-
// reduction in accuracy, CoreLocation will snap location estimates to a nearby point which represents
|
|
92
|
-
// the region the device is in. Furthermore, CoreLocation will reduce the rate at which location
|
|
93
|
-
// estimates are produced. Applications should be prepared to receive locations that are up to 20
|
|
94
|
-
// minutes old.
|
|
95
|
-
CLAccuracyAuthorizationReducedAccuracy,
|
|
96
|
-
};
|
|
82
|
+
typedef enum __attribute__((enum_extensibility(open))) CLAccuracyAuthorization : intptr_t {
|
|
83
|
+
CLAccuracyAuthorizationFullAccuracy __attribute__((swift_name("CLAccuracyAuthorization.fullAccuracy"))) = 0,
|
|
84
|
+
CLAccuracyAuthorizationReducedAccuracy __attribute__((swift_name("CLAccuracyAuthorization.reducedAccuracy"))) = 1,
|
|
85
|
+
} CLAccuracyAuthorization;
|
|
97
86
|
|
|
98
87
|
/*
|
|
99
88
|
* CLActivityType
|
|
@@ -103,32 +92,14 @@ typedef NS_ENUM(NSInteger, CLAccuracyAuthorization) {
|
|
|
103
92
|
* Used to optimize the positioning experience delivered to this CLLocationManager instance
|
|
104
93
|
* for the expected activity.
|
|
105
94
|
*/
|
|
106
|
-
typedef
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
CLActivityTypeFitness, // positioning in dedicated fitness sessions, e.g. walking
|
|
115
|
-
// workouts, running workouts, cycling workouts, etc.
|
|
116
|
-
|
|
117
|
-
CLActivityTypeOtherNavigation, // positioning for transportation that does not or may not
|
|
118
|
-
// adhere to roads such as cycling, scooters, trains, boats
|
|
119
|
-
// and off-road vehicles; also for positioning indoors and
|
|
120
|
-
// outdoors that isn’t tied to a dedicated fitness session,
|
|
121
|
-
// e.g. walking
|
|
122
|
-
|
|
123
|
-
CLActivityTypeAirborne API_AVAILABLE(ios(12.0), macos(10.14), tvos(12.0), watchos(5.0)),
|
|
124
|
-
// positioning for activities in the air, e.g. flying in an
|
|
125
|
-
// airplane or helicopter, paragliding, flying on a drone,
|
|
126
|
-
// skydiving, etc. Also includes runway taxiing
|
|
127
|
-
|
|
128
|
-
CLActivityTypeMaritime API_AVAILABLE(ios(27.0), macos(27.0), tvos(27.0), watchos(27.0), visionos(27.0)),
|
|
129
|
-
// positioning for vehicular activities on the water, e.g. boating,
|
|
130
|
-
// sailing, etc.
|
|
131
|
-
};
|
|
95
|
+
typedef enum __attribute__((enum_extensibility(open))) CLActivityType : intptr_t {
|
|
96
|
+
CLActivityTypeOther __attribute__((swift_name("CLActivityType.other"))) = 1,
|
|
97
|
+
CLActivityTypeAutomotiveNavigation __attribute__((swift_name("CLActivityType.automotiveNavigation"))) = 2,
|
|
98
|
+
CLActivityTypeFitness __attribute__((swift_name("CLActivityType.fitness"))) = 3,
|
|
99
|
+
CLActivityTypeOtherNavigation __attribute__((swift_name("CLActivityType.otherNavigation"))) = 4,
|
|
100
|
+
CLActivityTypeAirborne __attribute__((swift_name("CLActivityType.airborne"))) = 5,
|
|
101
|
+
CLActivityTypeMaritime __attribute__((swift_name("CLActivityType.maritime"))) = 6,
|
|
102
|
+
} CLActivityType;
|
|
132
103
|
|
|
133
104
|
@class CLLocation;
|
|
134
105
|
@class CLHeading;
|
|
@@ -32,12 +32,12 @@ typedef NS_CLOSED_ENUM(NSInteger, CLRegionState) {
|
|
|
32
32
|
* Represents the current proximity of an entity.
|
|
33
33
|
*
|
|
34
34
|
*/
|
|
35
|
-
typedef
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
35
|
+
typedef enum __attribute__((enum_extensibility(open))) CLProximity : intptr_t {
|
|
36
|
+
CLProximityUnknown __attribute__((swift_name("CLProximity.unknown"))) = 0,
|
|
37
|
+
CLProximityImmediate __attribute__((swift_name("CLProximity.immediate"))) = 1,
|
|
38
|
+
CLProximityNear __attribute__((swift_name("CLProximity.near"))) = 2,
|
|
39
|
+
CLProximityFar __attribute__((swift_name("CLProximity.far"))) = 3,
|
|
40
|
+
} CLProximity;
|
|
41
41
|
|
|
42
42
|
/*
|
|
43
43
|
* CLRegion
|
|
@@ -185,6 +185,31 @@ Classes:
|
|
|
185
185
|
SwiftName: HTTPCookie
|
|
186
186
|
- Name: NSHTTPCookieStorage
|
|
187
187
|
SwiftName: HTTPCookieStorage
|
|
188
|
+
Properties:
|
|
189
|
+
- Name: sharedHTTPCookieStorage
|
|
190
|
+
SwiftName: shared
|
|
191
|
+
Methods:
|
|
192
|
+
- Selector: 'sharedCookieStorageForGroupContainerIdentifier:'
|
|
193
|
+
SwiftName: sharedCookieStorage(forGroupContainerIdentifier:)
|
|
194
|
+
MethodKind: Class
|
|
195
|
+
- Selector: 'cookiesForURL:'
|
|
196
|
+
SwiftName: cookies(for:)
|
|
197
|
+
MethodKind: Instance
|
|
198
|
+
- Selector: 'setCookies:forURL:mainDocumentURL:'
|
|
199
|
+
SwiftName: setCookies(_:for:mainDocumentURL:)
|
|
200
|
+
MethodKind: Instance
|
|
201
|
+
- Selector: 'removeCookiesSinceDate:'
|
|
202
|
+
SwiftName: removeCookies(since:)
|
|
203
|
+
MethodKind: Instance
|
|
204
|
+
- Selector: 'sortedCookiesUsingDescriptors:'
|
|
205
|
+
Availability: nonswift
|
|
206
|
+
MethodKind: Instance
|
|
207
|
+
- Selector: 'storeCookies:forTask:'
|
|
208
|
+
SwiftName: storeCookies(_:for:)
|
|
209
|
+
MethodKind: Instance
|
|
210
|
+
- Selector: 'getCookiesForTask:completionHandler:'
|
|
211
|
+
SwiftName: getCookies(for:completionHandler:)
|
|
212
|
+
MethodKind: Instance
|
|
188
213
|
- Name: NSHTTPURLResponse
|
|
189
214
|
SwiftName: HTTPURLResponse
|
|
190
215
|
- Name: NSKeyedArchiver
|
|
@@ -272,6 +297,21 @@ Classes:
|
|
|
272
297
|
SwiftName: URLResponse
|
|
273
298
|
- Name: NSURLSession
|
|
274
299
|
SwiftName: URLSession
|
|
300
|
+
Properties:
|
|
301
|
+
- Name: sharedSession
|
|
302
|
+
SwiftName: shared
|
|
303
|
+
# NSOperationQueue is a Swift class here, so FoundationNetworking declares
|
|
304
|
+
# these in Swift with the OperationQueue type.
|
|
305
|
+
- Name: delegateQueue
|
|
306
|
+
PropertyKind: Instance
|
|
307
|
+
Availability: nonswift
|
|
308
|
+
Methods:
|
|
309
|
+
- Selector: 'sessionWithConfiguration:'
|
|
310
|
+
MethodKind: Class
|
|
311
|
+
Availability: nonswift
|
|
312
|
+
- Selector: 'sessionWithConfiguration:delegate:delegateQueue:'
|
|
313
|
+
MethodKind: Class
|
|
314
|
+
Availability: nonswift
|
|
275
315
|
- Name: NSURLSessionConfiguration
|
|
276
316
|
SwiftName: URLSessionConfiguration
|
|
277
317
|
Methods:
|
|
@@ -286,6 +326,12 @@ Classes:
|
|
|
286
326
|
SwiftName: URLSessionStreamTask
|
|
287
327
|
- Name: NSURLSessionTask
|
|
288
328
|
SwiftName: URLSessionTask
|
|
329
|
+
# NSProgress is a Swift class here, so FoundationNetworking declares this in
|
|
330
|
+
# Swift with the Progress type.
|
|
331
|
+
Properties:
|
|
332
|
+
- Name: progress
|
|
333
|
+
PropertyKind: Instance
|
|
334
|
+
Availability: nonswift
|
|
289
335
|
- Name: NSURLSessionTaskMetrics
|
|
290
336
|
SwiftName: URLSessionTaskMetrics
|
|
291
337
|
- Name: NSURLSessionTaskTransactionMetrics
|
|
@@ -923,6 +969,9 @@ Classes:
|
|
|
923
969
|
MethodKind: Class
|
|
924
970
|
- Name: NSURLCredentialStorage
|
|
925
971
|
SwiftName: URLCredentialStorage
|
|
972
|
+
Properties:
|
|
973
|
+
- Name: sharedCredentialStorage
|
|
974
|
+
SwiftName: shared
|
|
926
975
|
Methods:
|
|
927
976
|
- Selector: 'setCredential:forProtectionSpace:'
|
|
928
977
|
SwiftName: set(_:for:)
|
|
@@ -1282,6 +1331,10 @@ Tags:
|
|
|
1282
1331
|
SwiftName: URLSessionTaskMetrics.DomainResolutionProtocol
|
|
1283
1332
|
- Name: NSURLSessionTaskMetricsResourceFetchType
|
|
1284
1333
|
SwiftName: URLSessionTaskMetrics.ResourceFetchType
|
|
1334
|
+
- Name: NSURLSessionDelayedRequestDisposition
|
|
1335
|
+
SwiftName: URLSession.DelayedRequestDisposition
|
|
1336
|
+
- Name: NSURLSessionMultipathServiceType
|
|
1337
|
+
SwiftName: URLSessionConfiguration.MultipathServiceType
|
|
1285
1338
|
- Name: NSURLSessionWebSocketMessageType
|
|
1286
1339
|
SwiftPrivate: true
|
|
1287
1340
|
- Name: NSURLSessionWebSocketCloseCode
|
|
@@ -1486,12 +1539,14 @@ Globals:
|
|
|
1486
1539
|
SwiftName: NSTextCheckingResult.CheckingType.allTypes
|
|
1487
1540
|
- Name: NSUbiquitousKeyValueStoreDidChangeExternallyNotification
|
|
1488
1541
|
SwiftName: NSUbiquitousKeyValueStore.didChangeExternallyNotification
|
|
1542
|
+
# FoundationNetworking defines URLSessionTask.defaultPriority, lowPriority
|
|
1543
|
+
# and highPriority in Swift; nothing defines the C constants.
|
|
1489
1544
|
- Name: NSURLSessionTaskPriorityDefault
|
|
1490
|
-
|
|
1545
|
+
Availability: nonswift
|
|
1491
1546
|
- Name: NSURLSessionTaskPriorityLow
|
|
1492
|
-
|
|
1547
|
+
Availability: nonswift
|
|
1493
1548
|
- Name: NSURLSessionTaskPriorityHigh
|
|
1494
|
-
|
|
1549
|
+
Availability: nonswift
|
|
1495
1550
|
- Name: NSGlobalDomain
|
|
1496
1551
|
SwiftName: UserDefaults.globalDomain
|
|
1497
1552
|
- Name: NSArgumentDomain
|