peachsim 0.1.1700 → 0.1.1716
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/LICENSE +1 -1
- package/README.md +59 -3
- package/cli/app-bundle-resources.ts +3 -1
- package/cli/app-catalog.ts +10 -0
- package/cli/app-fonts.ts +1 -1
- package/cli/app-stubs.ts +19 -9
- package/cli/bridge-diagnostics.ts +2 -1
- package/cli/cloud-client.ts +6 -3
- package/cli/commands/control.ts +123 -40
- package/cli/commands/coverage-swift.ts +19 -1
- package/cli/commands/detect.ts +84 -37
- package/cli/commands/doctor.ts +159 -20
- package/cli/commands/flow.ts +4 -1
- package/cli/commands/inspect/core.ts +176 -17
- package/cli/commands/inspect/settling.ts +17 -5
- package/cli/commands/inspect/wait-ready.ts +7 -5
- package/cli/commands/inspect.ts +8 -2
- package/cli/commands/record.ts +263 -32
- package/cli/commands/screenshot.ts +2 -13
- package/cli/commands/test.ts +49 -101
- package/cli/current-sim.ts +4 -4
- package/cli/hints.ts +1 -6
- package/cli/main.ts +8 -1
- package/cli/metro-bundle-assets.ts +77 -0
- package/cli/outbound-endpoints.ts +6 -2
- package/cli/run-registry.ts +0 -8
- package/cli/scene-video.ts +5 -3
- package/cli/ws-bridge.ts +56 -14
- package/detox/index.ts +68 -10
- package/detox/launch-permissions.ts +183 -27
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +10 -9
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +5 -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 +20275 -20082
- 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 +2 -1
- package/dist-lib/cloud.mjs +2 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +166 -25
- package/dist-lib/dev-bundle-resolution.cjs +2 -8
- package/dist-lib/expo-swift-bundle.cjs +15190 -22541
- package/dist-lib/expo-swift-metadata.cjs +1 -1
- package/dist-lib/expo-swift-metadata.mjs +1 -1
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +20783 -20206
- package/dist-lib/host/fetch-proxy-handler.cjs +467 -77
- 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 +2 -1
- package/dist-lib/host/websocket-proxy.cjs +311 -45
- package/dist-lib/index.cjs +1956 -574
- 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 +1 -1
- package/dist-lib/menu.cjs +4 -1
- package/dist-lib/menu.mjs +3 -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 +1803 -547
- package/dist-lib/native-app-identity-project.cjs +823 -203
- package/dist-lib/native-app-identity-project.mjs +832 -206
- package/dist-lib/native-app-identity.cjs +14 -1
- package/dist-lib/native-app-identity.mjs +12 -1
- 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 +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +31 -101
- package/dist-lib/public-origins-lib.json +259 -383
- package/dist-lib/react-native-host-modules.cjs +97 -3
- package/dist-lib/react-native-host-modules.mjs +96 -3
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +20 -45
- package/dist-lib/sdk.cjs +145 -18
- package/dist-lib/sdk.mjs +139 -18
- package/dist-lib/skills.cjs +13204 -11702
- package/dist-lib/swift-compile.cjs +6034 -16894
- package/dist-lib/swift-compile.mjs +6099 -16966
- package/dist-lib/swift-package.cjs +81 -3
- package/dist-lib/swift-package.mjs +77 -3
- package/dist-lib/swift-submit.cjs +14 -4
- package/dist-lib/swift-submit.mjs +14 -4
- package/dist-lib/swift-toolchain.cjs +12 -10
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +16850 -24974
- package/dist-lib/vite.cjs +541 -117
- 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-gesture-handler.d.ts +2 -0
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/capture/lockstep-clockContract.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/fiber-debug-metadata.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/fontDataContract.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/lottie-types.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +5 -3
- package/dist-types/packages/peach-engine/src/engine/riveContract.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/guest-module-overrides.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/permissions/system-permission-types.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/react-native/host-services.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/react-native/platform-colors.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +6 -2
- package/dist-types/packages/peach-engine/src/remote-stream/scene-recording.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +16 -0
- package/dist-types/packages/peach-engine/src/render-worker/host-service-protocol.d.ts +15 -2
- package/dist-types/packages/peach-engine/src/render-worker/live-frame-mirror.d.ts +11 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +10 -1
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +10 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-tree-wire.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime-kind.d.ts +5 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +6 -4
- package/dist-types/packages/peach-engine/src/render-worker/workletThreadIdentityContract.d.ts +4 -0
- package/dist-types/packages/peach-globals/src/guestExecutionContract.d.ts +30 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +6 -4
- package/dist-types/packages/peach-globals/src/nativeBuildOptionsContract.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/permissionsBridgeContract.d.ts +11 -0
- package/dist-types/packages/peach-globals/src/recordingBridgeContract.d.ts +22 -1
- package/dist-types/packages/peach-globals/src/sceneStreamBridgeContract.d.ts +10 -0
- package/dist-types/packages/peach-globals/src/shellHostBridgeContract.d.ts +8 -2
- package/dist-types/packages/peach-globals/src/testBridgeContract.d.ts +3 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/package.json +3 -1
- package/runtime-companion.json +1 -1
- package/scripts/dev-server-scanner.ts +57 -70
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBATTRequest.h +69 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBAdvertisementData.h +94 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBAttribute.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentral.h +41 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentralManager.h +394 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCentralManagerConstants.h +224 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBCharacteristic.h +187 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBDefines.h +16 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBDescriptor.h +78 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBError.h +75 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBL2CAPChannel.h +50 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBManager.h +88 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeer.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheral.h +530 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheralManager.h +489 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBPeripheralManagerConstants.h +63 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBService.h +100 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CBUUID.h +144 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CoreBluetooth.apinotes +7 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Headers/CoreBluetooth.h +32 -0
- package/sdk/ios/System/Library/Frameworks/CoreBluetooth.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCGTypes.h +131 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +8 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h +359 -2
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h +328 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +1 -60
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/CoreNFC.apinotes +258 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/CoreNFC.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCError.h +103 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCFeliCaTag.h +267 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCISO15693ReaderSession.h +59 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCISO15693Tag.h +739 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCISO7816Tag.h +159 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCMiFareTag.h +94 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFMessage.h +60 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFPayload.h +121 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFReaderSession.h +169 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCNDEFTag.h +93 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCPaymentTagReaderSession.h +58 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCReaderSession.h +156 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCTag.h +127 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCTagReaderSession.h +201 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NFCVASReaderSession.h +237 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Headers/NSUserActivity+CoreNFC.h +35 -0
- package/sdk/ios/System/Library/Frameworks/CoreNFC.framework/Modules/module.modulemap +21 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCall.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCallCenter.h +45 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCarrier.h +87 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularData.h +39 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanProperties.h +46 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanProvisioning.h +33 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanProvisioningRequest.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCellularPlanStatus.h +57 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTQuickSwitch.h +53 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriber.h +107 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriberInfo.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTTelephonyNetworkInfo.h +161 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CoreTelephonyDefines.h +39 -0
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTDefines.h +92 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontDescriptor.h +634 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CTFontTraits.h +118 -0
- package/sdk/ios/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h +1 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +2497 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +2898 -369
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAccessPoint.h +110 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAchievement.h +64 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAchievementDescription.h +88 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKAchievementViewController.h +30 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKBasePlayer.h +15 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallenge.h +199 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallengeDefinition.h +71 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallengeEventHandler.h +43 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKChallengesViewController.h +33 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKCloudPlayer.h +19 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKDefines.h +17 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKDialogController.h +35 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKError.h +52 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKEventListener.h +36 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKFriendRequestComposeViewController.h +60 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameActivity.h +201 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameActivityDefinition.h +98 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameActivityListener.h +28 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameActivityPlayStyle.h +17 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameActivityState.h +22 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameCenterViewController.h +102 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameSession.h +87 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameSessionError.h +26 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameSessionEventListener.h +25 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKGameSessionSharingViewController.h +33 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLeaderboard.h +205 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLeaderboardEntry.h +23 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLeaderboardScore.h +25 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLeaderboardSet.h +64 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLeaderboardViewController.h +34 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKLocalPlayer.h +321 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKMatch.h +94 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKMatchmaker.h +229 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKMatchmakerViewController.h +100 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKNotificationBanner.h +20 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPeerPickerController.h +93 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPlayer.h +82 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPublicConstants.h +57 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKPublicProtocols.h +71 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKReleaseState.h +16 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGame.h +41 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSavedGameListener.h +22 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKScore.h +73 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSession.h +87 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKSessionError.h +30 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatch.h +314 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKTurnBasedMatchmakerViewController.h +69 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKVoiceChat.h +48 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GKVoiceChatService.h +145 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GameKit.apinotes +307 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Headers/GameKit.h +79 -0
- package/sdk/ios/System/Library/Frameworks/GameKit.framework/Modules/module.modulemap +6 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummary.h +122 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKActivitySummaryQuery.h +48 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAnchoredObjectQuery.h +93 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleSleepingBreathingDisturbancesClassification.h +39 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAppleWalkingSteadinessClassification.h +49 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachment.h +74 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAttachmentStore.h +95 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSample.h +66 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityPoint.h +82 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityPointClampingRange.h +54 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKAudiogramSensitivityTest.h +101 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCDADocumentSample.h +131 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCategorySample.h +92 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCategoryValues.h +279 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCharacteristicObjects.h +79 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCharacteristicValues.h +87 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalCoding.h +55 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalRecord.h +53 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKClinicalType.h +68 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsLensSpecification.h +59 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKContactsPrescription.h +74 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCorrelation.h +85 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCorrelationQuery.h +57 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCumulativeQuantitySample.h +36 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKCumulativeQuantitySeriesSample.h +23 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDefines.h +114 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDeletedObject.h +40 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDevice.h +164 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDiscreteQuantitySample.h +67 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDocumentQuery.h +83 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKDocumentSample.h +29 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogram.h +109 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKElectrocardiogramQuery.h +68 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKFHIRRelease.h +35 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKFHIRResource.h +81 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKFHIRVersion.h +50 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGAD7Assessment.h +73 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesLensSpecification.h +81 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKGlassesPrescription.h +66 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthConceptIdentifier.h +46 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHealthStore.h +470 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesBuilder.h +104 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesQuery.h +47 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKHeartbeatSeriesSample.h +26 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKLensSpecification.h +53 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKLiveWorkoutBuilder.h +131 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKLiveWorkoutDataSource.h +67 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKLiveWorkoutZoneUpdate.h +25 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKMedicationConcept.h +95 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKMedicationDoseEvent.h +113 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadata.h +583 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKMetadataEnums.h +250 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObject.h +64 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObjectType.h +294 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKObserverQuery.h +48 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKPHQ9Assessment.h +77 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantity.h +55 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantityAggregationStyle.h +30 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySample.h +83 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleBuilder.h +184 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuantitySeriesSampleQuery.h +90 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQuery.h +722 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryAnchor.h +33 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKQueryDescriptor.h +46 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSample.h +48 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSampleQuery.h +95 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKScoredAssessment.h +31 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSeriesBuilder.h +40 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSeriesSample.h +32 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSource.h +45 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceQuery.h +42 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKSourceRevision.h +78 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStateOfMind.h +157 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatistics.h +166 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsCollectionQuery.h +80 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKStatisticsQuery.h +37 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKTypeIdentifiers.h +359 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUnit.h +287 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUserAnnotatedMedication.h +60 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKUserAnnotatedMedicationQuery.h +38 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecord.h +131 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordQuery.h +76 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVerifiableClinicalRecordSubject.h +39 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrescription.h +76 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKVisionPrism.h +123 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkout.h +341 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutActivity.h +127 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutActivityType.h +147 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutBuilder.h +264 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutConfiguration.h +62 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutEffortRelationshipQuery.h +80 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRoute.h +20 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteBuilder.h +102 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutRouteQuery.h +67 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HKWorkoutSession.h +364 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HealthKit.apinotes +5 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Headers/HealthKit.h +101 -0
- package/sdk/ios/System/Library/Frameworks/HealthKit.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAAudibleMedia.h +41 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MACaptionAppearance.h +406 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MADefinitions.h +38 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAFlashingLightsProcessing.h +53 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAImageCaptioning.h +55 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAMusicHaptics.h +69 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MAVideoAccommodations.h +34 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Headers/MediaAccessibility.h +14 -0
- package/sdk/ios/System/Library/Frameworks/MediaAccessibility.framework/Modules/module.modulemap +11 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppProxyFlow.h +142 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppProxyProvider.h +93 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppProxyProviderManager.h +40 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppProxyTCPFlow.h +63 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppProxyUDPFlow.h +86 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppPushManager.h +208 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppPushProvider.h +87 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppRule.h +80 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEDNSProxyManager.h +109 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEDNSProxyProvider.h +98 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEDNSProxyProviderProtocol.h +45 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEDNSSettings.h +124 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEDNSSettingsManager.h +116 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEEthernetTunnelNetworkSettings.h +45 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEEthernetTunnelProvider.h +31 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterControlProvider.h +80 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterDataProvider.h +235 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterFlow.h +177 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterManager.h +138 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterPacketProvider.h +99 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterProvider.h +335 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterProviderConfiguration.h +94 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterRule.h +46 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFilterSettings.h +56 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEFlowMetaData.h +45 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotConfigurationManager.h +493 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotHelper.h +529 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEHotspotNetwork.h +87 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEIPv4Settings.h +122 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEIPv6Settings.h +121 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NENetworkRule.h +218 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEOnDemandRule.h +210 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEPacket.h +67 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEPacketTunnelFlow.h +62 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEPacketTunnelNetworkSettings.h +135 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEPacketTunnelProvider.h +97 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEProvider.h +160 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEProxySettings.h +140 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NERelay.h +83 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NERelayManager.h +195 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETransparentProxyManager.h +39 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETransparentProxyNetworkSettings.h +62 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETransparentProxyProvider.h +33 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETunnelNetworkSettings.h +57 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETunnelProvider.h +113 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETunnelProviderManager.h +108 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETunnelProviderProtocol.h +44 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NETunnelProviderSession.h +55 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEURLFilter.h +51 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEVPNConnection.h +162 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEVPNManager.h +153 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEVPNProtocol.h +135 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEVPNProtocolIKEv2.h +357 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NEVPNProtocolIPSec.h +71 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWBonjourServiceEndpoint.h +82 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWEndpoint.h +40 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWHostEndpoint.h +68 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWPath.h +93 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWTCPConnection.h +335 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWTLSParameters.h +70 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NWUDPSession.h +207 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NetworkExtension.apinotes +351 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Headers/NetworkExtension.h +74 -0
- package/sdk/ios/System/Library/Frameworks/NetworkExtension.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/ModelIO.h +84 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAction.h +197 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAnimation.h +428 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNAudioSource.h +170 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNBoundingVolume.h +50 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNCAAnimationExtensions.h +58 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNCamera.h +356 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNCameraController.h +124 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNConstraint.h +431 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNGeometry.h +591 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNHitTest.h +101 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNJavascript.h +58 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNLevelOfDetail.h +56 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNLight.h +350 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterial.h +349 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMaterialProperty.h +149 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNMorpher.h +79 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNNode.h +695 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParametricGeometry.h +727 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNParticleSystem.h +462 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsBehavior.h +219 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsBody.h +148 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsContact.h +34 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsField.h +124 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsShape.h +58 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNPhysicsWorld.h +90 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNReferenceNode.h +80 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNRenderer.h +102 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNScene.h +250 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNSceneRenderer.h +389 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNSceneSource.h +348 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNShadable.h +573 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNSkinner.h +84 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNTechnique.h +320 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNTransaction.h +64 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SCNView.h +170 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKit.apinotes +423 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKit.h +58 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKitAvailability.h +10 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKitDeprecated.h +88 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/SceneKitTypes.h +264 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Headers/scn_metal +75 -0
- package/sdk/ios/System/Library/Frameworks/SceneKit.framework/Modules/module.modulemap +12 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/CipherSuite.h +281 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecAccessControl.h +133 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecIdentity.h +232 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecKey.h +1616 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecProtocolMetadata.h +429 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecProtocolObject.h +71 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecProtocolOptions.h +775 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecProtocolTypes.h +327 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecRandom.h +84 -0
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/Security.h +9 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +19 -0
- package/sdk/ios/usr/include/AvailabilityInternal.h +23 -0
- package/sdk/ios/usr/include/Block.h +56 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonCrypto.h +34 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonCryptoError.h +78 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonCryptor.h +763 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonDigest.h +254 -47
- package/sdk/ios/usr/include/CommonCrypto/CommonHMAC.h +162 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonKeyDerivation.h +136 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonRandom.h +63 -0
- package/sdk/ios/usr/include/CommonCrypto/CommonSymmetricKeywrap.h +162 -0
- package/sdk/ios/usr/include/CommonCrypto/module.modulemap +15 -0
- package/sdk/ios/usr/include/ObjectiveC.apinotes +437 -0
- package/sdk/ios/usr/include/TargetConditionals.h +525 -14
- package/sdk/ios/usr/include/___wctype.h +193 -0
- package/sdk/ios/usr/include/__wctype.h +43 -0
- package/sdk/ios/usr/include/_abort.h +36 -0
- package/sdk/ios/usr/include/_assert.h +80 -0
- package/sdk/ios/usr/include/_static_assert.h +33 -0
- package/sdk/ios/usr/include/_stdlib.h +403 -0
- package/sdk/ios/usr/include/_string.h +231 -0
- package/sdk/ios/usr/include/_strings.h +101 -0
- package/sdk/ios/usr/include/_types/_wctrans_t.h +33 -0
- package/sdk/ios/usr/include/_types/_wctype_t.h +33 -0
- package/sdk/ios/usr/include/_wchar.h +263 -0
- package/sdk/ios/usr/include/_wctype.h +129 -0
- package/sdk/ios/usr/include/_xlocale.h +47 -0
- package/sdk/ios/usr/include/alloca.h +46 -0
- package/sdk/ios/usr/include/architecture/byte_order.h +381 -0
- package/sdk/ios/usr/include/arm/_limits.h +13 -0
- package/sdk/ios/usr/include/arm/arch.h +71 -0
- package/sdk/ios/usr/include/arm/limits.h +136 -0
- package/sdk/ios/usr/include/arpa/inet.h +100 -0
- package/sdk/ios/usr/include/assert.h +77 -10
- package/sdk/ios/usr/include/bsm/audit.h +434 -0
- package/sdk/ios/usr/include/crt_externs.h +50 -0
- package/sdk/ios/usr/include/dispatch/base.h +369 -0
- package/sdk/ios/usr/include/dispatch/block.h +509 -0
- package/sdk/ios/usr/include/dispatch/data.h +290 -0
- package/sdk/ios/usr/include/dispatch/dispatch.h +68 -172
- package/sdk/ios/usr/include/dispatch/dispatch_swift_shims.h +61 -0
- package/sdk/ios/usr/include/dispatch/group.h +289 -0
- package/sdk/ios/usr/include/dispatch/introspection.h +190 -0
- package/sdk/ios/usr/include/dispatch/io.h +617 -0
- package/sdk/ios/usr/include/dispatch/object.h +680 -0
- package/sdk/ios/usr/include/dispatch/once.h +128 -0
- package/sdk/ios/usr/include/dispatch/queue.h +1824 -0
- package/sdk/ios/usr/include/dispatch/semaphore.h +124 -0
- package/sdk/ios/usr/include/dispatch/source.h +803 -0
- package/sdk/ios/usr/include/dispatch/time.h +144 -0
- package/sdk/ios/usr/include/dispatch/workloop.h +178 -0
- package/sdk/ios/usr/include/dlfcn.h +320 -7
- package/sdk/ios/usr/include/execinfo.h +100 -10
- package/sdk/ios/usr/include/ftw.h +63 -0
- package/sdk/ios/usr/include/gethostuuid.h +45 -0
- package/sdk/ios/usr/include/libkern/arm/OSByteOrder.h +195 -0
- package/sdk/ios/usr/include/limits.h +167 -4
- package/sdk/ios/usr/include/mach/arm/boolean.h +74 -0
- package/sdk/ios/usr/include/mach/arm/exception.h +86 -0
- package/sdk/ios/usr/include/mach/arm/kern_return.h +78 -0
- package/sdk/ios/usr/include/mach/arm/processor_info.h +76 -0
- package/sdk/ios/usr/include/mach/arm/rpc.h +39 -0
- package/sdk/ios/usr/include/mach/arm/thread_state.h +42 -0
- package/sdk/ios/usr/include/mach/arm/thread_status.h +302 -0
- package/sdk/ios/usr/include/mach/arm/vm_param.h +118 -0
- package/sdk/ios/usr/include/mach/arm/vm_types.h +162 -0
- package/sdk/ios/usr/include/mach/boolean.h +88 -4
- package/sdk/ios/usr/include/mach/clock.h +249 -0
- package/sdk/ios/usr/include/mach/clock_priv.h +203 -0
- package/sdk/ios/usr/include/mach/clock_types.h +127 -0
- package/sdk/ios/usr/include/mach/dyld_kernel.h +66 -0
- package/sdk/ios/usr/include/mach/error.h +117 -0
- package/sdk/ios/usr/include/mach/exc.h +285 -0
- package/sdk/ios/usr/include/mach/exception_types.h +204 -25
- package/sdk/ios/usr/include/mach/host_info.h +136 -51
- package/sdk/ios/usr/include/mach/host_notify.h +39 -0
- package/sdk/ios/usr/include/mach/host_priv.h +1167 -0
- package/sdk/ios/usr/include/mach/host_security.h +225 -0
- package/sdk/ios/usr/include/mach/host_special_ports.h +315 -0
- package/sdk/ios/usr/include/mach/kern_return.h +291 -2
- package/sdk/ios/usr/include/mach/kmod.h +180 -0
- package/sdk/ios/usr/include/mach/mach.h +237 -12
- package/sdk/ios/usr/include/mach/mach_error.h +93 -10
- package/sdk/ios/usr/include/mach/mach_host.h +1329 -5
- package/sdk/ios/usr/include/mach/mach_init.h +112 -13
- package/sdk/ios/usr/include/mach/mach_interface.h +52 -0
- package/sdk/ios/usr/include/mach/mach_port.h +1935 -4
- package/sdk/ios/usr/include/mach/mach_time.h +77 -14
- package/sdk/ios/usr/include/mach/mach_traps.h +311 -0
- package/sdk/ios/usr/include/mach/mach_types.h +297 -20
- package/sdk/ios/usr/include/mach/mach_voucher_types.h +259 -0
- package/sdk/ios/usr/include/mach/machine/boolean.h +40 -0
- package/sdk/ios/usr/include/mach/machine/exception.h +40 -0
- package/sdk/ios/usr/include/mach/machine/kern_return.h +40 -0
- package/sdk/ios/usr/include/mach/machine/processor_info.h +40 -0
- package/sdk/ios/usr/include/mach/machine/rpc.h +40 -0
- package/sdk/ios/usr/include/mach/machine/thread_state.h +44 -0
- package/sdk/ios/usr/include/mach/machine/thread_status.h +40 -0
- package/sdk/ios/usr/include/mach/machine/vm_param.h +40 -0
- package/sdk/ios/usr/include/mach/machine/vm_types.h +40 -0
- package/sdk/ios/usr/include/mach/machine.h +456 -142
- package/sdk/ios/usr/include/mach/memory_object_types.h +312 -0
- package/sdk/ios/usr/include/mach/message.h +972 -0
- package/sdk/ios/usr/include/mach/mig.h +180 -0
- package/sdk/ios/usr/include/mach/mig_errors.h +125 -0
- package/sdk/ios/usr/include/mach/mig_strncpy_zerofill_support.h +35 -0
- package/sdk/ios/usr/include/mach/ndr.h +207 -0
- package/sdk/ios/usr/include/mach/notify.h +141 -0
- package/sdk/ios/usr/include/mach/policy.h +235 -0
- package/sdk/ios/usr/include/mach/port.h +648 -0
- package/sdk/ios/usr/include/mach/processor.h +364 -0
- package/sdk/ios/usr/include/mach/processor_info.h +171 -0
- package/sdk/ios/usr/include/mach/processor_set.h +589 -0
- package/sdk/ios/usr/include/mach/rpc.h +135 -0
- package/sdk/ios/usr/include/mach/semaphore.h +78 -0
- package/sdk/ios/usr/include/mach/std_types.h +75 -0
- package/sdk/ios/usr/include/mach/sync_policy.h +47 -0
- package/sdk/ios/usr/include/mach/task.h +2887 -7
- package/sdk/ios/usr/include/mach/task_info.h +584 -19
- package/sdk/ios/usr/include/mach/task_inspect.h +57 -0
- package/sdk/ios/usr/include/mach/task_policy.h +182 -26
- package/sdk/ios/usr/include/mach/task_special_ports.h +135 -0
- package/sdk/ios/usr/include/mach/thread_act.h +1550 -5
- package/sdk/ios/usr/include/mach/thread_info.h +206 -28
- package/sdk/ios/usr/include/mach/thread_policy.h +268 -0
- package/sdk/ios/usr/include/mach/thread_special_ports.h +87 -0
- package/sdk/ios/usr/include/mach/thread_status.h +100 -0
- package/sdk/ios/usr/include/mach/thread_switch.h +77 -0
- package/sdk/ios/usr/include/mach/time_value.h +96 -4
- package/sdk/ios/usr/include/mach/vm_attributes.h +99 -0
- package/sdk/ios/usr/include/mach/vm_behavior.h +86 -0
- package/sdk/ios/usr/include/mach/vm_inherit.h +93 -0
- package/sdk/ios/usr/include/mach/vm_map.h +1558 -0
- package/sdk/ios/usr/include/mach/vm_page_size.h +68 -0
- package/sdk/ios/usr/include/mach/vm_prot.h +183 -7
- package/sdk/ios/usr/include/mach/vm_purgable.h +166 -0
- package/sdk/ios/usr/include/mach/vm_region.h +400 -36
- package/sdk/ios/usr/include/mach/vm_statistics.h +387 -96
- package/sdk/ios/usr/include/mach/vm_sync.h +84 -0
- package/sdk/ios/usr/include/mach/vm_types.h +194 -7
- package/sdk/ios/usr/include/mach-o/arch.h +154 -16
- package/sdk/ios/usr/include/mach-o/fat.h +89 -0
- package/sdk/ios/usr/include/mach-o/getsect.h +146 -12
- package/sdk/ios/usr/include/mach-o/loader.h +1679 -139
- package/sdk/ios/usr/include/mach_debug/hash_info.h +75 -0
- package/sdk/ios/usr/include/mach_debug/ipc_info.h +199 -0
- package/sdk/ios/usr/include/mach_debug/lockgroup_info.h +74 -0
- package/sdk/ios/usr/include/mach_debug/mach_debug_types.h +200 -0
- package/sdk/ios/usr/include/mach_debug/page_info.h +64 -0
- package/sdk/ios/usr/include/mach_debug/vm_info.h +149 -0
- package/sdk/ios/usr/include/mach_debug/zone_info.h +209 -0
- package/sdk/ios/usr/include/machine/limits.h +14 -0
- package/sdk/ios/usr/include/module.modulemap +4 -0
- package/sdk/ios/usr/include/net/if_types.h +152 -0
- package/sdk/ios/usr/include/objc/NSObjCRuntime.h +10 -0
- package/sdk/ios/usr/include/objc/NSObject.h +23 -25
- package/sdk/ios/usr/include/objc/objc-api.h +310 -0
- package/sdk/ios/usr/include/objc/objc.h +243 -0
- package/sdk/ios/usr/include/objc/runtime.h +1933 -0
- package/sdk/ios/usr/include/os.modulemap +6 -0
- package/sdk/ios/usr/include/pthread/pthread_impl.h +66 -0
- package/sdk/ios/usr/include/pthread/sched.h +46 -0
- package/sdk/ios/usr/include/pthread.h +754 -4
- package/sdk/ios/usr/include/pwd.h +119 -0
- package/sdk/ios/usr/include/sched.h +46 -0
- package/sdk/ios/usr/include/secure/_string.h +295 -0
- package/sdk/ios/usr/include/secure/_strings.h +96 -0
- package/sdk/ios/usr/include/spawn.h +193 -0
- package/sdk/ios/usr/include/stddef.h +90 -0
- package/sdk/ios/usr/include/stdlib.h +62 -17
- package/sdk/ios/usr/include/string.h +62 -8
- package/sdk/ios/usr/include/sys/_pthread/_pthread_cond_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_condattr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_key_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_mutex_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_mutexattr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_once_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_rwlock_t.h +32 -0
- package/sdk/ios/usr/include/sys/_pthread/_pthread_rwlockattr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_select.h +57 -0
- package/sdk/ios/usr/include/sys/_types/_blkcnt_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_blksize_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_caddr_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_dev_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_fsblkcnt_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_fsfilcnt_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_fsid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_fsobj_id_t.h +38 -0
- package/sdk/ios/usr/include/sys/_types/_graftdmg_un.h +64 -0
- package/sdk/ios/usr/include/sys/_types/_guid_t.h +37 -0
- package/sdk/ios/usr/include/sys/_types/_id_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_ino64_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_key_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_mach_port_t.h +51 -0
- package/sdk/ios/usr/include/sys/_types/_mbstate_t.h +33 -0
- package/sdk/ios/usr/include/sys/_types/_mount_t.h +34 -0
- package/sdk/ios/usr/include/sys/_types/_nlink_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_os_inline.h +34 -0
- package/sdk/ios/usr/include/sys/_types/_posix_vdisable.h +30 -0
- package/sdk/ios/usr/include/sys/_types/_rsize_t.h +55 -0
- package/sdk/ios/usr/include/sys/_types/_suseconds_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_timeval.h +39 -0
- package/sdk/ios/usr/include/sys/_types/_u_char.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_int.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_u_short.h +31 -0
- package/sdk/ios/usr/include/sys/_types/_useconds_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_uuid_t.h +32 -0
- package/sdk/ios/usr/include/sys/_types/_vnode_t.h +34 -0
- package/sdk/ios/usr/include/sys/acl.h +215 -0
- package/sdk/ios/usr/include/sys/attr.h +635 -0
- package/sdk/ios/usr/include/sys/cdefs.h +15 -0
- package/sdk/ios/usr/include/sys/event.h +388 -0
- package/sdk/ios/usr/include/sys/kauth.h +409 -0
- package/sdk/ios/usr/include/sys/mount.h +470 -0
- package/sdk/ios/usr/include/sys/queue.h +909 -0
- package/sdk/ios/usr/include/sys/resource.h +600 -0
- package/sdk/ios/usr/include/sys/select.h +134 -0
- package/sdk/ios/usr/include/sys/spawn.h +84 -0
- package/sdk/ios/usr/include/sys/sysctl.h +803 -57
- package/sdk/ios/usr/include/sys/syslimits.h +131 -11
- package/sdk/ios/usr/include/sys/types.h +236 -19
- package/sdk/ios/usr/include/sys/ucred.h +116 -0
- package/sdk/ios/usr/include/sys/un.h +105 -0
- package/sdk/ios/usr/include/sys/unistd.h +225 -0
- package/sdk/ios/usr/include/sys/vm.h +89 -0
- package/sdk/ios/usr/include/sys/wait.h +256 -0
- package/sdk/ios/usr/include/sysdir.h +79 -0
- package/sdk/ios/usr/include/unistd.h +799 -3
- package/sdk/ios/usr/include/uuid/uuid.h +69 -10
- package/sdk/ios/usr/include/wchar.h +71 -0
- package/sdk/ios/usr/include/wctype.h +35 -0
- package/sdk/ios/usr/include/xlocale/___wctype.h +146 -0
- package/sdk/ios/usr/include/xlocale/_ctype.h +240 -0
- package/sdk/ios/usr/include/xlocale/_stdlib.h +77 -0
- package/sdk/ios/usr/include/xlocale/_string.h +43 -0
- package/sdk/ios/usr/include/xlocale/_wchar.h +160 -0
- package/sdk/ios/usr/include/xlocale/_wctype.h +100 -0
- package/sdk/ios/usr/include/xlocale.h +61 -0
- package/sdk/ios/usr/include/xpc/availability.h +141 -0
- package/sdk/ios/usr/include/xpc/base.h +243 -0
- package/sdk/ios/wasm/include/AvailabilityInternal.h +24 -0
- package/sdk/ios/wasm/include/TargetConditionals.h +529 -0
- package/sdk/ios/wasm/include/_locale.h +3 -0
- package/sdk/ios/wasm/include/_locale_posix2008.h +3 -0
- package/sdk/ios/wasm/include/_types/_locale_t.h +3 -0
- package/sdk/ios/wasm/include/arpa/inet.h +15 -0
- package/sdk/ios/wasm/include/dirent.h +52 -0
- package/sdk/ios/wasm/include/dlfcn.h +13 -1
- package/sdk/ios/wasm/include/errno.h +22 -0
- package/sdk/ios/wasm/include/fcntl.h +29 -0
- package/sdk/ios/wasm/include/ftw.h +15 -0
- package/sdk/ios/wasm/include/libkern/_OSByteOrder.h +6 -0
- package/sdk/ios/wasm/include/limits.h +9 -0
- package/sdk/ios/wasm/include/mach/machine/boolean.h +1 -1
- package/sdk/ios/wasm/include/mach/machine/exception.h +1 -4
- package/sdk/ios/wasm/include/mach/machine/kern_return.h +1 -1
- package/sdk/ios/wasm/include/mach/machine/processor_info.h +1 -1
- package/sdk/ios/wasm/include/mach/machine/rpc.h +1 -1
- package/sdk/ios/wasm/include/mach/machine/thread_state.h +1 -2
- package/sdk/ios/wasm/include/mach/machine/thread_status.h +1 -2
- package/sdk/ios/wasm/include/mach/machine/vm_param.h +1 -2
- package/sdk/ios/wasm/include/mach/machine/vm_types.h +1 -17
- package/sdk/ios/wasm/include/machine/_endian.h +2 -0
- package/sdk/ios/wasm/include/machine/_param.h +2 -0
- package/sdk/ios/wasm/include/machine/endian.h +1 -1
- package/sdk/ios/wasm/include/machine/limits.h +106 -2
- package/sdk/ios/wasm/include/machine/param.h +152 -0
- package/sdk/ios/wasm/include/netinet/in.h +11 -0
- package/sdk/ios/wasm/include/os/object.h +10 -0
- package/sdk/ios/wasm/include/pthread.h +14 -0
- package/sdk/ios/wasm/include/stdio.h +12 -0
- package/sdk/ios/wasm/include/stdlib.h +13 -0
- package/sdk/ios/wasm/include/strings.h +9 -0
- package/sdk/ios/wasm/include/sys/_types/_iovec_t.h +6 -0
- package/sdk/ios/wasm/include/sys/_types/_mode_t.h +10 -0
- package/sdk/ios/wasm/include/sys/mman.h +2 -2
- package/sdk/ios/wasm/include/sys/param.h +4 -0
- package/sdk/ios/wasm/include/sys/resource.h +43 -0
- package/sdk/ios/wasm/include/sys/socket.h +75 -9
- package/sdk/ios/wasm/include/sys/stat.h +63 -0
- package/sdk/ios/wasm/include/sys/types.h +13 -0
- package/sdk/ios/wasm/include/sys/un.h +7 -0
- package/sdk/ios/wasm/include/time.h +3 -1
- package/sdk/ios/wasm/include/unistd.h +16 -3
- package/sdk/ios/wasm/include/xlocale/_stdlib.h +37 -0
- package/sdk/ios/wasm/storage-include/TargetConditionals.h +529 -0
- package/sdk/ios/wasm/storage-include/mach/machine/boolean.h +2 -0
- package/sdk/ios/wasm/storage-include/mach/machine/exception.h +5 -0
- package/sdk/ios/wasm/storage-include/mach/machine/kern_return.h +2 -0
- package/sdk/ios/wasm/storage-include/mach/machine/processor_info.h +2 -0
- package/sdk/ios/wasm/storage-include/mach/machine/rpc.h +2 -0
- package/sdk/ios/wasm/storage-include/mach/machine/thread_state.h +3 -0
- package/sdk/ios/wasm/storage-include/mach/machine/thread_status.h +3 -0
- package/sdk/ios/wasm/storage-include/mach/machine/vm_param.h +3 -0
- package/sdk/ios/wasm/storage-include/mach/machine/vm_types.h +18 -0
- package/sdk/ios/wasm/storage-include/machine/_endian.h +9 -0
- package/sdk/ios/wasm/storage-include/machine/_param.h +8 -0
- package/sdk/ios/wasm/storage-include/machine/_types.h +31 -0
- package/sdk/ios/wasm/storage-include/machine/endian.h +2 -0
- package/sdk/ios/wasm/storage-include/machine/limits.h +2 -0
- package/sdk/ios/wasm/storage-include/machine/types.h +15 -0
- package/sdk/native-hashes.json +80 -0
- package/skills/contrast/SKILL.md +1 -1
- package/src/android-root-module.ts +145 -0
- package/src/androidRootModuleContract.ts +39 -0
- package/src/assetCatalogContract.ts +10 -1
- package/src/backend-origin.ts +11 -8
- package/src/bridge-constants.ts +7 -0
- package/src/bridge-contract.ts +3 -1
- package/src/capture-contract.ts +3 -1
- package/src/cli-runtime.ts +6 -1
- package/src/device-catalog.ts +10 -4
- package/src/expo-discovery-cache.ts +272 -0
- package/src/expo-native-workspace.ts +62 -31
- package/src/expo-swift-host.ts +679 -23
- package/src/expo-swift-ready.ts +43 -11
- package/src/generated/swift-c-predefines.json +1 -1
- package/src/host/bridge-host.ts +28 -0
- package/src/host/fetch-proxy-handler.ts +19 -1
- package/src/host/network-policy-proxy.ts +421 -0
- package/src/host/network-policy.ts +121 -0
- package/src/host/staged-host-files.ts +80 -3
- package/src/host/websocket-frame-guard.ts +163 -0
- package/src/host/websocket-proxy-headers.ts +29 -0
- package/src/host/websocket-proxy.ts +100 -58
- package/src/installed-native-build-options.ts +154 -0
- package/src/installed-package-versions.ts +56 -49
- package/src/material-symbol-fonts.ts +6 -4
- package/src/menu.ts +6 -0
- package/src/metro-plugin.ts +8 -0
- package/src/native-app-identity-project.ts +4 -0
- package/src/native-app-identity.ts +16 -0
- package/src/native-dev-bundle-url.ts +0 -18
- package/src/native-firebase-config.ts +47 -4
- package/src/native-preparation.ts +30 -0
- package/src/nativePreparationContract.ts +3 -0
- package/src/nitro-adapter.lock.json +384 -232
- package/src/nitro-bundle.ts +25 -1
- package/src/nitro-compile.ts +15 -2
- package/src/nitro-dependencies.ts +226 -0
- package/src/nitro-source.ts +187 -37
- package/src/packageVersionsContract.ts +33 -0
- package/src/react-native-bridge-modules.ts +24 -1
- package/src/react-native-host-modules.ts +111 -4
- package/src/runtime-assets.ts +10 -0
- package/src/sim-client.ts +1 -1
- package/src/storageSnapshotContract.ts +22 -10
- package/src/stub-pattern-matcher.ts +17 -4
- package/src/swift-compile.ts +1197 -4148
- package/src/swift-compiler-digest.ts +1 -2
- package/src/swift-coverage/package.ts +103 -58
- package/src/swift-coverage/xcode-assets.ts +22 -2
- package/src/swift-coverage/xcode-bridging.ts +1 -12
- package/src/swift-coverage/xcode-packages.ts +167 -52
- package/src/swift-coverage/xcode.ts +2 -6
- package/src/swift-cxx-declarations.ts +205 -0
- package/src/swift-cxx-deps.ts +48 -0
- package/src/swift-cxx-reachable.ts +297 -0
- package/src/swift-cxx-standin.ts +248 -0
- package/src/swift-distribution.lock.json +29 -20
- package/src/swift-host.ts +215 -21
- package/src/swift-objc-compile.ts +626 -234
- package/src/swift-objc-import.ts +19 -964
- package/src/swift-objc-runtime.ts +7 -0
- package/src/swift-objc-standin.ts +278 -58
- package/src/swift-package-manifest.ts +179 -38
- package/src/swift-package.ts +123 -3
- package/src/swift-packages.ts +193 -34
- package/src/swift-pdf-raster.ts +114 -0
- package/src/swift-shared-sdk.ts +45 -0
- package/src/swift-source-file.ts +10 -6
- package/src/swift-standin-digest.ts +12 -15
- package/src/swift-standin-emit.ts +8 -0
- package/src/swift-standins.ts +266 -73
- package/src/swift-submit.ts +24 -6
- package/src/swift-toolchain.ts +11 -9
- package/src/swiftContract.ts +50 -29
- package/src/vite-plugin.ts +0 -13
- package/src/workspace-root.ts +15 -0
- package/src/xcode-json-project.ts +52 -1
- package/src/xcode-project.ts +295 -25
- package/src/swift-objc-export.ts +0 -532
- package/src/swift-objc-metadata.ts +0 -534
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1716 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -42,7 +42,7 @@ var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
|
42
42
|
var runtime_companion_default;
|
|
43
43
|
var init_runtime_companion = __esm({
|
|
44
44
|
"runtime-companion.json"() {
|
|
45
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
45
|
+
runtime_companion_default = { abi: 1, sha256: "a0dede25c849ecabd639fbb0a0c4edd8e62a34bf12090932dba19832f2369659", file: "node/cli-a0dede25c849ecabd639fbb0a0c4edd8e62a34bf12090932dba19832f2369659.cjs" };
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
|
|
@@ -266,6 +266,11 @@ function serveRuntimeFile(req, res, fullPath) {
|
|
|
266
266
|
import_fs.default.createReadStream(fullPath).pipe(res);
|
|
267
267
|
return;
|
|
268
268
|
}
|
|
269
|
+
if (/[?&]sha256=[a-f0-9]{64}(?:&|$)/.test(req?.url ?? "")) {
|
|
270
|
+
res.setHeader("cache-control", "public, max-age=31536000, immutable");
|
|
271
|
+
import_fs.default.createReadStream(fullPath).pipe(res);
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
269
274
|
res.setHeader("cache-control", "no-cache");
|
|
270
275
|
res.setHeader("last-modified", lastModified);
|
|
271
276
|
if (req?.headers?.["if-modified-since"] === lastModified) {
|
|
@@ -377,7 +382,8 @@ function verifyCliCompanion(root) {
|
|
|
377
382
|
bytes = (0, import_node_fs2.readFileSync)(file);
|
|
378
383
|
} catch (error) {
|
|
379
384
|
if (error instanceof Error) {
|
|
380
|
-
error.
|
|
385
|
+
const missing2 = "code" in error && error.code === "ENOENT" ? "; this runtime has no companion for this CLI (it was published before this CLI, or the file was removed after unpacking), run `peach runtime install` for the latest runtime and check Windows Security protection history if it repeats" : "";
|
|
386
|
+
error.message = `Could not read Peach runtime companion ${file}: ${error.message}${missing2}`;
|
|
381
387
|
}
|
|
382
388
|
throw error;
|
|
383
389
|
}
|
|
@@ -536,7 +542,7 @@ var import_fs4 = __toESM(require("fs"), 1);
|
|
|
536
542
|
var import_node_crypto4 = require("node:crypto");
|
|
537
543
|
var import_node_http3 = __toESM(require("node:http"), 1);
|
|
538
544
|
var import_node_https2 = __toESM(require("node:https"), 1);
|
|
539
|
-
var
|
|
545
|
+
var import_node_url2 = require("node:url");
|
|
540
546
|
var import_path4 = __toESM(require("path"), 1);
|
|
541
547
|
var import_promises5 = require("stream/promises");
|
|
542
548
|
var import_ws = require("ws");
|
|
@@ -643,6 +649,7 @@ var import_promises3 = require("stream/promises");
|
|
|
643
649
|
|
|
644
650
|
// src/backend-origin.ts
|
|
645
651
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
652
|
+
var NativeURL = globalThis.URL;
|
|
646
653
|
function normalizeHostname(hostname) {
|
|
647
654
|
return hostname.replace(/^\[|\]$/g, "").toLowerCase();
|
|
648
655
|
}
|
|
@@ -654,7 +661,7 @@ function isTrustedBridgeRequest(headers) {
|
|
|
654
661
|
const origin = headers.origin;
|
|
655
662
|
if (origin === void 0) return true;
|
|
656
663
|
try {
|
|
657
|
-
const { hostname, host } = new
|
|
664
|
+
const { hostname, host } = new NativeURL(String(origin));
|
|
658
665
|
return isLoopbackHost(hostname) || [headers.host, headers[":authority"], headers["x-forwarded-host"]].some(
|
|
659
666
|
(value) => typeof value === "string" && value.toLowerCase() === host
|
|
660
667
|
);
|
|
@@ -664,7 +671,7 @@ function isTrustedBridgeRequest(headers) {
|
|
|
664
671
|
}
|
|
665
672
|
function loopbackOriginOf(value) {
|
|
666
673
|
try {
|
|
667
|
-
const url = new
|
|
674
|
+
const url = new NativeURL(value);
|
|
668
675
|
return isLoopbackHost(url.hostname) ? url.origin : null;
|
|
669
676
|
} catch {
|
|
670
677
|
return null;
|
|
@@ -723,6 +730,7 @@ ${prefix}${json}${suffix}`;
|
|
|
723
730
|
}
|
|
724
731
|
|
|
725
732
|
// src/packageVersionsContract.ts
|
|
733
|
+
var NATIVE_BUILD_OPTIONS_KEY = "@peach/native-build-options";
|
|
726
734
|
var PACKAGE_VERSIONS_HEADER = "X-Peach-Package-Versions";
|
|
727
735
|
var FOOTER = "__peachPackageVersions";
|
|
728
736
|
function readPackageVersions(value) {
|
|
@@ -856,7 +864,6 @@ var LAZY_STUB_PATTERNS = [
|
|
|
856
864
|
"react-native-advanced-input-mask",
|
|
857
865
|
"react-native-agora",
|
|
858
866
|
"react-native-android-location-enabler",
|
|
859
|
-
"react-native-android-widget",
|
|
860
867
|
"react-native-animateable-text",
|
|
861
868
|
"react-native-app-clip",
|
|
862
869
|
"react-native-appsflyer",
|
|
@@ -996,7 +1003,6 @@ var LIGHT_NATIVE_PACKAGE_NAMES = [
|
|
|
996
1003
|
"@allboatsrise/expo-marketingcloudsdk",
|
|
997
1004
|
"@ammarahmed/react-native-eventsource",
|
|
998
1005
|
"@ammarahmed/react-native-share-extension",
|
|
999
|
-
"@ammarahmed/react-native-sodium",
|
|
1000
1006
|
"@ammarahmed/react-native-upload",
|
|
1001
1007
|
"@amplitude/analytics-react-native",
|
|
1002
1008
|
"@amplitude/experiment-react-native-client",
|
|
@@ -1352,7 +1358,6 @@ var LIGHT_NATIVE_PACKAGE_NAMES = [
|
|
|
1352
1358
|
"expo-ai-kit",
|
|
1353
1359
|
"expo-app-blocker",
|
|
1354
1360
|
"expo-audio-stream-pcm",
|
|
1355
|
-
"expo-barcode-scanner",
|
|
1356
1361
|
"expo-brownfield",
|
|
1357
1362
|
"expo-check-installed-apps",
|
|
1358
1363
|
"expo-esim",
|
|
@@ -1567,6 +1572,7 @@ var LIGHT_NATIVE_PACKAGE_NAMES = [
|
|
|
1567
1572
|
"react-native-kochava-tracker",
|
|
1568
1573
|
"react-native-launch-navigator",
|
|
1569
1574
|
"react-native-layout-guides",
|
|
1575
|
+
"react-native-live-audio-stream",
|
|
1570
1576
|
"react-native-local-resource",
|
|
1571
1577
|
"react-native-marigold",
|
|
1572
1578
|
"react-native-marketingcloudsdk",
|
|
@@ -2739,6 +2745,7 @@ var NATIVE_RUNTIME_PACKAGE_NAMES = [
|
|
|
2739
2745
|
...NATIVE_STUB_PACKAGE_NAMES,
|
|
2740
2746
|
...LIGHT_NATIVE_PACKAGE_NAMES,
|
|
2741
2747
|
"@ammarahmed/react-native-background-fetch",
|
|
2748
|
+
"@ammarahmed/react-native-sodium",
|
|
2742
2749
|
"@bsky.app/react-native-uitextview",
|
|
2743
2750
|
"@bsky.app/video",
|
|
2744
2751
|
"@datadog/mobile-react-native-webview",
|
|
@@ -3612,6 +3619,330 @@ var COMPAT_STUBS = {
|
|
|
3612
3619
|
}
|
|
3613
3620
|
};
|
|
3614
3621
|
|
|
3622
|
+
// src/installed-native-build-options.ts
|
|
3623
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3624
|
+
var import_node_fs4 = __toESM(require("node:fs"), 1);
|
|
3625
|
+
var import_node_path4 = __toESM(require("node:path"), 1);
|
|
3626
|
+
|
|
3627
|
+
// ../peach-compat/src/version-range.ts
|
|
3628
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3629
|
+
var ANY_BOUNDS = {
|
|
3630
|
+
lower: null,
|
|
3631
|
+
lowerInclusive: false,
|
|
3632
|
+
upper: null,
|
|
3633
|
+
upperInclusive: false
|
|
3634
|
+
};
|
|
3635
|
+
var COMPARATOR = /\s*(?:[<>]=?|[=^~])?\s*[^\s]+/g;
|
|
3636
|
+
function compareVersions(left, right) {
|
|
3637
|
+
if (left.major !== right.major) return left.major < right.major ? -1 : 1;
|
|
3638
|
+
if (left.minor !== right.minor) return left.minor < right.minor ? -1 : 1;
|
|
3639
|
+
if (left.patch !== right.patch) return left.patch < right.patch ? -1 : 1;
|
|
3640
|
+
if (left.prerelease.length === 0) return right.prerelease.length === 0 ? 0 : 1;
|
|
3641
|
+
if (right.prerelease.length === 0) return -1;
|
|
3642
|
+
const length = Math.max(left.prerelease.length, right.prerelease.length);
|
|
3643
|
+
for (let index = 0; index < length; index++) {
|
|
3644
|
+
const leftPart = left.prerelease[index];
|
|
3645
|
+
const rightPart = right.prerelease[index];
|
|
3646
|
+
if (leftPart === void 0) return -1;
|
|
3647
|
+
if (rightPart === void 0) return 1;
|
|
3648
|
+
if (leftPart === rightPart) continue;
|
|
3649
|
+
const leftNumeric = /^\d+$/.test(leftPart);
|
|
3650
|
+
const rightNumeric = /^\d+$/.test(rightPart);
|
|
3651
|
+
if (leftNumeric && rightNumeric) return Number(leftPart) < Number(rightPart) ? -1 : 1;
|
|
3652
|
+
if (leftNumeric !== rightNumeric) return leftNumeric ? -1 : 1;
|
|
3653
|
+
return leftPart < rightPart ? -1 : 1;
|
|
3654
|
+
}
|
|
3655
|
+
return 0;
|
|
3656
|
+
}
|
|
3657
|
+
function parseComparator(input) {
|
|
3658
|
+
const token = input.trim();
|
|
3659
|
+
if (token === "" || token === "*" || token === "x" || token === "X") {
|
|
3660
|
+
return ANY_BOUNDS;
|
|
3661
|
+
}
|
|
3662
|
+
const match = /^(>=|<=|>|<|=|\^|~)?\s*v?(\d+|[xX*])(?:\.(\d+|[xX*]))?(?:\.(\d+|[xX*]))?(?:-([0-9A-Za-z.-]+))?(?:\+[0-9A-Za-z.-]+)?$/.exec(
|
|
3663
|
+
token
|
|
3664
|
+
);
|
|
3665
|
+
if (!match) return null;
|
|
3666
|
+
const operator = match[1] ?? "=";
|
|
3667
|
+
const wildcard = (part) => part === void 0 || part === "x" || part === "X" || part === "*";
|
|
3668
|
+
if (wildcard(match[2])) return ANY_BOUNDS;
|
|
3669
|
+
const major = Number(match[2]);
|
|
3670
|
+
const minor = wildcard(match[3]) ? null : Number(match[3]);
|
|
3671
|
+
const patch = wildcard(match[4]) ? null : Number(match[4]);
|
|
3672
|
+
const floor = {
|
|
3673
|
+
major,
|
|
3674
|
+
minor: minor ?? 0,
|
|
3675
|
+
patch: patch ?? 0,
|
|
3676
|
+
prerelease: match[5] ? match[5].split(".") : []
|
|
3677
|
+
};
|
|
3678
|
+
if (operator === ">") {
|
|
3679
|
+
return { ...ANY_BOUNDS, lower: floor, lowerInclusive: false };
|
|
3680
|
+
}
|
|
3681
|
+
if (operator === ">=") {
|
|
3682
|
+
return { ...ANY_BOUNDS, lower: floor, lowerInclusive: true };
|
|
3683
|
+
}
|
|
3684
|
+
if (operator === "<") {
|
|
3685
|
+
return { ...ANY_BOUNDS, upper: floor, upperInclusive: false };
|
|
3686
|
+
}
|
|
3687
|
+
if (operator === "<=") {
|
|
3688
|
+
return { ...ANY_BOUNDS, upper: floor, upperInclusive: true };
|
|
3689
|
+
}
|
|
3690
|
+
let upper;
|
|
3691
|
+
if (operator === "^") {
|
|
3692
|
+
upper = major !== 0 ? { major: major + 1, minor: 0, patch: 0, prerelease: [] } : (minor ?? 0) !== 0 || minor === null ? { major: 0, minor: (minor ?? 0) + 1, patch: 0, prerelease: [] } : { major: 0, minor: 0, patch: (patch ?? 0) + 1, prerelease: [] };
|
|
3693
|
+
} else if (operator === "~") {
|
|
3694
|
+
upper = minor === null ? { major: major + 1, minor: 0, patch: 0, prerelease: [] } : { major, minor: minor + 1, patch: 0, prerelease: [] };
|
|
3695
|
+
} else if (minor === null) {
|
|
3696
|
+
upper = { major: major + 1, minor: 0, patch: 0, prerelease: [] };
|
|
3697
|
+
} else if (patch === null) {
|
|
3698
|
+
upper = { major, minor: minor + 1, patch: 0, prerelease: [] };
|
|
3699
|
+
} else {
|
|
3700
|
+
return {
|
|
3701
|
+
lower: floor,
|
|
3702
|
+
lowerInclusive: true,
|
|
3703
|
+
upper: floor,
|
|
3704
|
+
upperInclusive: true
|
|
3705
|
+
};
|
|
3706
|
+
}
|
|
3707
|
+
return {
|
|
3708
|
+
lower: floor,
|
|
3709
|
+
lowerInclusive: true,
|
|
3710
|
+
upper,
|
|
3711
|
+
upperInclusive: false
|
|
3712
|
+
};
|
|
3713
|
+
}
|
|
3714
|
+
function stricterLower(left, right) {
|
|
3715
|
+
if (!left.lower) return { lower: right.lower, lowerInclusive: right.lowerInclusive };
|
|
3716
|
+
if (!right.lower) return { lower: left.lower, lowerInclusive: left.lowerInclusive };
|
|
3717
|
+
const order = compareVersions(left.lower, right.lower);
|
|
3718
|
+
if (order > 0) return { lower: left.lower, lowerInclusive: left.lowerInclusive };
|
|
3719
|
+
if (order < 0) return { lower: right.lower, lowerInclusive: right.lowerInclusive };
|
|
3720
|
+
return {
|
|
3721
|
+
lower: left.lower,
|
|
3722
|
+
lowerInclusive: left.lowerInclusive && right.lowerInclusive
|
|
3723
|
+
};
|
|
3724
|
+
}
|
|
3725
|
+
function stricterUpper(left, right) {
|
|
3726
|
+
if (!left.upper) return { upper: right.upper, upperInclusive: right.upperInclusive };
|
|
3727
|
+
if (!right.upper) return { upper: left.upper, upperInclusive: left.upperInclusive };
|
|
3728
|
+
const order = compareVersions(left.upper, right.upper);
|
|
3729
|
+
if (order < 0) return { upper: left.upper, upperInclusive: left.upperInclusive };
|
|
3730
|
+
if (order > 0) return { upper: right.upper, upperInclusive: right.upperInclusive };
|
|
3731
|
+
return {
|
|
3732
|
+
upper: left.upper,
|
|
3733
|
+
upperInclusive: left.upperInclusive && right.upperInclusive
|
|
3734
|
+
};
|
|
3735
|
+
}
|
|
3736
|
+
function hasValues(bounds) {
|
|
3737
|
+
if (!bounds.lower || !bounds.upper) return true;
|
|
3738
|
+
const order = compareVersions(bounds.lower, bounds.upper);
|
|
3739
|
+
return order < 0 || order === 0 && bounds.lowerInclusive && bounds.upperInclusive;
|
|
3740
|
+
}
|
|
3741
|
+
function parseRange(input) {
|
|
3742
|
+
const groups = input.split("||");
|
|
3743
|
+
const parsed = [];
|
|
3744
|
+
for (const group of groups) {
|
|
3745
|
+
const tokens = group.trim().match(COMPARATOR) ?? [];
|
|
3746
|
+
if (tokens.length === 0) return null;
|
|
3747
|
+
let bounds = ANY_BOUNDS;
|
|
3748
|
+
for (const token of tokens) {
|
|
3749
|
+
const comparator = parseComparator(token);
|
|
3750
|
+
if (!comparator) return null;
|
|
3751
|
+
bounds = {
|
|
3752
|
+
...stricterLower(bounds, comparator),
|
|
3753
|
+
...stricterUpper(bounds, comparator)
|
|
3754
|
+
};
|
|
3755
|
+
}
|
|
3756
|
+
if (!hasValues(bounds)) return null;
|
|
3757
|
+
parsed.push(bounds);
|
|
3758
|
+
}
|
|
3759
|
+
return parsed;
|
|
3760
|
+
}
|
|
3761
|
+
function containsBounds(container, contained) {
|
|
3762
|
+
if (container.lower) {
|
|
3763
|
+
if (!contained.lower) return false;
|
|
3764
|
+
const order = compareVersions(container.lower, contained.lower);
|
|
3765
|
+
if (order > 0) return false;
|
|
3766
|
+
if (order === 0 && contained.lowerInclusive && !container.lowerInclusive) return false;
|
|
3767
|
+
}
|
|
3768
|
+
if (container.upper) {
|
|
3769
|
+
if (!contained.upper) return false;
|
|
3770
|
+
const order = compareVersions(container.upper, contained.upper);
|
|
3771
|
+
if (order < 0) return false;
|
|
3772
|
+
if (order === 0 && contained.upperInclusive && !container.upperInclusive) return false;
|
|
3773
|
+
}
|
|
3774
|
+
return true;
|
|
3775
|
+
}
|
|
3776
|
+
function overlapsBounds(left, right) {
|
|
3777
|
+
const intersection = {
|
|
3778
|
+
...stricterLower(left, right),
|
|
3779
|
+
...stricterUpper(left, right)
|
|
3780
|
+
};
|
|
3781
|
+
return hasValues(intersection);
|
|
3782
|
+
}
|
|
3783
|
+
function resolveCompatVersionRange(availableRegistryRanges, declaredVersion) {
|
|
3784
|
+
const declaredGroups = parseRange(declaredVersion);
|
|
3785
|
+
const registryGroups = availableRegistryRanges.map((range) => ({
|
|
3786
|
+
range,
|
|
3787
|
+
bounds: parseRange(range)
|
|
3788
|
+
}));
|
|
3789
|
+
if (!declaredGroups || registryGroups.some((candidate) => !candidate.bounds)) {
|
|
3790
|
+
return {
|
|
3791
|
+
status: "unresolved",
|
|
3792
|
+
declaredVersion,
|
|
3793
|
+
availableRegistryRanges
|
|
3794
|
+
};
|
|
3795
|
+
}
|
|
3796
|
+
let selectedRange = null;
|
|
3797
|
+
for (const declared of declaredGroups) {
|
|
3798
|
+
const containing = registryGroups.filter(
|
|
3799
|
+
(candidate2) => candidate2.bounds?.length === 1 && containsBounds(candidate2.bounds[0], declared)
|
|
3800
|
+
);
|
|
3801
|
+
if (containing.length !== 1) {
|
|
3802
|
+
const overlaps = registryGroups.some(
|
|
3803
|
+
(candidate2) => candidate2.bounds?.some((bounds) => overlapsBounds(bounds, declared))
|
|
3804
|
+
);
|
|
3805
|
+
return {
|
|
3806
|
+
status: overlaps ? "unresolved" : "unmatched",
|
|
3807
|
+
declaredVersion,
|
|
3808
|
+
availableRegistryRanges
|
|
3809
|
+
};
|
|
3810
|
+
}
|
|
3811
|
+
const candidate = containing[0].range;
|
|
3812
|
+
if (selectedRange && selectedRange !== candidate) {
|
|
3813
|
+
return {
|
|
3814
|
+
status: "unresolved",
|
|
3815
|
+
declaredVersion,
|
|
3816
|
+
availableRegistryRanges
|
|
3817
|
+
};
|
|
3818
|
+
}
|
|
3819
|
+
selectedRange = candidate;
|
|
3820
|
+
}
|
|
3821
|
+
if (!selectedRange) {
|
|
3822
|
+
return {
|
|
3823
|
+
status: "unresolved",
|
|
3824
|
+
declaredVersion,
|
|
3825
|
+
availableRegistryRanges
|
|
3826
|
+
};
|
|
3827
|
+
}
|
|
3828
|
+
return {
|
|
3829
|
+
status: "matched",
|
|
3830
|
+
declaredVersion,
|
|
3831
|
+
registryRange: selectedRange,
|
|
3832
|
+
availableRegistryRanges
|
|
3833
|
+
};
|
|
3834
|
+
}
|
|
3835
|
+
|
|
3836
|
+
// src/installed-native-build-options.ts
|
|
3837
|
+
var RIVE_PACKAGE = "@rive-app/react-native";
|
|
3838
|
+
var RIVE_05 = [">=0.5.0 <0.6.0"];
|
|
3839
|
+
function missing(error) {
|
|
3840
|
+
return error instanceof Error && "code" in error && error.code === "ENOENT";
|
|
3841
|
+
}
|
|
3842
|
+
function answerSync(step) {
|
|
3843
|
+
try {
|
|
3844
|
+
if (step.type === "realpath") return import_node_fs4.default.realpathSync(step.path);
|
|
3845
|
+
if (step.type === "read") return import_node_fs4.default.readFileSync(step.path, "utf8");
|
|
3846
|
+
if (step.type === "isDirectory") return import_node_fs4.default.statSync(step.path).isDirectory();
|
|
3847
|
+
return import_node_fs4.default.readdirSync(step.path, { withFileTypes: true }).map((entry) => ({
|
|
3848
|
+
name: entry.name,
|
|
3849
|
+
directory: entry.isDirectory(),
|
|
3850
|
+
symbolicLink: entry.isSymbolicLink()
|
|
3851
|
+
}));
|
|
3852
|
+
} catch (error) {
|
|
3853
|
+
if (missing(error)) return null;
|
|
3854
|
+
throw error;
|
|
3855
|
+
}
|
|
3856
|
+
}
|
|
3857
|
+
async function answerAsync(step) {
|
|
3858
|
+
try {
|
|
3859
|
+
if (step.type === "realpath") return await import_node_fs4.default.promises.realpath(step.path);
|
|
3860
|
+
if (step.type === "read") return await import_node_fs4.default.promises.readFile(step.path, "utf8");
|
|
3861
|
+
if (step.type === "isDirectory")
|
|
3862
|
+
return (await import_node_fs4.default.promises.stat(step.path)).isDirectory();
|
|
3863
|
+
return (await import_node_fs4.default.promises.readdir(step.path, { withFileTypes: true })).map(
|
|
3864
|
+
(entry) => ({
|
|
3865
|
+
name: entry.name,
|
|
3866
|
+
directory: entry.isDirectory(),
|
|
3867
|
+
symbolicLink: entry.isSymbolicLink()
|
|
3868
|
+
})
|
|
3869
|
+
);
|
|
3870
|
+
} catch (error) {
|
|
3871
|
+
if (missing(error)) return null;
|
|
3872
|
+
throw error;
|
|
3873
|
+
}
|
|
3874
|
+
}
|
|
3875
|
+
function needsRiveOptions(versions) {
|
|
3876
|
+
const version = versions[RIVE_PACKAGE];
|
|
3877
|
+
return version !== void 0 && resolveCompatVersionRange(RIVE_05, version).status === "matched";
|
|
3878
|
+
}
|
|
3879
|
+
function unsupported(file, line) {
|
|
3880
|
+
throw new Error(
|
|
3881
|
+
`${file}:${line}: unsupported $UseRiveLegacy; use one column-0 literal assignment in ios/Podfile`
|
|
3882
|
+
);
|
|
3883
|
+
}
|
|
3884
|
+
function* rubyFiles(directory, seen, iosRoot = false) {
|
|
3885
|
+
const real = yield { type: "realpath", path: directory };
|
|
3886
|
+
if (real === null) return [];
|
|
3887
|
+
if (typeof real !== "string") throw new Error(`cannot inspect ${directory}`);
|
|
3888
|
+
if (seen.has(real)) return [];
|
|
3889
|
+
seen.add(real);
|
|
3890
|
+
const entries = yield { type: "directory", path: directory };
|
|
3891
|
+
if (entries === null) return [];
|
|
3892
|
+
if (!Array.isArray(entries)) throw new Error(`cannot inspect ${directory}`);
|
|
3893
|
+
const files = [];
|
|
3894
|
+
for (const entry of entries.sort((a, b) => a.name.localeCompare(b.name))) {
|
|
3895
|
+
if (iosRoot && (entry.name === "Pods" || entry.name === "build")) continue;
|
|
3896
|
+
const target = import_node_path4.default.join(directory, entry.name);
|
|
3897
|
+
let isDirectory = entry.directory;
|
|
3898
|
+
if (entry.symbolicLink)
|
|
3899
|
+
isDirectory = (yield { type: "isDirectory", path: target }) === true;
|
|
3900
|
+
if (isDirectory) files.push(...yield* rubyFiles(target, seen));
|
|
3901
|
+
else if (entry.name.endsWith(".rb")) files.push(target);
|
|
3902
|
+
}
|
|
3903
|
+
return files;
|
|
3904
|
+
}
|
|
3905
|
+
function* nativeBuildOptionsWalk(projectRoot, versions, environment) {
|
|
3906
|
+
if (!needsRiveOptions(versions)) return {};
|
|
3907
|
+
if (environment.USE_RIVE_LEGACY === "1" || environment.USE_RIVE_LEGACY === "true")
|
|
3908
|
+
return { [RIVE_PACKAGE]: { USE_RIVE_LEGACY: true } };
|
|
3909
|
+
const ios = import_node_path4.default.join(projectRoot, "ios");
|
|
3910
|
+
const podfile = import_node_path4.default.join(ios, "Podfile");
|
|
3911
|
+
const files = [podfile, ...yield* rubyFiles(ios, /* @__PURE__ */ new Set(), true)];
|
|
3912
|
+
let value = false;
|
|
3913
|
+
let assigned = false;
|
|
3914
|
+
for (const file of files) {
|
|
3915
|
+
const source = yield { type: "read", path: file };
|
|
3916
|
+
if (source === null) continue;
|
|
3917
|
+
if (typeof source !== "string") throw new Error(`cannot inspect ${file}`);
|
|
3918
|
+
const lines = source.split(/\r?\n/);
|
|
3919
|
+
for (const [index, line] of lines.entries()) {
|
|
3920
|
+
const occurrences = [...line.matchAll(/\$UseRiveLegacy\b/g)];
|
|
3921
|
+
if (!occurrences.length) continue;
|
|
3922
|
+
const literal = /^\$UseRiveLegacy = (true|false)\s*(?:#.*)?$/.exec(line);
|
|
3923
|
+
if (file !== podfile || occurrences.length !== 1 || !literal || assigned)
|
|
3924
|
+
unsupported(file, index + 1);
|
|
3925
|
+
assigned = true;
|
|
3926
|
+
value = literal[1] === "true";
|
|
3927
|
+
}
|
|
3928
|
+
}
|
|
3929
|
+
return { [RIVE_PACKAGE]: { USE_RIVE_LEGACY: value } };
|
|
3930
|
+
}
|
|
3931
|
+
function readInstalledNativeBuildOptions(projectRoot, versions, environment = process.env) {
|
|
3932
|
+
const walk = nativeBuildOptionsWalk(projectRoot, versions, environment);
|
|
3933
|
+
for (let step = walk.next(); ; ) {
|
|
3934
|
+
if (step.done) return step.value;
|
|
3935
|
+
step = walk.next(answerSync(step.value));
|
|
3936
|
+
}
|
|
3937
|
+
}
|
|
3938
|
+
async function readInstalledNativeBuildOptionsAsync(projectRoot, versions, environment = process.env) {
|
|
3939
|
+
const walk = nativeBuildOptionsWalk(projectRoot, versions, environment);
|
|
3940
|
+
for (let step = walk.next(); ; ) {
|
|
3941
|
+
if (step.done) return step.value;
|
|
3942
|
+
step = walk.next(await answerAsync(step.value));
|
|
3943
|
+
}
|
|
3944
|
+
}
|
|
3945
|
+
|
|
3615
3946
|
// src/stub-pattern-matcher.ts
|
|
3616
3947
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3617
3948
|
function extractPackageFromPath(modulePath) {
|
|
@@ -3654,7 +3985,7 @@ function parseManifest(source) {
|
|
|
3654
3985
|
function isMissing(error) {
|
|
3655
3986
|
return error instanceof Error && "code" in error && error.code === "ENOENT";
|
|
3656
3987
|
}
|
|
3657
|
-
function
|
|
3988
|
+
function answerSync2(step) {
|
|
3658
3989
|
if (step.op === "exists") return import_fs2.default.existsSync(step.path);
|
|
3659
3990
|
if (step.op === "realpath") return import_fs2.default.realpathSync(step.path);
|
|
3660
3991
|
try {
|
|
@@ -3664,7 +3995,7 @@ function answerSync(step) {
|
|
|
3664
3995
|
throw error;
|
|
3665
3996
|
}
|
|
3666
3997
|
}
|
|
3667
|
-
async function
|
|
3998
|
+
async function answerAsync2(step) {
|
|
3668
3999
|
if (step.op === "exists")
|
|
3669
4000
|
return import_fs2.default.promises.access(step.path).then(
|
|
3670
4001
|
() => true,
|
|
@@ -3681,13 +4012,15 @@ async function answerAsync(step) {
|
|
|
3681
4012
|
function runSync(walk) {
|
|
3682
4013
|
for (let step = walk.next(); ; ) {
|
|
3683
4014
|
if (step.done) return step.value;
|
|
3684
|
-
step = walk.next(
|
|
4015
|
+
step = walk.next(answerSync2(step.value));
|
|
3685
4016
|
}
|
|
3686
4017
|
}
|
|
3687
|
-
async function runAsync(walk) {
|
|
4018
|
+
async function runAsync(walk, inputs) {
|
|
3688
4019
|
for (let step = walk.next(); ; ) {
|
|
3689
4020
|
if (step.done) return step.value;
|
|
3690
|
-
|
|
4021
|
+
const target = step.value.path;
|
|
4022
|
+
if (!inputs.has(target)) inputs.set(target, await installFingerprint(target));
|
|
4023
|
+
step = walk.next(await answerAsync2(step.value));
|
|
3691
4024
|
}
|
|
3692
4025
|
}
|
|
3693
4026
|
function createInstalledPackageReader() {
|
|
@@ -3742,6 +4075,7 @@ function* nativePackageVersionsWalk(projectRoot) {
|
|
|
3742
4075
|
const appRoot = yield* realpath(projectRoot);
|
|
3743
4076
|
const nativeNames = /* @__PURE__ */ new Set();
|
|
3744
4077
|
for (const specifier of [
|
|
4078
|
+
"react",
|
|
3745
4079
|
"react-native",
|
|
3746
4080
|
...NATIVE_RUNTIME_PACKAGE_NAMES,
|
|
3747
4081
|
...LAZY_STUB_PATTERNS,
|
|
@@ -3782,51 +4116,47 @@ function* nativePackageVersionsWalk(projectRoot) {
|
|
|
3782
4116
|
return yield* installedVersionsWalk(projectRoot, needed);
|
|
3783
4117
|
}
|
|
3784
4118
|
function readInstalledNativePackageVersions(projectRoot) {
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
"node_modules/.package-lock.json",
|
|
3796
|
-
"node_modules/.yarn-integrity",
|
|
3797
|
-
"node_modules/.modules.yaml"
|
|
3798
|
-
];
|
|
3799
|
-
async function installFingerprint(projectRoot) {
|
|
3800
|
-
const appRoot = await import_fs2.default.promises.realpath(projectRoot);
|
|
3801
|
-
const targets = [];
|
|
3802
|
-
for (let dir = appRoot; ; ) {
|
|
3803
|
-
if (import_path2.default.basename(dir) !== "node_modules")
|
|
3804
|
-
for (const file of INSTALL_RECORD_FILES) targets.push(import_path2.default.join(dir, file));
|
|
3805
|
-
const parent = import_path2.default.dirname(dir);
|
|
3806
|
-
if (parent === dir) break;
|
|
3807
|
-
dir = parent;
|
|
3808
|
-
}
|
|
3809
|
-
const stats = await Promise.all(
|
|
3810
|
-
targets.map(
|
|
3811
|
-
(target) => import_fs2.default.promises.stat(target).then(
|
|
3812
|
-
(stat) => `${stat.ino}:${stat.size}:${stat.mtimeMs}`,
|
|
3813
|
-
() => ""
|
|
3814
|
-
)
|
|
3815
|
-
)
|
|
4119
|
+
const versions = runSync(nativePackageVersionsWalk(projectRoot));
|
|
4120
|
+
const options = readInstalledNativeBuildOptions(projectRoot, versions);
|
|
4121
|
+
if (Object.keys(options).length)
|
|
4122
|
+
versions[NATIVE_BUILD_OPTIONS_KEY] = JSON.stringify(options);
|
|
4123
|
+
return versions;
|
|
4124
|
+
}
|
|
4125
|
+
async function installFingerprint(target) {
|
|
4126
|
+
return import_fs2.default.promises.stat(target).then(
|
|
4127
|
+
(stat) => `${stat.dev}:${stat.ino}:${stat.size}:${stat.mtimeMs}:${stat.ctimeMs}`,
|
|
4128
|
+
() => ""
|
|
3816
4129
|
);
|
|
3817
|
-
return `${appRoot}
|
|
3818
|
-
${stats.join("\n")}`;
|
|
3819
4130
|
}
|
|
3820
4131
|
var scans = /* @__PURE__ */ new Map();
|
|
3821
4132
|
async function readInstalledNativePackageVersionsAsync(projectRoot) {
|
|
3822
|
-
const fingerprint = await installFingerprint(projectRoot);
|
|
3823
4133
|
const cached = scans.get(projectRoot);
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
4134
|
+
let scan;
|
|
4135
|
+
if (cached) {
|
|
4136
|
+
await cached.versions;
|
|
4137
|
+
const unchanged = await Promise.all(
|
|
4138
|
+
[...cached.inputs].map(
|
|
4139
|
+
async ([target, fingerprint]) => await installFingerprint(target) === fingerprint
|
|
4140
|
+
)
|
|
4141
|
+
);
|
|
4142
|
+
if (unchanged.every(Boolean)) scan = cached.versions;
|
|
4143
|
+
}
|
|
4144
|
+
if (!scan) {
|
|
4145
|
+
const current = scans.get(projectRoot);
|
|
4146
|
+
if (current && current !== cached) scan = current.versions;
|
|
4147
|
+
else {
|
|
4148
|
+
const inputs = /* @__PURE__ */ new Map();
|
|
4149
|
+
scan = runAsync(nativePackageVersionsWalk(projectRoot), inputs);
|
|
4150
|
+
scans.set(projectRoot, { inputs, versions: scan });
|
|
4151
|
+
scan.catch(() => {
|
|
4152
|
+
if (scans.get(projectRoot)?.versions === scan) scans.delete(projectRoot);
|
|
4153
|
+
});
|
|
4154
|
+
}
|
|
4155
|
+
}
|
|
4156
|
+
const versions = { ...await scan };
|
|
4157
|
+
const options = await readInstalledNativeBuildOptionsAsync(projectRoot, versions);
|
|
4158
|
+
if (Object.keys(options).length)
|
|
4159
|
+
versions[NATIVE_BUILD_OPTIONS_KEY] = JSON.stringify(options);
|
|
3830
4160
|
return versions;
|
|
3831
4161
|
}
|
|
3832
4162
|
|
|
@@ -3837,9 +4167,9 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
3837
4167
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3838
4168
|
var import_child_process = require("child_process");
|
|
3839
4169
|
var import_promises = require("fs/promises");
|
|
3840
|
-
var
|
|
4170
|
+
var import_node_fs5 = require("node:fs");
|
|
3841
4171
|
var import_node_os2 = require("node:os");
|
|
3842
|
-
var
|
|
4172
|
+
var import_node_path5 = require("node:path");
|
|
3843
4173
|
|
|
3844
4174
|
// src/config.ts
|
|
3845
4175
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -3991,8 +4321,8 @@ init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
|
3991
4321
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
3992
4322
|
|
|
3993
4323
|
// scripts/dev-server-scanner.ts
|
|
3994
|
-
var LISTENER_LOCK_PATH = (0,
|
|
3995
|
-
var LISTENER_RESULT_PATH = (0,
|
|
4324
|
+
var LISTENER_LOCK_PATH = (0, import_node_path5.join)((0, import_node_os2.tmpdir)(), "peach-listener-scan.lock");
|
|
4325
|
+
var LISTENER_RESULT_PATH = (0, import_node_path5.join)((0, import_node_os2.tmpdir)(), "peach-listener-scan.result");
|
|
3996
4326
|
var LISTENER_LOCK_STALE_MS = 25e3;
|
|
3997
4327
|
var LISTENER_LOCK_WAIT_MS = 8e3;
|
|
3998
4328
|
function sleep(ms) {
|
|
@@ -4010,8 +4340,8 @@ function pidIsAlive(pid) {
|
|
|
4010
4340
|
}
|
|
4011
4341
|
function readLockOwner() {
|
|
4012
4342
|
try {
|
|
4013
|
-
const raw = (0,
|
|
4014
|
-
const mtimeMs = (0,
|
|
4343
|
+
const raw = (0, import_node_fs5.readFileSync)(LISTENER_LOCK_PATH, "utf8");
|
|
4344
|
+
const mtimeMs = (0, import_node_fs5.statSync)(LISTENER_LOCK_PATH).mtimeMs;
|
|
4015
4345
|
const pid = Number(raw.split("-")[0]);
|
|
4016
4346
|
return { raw, pid: Number.isInteger(pid) ? pid : -1, mtimeMs };
|
|
4017
4347
|
} catch {
|
|
@@ -4024,15 +4354,15 @@ function lockIsAbandoned(owner) {
|
|
|
4024
4354
|
}
|
|
4025
4355
|
function clearLock(raw) {
|
|
4026
4356
|
try {
|
|
4027
|
-
if ((0,
|
|
4028
|
-
(0,
|
|
4357
|
+
if ((0, import_node_fs5.readFileSync)(LISTENER_LOCK_PATH, "utf8") !== raw) return;
|
|
4358
|
+
(0, import_node_fs5.unlinkSync)(LISTENER_LOCK_PATH);
|
|
4029
4359
|
} catch {
|
|
4030
4360
|
}
|
|
4031
4361
|
}
|
|
4032
4362
|
function readResult() {
|
|
4033
4363
|
try {
|
|
4034
4364
|
const parsed = JSON.parse(
|
|
4035
|
-
(0,
|
|
4365
|
+
(0, import_node_fs5.readFileSync)(LISTENER_RESULT_PATH, "utf8")
|
|
4036
4366
|
);
|
|
4037
4367
|
if (!parsed || typeof parsed.token !== "string" || typeof parsed.key !== "string")
|
|
4038
4368
|
return null;
|
|
@@ -4043,8 +4373,8 @@ function readResult() {
|
|
|
4043
4373
|
}
|
|
4044
4374
|
function publishResult(payload) {
|
|
4045
4375
|
const tmp = `${LISTENER_RESULT_PATH}.${process.pid}.tmp`;
|
|
4046
|
-
(0,
|
|
4047
|
-
(0,
|
|
4376
|
+
(0, import_node_fs5.writeFileSync)(tmp, JSON.stringify(payload));
|
|
4377
|
+
(0, import_node_fs5.renameSync)(tmp, LISTENER_RESULT_PATH);
|
|
4048
4378
|
}
|
|
4049
4379
|
function throwPublished(payload) {
|
|
4050
4380
|
throw Object.assign(new Error(payload.message || "listener scan failed"), {
|
|
@@ -4087,7 +4417,7 @@ async function withListenerLock(key, body) {
|
|
|
4087
4417
|
for (; ; ) {
|
|
4088
4418
|
let fd = null;
|
|
4089
4419
|
try {
|
|
4090
|
-
fd = (0,
|
|
4420
|
+
fd = (0, import_node_fs5.openSync)(LISTENER_LOCK_PATH, "wx");
|
|
4091
4421
|
} catch (error) {
|
|
4092
4422
|
const code = error instanceof Error && "code" in error ? error.code : "";
|
|
4093
4423
|
if (code !== "EEXIST") throw error;
|
|
@@ -4096,7 +4426,7 @@ async function withListenerLock(key, body) {
|
|
|
4096
4426
|
if (owner) clearLock(owner.raw);
|
|
4097
4427
|
else {
|
|
4098
4428
|
try {
|
|
4099
|
-
(0,
|
|
4429
|
+
(0, import_node_fs5.unlinkSync)(LISTENER_LOCK_PATH);
|
|
4100
4430
|
} catch {
|
|
4101
4431
|
}
|
|
4102
4432
|
}
|
|
@@ -4112,7 +4442,7 @@ async function withListenerLock(key, body) {
|
|
|
4112
4442
|
}
|
|
4113
4443
|
if (fd === null) continue;
|
|
4114
4444
|
try {
|
|
4115
|
-
(0,
|
|
4445
|
+
(0, import_node_fs5.writeSync)(fd, token);
|
|
4116
4446
|
try {
|
|
4117
4447
|
const value = await body();
|
|
4118
4448
|
publishResult({ token, key, ok: true, value });
|
|
@@ -4129,7 +4459,7 @@ async function withListenerLock(key, body) {
|
|
|
4129
4459
|
}
|
|
4130
4460
|
} finally {
|
|
4131
4461
|
try {
|
|
4132
|
-
(0,
|
|
4462
|
+
(0, import_node_fs5.closeSync)(fd);
|
|
4133
4463
|
} catch {
|
|
4134
4464
|
}
|
|
4135
4465
|
clearLock(token);
|
|
@@ -4618,6 +4948,85 @@ for (const pair of process.env.PEACH_LOOPBACK_PORTS?.split(",").filter(Boolean)
|
|
|
4618
4948
|
function projectLoopbackPort(hostname, port) {
|
|
4619
4949
|
return isLoopbackHost(hostname) ? LOOPBACK_PORTS.get(port) ?? port : port;
|
|
4620
4950
|
}
|
|
4951
|
+
function projectLoopbackUrl(value) {
|
|
4952
|
+
if (LOOPBACK_PORTS.size === 0) return value;
|
|
4953
|
+
const url = new URL(value);
|
|
4954
|
+
const port = Number(
|
|
4955
|
+
url.port || (url.protocol === "https:" || url.protocol === "wss:" ? 443 : 80)
|
|
4956
|
+
);
|
|
4957
|
+
const projected = projectLoopbackPort(url.hostname, port);
|
|
4958
|
+
if (projected === port) return value;
|
|
4959
|
+
url.port = String(projected);
|
|
4960
|
+
return url.href;
|
|
4961
|
+
}
|
|
4962
|
+
|
|
4963
|
+
// src/host/network-policy.ts
|
|
4964
|
+
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
4965
|
+
var import_node_path6 = require("node:path");
|
|
4966
|
+
var import_node_url = require("node:url");
|
|
4967
|
+
var NETWORK_POLICY_TIMEOUT_MS = 1e4;
|
|
4968
|
+
var NetworkPolicyDeniedError = class extends Error {
|
|
4969
|
+
code = "EPOLICY";
|
|
4970
|
+
constructor(what) {
|
|
4971
|
+
super(`network policy denied ${what}`);
|
|
4972
|
+
}
|
|
4973
|
+
};
|
|
4974
|
+
function describeEvent(event) {
|
|
4975
|
+
switch (event.kind) {
|
|
4976
|
+
case "http":
|
|
4977
|
+
return `${event.method} ${new URL(event.url).origin}`;
|
|
4978
|
+
case "websocket":
|
|
4979
|
+
return `websocket ${new URL(event.url).origin}`;
|
|
4980
|
+
case "websocket-frame":
|
|
4981
|
+
return `websocket frame opcode ${event.opcode} (${event.data.byteLength} bytes) to ${new URL(event.url).origin}`;
|
|
4982
|
+
case "tcp":
|
|
4983
|
+
return `tcp ${event.host}:${event.port}`;
|
|
4984
|
+
case "tunnel":
|
|
4985
|
+
return `tunnel ${event.host}:${event.port}`;
|
|
4986
|
+
}
|
|
4987
|
+
}
|
|
4988
|
+
function createNetworkAuthorizer(policy) {
|
|
4989
|
+
if (policy === null) return async () => true;
|
|
4990
|
+
if (policy instanceof Promise) policy.catch(() => {
|
|
4991
|
+
});
|
|
4992
|
+
return async (event) => {
|
|
4993
|
+
let allowed = false;
|
|
4994
|
+
let timer;
|
|
4995
|
+
try {
|
|
4996
|
+
const decide = await policy;
|
|
4997
|
+
allowed = await Promise.race([
|
|
4998
|
+
decide(event),
|
|
4999
|
+
new Promise((_, reject) => {
|
|
5000
|
+
timer = setTimeout(
|
|
5001
|
+
() => reject(new Error("network policy timed out")),
|
|
5002
|
+
NETWORK_POLICY_TIMEOUT_MS
|
|
5003
|
+
);
|
|
5004
|
+
})
|
|
5005
|
+
]) === true;
|
|
5006
|
+
} catch {
|
|
5007
|
+
allowed = false;
|
|
5008
|
+
} finally {
|
|
5009
|
+
clearTimeout(timer);
|
|
5010
|
+
}
|
|
5011
|
+
if (!allowed) console.error(`peach: network policy denied ${describeEvent(event)}`);
|
|
5012
|
+
return allowed;
|
|
5013
|
+
};
|
|
5014
|
+
}
|
|
5015
|
+
async function loadNetworkPolicy(file) {
|
|
5016
|
+
if (!(0, import_node_path6.isAbsolute)(file)) {
|
|
5017
|
+
throw new Error(`PEACH_NETWORK_POLICY must be an absolute path: ${file}`);
|
|
5018
|
+
}
|
|
5019
|
+
const loaded2 = await import((0, import_node_url.pathToFileURL)(file).href);
|
|
5020
|
+
const decide = Reflect.get(Object(loaded2), "default");
|
|
5021
|
+
if (typeof decide !== "function") {
|
|
5022
|
+
throw new Error(`${file} must default-export a network policy function`);
|
|
5023
|
+
}
|
|
5024
|
+
return (event) => decide(event);
|
|
5025
|
+
}
|
|
5026
|
+
var policyFile = process.env.PEACH_NETWORK_POLICY || null;
|
|
5027
|
+
var authorizeNetwork = createNetworkAuthorizer(
|
|
5028
|
+
policyFile === null ? null : loadNetworkPolicy(policyFile)
|
|
5029
|
+
);
|
|
4621
5030
|
|
|
4622
5031
|
// src/host/rolldown-bundle-forward.ts
|
|
4623
5032
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -4898,6 +5307,14 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
4898
5307
|
delete targetHeaders["transfer-encoding"];
|
|
4899
5308
|
targetHeaders["content-length"] = String(nextBody.byteLength);
|
|
4900
5309
|
}
|
|
5310
|
+
const allowed = await authorizeNetwork({
|
|
5311
|
+
kind: "http",
|
|
5312
|
+
method,
|
|
5313
|
+
url: projectLoopbackUrl(targetUrl.href),
|
|
5314
|
+
headers: targetHeaders,
|
|
5315
|
+
body: nextBody
|
|
5316
|
+
});
|
|
5317
|
+
if (!allowed) throw new NetworkPolicyDeniedError(`${method} ${targetUrl.origin}`);
|
|
4901
5318
|
const port = projectLoopbackPort(
|
|
4902
5319
|
targetUrl.hostname,
|
|
4903
5320
|
Number(targetUrl.port || (targetUrl.protocol === "https:" ? 443 : 80))
|
|
@@ -5013,6 +5430,10 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
5013
5430
|
if (!res.headersSent && reportFailure) {
|
|
5014
5431
|
const code = err?.code;
|
|
5015
5432
|
res.statusCode = 502;
|
|
5433
|
+
res.removeHeader("content-type");
|
|
5434
|
+
res.removeHeader("content-encoding");
|
|
5435
|
+
res.removeHeader("transfer-encoding");
|
|
5436
|
+
res.setHeader("content-length", "0");
|
|
5016
5437
|
res.setHeader(
|
|
5017
5438
|
FETCH_PROXY_FAILURE_HEADER,
|
|
5018
5439
|
typeof code === "string" ? code : "unknown"
|
|
@@ -5029,9 +5450,9 @@ async function proxyUpstream(req, res, upstreamUrl, reportFailure, route) {
|
|
|
5029
5450
|
|
|
5030
5451
|
// src/host/replacement-module-handler.ts
|
|
5031
5452
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5032
|
-
var
|
|
5453
|
+
var import_node_fs6 = require("node:fs");
|
|
5033
5454
|
var import_promises4 = __toESM(require("node:fs/promises"), 1);
|
|
5034
|
-
var
|
|
5455
|
+
var import_node_path7 = __toESM(require("node:path"), 1);
|
|
5035
5456
|
|
|
5036
5457
|
// ../contrast-bundler/src/replacementModule.ts
|
|
5037
5458
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -5043,7 +5464,7 @@ var import_types = require("sucrase/dist/parser/tokenizer/types.js");
|
|
|
5043
5464
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5044
5465
|
var sep = "/";
|
|
5045
5466
|
var delimiter = ":";
|
|
5046
|
-
function
|
|
5467
|
+
function isAbsolute2(p) {
|
|
5047
5468
|
return p.charCodeAt(0) === 47;
|
|
5048
5469
|
}
|
|
5049
5470
|
function normalizeSegments(parts, allowAboveRoot) {
|
|
@@ -5061,7 +5482,7 @@ function normalizeSegments(parts, allowAboveRoot) {
|
|
|
5061
5482
|
}
|
|
5062
5483
|
function normalize(p) {
|
|
5063
5484
|
if (p.length === 0) return ".";
|
|
5064
|
-
const absolute =
|
|
5485
|
+
const absolute = isAbsolute2(p);
|
|
5065
5486
|
const trailingSlash = p.charCodeAt(p.length - 1) === 47;
|
|
5066
5487
|
const segments = normalizeSegments(p.split("/"), !absolute);
|
|
5067
5488
|
let joined = segments.join("/");
|
|
@@ -5084,7 +5505,7 @@ function resolve2(...parts) {
|
|
|
5084
5505
|
const part = parts[i];
|
|
5085
5506
|
if (part.length === 0) continue;
|
|
5086
5507
|
resolved = resolved.length > 0 ? `${part}/${resolved}` : part;
|
|
5087
|
-
absolute =
|
|
5508
|
+
absolute = isAbsolute2(part);
|
|
5088
5509
|
}
|
|
5089
5510
|
if (!absolute)
|
|
5090
5511
|
throw new Error(
|
|
@@ -5127,7 +5548,7 @@ function relative(from, to) {
|
|
|
5127
5548
|
var posix = {
|
|
5128
5549
|
sep,
|
|
5129
5550
|
delimiter,
|
|
5130
|
-
isAbsolute,
|
|
5551
|
+
isAbsolute: isAbsolute2,
|
|
5131
5552
|
normalize,
|
|
5132
5553
|
join: join3,
|
|
5133
5554
|
resolve: resolve2,
|
|
@@ -5360,16 +5781,16 @@ function sendJavaScript(req, res, source) {
|
|
|
5360
5781
|
res.end(req.method === "HEAD" ? void 0 : source);
|
|
5361
5782
|
}
|
|
5362
5783
|
function resolveReplacementModuleFile(fromFile, specifier) {
|
|
5363
|
-
const base =
|
|
5784
|
+
const base = import_node_path7.default.resolve(import_node_path7.default.dirname(fromFile), specifier);
|
|
5364
5785
|
const candidates = [
|
|
5365
5786
|
...REPLACEMENT_MODULE_EXTENSIONS.some(
|
|
5366
|
-
(ext) => ext ===
|
|
5787
|
+
(ext) => ext === import_node_path7.default.extname(base).toLowerCase()
|
|
5367
5788
|
) ? [base] : [],
|
|
5368
5789
|
...REPLACEMENT_MODULE_EXTENSIONS.map((ext) => base + ext),
|
|
5369
|
-
...REPLACEMENT_MODULE_EXTENSIONS.map((ext) =>
|
|
5790
|
+
...REPLACEMENT_MODULE_EXTENSIONS.map((ext) => import_node_path7.default.join(base, `index${ext}`))
|
|
5370
5791
|
];
|
|
5371
5792
|
const found = candidates.find(
|
|
5372
|
-
(candidate) => (0,
|
|
5793
|
+
(candidate) => (0, import_node_fs6.statSync)(candidate, { throwIfNoEntry: false })?.isFile()
|
|
5373
5794
|
);
|
|
5374
5795
|
if (!found) {
|
|
5375
5796
|
throw new Error(
|
|
@@ -5380,8 +5801,8 @@ function resolveReplacementModuleFile(fromFile, specifier) {
|
|
|
5380
5801
|
}
|
|
5381
5802
|
function isInsideAny(roots, file) {
|
|
5382
5803
|
return roots.some((root) => {
|
|
5383
|
-
const relative2 =
|
|
5384
|
-
return !relative2.startsWith("..") && !
|
|
5804
|
+
const relative2 = import_node_path7.default.relative(root, file);
|
|
5805
|
+
return !relative2.startsWith("..") && !import_node_path7.default.isAbsolute(relative2);
|
|
5385
5806
|
});
|
|
5386
5807
|
}
|
|
5387
5808
|
async function handleReplacementModuleRequest(req, res, options = {}) {
|
|
@@ -5421,19 +5842,19 @@ async function handleReplacementModuleRequest(req, res, options = {}) {
|
|
|
5421
5842
|
res.end("missing path param");
|
|
5422
5843
|
return true;
|
|
5423
5844
|
}
|
|
5424
|
-
const extension =
|
|
5845
|
+
const extension = import_node_path7.default.extname(targetPath).toLowerCase();
|
|
5425
5846
|
if (!REPLACEMENT_MODULE_EXTENSIONS.some((allowed) => allowed === extension)) {
|
|
5426
5847
|
res.writeHead(400, { "Content-Type": "text/plain; charset=utf-8" });
|
|
5427
5848
|
res.end(`replacement files must be ${REPLACEMENT_MODULE_EXTENSIONS.join(", ")}`);
|
|
5428
5849
|
return true;
|
|
5429
5850
|
}
|
|
5430
|
-
if (!
|
|
5851
|
+
if (!import_node_path7.default.isAbsolute(targetPath)) {
|
|
5431
5852
|
res.writeHead(400, { "Content-Type": "text/plain; charset=utf-8" });
|
|
5432
5853
|
res.end("replacement file path must be absolute");
|
|
5433
5854
|
return true;
|
|
5434
5855
|
}
|
|
5435
5856
|
const runtimePackages = new Set(url.searchParams.getAll("runtimePackage"));
|
|
5436
|
-
const servedRoots = options.servedRoots?.map((root) =>
|
|
5857
|
+
const servedRoots = options.servedRoots?.map((root) => import_node_path7.default.resolve(root));
|
|
5437
5858
|
if (servedRoots && !isInsideAny(servedRoots, targetPath)) {
|
|
5438
5859
|
res.writeHead(403, { "Content-Type": "text/plain; charset=utf-8" });
|
|
5439
5860
|
res.end("replacement file must be inside a folder the bundler serves");
|
|
@@ -5490,9 +5911,9 @@ async function handleReplacementModuleRequest(req, res, options = {}) {
|
|
|
5490
5911
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5491
5912
|
var import_node_child_process2 = require("node:child_process");
|
|
5492
5913
|
var import_node_crypto3 = require("node:crypto");
|
|
5493
|
-
var
|
|
5914
|
+
var import_node_fs8 = __toESM(require("node:fs"), 1);
|
|
5494
5915
|
var import_node_module2 = require("node:module");
|
|
5495
|
-
var
|
|
5916
|
+
var import_node_path9 = __toESM(require("node:path"), 1);
|
|
5496
5917
|
var import_node_util = require("node:util");
|
|
5497
5918
|
|
|
5498
5919
|
// cli/internal-child.ts
|
|
@@ -5501,22 +5922,25 @@ var RNX_FORKED_SCRIPT_ENV = "PEACH_RUNS_FORKED_SCRIPTS";
|
|
|
5501
5922
|
|
|
5502
5923
|
// src/swift-source-file.ts
|
|
5503
5924
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
5504
|
-
var
|
|
5505
|
-
var
|
|
5925
|
+
var import_node_fs7 = __toESM(require("node:fs"), 1);
|
|
5926
|
+
var import_node_path8 = __toESM(require("node:path"), 1);
|
|
5927
|
+
function relativeInside(root, file) {
|
|
5928
|
+
const relative2 = import_node_path8.default.relative(root, file);
|
|
5929
|
+
return relative2 === ".." || relative2.startsWith(`..${import_node_path8.default.sep}`) || import_node_path8.default.isAbsolute(relative2) ? null : relative2;
|
|
5930
|
+
}
|
|
5506
5931
|
function packageInputPath(canonicalRoot, file) {
|
|
5507
|
-
const canonicalFile =
|
|
5508
|
-
|
|
5509
|
-
if (relative2 === ".." || relative2.startsWith(`..${import_node_path6.default.sep}`) || import_node_path6.default.isAbsolute(relative2)) {
|
|
5932
|
+
const canonicalFile = import_node_fs7.default.realpathSync(file);
|
|
5933
|
+
if (relativeInside(canonicalRoot, canonicalFile) === null) {
|
|
5510
5934
|
throw new Error(`swift input escapes the selected package: ${file}`);
|
|
5511
5935
|
}
|
|
5512
5936
|
return canonicalFile;
|
|
5513
5937
|
}
|
|
5514
5938
|
function readPackageFile(root, file, maxBytes) {
|
|
5515
|
-
const canonicalFile = packageInputPath(
|
|
5516
|
-
const expected =
|
|
5517
|
-
const fd =
|
|
5939
|
+
const canonicalFile = packageInputPath(import_node_fs7.default.realpathSync(root), file);
|
|
5940
|
+
const expected = import_node_fs7.default.statSync(canonicalFile);
|
|
5941
|
+
const fd = import_node_fs7.default.openSync(canonicalFile, import_node_fs7.default.constants.O_RDONLY | import_node_fs7.default.constants.O_NOFOLLOW);
|
|
5518
5942
|
try {
|
|
5519
|
-
const stat =
|
|
5943
|
+
const stat = import_node_fs7.default.fstatSync(fd);
|
|
5520
5944
|
if (stat.dev !== expected.dev || stat.ino !== expected.ino) {
|
|
5521
5945
|
throw new Error(`swift input changed while opening: ${file}`);
|
|
5522
5946
|
}
|
|
@@ -5526,16 +5950,16 @@ function readPackageFile(root, file, maxBytes) {
|
|
|
5526
5950
|
const bytes = Buffer.alloc(stat.size + 1);
|
|
5527
5951
|
let offset = 0;
|
|
5528
5952
|
while (offset < bytes.length) {
|
|
5529
|
-
const count =
|
|
5953
|
+
const count = import_node_fs7.default.readSync(fd, bytes, offset, bytes.length - offset, null);
|
|
5530
5954
|
if (count === 0) break;
|
|
5531
5955
|
offset += count;
|
|
5532
5956
|
}
|
|
5533
|
-
if (offset !== stat.size ||
|
|
5957
|
+
if (offset !== stat.size || import_node_fs7.default.fstatSync(fd).size !== stat.size) {
|
|
5534
5958
|
throw new Error(`swift input changed while reading: ${file}`);
|
|
5535
5959
|
}
|
|
5536
5960
|
return bytes.subarray(0, offset);
|
|
5537
5961
|
} finally {
|
|
5538
|
-
|
|
5962
|
+
import_node_fs7.default.closeSync(fd);
|
|
5539
5963
|
}
|
|
5540
5964
|
}
|
|
5541
5965
|
|
|
@@ -5582,8 +6006,8 @@ fs.writeFileSync(process.argv[2], JSON.stringify({
|
|
|
5582
6006
|
function configStamp(files) {
|
|
5583
6007
|
return JSON.stringify(
|
|
5584
6008
|
files.map((file) => {
|
|
5585
|
-
if (!
|
|
5586
|
-
const stat =
|
|
6009
|
+
if (!import_node_fs8.default.existsSync(file)) return [file, null];
|
|
6010
|
+
const stat = import_node_fs8.default.statSync(file);
|
|
5587
6011
|
return [file, stat.mtimeMs, stat.ctimeMs, stat.size];
|
|
5588
6012
|
})
|
|
5589
6013
|
);
|
|
@@ -5594,13 +6018,13 @@ async function readConfig(root) {
|
|
|
5594
6018
|
const reading = reads.get(root);
|
|
5595
6019
|
if (reading) return reading;
|
|
5596
6020
|
const promise = (async () => {
|
|
5597
|
-
(0, import_node_module2.createRequire)(
|
|
5598
|
-
const cache =
|
|
5599
|
-
|
|
5600
|
-
const directory =
|
|
5601
|
-
const script =
|
|
5602
|
-
const result =
|
|
5603
|
-
|
|
6021
|
+
(0, import_node_module2.createRequire)(import_node_path9.default.join(root, "package.json")).resolve("one/vite");
|
|
6022
|
+
const cache = import_node_path9.default.join(root, "node_modules/.cache/peach-widget-config");
|
|
6023
|
+
import_node_fs8.default.mkdirSync(cache, { recursive: true });
|
|
6024
|
+
const directory = import_node_fs8.default.mkdtempSync(import_node_path9.default.join(cache, "read-"));
|
|
6025
|
+
const script = import_node_path9.default.join(directory, "read.mjs");
|
|
6026
|
+
const result = import_node_path9.default.join(directory, "result.json");
|
|
6027
|
+
import_node_fs8.default.writeFileSync(script, CONFIG_CHILD);
|
|
5604
6028
|
try {
|
|
5605
6029
|
await run(process.execPath, [script, result], {
|
|
5606
6030
|
cwd: root,
|
|
@@ -5608,7 +6032,7 @@ async function readConfig(root) {
|
|
|
5608
6032
|
timeout: 3e4,
|
|
5609
6033
|
maxBuffer: 1024 * 1024
|
|
5610
6034
|
});
|
|
5611
|
-
const value = JSON.parse(
|
|
6035
|
+
const value = JSON.parse(import_node_fs8.default.readFileSync(result, "utf8"));
|
|
5612
6036
|
if (!isRecord(value) || !Array.isArray(value.watched) || !value.watched.every((file) => typeof file === "string"))
|
|
5613
6037
|
throw new Error("One config loader returned invalid dependencies");
|
|
5614
6038
|
if (!Array.isArray(value.urlSchemes) || !value.urlSchemes.every(
|
|
@@ -5631,8 +6055,8 @@ async function readConfig(root) {
|
|
|
5631
6055
|
}
|
|
5632
6056
|
const watched = [
|
|
5633
6057
|
.../* @__PURE__ */ new Set([
|
|
5634
|
-
|
|
5635
|
-
...value.watched.map((file) =>
|
|
6058
|
+
import_node_path9.default.join(root, "package.json"),
|
|
6059
|
+
...value.watched.map((file) => import_node_path9.default.resolve(root, file))
|
|
5636
6060
|
])
|
|
5637
6061
|
];
|
|
5638
6062
|
const loaded2 = {
|
|
@@ -5644,7 +6068,7 @@ async function readConfig(root) {
|
|
|
5644
6068
|
configs.set(root, loaded2);
|
|
5645
6069
|
return loaded2;
|
|
5646
6070
|
} finally {
|
|
5647
|
-
|
|
6071
|
+
import_node_fs8.default.rmSync(directory, { recursive: true, force: true });
|
|
5648
6072
|
}
|
|
5649
6073
|
})();
|
|
5650
6074
|
reads.set(root, promise);
|
|
@@ -5665,13 +6089,13 @@ function declaredFamilies(source) {
|
|
|
5665
6089
|
return home;
|
|
5666
6090
|
}
|
|
5667
6091
|
async function readOneWidgetSources(appRoot) {
|
|
5668
|
-
const root =
|
|
6092
|
+
const root = import_node_fs8.default.realpathSync(appRoot);
|
|
5669
6093
|
const config = await readConfig(root);
|
|
5670
6094
|
if (!config.widget) return null;
|
|
5671
6095
|
const widget = config.widget;
|
|
5672
6096
|
const sourceFiles = {
|
|
5673
|
-
"OneWidget.swift":
|
|
5674
|
-
"OneWidgetContract.swift":
|
|
6097
|
+
"OneWidget.swift": import_node_path9.default.join(root, "ios/OneWidgets/OneWidget.swift"),
|
|
6098
|
+
"OneWidgetContract.swift": import_node_path9.default.join(
|
|
5675
6099
|
root,
|
|
5676
6100
|
"ios",
|
|
5677
6101
|
widget.appName,
|
|
@@ -5681,14 +6105,14 @@ async function readOneWidgetSources(appRoot) {
|
|
|
5681
6105
|
const files = /* @__PURE__ */ new Map();
|
|
5682
6106
|
const sources = {};
|
|
5683
6107
|
for (const [name, file] of Object.entries(sourceFiles)) {
|
|
5684
|
-
if (!
|
|
6108
|
+
if (!import_node_fs8.default.existsSync(file))
|
|
5685
6109
|
throw new Error(`missing One widget prebuild source ${file}; run one prebuild`);
|
|
5686
6110
|
const bytes = readPackageFile(root, file, MAX_SWIFT_COMPILE_SOURCE_BYTES);
|
|
5687
6111
|
const text = bytes.toString("utf8");
|
|
5688
6112
|
if (!Buffer.from(text).equals(bytes))
|
|
5689
6113
|
throw new Error(`One widget prebuild source is not UTF-8: ${file}`);
|
|
5690
6114
|
files.set(name, text);
|
|
5691
|
-
sources[
|
|
6115
|
+
sources[import_node_path9.default.relative(root, file).split(import_node_path9.default.sep).join("/")] = (0, import_node_crypto3.createHash)("sha256").update(bytes).digest("hex");
|
|
5692
6116
|
}
|
|
5693
6117
|
const contract = files.get("OneWidgetContract.swift") ?? "";
|
|
5694
6118
|
const source = files.get("OneWidget.swift") ?? "";
|
|
@@ -5875,7 +6299,7 @@ function peachPlugin(options = {}) {
|
|
|
5875
6299
|
const moduleRootFor = () => {
|
|
5876
6300
|
if (swiftModuleRoot === void 0) {
|
|
5877
6301
|
const moduleRoot = import_path4.default.resolve(
|
|
5878
|
-
import_path4.default.dirname((0,
|
|
6302
|
+
import_path4.default.dirname((0, import_node_url2.fileURLToPath)(__sootsim_import_meta_url)),
|
|
5879
6303
|
"../../sootsim-swift"
|
|
5880
6304
|
);
|
|
5881
6305
|
swiftModuleRoot = import_fs4.default.existsSync(import_path4.default.join(moduleRoot, "toolchain.json")) ? moduleRoot : null;
|