peachsim 0.1.1871 → 0.1.1873
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/bridge-flow-runner.ts +7 -2
- package/cli/current-sim.ts +1 -1
- package/cli/ws-bridge.ts +10 -2
- 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 +43 -15
- 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 +5 -6
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +42 -14
- 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 +44 -16
- package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
- 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 +4 -4
- 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 +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 +3 -3
- package/dist-lib/native-app-identity-project.cjs +2 -2
- package/dist-lib/native-app-identity-project.mjs +2 -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 +53 -53
- 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 +3 -4
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +50 -22
- package/dist-lib/swift-compile.cjs +39 -11
- package/dist-lib/swift-compile.mjs +39 -11
- 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 +40 -12
- package/dist-lib/vite.cjs +2 -2
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/usr/include/notify.h +1 -1
- package/sdk/ios/usr/include/notify.modulemap +1 -0
- package/sdk/ios/wasm/include/pthread.h +2 -0
- package/src/chromium-admission.ts +2 -3
- package/src/expo-swift-host.ts +3 -3
- package/src/swift-compile.ts +52 -11
- package/src/swift-shared-sdk.ts +7 -5
package/src/expo-swift-host.ts
CHANGED
|
@@ -1376,11 +1376,11 @@ async function collectExpoSwiftSourcesUncached(
|
|
|
1376
1376
|
} else {
|
|
1377
1377
|
walk(ios)
|
|
1378
1378
|
walkFrameworks(canonical)
|
|
1379
|
-
// this path compiles Swift alone;
|
|
1380
|
-
//
|
|
1379
|
+
// this path compiles Swift alone; the report names the cause when a
|
|
1380
|
+
// Swift file then fails on the pod's own Objective-C or C types.
|
|
1381
1381
|
if (nativeSources.size > 0 && !prepareNative)
|
|
1382
1382
|
report(
|
|
1383
|
-
`${packageName}: ${namespace} has Objective-C or C sources (${[...nativeSources].sort()[0]}), which compile only from a CocoaPods workspace a Mac prepares;
|
|
1383
|
+
`${packageName}: ${namespace} has Objective-C or C sources (${[...nativeSources].sort()[0]}), which compile only from a CocoaPods workspace a Mac prepares; compiling its Swift alone`,
|
|
1384
1384
|
)
|
|
1385
1385
|
}
|
|
1386
1386
|
// a module compiled from its own source declares its iOS floor in its
|
package/src/swift-compile.ts
CHANGED
|
@@ -1733,20 +1733,46 @@ export function emitSwiftPackageManifest(args: {
|
|
|
1733
1733
|
args.files.set(file, content)
|
|
1734
1734
|
return JSON.stringify([`@${file}`])
|
|
1735
1735
|
}
|
|
1736
|
+
// a binary framework's headers are found as <Framework/header.h> through -F,
|
|
1737
|
+
// as xcode passes for the xcframework; swiftpm adds only its module map directory
|
|
1738
|
+
const frameworkDirectories = (name: string, seen = new Set<string>()): string[] =>
|
|
1739
|
+
(siblings.get(name) ?? []).flatMap((dependency) => {
|
|
1740
|
+
if (seen.has(dependency)) return []
|
|
1741
|
+
seen.add(dependency)
|
|
1742
|
+
const owner = args.targets.find((other) => other.name === dependency)
|
|
1743
|
+
const framework = /^(.*)\/[^/]+\.framework\/Modules$/.exec(
|
|
1744
|
+
owner?.publicHeadersPath ?? '',
|
|
1745
|
+
)
|
|
1746
|
+
return [
|
|
1747
|
+
...(owner && framework
|
|
1748
|
+
? [path.posix.join(args.root, owner.path, framework[1]!)]
|
|
1749
|
+
: []),
|
|
1750
|
+
...frameworkDirectories(dependency, seen),
|
|
1751
|
+
]
|
|
1752
|
+
})
|
|
1753
|
+
const frameworkSearchFlags = (
|
|
1754
|
+
target: SwiftPackageTarget | undefined,
|
|
1755
|
+
tool: 'c' | 'cxx',
|
|
1756
|
+
) =>
|
|
1757
|
+
frameworkDirectories(target?.name ?? '').map((directory) => ({
|
|
1758
|
+
tool,
|
|
1759
|
+
flags: ['-F', directory],
|
|
1760
|
+
}))
|
|
1736
1761
|
const declaredClangSettings = (
|
|
1737
1762
|
target: SwiftPackageTarget | undefined,
|
|
1738
1763
|
tool: 'c' | 'cxx',
|
|
1739
1764
|
) =>
|
|
1740
1765
|
clangSettingEntries(
|
|
1741
|
-
target?.clangSettings
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1766
|
+
[...(target?.clangSettings ?? []), ...frameworkSearchFlags(target, tool)].map(
|
|
1767
|
+
(setting) =>
|
|
1768
|
+
'flags' in setting
|
|
1769
|
+
? {
|
|
1770
|
+
...setting,
|
|
1771
|
+
flags: setting.flags.map((flag) =>
|
|
1772
|
+
flag.replaceAll(SWIFT_NATIVE_INPUT_ROOT, args.root),
|
|
1773
|
+
),
|
|
1774
|
+
}
|
|
1775
|
+
: setting,
|
|
1750
1776
|
),
|
|
1751
1777
|
tool,
|
|
1752
1778
|
)
|
|
@@ -1833,6 +1859,7 @@ export function emitSwiftPackageManifest(args: {
|
|
|
1833
1859
|
// a dependency's C language standard applies to its own units, not to
|
|
1834
1860
|
// a Swift target whose clang importer is compiling as Objective-C++.
|
|
1835
1861
|
.filter((flag) => !target.cxxInterop || !flag.startsWith('-std='))
|
|
1862
|
+
.concat(frameworkDirectories(target.name).flatMap((directory) => ['-F', directory]))
|
|
1836
1863
|
.map((flag) => `, "-Xcc", ${JSON.stringify(flag)}`)
|
|
1837
1864
|
.join('')
|
|
1838
1865
|
const objcFlags = [
|
|
@@ -1957,10 +1984,24 @@ export function emitSwiftPackageManifest(args: {
|
|
|
1957
1984
|
)
|
|
1958
1985
|
const nativeSettings = native?.clang
|
|
1959
1986
|
? [
|
|
1960
|
-
`cSettings: [${cDefines}
|
|
1987
|
+
`cSettings: [${cDefines}${clangSettingEntries(
|
|
1988
|
+
frameworkSearchFlags(target, 'c'),
|
|
1989
|
+
'c',
|
|
1990
|
+
)
|
|
1991
|
+
.map((entry) => ` ${entry},`)
|
|
1992
|
+
.join(
|
|
1993
|
+
'',
|
|
1994
|
+
)} .unsafeFlags(${flagArray(cFlagArray([...nativeFlags, ...native.clang.flags]))})]`,
|
|
1961
1995
|
...(nativeCxx
|
|
1962
1996
|
? [
|
|
1963
|
-
`cxxSettings: [${cxxDefines}
|
|
1997
|
+
`cxxSettings: [${cxxDefines}${clangSettingEntries(
|
|
1998
|
+
frameworkSearchFlags(target, 'cxx'),
|
|
1999
|
+
'cxx',
|
|
2000
|
+
)
|
|
2001
|
+
.map((entry) => ` ${entry},`)
|
|
2002
|
+
.join(
|
|
2003
|
+
'',
|
|
2004
|
+
)} .unsafeFlags(${flagArray(cxxFlagArray([...cxxFlagsFor(nativeFlags), ...native.clang.cxxFlags]))})]`,
|
|
1964
2005
|
]
|
|
1965
2006
|
: []),
|
|
1966
2007
|
].join(', ')
|
package/src/swift-shared-sdk.ts
CHANGED
|
@@ -255,7 +255,7 @@ export function swiftSharedSdkViewOptions(
|
|
|
255
255
|
.map((entry) => path.join(entry.parentPath, entry.name))
|
|
256
256
|
.sort()
|
|
257
257
|
const key = JSON.stringify([
|
|
258
|
-
'
|
|
258
|
+
'v16',
|
|
259
259
|
toolchainBin,
|
|
260
260
|
sdk,
|
|
261
261
|
frameworks,
|
|
@@ -307,10 +307,12 @@ export function swiftSharedSdkViewOptions(
|
|
|
307
307
|
// IFF_* flags and if_indextoname that native packages compile against.
|
|
308
308
|
const overrides = new Map<string, string>([
|
|
309
309
|
[path.join(sysroot, 'darwin/System/Library/Frameworks'), frameworks],
|
|
310
|
-
...['MacTypes.h', 'net/if.h'].map(
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
310
|
+
...['MacTypes.h', 'net/if.h', 'notify.h', 'notify.modulemap'].map(
|
|
311
|
+
(header): [string, string] => [
|
|
312
|
+
path.join(sysroot, 'darwin/usr/include', header),
|
|
313
|
+
path.join(swiftSharedSdkRoot(moduleRoot, distribution), 'usr/include', header),
|
|
314
|
+
],
|
|
315
|
+
),
|
|
314
316
|
])
|
|
315
317
|
// preserve bundle-only support headers while taking the shared darwin
|
|
316
318
|
// overlays from the same owner as the framework declarations.
|