peachsim 0.1.2198 → 0.1.2200
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/cli/commands/inspect/settling.ts +20 -20
- package/cli/outbound-endpoints.ts +12 -0
- 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 +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +1532 -1170
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +22 -22
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +45875 -39899
- 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 +50942 -49780
- package/dist-lib/host/fetch-proxy-handler.cjs +16 -4
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +36 -24
- 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 +100 -10
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -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 +16 -4
- package/dist-lib/native-app-identity-project.cjs +14 -2
- package/dist-lib/native-app-identity-project.mjs +14 -2
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.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 +24 -24
- package/dist-lib/public-origins-lib.json +302 -289
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +21 -21
- package/dist-lib/sdk.mjs +21 -21
- package/dist-lib/skills.cjs +3622 -2962
- package/dist-lib/swift-compile.cjs +34 -3
- package/dist-lib/swift-compile.mjs +34 -3
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +1 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +129 -43
- package/dist-lib/vite.cjs +16 -4
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/app-prefetch-contract.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +5 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +2 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSByteCountFormatter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSCompoundPredicate.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDateIntervalFormatter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDecimalNumber.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSEnergyFormatter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExpression.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSFileHandle.h +2 -2
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSIndexSet.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSLengthFormatter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSLock.h +3 -3
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMassFormatter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSMeasurementFormatter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSNotification.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSNotificationQueue.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h +4 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSOrthography.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSScanner.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSThread.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h +25 -25
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h +1 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Modules/module.modulemap +1 -0
- package/sdk/ios/System/Library/Frameworks/UIKitText.framework/Headers/UIKitText.apinotes +14 -0
- package/src/android-layout-ids.ts +50 -0
- package/src/android-view-classes.ts +41 -0
- package/src/expo-native-workspace.ts +2 -3
- package/src/expo-swift-host.ts +6 -1
- package/src/java-module-abi.ts +2 -0
- package/src/javaAbiContract.ts +2 -0
- package/src/kotlin-app.ts +33 -7
- package/src/kotlin-host.ts +83 -6
- package/src/kotlin-maven-sources.ts +248 -0
- package/src/native-prebuilt.ts +36 -2
- package/src/native-swift-slices.ts +43 -2
- package/src/react-native-bridge-modules.ts +7 -1
- package/src/react-native-core-build.ts +176 -0
- package/src/react-native-core-digest.ts +1 -1
- package/src/react-native-core.ts +24 -7
- package/src/swift-packages.ts +3 -0
- package/src/swift-standin-emit.ts +9 -1
- package/src/swift-standins.ts +5 -2
- package/src/swift-wasm-prune.ts +41 -3
- package/src/turbo-compile.ts +2 -1
package/src/swift-wasm-prune.ts
CHANGED
|
@@ -1070,6 +1070,32 @@ function getModulePrefix(file: string): string {
|
|
|
1070
1070
|
return dash > 0 ? base.slice(0, dash) : base
|
|
1071
1071
|
}
|
|
1072
1072
|
|
|
1073
|
+
// protocol descriptors of the SwiftUI protocols whose conformers declare @State, @Environment and other DynamicProperty fields
|
|
1074
|
+
const SWIFTUI_WRAPPER_HOST_PROTOCOLS = new Set(
|
|
1075
|
+
[
|
|
1076
|
+
'View',
|
|
1077
|
+
'ViewModifier',
|
|
1078
|
+
'App',
|
|
1079
|
+
'Scene',
|
|
1080
|
+
'Gesture',
|
|
1081
|
+
'ToolbarContent',
|
|
1082
|
+
'Commands',
|
|
1083
|
+
'DynamicProperty',
|
|
1084
|
+
].map((name) => `$s7SwiftUI${name.length}${name}Mp`),
|
|
1085
|
+
)
|
|
1086
|
+
|
|
1087
|
+
/** SwiftUI and Combine own the wrappers; any other object keeps its field descriptors when its conformance records reference a protocol whose conformers hold them. */
|
|
1088
|
+
export function keepsSwiftUIReflection(
|
|
1089
|
+
file: string,
|
|
1090
|
+
undefinedSymbols: Iterable<string>,
|
|
1091
|
+
): boolean {
|
|
1092
|
+
if (/^(SwiftUI|Combine|_[A-Za-z0-9]+_SwiftUI)-/.test(path.basename(file))) return true
|
|
1093
|
+
for (const name of undefinedSymbols) {
|
|
1094
|
+
if (SWIFTUI_WRAPPER_HOST_PROTOCOLS.has(name)) return true
|
|
1095
|
+
}
|
|
1096
|
+
return false
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1073
1099
|
export function pruneSwiftWasmLink(
|
|
1074
1100
|
directory: string,
|
|
1075
1101
|
toolchainBin: string,
|
|
@@ -1121,11 +1147,23 @@ export function pruneSwiftWasmLink(
|
|
|
1121
1147
|
const distDir = path.join(moduleRoot, 'lib')
|
|
1122
1148
|
// the app's own struct and class field descriptors stay: SwiftUI attaches
|
|
1123
1149
|
// @State and @StateObject by reflecting the app's view structs.
|
|
1124
|
-
// the shim reflects its own wrappers
|
|
1125
|
-
//
|
|
1150
|
+
// the shim reflects its own wrappers (State, ObservedObject, Published), so SwiftUI, Combine and framework SwiftUI overlays (_StoreKit_SwiftUI) keep their descriptors.
|
|
1151
|
+
// any other object keeps them when it conforms to a SwiftUI protocol whose conformers hold property wrappers: its record references the protocol descriptor.
|
|
1152
|
+
const keepsReflection = new Map<ParsedObject, boolean>()
|
|
1153
|
+
const declaresSwiftUIConformers = (obj: ParsedObject) => {
|
|
1154
|
+
let keeps = keepsReflection.get(obj)
|
|
1155
|
+
if (keeps === undefined) {
|
|
1156
|
+
keeps = keepsSwiftUIReflection(
|
|
1157
|
+
obj.file,
|
|
1158
|
+
obj.symNames.filter((n, i) => n && (obj.symFlags[i]! & 0x10) !== 0),
|
|
1159
|
+
)
|
|
1160
|
+
keepsReflection.set(obj, keeps)
|
|
1161
|
+
}
|
|
1162
|
+
return keeps
|
|
1163
|
+
}
|
|
1126
1164
|
const dropsReflection = (obj: ParsedObject, name: string | undefined) =>
|
|
1127
1165
|
!!name &&
|
|
1128
|
-
|
|
1166
|
+
!declaresSwiftUIConformers(obj) &&
|
|
1129
1167
|
(name.startsWith('l__swift5_reflection_descriptor') ||
|
|
1130
1168
|
(name.startsWith('$s') &&
|
|
1131
1169
|
(name.endsWith('CMF') || name.endsWith('VMF')) &&
|
package/src/turbo-compile.ts
CHANGED
|
@@ -416,7 +416,8 @@ export async function compileTurboModule(options: {
|
|
|
416
416
|
await options.prepareReactNativeCore?.(collection.coreMode, options.moduleRoot)
|
|
417
417
|
linkReactNativeCore(
|
|
418
418
|
collection,
|
|
419
|
-
prebuiltReactNativeCore(
|
|
419
|
+
await prebuiltReactNativeCore(
|
|
420
|
+
options.projectRoot,
|
|
420
421
|
options.reactNativeRoot,
|
|
421
422
|
options.moduleRoot,
|
|
422
423
|
collection.coreMode,
|