peachsim 0.1.2003 → 0.1.2005
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/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 +24 -6
- 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 +23 -5
- 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 +24 -6
- 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 +1 -1
- 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 +1 -1
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +1 -1
- 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 +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 +24 -6
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- 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 +22 -4
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +1 -0
- package/package.json +1 -1
- package/src/swift-host.ts +5 -1
- package/src/swift-standins.ts +27 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2005 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2005 | (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;
|
package/dist-lib/sdk.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2005 | (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 __defProp = Object.defineProperty;
|
package/dist-lib/sdk.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2005 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2005 | (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;
|
|
@@ -63656,7 +63656,7 @@ var init_swift_standin_digest = __esm({
|
|
|
63656
63656
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
63657
63657
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
63658
63658
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
63659
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
63659
|
+
STANDIN_SOURCE_DIGEST = true ? "2bc57ff31280d70b17ee4d12d83d5b7eedfd8112f12a8dea303eb34107073e9a" : standinSourceDigest();
|
|
63660
63660
|
}
|
|
63661
63661
|
});
|
|
63662
63662
|
|
|
@@ -64386,7 +64386,7 @@ var init_expo_native_prebuilt = __esm({
|
|
|
64386
64386
|
init_swift_native_pin();
|
|
64387
64387
|
init_xcode_project();
|
|
64388
64388
|
EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
64389
|
-
EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
64389
|
+
EXPO_NATIVE_COMPILER_DIGEST = true ? "f07dd35d754d65d9a923486cef78d4847b3d092d66829a73e3f1290b08e1beba" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
64390
64390
|
IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
64391
64391
|
expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
|
|
64392
64392
|
isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
@@ -66322,6 +66322,20 @@ function headerSurface(module2, modulemap, headers) {
|
|
|
66322
66322
|
);
|
|
66323
66323
|
return objc ? { kind: "objc", module: module2, modulemap, headers } : { kind: "c", module: module2, modulemap, headers };
|
|
66324
66324
|
}
|
|
66325
|
+
function cxxOnly(surface) {
|
|
66326
|
+
if (surface.kind !== "c" && surface.kind !== "objc") return false;
|
|
66327
|
+
return files(surface.headers, (name3) => name3.endsWith(".h")).some((file) => {
|
|
66328
|
+
const guards = [];
|
|
66329
|
+
for (const line of import_node_fs75.default.readFileSync(import_node_path72.default.join(surface.headers, file), "utf8").split("\n")) {
|
|
66330
|
+
if (/^\s*#\s*if/.test(line))
|
|
66331
|
+
guards.push(/__cplusplus/.test(line) && !/!\s*defined|ifndef/.test(line));
|
|
66332
|
+
else if (/^\s*#\s*endif/.test(line)) guards.pop();
|
|
66333
|
+
else if (!guards.includes(true) && /^\s*(?:namespace\s+\w+|template\s*<|class\s+\w+[^;]*$)/.test(line))
|
|
66334
|
+
return true;
|
|
66335
|
+
}
|
|
66336
|
+
return false;
|
|
66337
|
+
});
|
|
66338
|
+
}
|
|
66325
66339
|
function simulatorSlice(xcframeworkDir) {
|
|
66326
66340
|
const slice = import_node_fs75.default.readdirSync(xcframeworkDir).filter((name3) => /^ios-.+-simulator$/.test(name3)).sort()[0];
|
|
66327
66341
|
return slice ? import_node_path72.default.join(xcframeworkDir, slice) : null;
|
|
@@ -67891,7 +67905,9 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
67891
67905
|
import_node_fs75.default.rmSync(work, { recursive: true, force: true });
|
|
67892
67906
|
return error instanceof Error ? error.message : String(error);
|
|
67893
67907
|
}
|
|
67894
|
-
const found = all.filter(
|
|
67908
|
+
const found = all.filter(
|
|
67909
|
+
(surface) => !provided.has(surface.module) && !(binary2.cxxHeaders === void 0 && cxxOnly(surface))
|
|
67910
|
+
);
|
|
67895
67911
|
if (found.length === 0) {
|
|
67896
67912
|
import_node_fs75.default.rmSync(work, { recursive: true, force: true });
|
|
67897
67913
|
if (all.length > 0) return [];
|
|
@@ -72661,9 +72677,11 @@ async function swiftPackages(entry, app) {
|
|
|
72661
72677
|
resolved: app.packageResolved,
|
|
72662
72678
|
products: app.linkedProducts,
|
|
72663
72679
|
localDirs: app.localPackageDirs,
|
|
72680
|
+
// an artifact with neither a stand-in nor a gap ships only modules
|
|
72681
|
+
// peach provides, so a wrapper target that groups it still compiles
|
|
72664
72682
|
provided: /* @__PURE__ */ new Set([
|
|
72665
72683
|
...entry.provided,
|
|
72666
|
-
...
|
|
72684
|
+
...cxxArtifacts.map((binary2) => binary2.target).filter((target) => !built2.gaps.has(target))
|
|
72667
72685
|
]),
|
|
72668
72686
|
binaryGaps: built2.gaps,
|
|
72669
72687
|
owners
|
|
@@ -82842,7 +82860,7 @@ var init_nitro_superset = __esm({
|
|
|
82842
82860
|
init_swift_standin_digest();
|
|
82843
82861
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
82844
82862
|
packageVersion = (root) => JSON.parse((0, import_node_fs94.readFileSync)((0, import_node_path91.join)(root, "package.json"), "utf8")).version;
|
|
82845
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
82863
|
+
NITRO_COMPILER_DIGEST = true ? "773054568dee7684acc2a5a01426dcca0395dc01ecc64575ab1d766adfdd01eb" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
82846
82864
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
82847
82865
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
82848
82866
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2005 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2005 | (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 __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2005 | (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 __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2005 | (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;
|
package/dist-lib/swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2005 | (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 __defProp = Object.defineProperty;
|
package/dist-lib/vite-swift.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2005 | (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;
|
|
@@ -29734,7 +29734,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
29734
29734
|
return hash.digest("hex");
|
|
29735
29735
|
}
|
|
29736
29736
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
29737
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
29737
|
+
var STANDIN_SOURCE_DIGEST = true ? "2bc57ff31280d70b17ee4d12d83d5b7eedfd8112f12a8dea303eb34107073e9a" : standinSourceDigest();
|
|
29738
29738
|
|
|
29739
29739
|
// src/swift-standins.ts
|
|
29740
29740
|
init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
|
|
@@ -30771,6 +30771,20 @@ function headerSurface(module2, modulemap, headers) {
|
|
|
30771
30771
|
);
|
|
30772
30772
|
return objc ? { kind: "objc", module: module2, modulemap, headers } : { kind: "c", module: module2, modulemap, headers };
|
|
30773
30773
|
}
|
|
30774
|
+
function cxxOnly(surface) {
|
|
30775
|
+
if (surface.kind !== "c" && surface.kind !== "objc") return false;
|
|
30776
|
+
return files(surface.headers, (name3) => name3.endsWith(".h")).some((file) => {
|
|
30777
|
+
const guards = [];
|
|
30778
|
+
for (const line of import_node_fs46.default.readFileSync(import_node_path47.default.join(surface.headers, file), "utf8").split("\n")) {
|
|
30779
|
+
if (/^\s*#\s*if/.test(line))
|
|
30780
|
+
guards.push(/__cplusplus/.test(line) && !/!\s*defined|ifndef/.test(line));
|
|
30781
|
+
else if (/^\s*#\s*endif/.test(line)) guards.pop();
|
|
30782
|
+
else if (!guards.includes(true) && /^\s*(?:namespace\s+\w+|template\s*<|class\s+\w+[^;]*$)/.test(line))
|
|
30783
|
+
return true;
|
|
30784
|
+
}
|
|
30785
|
+
return false;
|
|
30786
|
+
});
|
|
30787
|
+
}
|
|
30774
30788
|
function simulatorSlice(xcframeworkDir) {
|
|
30775
30789
|
const slice = import_node_fs46.default.readdirSync(xcframeworkDir).filter((name3) => /^ios-.+-simulator$/.test(name3)).sort()[0];
|
|
30776
30790
|
return slice ? import_node_path47.default.join(xcframeworkDir, slice) : null;
|
|
@@ -32358,7 +32372,9 @@ ${roots.map((file) => ` header "${file}"`).join("\n")}
|
|
|
32358
32372
|
import_node_fs46.default.rmSync(work, { recursive: true, force: true });
|
|
32359
32373
|
return error instanceof Error ? error.message : String(error);
|
|
32360
32374
|
}
|
|
32361
|
-
const found = all.filter(
|
|
32375
|
+
const found = all.filter(
|
|
32376
|
+
(surface) => !provided.has(surface.module) && !(binary.cxxHeaders === void 0 && cxxOnly(surface))
|
|
32377
|
+
);
|
|
32362
32378
|
if (found.length === 0) {
|
|
32363
32379
|
import_node_fs46.default.rmSync(work, { recursive: true, force: true });
|
|
32364
32380
|
if (all.length > 0) return [];
|
|
@@ -34514,9 +34530,11 @@ async function swiftPackages(entry, app) {
|
|
|
34514
34530
|
resolved: app.packageResolved,
|
|
34515
34531
|
products: app.linkedProducts,
|
|
34516
34532
|
localDirs: app.localPackageDirs,
|
|
34533
|
+
// an artifact with neither a stand-in nor a gap ships only modules
|
|
34534
|
+
// peach provides, so a wrapper target that groups it still compiles
|
|
34517
34535
|
provided: /* @__PURE__ */ new Set([
|
|
34518
34536
|
...entry.provided,
|
|
34519
|
-
...
|
|
34537
|
+
...cxxArtifacts.map((binary) => binary.target).filter((target) => !built2.gaps.has(target))
|
|
34520
34538
|
]),
|
|
34521
34539
|
binaryGaps: built2.gaps,
|
|
34522
34540
|
owners
|
package/dist-lib/vite.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2005 | (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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2005 | (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 __defProp = Object.defineProperty;
|
|
@@ -462,6 +462,7 @@ export interface SootSimStyle {
|
|
|
462
462
|
_pixelSnapped?: true;
|
|
463
463
|
_swiftUIVerticalGuide?: 'firstTextLineCenter' | 'firstTextBaseline' | 'lastTextBaseline';
|
|
464
464
|
_swiftUIPlatformView?: true;
|
|
465
|
+
_swiftUIFrameSnapped?: true;
|
|
465
466
|
_uikitControlContent?: true;
|
|
466
467
|
_numericText?: NumericTextPaintRequest;
|
|
467
468
|
letterSpacing?: number;
|
package/package.json
CHANGED
package/src/swift-host.ts
CHANGED
|
@@ -627,9 +627,13 @@ async function swiftPackages(
|
|
|
627
627
|
resolved: app.packageResolved,
|
|
628
628
|
products: app.linkedProducts,
|
|
629
629
|
localDirs: app.localPackageDirs,
|
|
630
|
+
// an artifact with neither a stand-in nor a gap ships only modules
|
|
631
|
+
// peach provides, so a wrapper target that groups it still compiles
|
|
630
632
|
provided: new Set([
|
|
631
633
|
...entry.provided,
|
|
632
|
-
...
|
|
634
|
+
...cxxArtifacts
|
|
635
|
+
.map((binary) => binary.target)
|
|
636
|
+
.filter((target) => !built.gaps.has(target)),
|
|
633
637
|
]),
|
|
634
638
|
binaryGaps: built.gaps,
|
|
635
639
|
owners,
|
package/src/swift-standins.ts
CHANGED
|
@@ -616,6 +616,28 @@ function headerSurface(module: string, modulemap: string, headers: string): Slic
|
|
|
616
616
|
: { kind: 'c', module, modulemap, headers }
|
|
617
617
|
}
|
|
618
618
|
|
|
619
|
+
// a header module written in c++ outside any __cplusplus guard. swift imports
|
|
620
|
+
// no such module, and the app's own c++ units reach theirs by another path.
|
|
621
|
+
function cxxOnly(surface: Surface): boolean {
|
|
622
|
+
if (surface.kind !== 'c' && surface.kind !== 'objc') return false
|
|
623
|
+
return files(surface.headers, (name) => name.endsWith('.h')).some((file) => {
|
|
624
|
+
const guards: boolean[] = []
|
|
625
|
+
for (const line of fs
|
|
626
|
+
.readFileSync(path.join(surface.headers, file), 'utf8')
|
|
627
|
+
.split('\n')) {
|
|
628
|
+
if (/^\s*#\s*if/.test(line))
|
|
629
|
+
guards.push(/__cplusplus/.test(line) && !/!\s*defined|ifndef/.test(line))
|
|
630
|
+
else if (/^\s*#\s*endif/.test(line)) guards.pop()
|
|
631
|
+
else if (
|
|
632
|
+
!guards.includes(true) &&
|
|
633
|
+
/^\s*(?:namespace\s+\w+|template\s*<|class\s+\w+[^;]*$)/.test(line)
|
|
634
|
+
)
|
|
635
|
+
return true
|
|
636
|
+
}
|
|
637
|
+
return false
|
|
638
|
+
})
|
|
639
|
+
}
|
|
640
|
+
|
|
619
641
|
function simulatorSlice(xcframeworkDir: string): string | null {
|
|
620
642
|
const slice = fs
|
|
621
643
|
.readdirSync(xcframeworkDir)
|
|
@@ -2663,7 +2685,11 @@ async function binaryStandins(
|
|
|
2663
2685
|
fs.rmSync(work, { recursive: true, force: true })
|
|
2664
2686
|
return error instanceof Error ? error.message : String(error)
|
|
2665
2687
|
}
|
|
2666
|
-
const found = all.filter(
|
|
2688
|
+
const found = all.filter(
|
|
2689
|
+
(surface) =>
|
|
2690
|
+
!provided.has(surface.module) &&
|
|
2691
|
+
!(binary.cxxHeaders === undefined && cxxOnly(surface)),
|
|
2692
|
+
)
|
|
2667
2693
|
if (found.length === 0) {
|
|
2668
2694
|
fs.rmSync(work, { recursive: true, force: true })
|
|
2669
2695
|
if (all.length > 0) return []
|