peachsim 0.1.1875 → 0.1.1876
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -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 +124 -109
- 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 +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +25 -19
- 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 +26 -20
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- 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 +5 -3
- 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 +5 -3
- package/dist-lib/native-app-identity-project.cjs +5 -3
- package/dist-lib/native-app-identity-project.mjs +5 -3
- 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 +54 -54
- 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 +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +26 -20
- package/dist-lib/swift-compile.cjs +20 -16
- package/dist-lib/swift-compile.mjs +20 -16
- 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 +21 -17
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/bundle-channel.mjs +21 -11
- package/src/native-app-identity-project.ts +3 -1
- package/src/swift-compile.ts +22 -14
package/src/swift-compile.ts
CHANGED
|
@@ -1613,6 +1613,8 @@ export function emitSwiftPackageManifest(args: {
|
|
|
1613
1613
|
* then links only the stdlib and system archives its sources reference.
|
|
1614
1614
|
*/
|
|
1615
1615
|
distributionLink?: { path: string; files: Map<string, string | Buffer> }
|
|
1616
|
+
/** link the distribution as an archive pruned after the link: size-optimized artifacts only. */
|
|
1617
|
+
lazyDistribution?: boolean
|
|
1616
1618
|
/**
|
|
1617
1619
|
* framework products already built in their own scratch. objects link whole,
|
|
1618
1620
|
* and modules import from that scratch, so this package's targets never
|
|
@@ -1673,9 +1675,11 @@ export function emitSwiftPackageManifest(args: {
|
|
|
1673
1675
|
foundationCategoryObjects.map((name) => `lib/Foundation-${name}.o`),
|
|
1674
1676
|
)
|
|
1675
1677
|
const roots = swiftObjcRootObjects(distribution.id, moduleRoot, distribution.objects)
|
|
1676
|
-
const eager =
|
|
1677
|
-
|
|
1678
|
-
|
|
1678
|
+
const eager = args.lazyDistribution
|
|
1679
|
+
? new Set(
|
|
1680
|
+
objects.filter((object) => roots.has(object) || categoryObjects.has(object)),
|
|
1681
|
+
)
|
|
1682
|
+
: new Set(objects)
|
|
1679
1683
|
// native headers can reference a framework without a Swift import, and a
|
|
1680
1684
|
// native target can share a module name with distribution Swift helpers.
|
|
1681
1685
|
// retain those objects in the archive so undefined symbols select them.
|
|
@@ -5449,6 +5453,7 @@ export function writeSwiftProject(
|
|
|
5449
5453
|
path: path.join(layout.root, '.peach-distribution-objects.rsp'),
|
|
5450
5454
|
files,
|
|
5451
5455
|
},
|
|
5456
|
+
lazyDistribution: input.optimize,
|
|
5452
5457
|
}
|
|
5453
5458
|
: {}),
|
|
5454
5459
|
...(prebuilt && frameworkLink
|
|
@@ -6526,7 +6531,7 @@ function compileSwiftProjectOnce(
|
|
|
6526
6531
|
.join(':'),
|
|
6527
6532
|
}
|
|
6528
6533
|
: {}),
|
|
6529
|
-
PEACH_DEFER_WASM_LINK: '1',
|
|
6534
|
+
...(input.optimize ? { PEACH_DEFER_WASM_LINK: '1' } : {}),
|
|
6530
6535
|
},
|
|
6531
6536
|
maxBuffer: 64 * 1024 * 1024,
|
|
6532
6537
|
timeout: options.timeoutMs,
|
|
@@ -6646,9 +6651,11 @@ function compileSwiftProjectOnce(
|
|
|
6646
6651
|
]),
|
|
6647
6652
|
]
|
|
6648
6653
|
const linked = builtArtifact(layout)
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6654
|
+
if (input.optimize) {
|
|
6655
|
+
rmSync(path.join(root, '.peach-link.rsp'), { force: true })
|
|
6656
|
+
if (existsSync(linked) && statSync(linked).size <= 8)
|
|
6657
|
+
rmSync(linked, { force: true })
|
|
6658
|
+
}
|
|
6652
6659
|
report('compiling and linking Swift modules')
|
|
6653
6660
|
try {
|
|
6654
6661
|
// clang consumes the real emitted headers after swift finishes.
|
|
@@ -6786,13 +6793,14 @@ function compileSwiftProjectOnce(
|
|
|
6786
6793
|
)
|
|
6787
6794
|
}
|
|
6788
6795
|
if (options.project) removeProjectLinks(root)
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
+
if (input.optimize)
|
|
6797
|
+
pruneSwiftWasmLink(
|
|
6798
|
+
root,
|
|
6799
|
+
options.toolchainBin,
|
|
6800
|
+
frameworkRoot,
|
|
6801
|
+
input.staticClangTargets,
|
|
6802
|
+
options.project,
|
|
6803
|
+
)
|
|
6796
6804
|
const output = options.project
|
|
6797
6805
|
? projectOutputFile(root, linked, options.project)
|
|
6798
6806
|
: linked
|