peachsim 0.1.2304 → 0.1.2306
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/daemon.ts +31 -9
- 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 +190 -71
- 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 +2 -2
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +188 -69
- 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 +190 -71
- package/dist-lib/host/fetch-proxy-handler.cjs +15 -5
- 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 +15 -5
- 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 +15 -5
- 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 +61 -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 +206 -75
- package/dist-lib/swift-compile.cjs +2 -2
- package/dist-lib/swift-compile.mjs +2 -2
- 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 +4 -4
- package/dist-lib/vite.cjs +15 -5
- 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 +0 -5
- package/dist-types/packages/peach-globals/src/webViewBridgeContract.d.ts +3 -0
- package/java-platform/licenses/fdlibm.txt +3 -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/QuickLook.framework/Headers/QLPreviewController.h +1 -1
- package/src/expo-native-workspace.ts +3 -23
- package/src/git-repo-env.ts +27 -0
- package/src/native-static-libraries.ts +1 -1
- package/src/swift-packages.ts +4 -20
- package/src/turbo-source.ts +148 -22
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2306 | (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;
|
|
@@ -34953,6 +34953,38 @@ var init_expo_workspace_exclusion = __esm({
|
|
|
34953
34953
|
}
|
|
34954
34954
|
});
|
|
34955
34955
|
|
|
34956
|
+
// src/git-repo-env.ts
|
|
34957
|
+
function withoutGitRepositoryEnv(source = process.env) {
|
|
34958
|
+
const env = { ...source };
|
|
34959
|
+
for (const key2 of GIT_REPOSITORY_ENV_KEYS) {
|
|
34960
|
+
delete env[key2];
|
|
34961
|
+
}
|
|
34962
|
+
return env;
|
|
34963
|
+
}
|
|
34964
|
+
var GIT_REPOSITORY_ENV_KEYS;
|
|
34965
|
+
var init_git_repo_env = __esm({
|
|
34966
|
+
"src/git-repo-env.ts"() {
|
|
34967
|
+
"use strict";
|
|
34968
|
+
GIT_REPOSITORY_ENV_KEYS = [
|
|
34969
|
+
"GIT_DIR",
|
|
34970
|
+
"GIT_COMMON_DIR",
|
|
34971
|
+
"GIT_WORK_TREE",
|
|
34972
|
+
"GIT_INDEX_FILE",
|
|
34973
|
+
"GIT_OBJECT_DIRECTORY",
|
|
34974
|
+
"GIT_ALTERNATE_OBJECT_DIRECTORIES",
|
|
34975
|
+
"GIT_PREFIX",
|
|
34976
|
+
"GIT_SHALLOW_FILE",
|
|
34977
|
+
"GIT_GRAFT_FILE",
|
|
34978
|
+
"GIT_NAMESPACE",
|
|
34979
|
+
"GIT_IMPLICIT_WORK_TREE",
|
|
34980
|
+
"GIT_CONFIG",
|
|
34981
|
+
"GIT_CEILING_DIRECTORIES",
|
|
34982
|
+
"GIT_DISCOVERY_ACROSS_FILESYSTEM",
|
|
34983
|
+
"GIT_SUPER_PREFIX"
|
|
34984
|
+
];
|
|
34985
|
+
}
|
|
34986
|
+
});
|
|
34987
|
+
|
|
34956
34988
|
// src/native-failure-output.ts
|
|
34957
34989
|
function saveFailedOutput(command, cwd, output2) {
|
|
34958
34990
|
const directory2 = import_node_path19.default.join(cacheDir(), "native-prepare-failures");
|
|
@@ -59921,7 +59953,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
59921
59953
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
59922
59954
|
MULTI_MANIFEST_VERSION = 68;
|
|
59923
59955
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
59924
|
-
compilerSourceDigest = true ? "
|
|
59956
|
+
compilerSourceDigest = true ? "dda8eea414f224c24308031855c896c38101ab0d31acbc7060436bc1d4aadf0d" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
59925
59957
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
59926
59958
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
59927
59959
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -65275,27 +65307,7 @@ var init_workspace_root = __esm({
|
|
|
65275
65307
|
|
|
65276
65308
|
// src/expo-native-workspace.ts
|
|
65277
65309
|
function cleanWorkspaceGitEnv() {
|
|
65278
|
-
|
|
65279
|
-
for (const key2 of [
|
|
65280
|
-
"GIT_DIR",
|
|
65281
|
-
"GIT_COMMON_DIR",
|
|
65282
|
-
"GIT_WORK_TREE",
|
|
65283
|
-
"GIT_INDEX_FILE",
|
|
65284
|
-
"GIT_OBJECT_DIRECTORY",
|
|
65285
|
-
"GIT_ALTERNATE_OBJECT_DIRECTORIES",
|
|
65286
|
-
"GIT_PREFIX",
|
|
65287
|
-
"GIT_SHALLOW_FILE",
|
|
65288
|
-
"GIT_GRAFT_FILE",
|
|
65289
|
-
"GIT_NAMESPACE",
|
|
65290
|
-
"GIT_IMPLICIT_WORK_TREE",
|
|
65291
|
-
"GIT_CONFIG",
|
|
65292
|
-
"GIT_CEILING_DIRECTORIES",
|
|
65293
|
-
"GIT_DISCOVERY_ACROSS_FILESYSTEM",
|
|
65294
|
-
"GIT_SUPER_PREFIX"
|
|
65295
|
-
]) {
|
|
65296
|
-
delete env[key2];
|
|
65297
|
-
}
|
|
65298
|
-
return { ...env, ...isolatedGitEnv };
|
|
65310
|
+
return { ...withoutGitRepositoryEnv(), ...isolatedGitEnv };
|
|
65299
65311
|
}
|
|
65300
65312
|
function reactNativePodsEnvironment() {
|
|
65301
65313
|
return {
|
|
@@ -65998,8 +66010,7 @@ async function runAdmitted(lease, command, args, cwd, extraEnv) {
|
|
|
65998
66010
|
{
|
|
65999
66011
|
cwd,
|
|
66000
66012
|
env: {
|
|
66001
|
-
...
|
|
66002
|
-
...isolatedGitEnv,
|
|
66013
|
+
...cleanWorkspaceGitEnv(),
|
|
66003
66014
|
EXPO_NO_TELEMETRY: "1",
|
|
66004
66015
|
LANG: "en_US.UTF-8",
|
|
66005
66016
|
LC_ALL: "en_US.UTF-8",
|
|
@@ -66037,6 +66048,7 @@ var init_expo_native_workspace = __esm({
|
|
|
66037
66048
|
init_detect();
|
|
66038
66049
|
init_admitted_mac_build();
|
|
66039
66050
|
init_expo_workspace_exclusion();
|
|
66051
|
+
init_git_repo_env();
|
|
66040
66052
|
init_home_paths();
|
|
66041
66053
|
init_native_failure_output();
|
|
66042
66054
|
init_native_git();
|
|
@@ -66625,7 +66637,7 @@ var init_swift_standin_digest = __esm({
|
|
|
66625
66637
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
66626
66638
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
66627
66639
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
66628
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
66640
|
+
STANDIN_SOURCE_DIGEST = true ? "0ffa2547ef06e12d293047c1e51c99b46325d43c9a029d4d9a9586b75f24b39b" : standinSourceDigest();
|
|
66629
66641
|
}
|
|
66630
66642
|
});
|
|
66631
66643
|
|
|
@@ -67104,7 +67116,7 @@ __export(expo_native_prebuilt_exports, {
|
|
|
67104
67116
|
servedExpoSwift: () => servedExpoSwift
|
|
67105
67117
|
});
|
|
67106
67118
|
function expoNativeCompilerDigestValue() {
|
|
67107
|
-
return true ? "
|
|
67119
|
+
return true ? "5b7ad1d2620febb7d12f9053396fbc8cf3f6f1e07c8a57f9cbc444527b01cac9" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
67108
67120
|
}
|
|
67109
67121
|
function readSources(value) {
|
|
67110
67122
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -67676,7 +67688,7 @@ var init_native_static_libraries = __esm({
|
|
|
67676
67688
|
nativeSha256: "b91cd08892ebe0cdd39e1336594bb66cd79fc639a894303805792047d24f468b",
|
|
67677
67689
|
upstream: "ed59cc48e37ac33ac15b252fc5ad7af4b9ecd51d",
|
|
67678
67690
|
// updated with the native producer script and port patches.
|
|
67679
|
-
recipe: "
|
|
67691
|
+
recipe: "7914af52f8a3694215d7422b01209490237921826e18438d5f1004775769ab63",
|
|
67680
67692
|
archive: "libessentia.a"
|
|
67681
67693
|
},
|
|
67682
67694
|
{
|
|
@@ -68090,27 +68102,10 @@ async function fetchCheckout(checkouts, identity2, pin2, signal) {
|
|
|
68090
68102
|
if (preparedSwiftPin(checkouts, identity2, pin2.location, pin2.revision)) return;
|
|
68091
68103
|
requireNativeGit();
|
|
68092
68104
|
const key2 = checkoutKey(dir, pin2);
|
|
68093
|
-
const gitEnv = {
|
|
68094
|
-
|
|
68095
|
-
"
|
|
68096
|
-
|
|
68097
|
-
"GIT_WORK_TREE",
|
|
68098
|
-
"GIT_INDEX_FILE",
|
|
68099
|
-
"GIT_OBJECT_DIRECTORY",
|
|
68100
|
-
"GIT_ALTERNATE_OBJECT_DIRECTORIES",
|
|
68101
|
-
"GIT_PREFIX",
|
|
68102
|
-
"GIT_SHALLOW_FILE",
|
|
68103
|
-
"GIT_GRAFT_FILE",
|
|
68104
|
-
"GIT_NAMESPACE",
|
|
68105
|
-
"GIT_IMPLICIT_WORK_TREE",
|
|
68106
|
-
"GIT_CONFIG",
|
|
68107
|
-
"GIT_CEILING_DIRECTORIES",
|
|
68108
|
-
"GIT_DISCOVERY_ACROSS_FILESYSTEM",
|
|
68109
|
-
"GIT_SUPER_PREFIX"
|
|
68110
|
-
]) {
|
|
68111
|
-
delete gitEnv[name3];
|
|
68112
|
-
}
|
|
68113
|
-
gitEnv.GIT_TERMINAL_PROMPT = "0";
|
|
68105
|
+
const gitEnv = {
|
|
68106
|
+
...withoutGitRepositoryEnv(),
|
|
68107
|
+
GIT_TERMINAL_PROMPT: "0"
|
|
68108
|
+
};
|
|
68114
68109
|
const git = async (cwd, ...args) => (await execFileAsync2("git", ["-C", cwd, ...args], {
|
|
68115
68110
|
encoding: "utf8",
|
|
68116
68111
|
env: gitEnv,
|
|
@@ -68718,6 +68713,7 @@ var init_swift_packages = __esm({
|
|
|
68718
68713
|
import_node_path71 = __toESM(require("node:path"), 1);
|
|
68719
68714
|
import_promises7 = require("node:timers/promises");
|
|
68720
68715
|
import_node_util13 = require("node:util");
|
|
68716
|
+
init_git_repo_env();
|
|
68721
68717
|
init_home_paths();
|
|
68722
68718
|
init_native_git();
|
|
68723
68719
|
init_numbered_lock();
|
|
@@ -82459,15 +82455,17 @@ async function collectTurboSources(options) {
|
|
|
82459
82455
|
flattensPublicHeaders: false,
|
|
82460
82456
|
bridgingHeader: null,
|
|
82461
82457
|
prefixHeader,
|
|
82462
|
-
headerSearchPaths: [
|
|
82463
|
-
`${targetPath(targetName)}/include`,
|
|
82464
|
-
`${targetPath(TURBO_CORE_TARGET)}/include`
|
|
82465
|
-
],
|
|
82458
|
+
headerSearchPaths: [`${targetPath(targetName)}/include`],
|
|
82466
82459
|
userHeaderSearchPaths: [],
|
|
82467
82460
|
frameworkSearchPaths: [],
|
|
82468
82461
|
headerMaps: [],
|
|
82469
82462
|
productHeaders: {},
|
|
82470
|
-
|
|
82463
|
+
// TurboCore's aliased React headers compile the units but never reach
|
|
82464
|
+
// a Swift importer, whose React module is the app's own
|
|
82465
|
+
flags: [
|
|
82466
|
+
"-I",
|
|
82467
|
+
`${SWIFT_NATIVE_INPUT_ROOT}/${targetPath(TURBO_CORE_TARGET)}/include`
|
|
82468
|
+
],
|
|
82471
82469
|
importerFlags: [],
|
|
82472
82470
|
cxxFlags: [],
|
|
82473
82471
|
fileFlags: {},
|
|
@@ -83851,7 +83849,8 @@ ${moduleProviders ? `- (id<RCTModuleProvider>)getModuleProvider:(const char *)na
|
|
|
83851
83849
|
@end
|
|
83852
83850
|
|
|
83853
83851
|
// an app's Fabric component views, which its own Fabric host defines
|
|
83854
|
-
|
|
83852
|
+
void peachInstallFabricViews(facebook::jsi::Runtime &runtime, std::shared_ptr<facebook::react::CallInvoker> invoker) __attribute__((weak));
|
|
83853
|
+
void peachTeardownFabricViews() __attribute__((weak));
|
|
83855
83854
|
|
|
83856
83855
|
// UIKitCore: the key window and root view controller an app delegate makes at launch
|
|
83857
83856
|
extern "C" void PeachLaunchReactNativeWindow(void);
|
|
@@ -83873,6 +83872,7 @@ extern "C" void peachTurboInitialize() {
|
|
|
83873
83872
|
auto& runtime = peach::jsi_runtime::create(
|
|
83874
83873
|
[] { invoker->drain(); },
|
|
83875
83874
|
[] {
|
|
83875
|
+
if (peachTeardownFabricViews) peachTeardownFabricViews();
|
|
83876
83876
|
[manager invalidate];
|
|
83877
83877
|
manager = nil;
|
|
83878
83878
|
delegate = nil;
|
|
@@ -83930,7 +83930,7 @@ ${bridgeProxy ? ` // as RCTInstance does: the proxy modules reach as their brid
|
|
|
83930
83930
|
}];
|
|
83931
83931
|
[decorator.moduleRegistry setTurboModuleRegistry:manager];
|
|
83932
83932
|
[manager installJSBindings:runtime];
|
|
83933
|
-
if (peachInstallFabricViews) peachInstallFabricViews(runtime);
|
|
83933
|
+
if (peachInstallFabricViews) peachInstallFabricViews(runtime, invoker);
|
|
83934
83934
|
}
|
|
83935
83935
|
|
|
83936
83936
|
// the screenshot the device took, as UIKit posts it to every observer in the
|
|
@@ -83995,13 +83995,20 @@ namespace {
|
|
|
83995
83995
|
struct PeachFabricView {
|
|
83996
83996
|
react::ComponentHandle handle;
|
|
83997
83997
|
const react::ComponentDescriptor *descriptor;
|
|
83998
|
+
react::ShadowNodeFamily::Shared family;
|
|
83998
83999
|
react::Props::Shared props;
|
|
84000
|
+
react::State::Shared state;
|
|
83999
84001
|
react::LayoutMetrics layoutMetrics;
|
|
84000
84002
|
};
|
|
84001
84003
|
PeachFabricComponents *fabricComponents;
|
|
84002
84004
|
RCTComponentViewRegistry *fabricRegistry;
|
|
84003
|
-
std::shared_ptr<
|
|
84005
|
+
std::shared_ptr<react::ContextContainer> fabricContext;
|
|
84004
84006
|
react::ComponentDescriptorRegistry::Shared fabricDescriptors;
|
|
84007
|
+
std::shared_ptr<react::CallInvoker> fabricInvoker;
|
|
84008
|
+
std::shared_ptr<react::RuntimeScheduler> fabricScheduler;
|
|
84009
|
+
std::shared_ptr<const void> fabricOwner;
|
|
84010
|
+
std::shared_ptr<const react::EventDispatcher> fabricDispatcher;
|
|
84011
|
+
std::optional<jsi::Function> fabricEventHandler;
|
|
84005
84012
|
std::unordered_map<int, PeachFabricView> fabricViews;
|
|
84006
84013
|
int nextFabricView = 1;
|
|
84007
84014
|
std::string fabricNames = ${JSON.stringify(views.map(({ name: name3 }) => name3).join("\n"))};
|
|
@@ -84020,32 +84027,112 @@ react::Props::Shared fabricCloneProps(jsi::Runtime &rt, const PeachFabricView &v
|
|
|
84020
84027
|
return view.descriptor->cloneProps(context, view.props, react::RawProps(rt, props));
|
|
84021
84028
|
}
|
|
84022
84029
|
|
|
84030
|
+
// the beat React Native's run loop observer gives: queued events flush once
|
|
84031
|
+
// the call that queued them returns
|
|
84032
|
+
class PeachFabricEventBeat final : public react::EventBeat {
|
|
84033
|
+
public:
|
|
84034
|
+
PeachFabricEventBeat(std::shared_ptr<OwnerBox> ownerBox, react::RuntimeScheduler &scheduler)
|
|
84035
|
+
: EventBeat(ownerBox, scheduler), box(std::move(ownerBox)) {}
|
|
84036
|
+
void request() const override {
|
|
84037
|
+
EventBeat::request();
|
|
84038
|
+
std::weak_ptr<const void> owner = box->owner;
|
|
84039
|
+
fabricInvoker->invokeAsync([this, owner](jsi::Runtime &) {
|
|
84040
|
+
if (owner.lock()) induce();
|
|
84041
|
+
});
|
|
84042
|
+
}
|
|
84043
|
+
|
|
84044
|
+
private:
|
|
84045
|
+
std::shared_ptr<OwnerBox> box;
|
|
84046
|
+
};
|
|
84047
|
+
|
|
84048
|
+
// UIManager::updateState reads a state's data as State's friend; a member
|
|
84049
|
+
// pointer named through a derived class reaches the same accessor
|
|
84050
|
+
struct PeachStateData : react::State {
|
|
84051
|
+
static constexpr auto data = &PeachStateData::getDataPointer;
|
|
84052
|
+
};
|
|
84053
|
+
|
|
84054
|
+
// UIManager::dispatchEventToJS: the instance handle the engine gave the view,
|
|
84055
|
+
// the event type and its payload with the target tag and timestamp
|
|
84056
|
+
void fabricDispatchEvent(
|
|
84057
|
+
jsi::Runtime &rt,
|
|
84058
|
+
react::EventTarget *target,
|
|
84059
|
+
const std::string &type,
|
|
84060
|
+
react::ReactEventPriority,
|
|
84061
|
+
const react::EventPayload &eventPayload,
|
|
84062
|
+
react::HighResTimeStamp timestamp) {
|
|
84063
|
+
auto payload = eventPayload.asJSIValue(rt);
|
|
84064
|
+
if (payload.isNull() || !fabricEventHandler || !target) return;
|
|
84065
|
+
auto handle = target->getInstanceHandle(rt);
|
|
84066
|
+
if (handle.isUndefined() || handle.isNull()) return;
|
|
84067
|
+
if (payload.isObject()) {
|
|
84068
|
+
auto object = payload.asObject(rt);
|
|
84069
|
+
object.setProperty(rt, "target", target->getTag());
|
|
84070
|
+
if (!object.hasProperty(rt, "timeStamp"))
|
|
84071
|
+
object.setProperty(rt, "timeStamp", timestamp.toDOMHighResTimeStamp());
|
|
84072
|
+
}
|
|
84073
|
+
fabricEventHandler->call(rt, std::move(handle), jsi::String::createFromUtf8(rt, type), std::move(payload));
|
|
84074
|
+
}
|
|
84075
|
+
|
|
84076
|
+
// UIManager::updateState with the engine's tree in place of the shadow tree:
|
|
84077
|
+
// the view's next state, then the update its commit would mount
|
|
84078
|
+
void fabricUpdateState(const react::StateUpdate &update) {
|
|
84079
|
+
int tag = update.family->getTag();
|
|
84080
|
+
auto found = fabricViews.find(tag);
|
|
84081
|
+
if (found == fabricViews.end() || !found->second.state) return;
|
|
84082
|
+
auto &view = found->second;
|
|
84083
|
+
auto data = update.callback(((*view.state).*PeachStateData::data)());
|
|
84084
|
+
if (!data) return;
|
|
84085
|
+
auto oldState = view.state;
|
|
84086
|
+
view.state = view.descriptor->createState(*view.family, data);
|
|
84087
|
+
UIView<RCTComponentViewProtocol> *componentView = [fabricRegistry componentViewDescriptorWithTag:tag].view;
|
|
84088
|
+
[componentView updateState:view.state oldState:oldState];
|
|
84089
|
+
[componentView finalizeUpdates:RNComponentViewUpdateMaskState];
|
|
84090
|
+
}
|
|
84091
|
+
|
|
84023
84092
|
} // namespace
|
|
84024
84093
|
|
|
84025
|
-
|
|
84094
|
+
void peachInstallFabricViews(jsi::Runtime &rt, std::shared_ptr<react::CallInvoker> invoker) {
|
|
84095
|
+
fabricInvoker = std::move(invoker);
|
|
84026
84096
|
fabricComponents = [PeachFabricComponents new];
|
|
84027
84097
|
RCTComponentViewFactory *factory = [RCTComponentViewFactory currentComponentViewFactory];
|
|
84028
84098
|
factory.thirdPartyFabricComponentsProvider = fabricComponents;
|
|
84029
84099
|
fabricRegistry = [RCTComponentViewRegistry new];
|
|
84030
|
-
fabricContext = std::make_shared<
|
|
84031
|
-
react::
|
|
84100
|
+
fabricContext = std::make_shared<react::ContextContainer>();
|
|
84101
|
+
fabricScheduler = std::make_shared<react::RuntimeScheduler>(
|
|
84102
|
+
[](std::function<void(jsi::Runtime &)> &&work) { fabricInvoker->invokeAsync(std::move(work)); });
|
|
84103
|
+
fabricContext->insert(react::RuntimeSchedulerKey, std::weak_ptr<react::RuntimeScheduler>(fabricScheduler));
|
|
84104
|
+
fabricOwner = std::make_shared<int>(0);
|
|
84105
|
+
auto box = std::make_shared<react::EventBeat::OwnerBox>();
|
|
84106
|
+
box->owner = fabricOwner;
|
|
84107
|
+
auto conclusion = [](jsi::Runtime &rt) { fabricScheduler->callExpiredTasks(rt); };
|
|
84108
|
+
fabricDispatcher = std::make_shared<const react::EventDispatcher>(
|
|
84109
|
+
react::EventQueueProcessor(fabricDispatchEvent, conclusion, fabricUpdateState, std::weak_ptr<react::EventLogger>()),
|
|
84110
|
+
std::make_unique<PeachFabricEventBeat>(box, *fabricScheduler),
|
|
84111
|
+
fabricUpdateState,
|
|
84112
|
+
std::weak_ptr<react::EventLogger>());
|
|
84113
|
+
react::ComponentDescriptorParameters parameters{fabricDispatcher, fabricContext, nullptr};
|
|
84032
84114
|
fabricDescriptors = [factory createComponentDescriptorRegistryWithParameters:parameters];
|
|
84033
84115
|
auto views = jsi::Object(rt);
|
|
84034
84116
|
auto method = [&](const char *name, unsigned count, jsi::HostFunctionType body) {
|
|
84035
84117
|
views.setProperty(rt, name, jsi::Function::createFromHostFunction(rt, jsi::PropNameID::forAscii(rt, name), count, std::move(body)));
|
|
84036
84118
|
};
|
|
84037
|
-
// Create then Insert: the
|
|
84038
|
-
//
|
|
84039
|
-
|
|
84119
|
+
// create(name, instanceHandle, props), Create then Insert: the family the
|
|
84120
|
+
// handle's events resolve through, the first props, the initial state, and
|
|
84121
|
+
// the layout the view has before the engine measures it
|
|
84122
|
+
method("create", 3, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
84040
84123
|
const auto &descriptor = fabricDescriptors->at(args[0].asString(rt).utf8(rt));
|
|
84041
84124
|
int tag = nextFabricView++;
|
|
84042
|
-
auto
|
|
84043
|
-
|
|
84125
|
+
auto family = descriptor.createFamily(
|
|
84126
|
+
{.tag = tag, .surfaceId = -1, .instanceHandle = std::make_shared<const react::InstanceHandle>(rt, args[1], tag)});
|
|
84127
|
+
auto &view = fabricViews.emplace(tag, PeachFabricView{descriptor.getComponentHandle(), &descriptor, family, nullptr, nullptr, {}}).first->second;
|
|
84128
|
+
view.props = fabricCloneProps(rt, view, args[2]);
|
|
84129
|
+
view.state = descriptor.createInitialState(view.props, family);
|
|
84130
|
+
family->getEventEmitter()->setEnabled(true);
|
|
84044
84131
|
UIView<RCTComponentViewProtocol> *componentView =
|
|
84045
84132
|
[fabricRegistry dequeueComponentViewWithComponentHandle:view.handle tag:tag].view;
|
|
84046
84133
|
[componentView updateProps:view.props oldProps:nullptr];
|
|
84047
|
-
[componentView updateEventEmitter:
|
|
84048
|
-
[componentView updateState:
|
|
84134
|
+
[componentView updateEventEmitter:family->getEventEmitter()];
|
|
84135
|
+
[componentView updateState:view.state oldState:nullptr];
|
|
84049
84136
|
[componentView updateLayoutMetrics:view.layoutMetrics oldLayoutMetrics:react::EmptyLayoutMetrics];
|
|
84050
84137
|
[componentView finalizeUpdates:RNComponentViewUpdateMaskAll];
|
|
84051
84138
|
return jsi::Value(tag);
|
|
@@ -84075,19 +84162,41 @@ extern "C" void peachInstallFabricViews(jsi::Runtime &rt) {
|
|
|
84075
84162
|
[componentView finalizeUpdates:RNComponentViewUpdateMaskLayoutMetrics];
|
|
84076
84163
|
return jsi::Value::undefined();
|
|
84077
84164
|
});
|
|
84078
|
-
// Remove then Delete: the
|
|
84165
|
+
// Remove then Delete: the family's emitter stops at once, as an unmounted
|
|
84166
|
+
// family's does, and the registry recycles the view
|
|
84079
84167
|
method("drop", 1, [](jsi::Runtime &, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
84080
84168
|
int tag = static_cast<int>(args[0].asNumber());
|
|
84081
84169
|
auto &view = fabricView(tag);
|
|
84170
|
+
view.family->getEventEmitter()->setEnabled(false);
|
|
84082
84171
|
RCTComponentViewDescriptor descriptor = [fabricRegistry componentViewDescriptorWithTag:tag];
|
|
84083
84172
|
[descriptor.view removeFromSuperview];
|
|
84084
84173
|
[fabricRegistry enqueueComponentViewWithComponentHandle:view.handle tag:tag componentViewDescriptor:descriptor];
|
|
84085
84174
|
fabricViews.erase(tag);
|
|
84086
84175
|
return jsi::Value::undefined();
|
|
84087
84176
|
});
|
|
84177
|
+
// RCTMountingManager::dispatchCommand: the view's handleCommand:args:
|
|
84178
|
+
method("command", 3, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
84179
|
+
int tag = static_cast<int>(args[0].asNumber());
|
|
84180
|
+
fabricView(tag);
|
|
84181
|
+
NSArray *commandArgs = react::TurboModuleConvertUtils::convertJSIValueToObjCObject(rt, args[2], fabricInvoker);
|
|
84182
|
+
[[fabricRegistry componentViewDescriptorWithTag:tag].view handleCommand:@(args[1].asString(rt).utf8(rt).c_str())
|
|
84183
|
+
args:commandArgs];
|
|
84184
|
+
return jsi::Value::undefined();
|
|
84185
|
+
});
|
|
84186
|
+
// the function React's dispatchEvent stands for: (instanceHandle, type, payload)
|
|
84187
|
+
method("setEventHandler", 1, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
84188
|
+
fabricEventHandler = args[0].asObject(rt).asFunction(rt);
|
|
84189
|
+
return jsi::Value::undefined();
|
|
84190
|
+
});
|
|
84088
84191
|
rt.global().setProperty(rt, "peachFabricViews", std::move(views));
|
|
84089
84192
|
}
|
|
84090
84193
|
|
|
84194
|
+
// the runtime's functions go before the runtime does
|
|
84195
|
+
void peachTeardownFabricViews() {
|
|
84196
|
+
fabricOwner.reset();
|
|
84197
|
+
fabricEventHandler.reset();
|
|
84198
|
+
}
|
|
84199
|
+
|
|
84091
84200
|
extern "C" void *peach_fabric_view_content(int tag) {
|
|
84092
84201
|
return (__bridge_retained void *)[fabricRegistry componentViewDescriptorWithTag:tag].view;
|
|
84093
84202
|
}
|
|
@@ -84117,6 +84226,7 @@ var init_turbo_source = __esm({
|
|
|
84117
84226
|
init_podspec_sources();
|
|
84118
84227
|
init_swift_source_file();
|
|
84119
84228
|
init_swift_submit();
|
|
84229
|
+
init_swiftContract();
|
|
84120
84230
|
init_turbo_codegen_intake();
|
|
84121
84231
|
init_xcode_project();
|
|
84122
84232
|
execFileAsync3 = (0, import_node_util15.promisify)(import_node_child_process51.execFile);
|
|
@@ -84266,13 +84376,22 @@ class JsCallInvoker final : public react::CallInvoker {
|
|
|
84266
84376
|
#import <React/RCTComponentViewFactory.h>
|
|
84267
84377
|
#import <React/RCTComponentViewProtocol.h>
|
|
84268
84378
|
#import <React/RCTComponentViewRegistry.h>
|
|
84379
|
+
#import <ReactCommon/RCTTurboModule.h>
|
|
84380
|
+
#include <ReactCommon/CallInvoker.h>
|
|
84269
84381
|
#include <react/renderer/componentregistry/ComponentDescriptorRegistry.h>
|
|
84382
|
+
#include <react/renderer/core/EventBeat.h>
|
|
84383
|
+
#include <react/renderer/core/EventDispatcher.h>
|
|
84384
|
+
#include <react/renderer/core/EventQueueProcessor.h>
|
|
84385
|
+
#include <react/renderer/core/InstanceHandle.h>
|
|
84270
84386
|
#include <react/renderer/core/LayoutMetrics.h>
|
|
84271
84387
|
#include <react/renderer/core/PropsParserContext.h>
|
|
84272
84388
|
#include <react/renderer/core/RawProps.h>
|
|
84389
|
+
#include <react/renderer/core/StateUpdate.h>
|
|
84390
|
+
#include <react/renderer/runtimescheduler/RuntimeScheduler.h>
|
|
84273
84391
|
#include <react/utils/ContextContainer.h>
|
|
84274
84392
|
#include <cstdio>
|
|
84275
84393
|
#include <cstdlib>
|
|
84394
|
+
#include <optional>
|
|
84276
84395
|
#include <unordered_map>
|
|
84277
84396
|
#include <jsi/jsi.h>
|
|
84278
84397
|
|
|
@@ -85027,7 +85146,7 @@ var init_react_native_core = __esm({
|
|
|
85027
85146
|
init_swift_distribution();
|
|
85028
85147
|
init_swift_package();
|
|
85029
85148
|
init_swiftContract();
|
|
85030
|
-
recipe = true ? "
|
|
85149
|
+
recipe = true ? "ad6a6672a4c7d5539690da16e5a429437230d138b36c48e3963d5e9f9ddad98e" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
85031
85150
|
strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
85032
85151
|
building = /* @__PURE__ */ new Map();
|
|
85033
85152
|
}
|
|
@@ -88959,7 +89078,7 @@ var init_nitro_superset = __esm({
|
|
|
88959
89078
|
init_nitroContract();
|
|
88960
89079
|
init_swift_standin_digest();
|
|
88961
89080
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
88962
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
89081
|
+
NITRO_COMPILER_DIGEST = true ? "32ab9eee82772e66c536ce78e5cb863faf23cdf987bdb5f67e6482fedc999e6f" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
88963
89082
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
88964
89083
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
88965
89084
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -89668,7 +89787,7 @@ var init_one_sdk_bundle = __esm({
|
|
|
89668
89787
|
var runtime_companion_default;
|
|
89669
89788
|
var init_runtime_companion = __esm({
|
|
89670
89789
|
"runtime-companion.json"() {
|
|
89671
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
89790
|
+
runtime_companion_default = { abi: 1, sha256: "0fab660670984b60962d163f3e174d3f27f6685e8c3e262164e28d6e6b52ad8d", file: "node/cli-0fab660670984b60962d163f3e174d3f27f6685e8c3e262164e28d6e6b52ad8d.cjs" };
|
|
89672
89791
|
}
|
|
89673
89792
|
});
|
|
89674
89793
|
|
|
@@ -116695,6 +116814,11 @@ function serveArgs(invocation) {
|
|
|
116695
116814
|
return [...invocation.prefixArgs, "serve"];
|
|
116696
116815
|
}
|
|
116697
116816
|
function macProcessRunsServe(pid, invocation) {
|
|
116817
|
+
const launch2 = macProcessArgs(pid);
|
|
116818
|
+
if (launch2 === null || !serveArgs(invocation).every((arg, index) => launch2.args[index + 1] === arg))
|
|
116819
|
+
return false;
|
|
116820
|
+
if (launch2.executable.startsWith("/") && sameExecutable(invocation, launch2.executable))
|
|
116821
|
+
return true;
|
|
116698
116822
|
const files2 = (0, import_child_process7.spawnSync)(LSOF, ["-nP", "-a", "-p", String(pid), "-d", "txt", "-FDi"], {
|
|
116699
116823
|
encoding: "utf8"
|
|
116700
116824
|
});
|
|
@@ -116705,9 +116829,15 @@ function macProcessRunsServe(pid, invocation) {
|
|
|
116705
116829
|
else if (line.startsWith("i") && sameFile(invocation.executable, device, BigInt(line.slice(1))))
|
|
116706
116830
|
runsExecutable = true;
|
|
116707
116831
|
}
|
|
116708
|
-
|
|
116709
|
-
|
|
116710
|
-
|
|
116832
|
+
return runsExecutable;
|
|
116833
|
+
}
|
|
116834
|
+
function sameExecutable(invocation, path144) {
|
|
116835
|
+
try {
|
|
116836
|
+
const stats = (0, import_fs10.statSync)(path144, { bigint: true });
|
|
116837
|
+
return sameFile(invocation.executable, stats.dev, stats.ino);
|
|
116838
|
+
} catch {
|
|
116839
|
+
return false;
|
|
116840
|
+
}
|
|
116711
116841
|
}
|
|
116712
116842
|
function macProcessArgs(pid) {
|
|
116713
116843
|
const int32 = (value) => {
|
|
@@ -116740,12 +116870,13 @@ ObjC.unwrap(size.base64EncodedStringWithOptions(0)) + ' ' + ObjC.unwrap(out.base
|
|
|
116740
116870
|
Number(Buffer.from(length, "base64").readBigUInt64LE())
|
|
116741
116871
|
);
|
|
116742
116872
|
const argc = buffer.readInt32LE(0);
|
|
116873
|
+
const executable = buffer.toString("utf8", 4, buffer.indexOf(0, 4));
|
|
116743
116874
|
let at = buffer.indexOf(0, 4);
|
|
116744
116875
|
while (buffer[at] === 0) at++;
|
|
116745
116876
|
const args = [];
|
|
116746
116877
|
for (; args.length < argc; at = buffer.indexOf(0, at) + 1)
|
|
116747
116878
|
args.push(buffer.toString("utf8", at, buffer.indexOf(0, at)));
|
|
116748
|
-
return args;
|
|
116879
|
+
return { executable, args };
|
|
116749
116880
|
}
|
|
116750
116881
|
async function stopMacDaemonBridge(invocation, target = macServiceTarget()) {
|
|
116751
116882
|
const service = target === null ? null : readMacDaemonState(target);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2306 | (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;
|
|
@@ -13500,7 +13500,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13500
13500
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13501
13501
|
var MULTI_MANIFEST_VERSION = 68;
|
|
13502
13502
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13503
|
-
var compilerSourceDigest = true ? "
|
|
13503
|
+
var compilerSourceDigest = true ? "dda8eea414f224c24308031855c896c38101ab0d31acbc7060436bc1d4aadf0d" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
13504
13504
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13505
13505
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
13506
13506
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2306 | (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);
|
|
@@ -13487,7 +13487,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
13487
13487
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
13488
13488
|
var MULTI_MANIFEST_VERSION = 68;
|
|
13489
13489
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
13490
|
-
var compilerSourceDigest = true ? "
|
|
13490
|
+
var compilerSourceDigest = true ? "dda8eea414f224c24308031855c896c38101ab0d31acbc7060436bc1d4aadf0d" : swiftCompilerSourceDigest(import.meta.dirname);
|
|
13491
13491
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
13492
13492
|
const hash = createHash13("sha256");
|
|
13493
13493
|
hash.update(`swift-compile
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2306 | (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.2306 | (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.2306 | (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.2306 | (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.2306 | (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;
|
|
@@ -18314,7 +18314,7 @@ var darwinRecordsRegion = (quoted2) => quoted2.length ? ["-Wl,--start-lib", ...q
|
|
|
18314
18314
|
var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
18315
18315
|
var MULTI_MANIFEST_VERSION = 68;
|
|
18316
18316
|
var SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
18317
|
-
var compilerSourceDigest = true ? "
|
|
18317
|
+
var compilerSourceDigest = true ? "dda8eea414f224c24308031855c896c38101ab0d31acbc7060436bc1d4aadf0d" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
18318
18318
|
function swiftArtifactHash(input, release, moduleRoot) {
|
|
18319
18319
|
const hash = (0, import_node_crypto13.createHash)("sha256");
|
|
18320
18320
|
hash.update(`swift-compile
|
|
@@ -32616,7 +32616,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
|
|
|
32616
32616
|
return hash.digest("hex");
|
|
32617
32617
|
}
|
|
32618
32618
|
var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
32619
|
-
var STANDIN_SOURCE_DIGEST = true ? "
|
|
32619
|
+
var STANDIN_SOURCE_DIGEST = true ? "0ffa2547ef06e12d293047c1e51c99b46325d43c9a029d4d9a9586b75f24b39b" : standinSourceDigest();
|
|
32620
32620
|
|
|
32621
32621
|
// src/swift-standins.ts
|
|
32622
32622
|
var import_node_child_process31 = require("node:child_process");
|
|
@@ -32818,7 +32818,7 @@ var NATIVE_STATIC_LIBRARY_RECIPES = [
|
|
|
32818
32818
|
nativeSha256: "b91cd08892ebe0cdd39e1336594bb66cd79fc639a894303805792047d24f468b",
|
|
32819
32819
|
upstream: "ed59cc48e37ac33ac15b252fc5ad7af4b9ecd51d",
|
|
32820
32820
|
// updated with the native producer script and port patches.
|
|
32821
|
-
recipe: "
|
|
32821
|
+
recipe: "7914af52f8a3694215d7422b01209490237921826e18438d5f1004775769ab63",
|
|
32822
32822
|
archive: "libessentia.a"
|
|
32823
32823
|
},
|
|
32824
32824
|
{
|