peachsim 0.1.2305 → 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/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 +149 -26
- 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 +148 -25
- 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 +149 -26
- package/dist-lib/host/fetch-proxy-handler.cjs +5 -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 +5 -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 +5 -4
- 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 +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 +149 -26
- 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 +5 -4
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/sdk/ios/System/Library/Frameworks/QuickLook.framework/Headers/QLPreviewController.h +1 -1
- package/src/native-static-libraries.ts +1 -1
- package/src/turbo-source.ts +148 -22
|
@@ -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;
|
|
@@ -25290,7 +25290,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
25290
25290
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
25291
25291
|
MULTI_MANIFEST_VERSION = 68;
|
|
25292
25292
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
25293
|
-
compilerSourceDigest = true ? "
|
|
25293
|
+
compilerSourceDigest = true ? "dda8eea414f224c24308031855c896c38101ab0d31acbc7060436bc1d4aadf0d" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
25294
25294
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
25295
25295
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
25296
25296
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -29501,7 +29501,7 @@ var init_swift_standin_digest = __esm({
|
|
|
29501
29501
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
29502
29502
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
29503
29503
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
29504
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
29504
|
+
STANDIN_SOURCE_DIGEST = true ? "0ffa2547ef06e12d293047c1e51c99b46325d43c9a029d4d9a9586b75f24b39b" : standinSourceDigest();
|
|
29505
29505
|
}
|
|
29506
29506
|
});
|
|
29507
29507
|
|
|
@@ -30051,7 +30051,7 @@ var init_native_static_libraries = __esm({
|
|
|
30051
30051
|
nativeSha256: "b91cd08892ebe0cdd39e1336594bb66cd79fc639a894303805792047d24f468b",
|
|
30052
30052
|
upstream: "ed59cc48e37ac33ac15b252fc5ad7af4b9ecd51d",
|
|
30053
30053
|
// updated with the native producer script and port patches.
|
|
30054
|
-
recipe: "
|
|
30054
|
+
recipe: "7914af52f8a3694215d7422b01209490237921826e18438d5f1004775769ab63",
|
|
30055
30055
|
archive: "libessentia.a"
|
|
30056
30056
|
},
|
|
30057
30057
|
{
|
|
@@ -43180,15 +43180,17 @@ async function collectTurboSources(options) {
|
|
|
43180
43180
|
flattensPublicHeaders: false,
|
|
43181
43181
|
bridgingHeader: null,
|
|
43182
43182
|
prefixHeader,
|
|
43183
|
-
headerSearchPaths: [
|
|
43184
|
-
`${targetPath(targetName)}/include`,
|
|
43185
|
-
`${targetPath(TURBO_CORE_TARGET)}/include`
|
|
43186
|
-
],
|
|
43183
|
+
headerSearchPaths: [`${targetPath(targetName)}/include`],
|
|
43187
43184
|
userHeaderSearchPaths: [],
|
|
43188
43185
|
frameworkSearchPaths: [],
|
|
43189
43186
|
headerMaps: [],
|
|
43190
43187
|
productHeaders: {},
|
|
43191
|
-
|
|
43188
|
+
// TurboCore's aliased React headers compile the units but never reach
|
|
43189
|
+
// a Swift importer, whose React module is the app's own
|
|
43190
|
+
flags: [
|
|
43191
|
+
"-I",
|
|
43192
|
+
`${SWIFT_NATIVE_INPUT_ROOT}/${targetPath(TURBO_CORE_TARGET)}/include`
|
|
43193
|
+
],
|
|
43192
43194
|
importerFlags: [],
|
|
43193
43195
|
cxxFlags: [],
|
|
43194
43196
|
fileFlags: {},
|
|
@@ -44572,7 +44574,8 @@ ${moduleProviders ? `- (id<RCTModuleProvider>)getModuleProvider:(const char *)na
|
|
|
44572
44574
|
@end
|
|
44573
44575
|
|
|
44574
44576
|
// an app's Fabric component views, which its own Fabric host defines
|
|
44575
|
-
|
|
44577
|
+
void peachInstallFabricViews(facebook::jsi::Runtime &runtime, std::shared_ptr<facebook::react::CallInvoker> invoker) __attribute__((weak));
|
|
44578
|
+
void peachTeardownFabricViews() __attribute__((weak));
|
|
44576
44579
|
|
|
44577
44580
|
// UIKitCore: the key window and root view controller an app delegate makes at launch
|
|
44578
44581
|
extern "C" void PeachLaunchReactNativeWindow(void);
|
|
@@ -44594,6 +44597,7 @@ extern "C" void peachTurboInitialize() {
|
|
|
44594
44597
|
auto& runtime = peach::jsi_runtime::create(
|
|
44595
44598
|
[] { invoker->drain(); },
|
|
44596
44599
|
[] {
|
|
44600
|
+
if (peachTeardownFabricViews) peachTeardownFabricViews();
|
|
44597
44601
|
[manager invalidate];
|
|
44598
44602
|
manager = nil;
|
|
44599
44603
|
delegate = nil;
|
|
@@ -44651,7 +44655,7 @@ ${bridgeProxy ? ` // as RCTInstance does: the proxy modules reach as their brid
|
|
|
44651
44655
|
}];
|
|
44652
44656
|
[decorator.moduleRegistry setTurboModuleRegistry:manager];
|
|
44653
44657
|
[manager installJSBindings:runtime];
|
|
44654
|
-
if (peachInstallFabricViews) peachInstallFabricViews(runtime);
|
|
44658
|
+
if (peachInstallFabricViews) peachInstallFabricViews(runtime, invoker);
|
|
44655
44659
|
}
|
|
44656
44660
|
|
|
44657
44661
|
// the screenshot the device took, as UIKit posts it to every observer in the
|
|
@@ -44716,13 +44720,20 @@ namespace {
|
|
|
44716
44720
|
struct PeachFabricView {
|
|
44717
44721
|
react::ComponentHandle handle;
|
|
44718
44722
|
const react::ComponentDescriptor *descriptor;
|
|
44723
|
+
react::ShadowNodeFamily::Shared family;
|
|
44719
44724
|
react::Props::Shared props;
|
|
44725
|
+
react::State::Shared state;
|
|
44720
44726
|
react::LayoutMetrics layoutMetrics;
|
|
44721
44727
|
};
|
|
44722
44728
|
PeachFabricComponents *fabricComponents;
|
|
44723
44729
|
RCTComponentViewRegistry *fabricRegistry;
|
|
44724
|
-
std::shared_ptr<
|
|
44730
|
+
std::shared_ptr<react::ContextContainer> fabricContext;
|
|
44725
44731
|
react::ComponentDescriptorRegistry::Shared fabricDescriptors;
|
|
44732
|
+
std::shared_ptr<react::CallInvoker> fabricInvoker;
|
|
44733
|
+
std::shared_ptr<react::RuntimeScheduler> fabricScheduler;
|
|
44734
|
+
std::shared_ptr<const void> fabricOwner;
|
|
44735
|
+
std::shared_ptr<const react::EventDispatcher> fabricDispatcher;
|
|
44736
|
+
std::optional<jsi::Function> fabricEventHandler;
|
|
44726
44737
|
std::unordered_map<int, PeachFabricView> fabricViews;
|
|
44727
44738
|
int nextFabricView = 1;
|
|
44728
44739
|
std::string fabricNames = ${JSON.stringify(views.map(({ name: name3 }) => name3).join("\n"))};
|
|
@@ -44741,32 +44752,112 @@ react::Props::Shared fabricCloneProps(jsi::Runtime &rt, const PeachFabricView &v
|
|
|
44741
44752
|
return view.descriptor->cloneProps(context, view.props, react::RawProps(rt, props));
|
|
44742
44753
|
}
|
|
44743
44754
|
|
|
44755
|
+
// the beat React Native's run loop observer gives: queued events flush once
|
|
44756
|
+
// the call that queued them returns
|
|
44757
|
+
class PeachFabricEventBeat final : public react::EventBeat {
|
|
44758
|
+
public:
|
|
44759
|
+
PeachFabricEventBeat(std::shared_ptr<OwnerBox> ownerBox, react::RuntimeScheduler &scheduler)
|
|
44760
|
+
: EventBeat(ownerBox, scheduler), box(std::move(ownerBox)) {}
|
|
44761
|
+
void request() const override {
|
|
44762
|
+
EventBeat::request();
|
|
44763
|
+
std::weak_ptr<const void> owner = box->owner;
|
|
44764
|
+
fabricInvoker->invokeAsync([this, owner](jsi::Runtime &) {
|
|
44765
|
+
if (owner.lock()) induce();
|
|
44766
|
+
});
|
|
44767
|
+
}
|
|
44768
|
+
|
|
44769
|
+
private:
|
|
44770
|
+
std::shared_ptr<OwnerBox> box;
|
|
44771
|
+
};
|
|
44772
|
+
|
|
44773
|
+
// UIManager::updateState reads a state's data as State's friend; a member
|
|
44774
|
+
// pointer named through a derived class reaches the same accessor
|
|
44775
|
+
struct PeachStateData : react::State {
|
|
44776
|
+
static constexpr auto data = &PeachStateData::getDataPointer;
|
|
44777
|
+
};
|
|
44778
|
+
|
|
44779
|
+
// UIManager::dispatchEventToJS: the instance handle the engine gave the view,
|
|
44780
|
+
// the event type and its payload with the target tag and timestamp
|
|
44781
|
+
void fabricDispatchEvent(
|
|
44782
|
+
jsi::Runtime &rt,
|
|
44783
|
+
react::EventTarget *target,
|
|
44784
|
+
const std::string &type,
|
|
44785
|
+
react::ReactEventPriority,
|
|
44786
|
+
const react::EventPayload &eventPayload,
|
|
44787
|
+
react::HighResTimeStamp timestamp) {
|
|
44788
|
+
auto payload = eventPayload.asJSIValue(rt);
|
|
44789
|
+
if (payload.isNull() || !fabricEventHandler || !target) return;
|
|
44790
|
+
auto handle = target->getInstanceHandle(rt);
|
|
44791
|
+
if (handle.isUndefined() || handle.isNull()) return;
|
|
44792
|
+
if (payload.isObject()) {
|
|
44793
|
+
auto object = payload.asObject(rt);
|
|
44794
|
+
object.setProperty(rt, "target", target->getTag());
|
|
44795
|
+
if (!object.hasProperty(rt, "timeStamp"))
|
|
44796
|
+
object.setProperty(rt, "timeStamp", timestamp.toDOMHighResTimeStamp());
|
|
44797
|
+
}
|
|
44798
|
+
fabricEventHandler->call(rt, std::move(handle), jsi::String::createFromUtf8(rt, type), std::move(payload));
|
|
44799
|
+
}
|
|
44800
|
+
|
|
44801
|
+
// UIManager::updateState with the engine's tree in place of the shadow tree:
|
|
44802
|
+
// the view's next state, then the update its commit would mount
|
|
44803
|
+
void fabricUpdateState(const react::StateUpdate &update) {
|
|
44804
|
+
int tag = update.family->getTag();
|
|
44805
|
+
auto found = fabricViews.find(tag);
|
|
44806
|
+
if (found == fabricViews.end() || !found->second.state) return;
|
|
44807
|
+
auto &view = found->second;
|
|
44808
|
+
auto data = update.callback(((*view.state).*PeachStateData::data)());
|
|
44809
|
+
if (!data) return;
|
|
44810
|
+
auto oldState = view.state;
|
|
44811
|
+
view.state = view.descriptor->createState(*view.family, data);
|
|
44812
|
+
UIView<RCTComponentViewProtocol> *componentView = [fabricRegistry componentViewDescriptorWithTag:tag].view;
|
|
44813
|
+
[componentView updateState:view.state oldState:oldState];
|
|
44814
|
+
[componentView finalizeUpdates:RNComponentViewUpdateMaskState];
|
|
44815
|
+
}
|
|
44816
|
+
|
|
44744
44817
|
} // namespace
|
|
44745
44818
|
|
|
44746
|
-
|
|
44819
|
+
void peachInstallFabricViews(jsi::Runtime &rt, std::shared_ptr<react::CallInvoker> invoker) {
|
|
44820
|
+
fabricInvoker = std::move(invoker);
|
|
44747
44821
|
fabricComponents = [PeachFabricComponents new];
|
|
44748
44822
|
RCTComponentViewFactory *factory = [RCTComponentViewFactory currentComponentViewFactory];
|
|
44749
44823
|
factory.thirdPartyFabricComponentsProvider = fabricComponents;
|
|
44750
44824
|
fabricRegistry = [RCTComponentViewRegistry new];
|
|
44751
|
-
fabricContext = std::make_shared<
|
|
44752
|
-
react::
|
|
44825
|
+
fabricContext = std::make_shared<react::ContextContainer>();
|
|
44826
|
+
fabricScheduler = std::make_shared<react::RuntimeScheduler>(
|
|
44827
|
+
[](std::function<void(jsi::Runtime &)> &&work) { fabricInvoker->invokeAsync(std::move(work)); });
|
|
44828
|
+
fabricContext->insert(react::RuntimeSchedulerKey, std::weak_ptr<react::RuntimeScheduler>(fabricScheduler));
|
|
44829
|
+
fabricOwner = std::make_shared<int>(0);
|
|
44830
|
+
auto box = std::make_shared<react::EventBeat::OwnerBox>();
|
|
44831
|
+
box->owner = fabricOwner;
|
|
44832
|
+
auto conclusion = [](jsi::Runtime &rt) { fabricScheduler->callExpiredTasks(rt); };
|
|
44833
|
+
fabricDispatcher = std::make_shared<const react::EventDispatcher>(
|
|
44834
|
+
react::EventQueueProcessor(fabricDispatchEvent, conclusion, fabricUpdateState, std::weak_ptr<react::EventLogger>()),
|
|
44835
|
+
std::make_unique<PeachFabricEventBeat>(box, *fabricScheduler),
|
|
44836
|
+
fabricUpdateState,
|
|
44837
|
+
std::weak_ptr<react::EventLogger>());
|
|
44838
|
+
react::ComponentDescriptorParameters parameters{fabricDispatcher, fabricContext, nullptr};
|
|
44753
44839
|
fabricDescriptors = [factory createComponentDescriptorRegistryWithParameters:parameters];
|
|
44754
44840
|
auto views = jsi::Object(rt);
|
|
44755
44841
|
auto method = [&](const char *name, unsigned count, jsi::HostFunctionType body) {
|
|
44756
44842
|
views.setProperty(rt, name, jsi::Function::createFromHostFunction(rt, jsi::PropNameID::forAscii(rt, name), count, std::move(body)));
|
|
44757
44843
|
};
|
|
44758
|
-
// Create then Insert: the
|
|
44759
|
-
//
|
|
44760
|
-
|
|
44844
|
+
// create(name, instanceHandle, props), Create then Insert: the family the
|
|
44845
|
+
// handle's events resolve through, the first props, the initial state, and
|
|
44846
|
+
// the layout the view has before the engine measures it
|
|
44847
|
+
method("create", 3, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
44761
44848
|
const auto &descriptor = fabricDescriptors->at(args[0].asString(rt).utf8(rt));
|
|
44762
44849
|
int tag = nextFabricView++;
|
|
44763
|
-
auto
|
|
44764
|
-
|
|
44850
|
+
auto family = descriptor.createFamily(
|
|
44851
|
+
{.tag = tag, .surfaceId = -1, .instanceHandle = std::make_shared<const react::InstanceHandle>(rt, args[1], tag)});
|
|
44852
|
+
auto &view = fabricViews.emplace(tag, PeachFabricView{descriptor.getComponentHandle(), &descriptor, family, nullptr, nullptr, {}}).first->second;
|
|
44853
|
+
view.props = fabricCloneProps(rt, view, args[2]);
|
|
44854
|
+
view.state = descriptor.createInitialState(view.props, family);
|
|
44855
|
+
family->getEventEmitter()->setEnabled(true);
|
|
44765
44856
|
UIView<RCTComponentViewProtocol> *componentView =
|
|
44766
44857
|
[fabricRegistry dequeueComponentViewWithComponentHandle:view.handle tag:tag].view;
|
|
44767
44858
|
[componentView updateProps:view.props oldProps:nullptr];
|
|
44768
|
-
[componentView updateEventEmitter:
|
|
44769
|
-
[componentView updateState:
|
|
44859
|
+
[componentView updateEventEmitter:family->getEventEmitter()];
|
|
44860
|
+
[componentView updateState:view.state oldState:nullptr];
|
|
44770
44861
|
[componentView updateLayoutMetrics:view.layoutMetrics oldLayoutMetrics:react::EmptyLayoutMetrics];
|
|
44771
44862
|
[componentView finalizeUpdates:RNComponentViewUpdateMaskAll];
|
|
44772
44863
|
return jsi::Value(tag);
|
|
@@ -44796,19 +44887,41 @@ extern "C" void peachInstallFabricViews(jsi::Runtime &rt) {
|
|
|
44796
44887
|
[componentView finalizeUpdates:RNComponentViewUpdateMaskLayoutMetrics];
|
|
44797
44888
|
return jsi::Value::undefined();
|
|
44798
44889
|
});
|
|
44799
|
-
// Remove then Delete: the
|
|
44890
|
+
// Remove then Delete: the family's emitter stops at once, as an unmounted
|
|
44891
|
+
// family's does, and the registry recycles the view
|
|
44800
44892
|
method("drop", 1, [](jsi::Runtime &, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
44801
44893
|
int tag = static_cast<int>(args[0].asNumber());
|
|
44802
44894
|
auto &view = fabricView(tag);
|
|
44895
|
+
view.family->getEventEmitter()->setEnabled(false);
|
|
44803
44896
|
RCTComponentViewDescriptor descriptor = [fabricRegistry componentViewDescriptorWithTag:tag];
|
|
44804
44897
|
[descriptor.view removeFromSuperview];
|
|
44805
44898
|
[fabricRegistry enqueueComponentViewWithComponentHandle:view.handle tag:tag componentViewDescriptor:descriptor];
|
|
44806
44899
|
fabricViews.erase(tag);
|
|
44807
44900
|
return jsi::Value::undefined();
|
|
44808
44901
|
});
|
|
44902
|
+
// RCTMountingManager::dispatchCommand: the view's handleCommand:args:
|
|
44903
|
+
method("command", 3, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
44904
|
+
int tag = static_cast<int>(args[0].asNumber());
|
|
44905
|
+
fabricView(tag);
|
|
44906
|
+
NSArray *commandArgs = react::TurboModuleConvertUtils::convertJSIValueToObjCObject(rt, args[2], fabricInvoker);
|
|
44907
|
+
[[fabricRegistry componentViewDescriptorWithTag:tag].view handleCommand:@(args[1].asString(rt).utf8(rt).c_str())
|
|
44908
|
+
args:commandArgs];
|
|
44909
|
+
return jsi::Value::undefined();
|
|
44910
|
+
});
|
|
44911
|
+
// the function React's dispatchEvent stands for: (instanceHandle, type, payload)
|
|
44912
|
+
method("setEventHandler", 1, [](jsi::Runtime &rt, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
44913
|
+
fabricEventHandler = args[0].asObject(rt).asFunction(rt);
|
|
44914
|
+
return jsi::Value::undefined();
|
|
44915
|
+
});
|
|
44809
44916
|
rt.global().setProperty(rt, "peachFabricViews", std::move(views));
|
|
44810
44917
|
}
|
|
44811
44918
|
|
|
44919
|
+
// the runtime's functions go before the runtime does
|
|
44920
|
+
void peachTeardownFabricViews() {
|
|
44921
|
+
fabricOwner.reset();
|
|
44922
|
+
fabricEventHandler.reset();
|
|
44923
|
+
}
|
|
44924
|
+
|
|
44812
44925
|
extern "C" void *peach_fabric_view_content(int tag) {
|
|
44813
44926
|
return (__bridge_retained void *)[fabricRegistry componentViewDescriptorWithTag:tag].view;
|
|
44814
44927
|
}
|
|
@@ -44838,6 +44951,7 @@ var init_turbo_source = __esm({
|
|
|
44838
44951
|
init_podspec_sources();
|
|
44839
44952
|
init_swift_source_file();
|
|
44840
44953
|
init_swift_submit();
|
|
44954
|
+
init_swiftContract();
|
|
44841
44955
|
init_turbo_codegen_intake();
|
|
44842
44956
|
init_xcode_project();
|
|
44843
44957
|
execFileAsync3 = (0, import_node_util15.promisify)(import_node_child_process46.execFile);
|
|
@@ -44985,13 +45099,22 @@ class JsCallInvoker final : public react::CallInvoker {
|
|
|
44985
45099
|
#import <React/RCTComponentViewFactory.h>
|
|
44986
45100
|
#import <React/RCTComponentViewProtocol.h>
|
|
44987
45101
|
#import <React/RCTComponentViewRegistry.h>
|
|
45102
|
+
#import <ReactCommon/RCTTurboModule.h>
|
|
45103
|
+
#include <ReactCommon/CallInvoker.h>
|
|
44988
45104
|
#include <react/renderer/componentregistry/ComponentDescriptorRegistry.h>
|
|
45105
|
+
#include <react/renderer/core/EventBeat.h>
|
|
45106
|
+
#include <react/renderer/core/EventDispatcher.h>
|
|
45107
|
+
#include <react/renderer/core/EventQueueProcessor.h>
|
|
45108
|
+
#include <react/renderer/core/InstanceHandle.h>
|
|
44989
45109
|
#include <react/renderer/core/LayoutMetrics.h>
|
|
44990
45110
|
#include <react/renderer/core/PropsParserContext.h>
|
|
44991
45111
|
#include <react/renderer/core/RawProps.h>
|
|
45112
|
+
#include <react/renderer/core/StateUpdate.h>
|
|
45113
|
+
#include <react/renderer/runtimescheduler/RuntimeScheduler.h>
|
|
44992
45114
|
#include <react/utils/ContextContainer.h>
|
|
44993
45115
|
#include <cstdio>
|
|
44994
45116
|
#include <cstdlib>
|
|
45117
|
+
#include <optional>
|
|
44995
45118
|
#include <unordered_map>
|
|
44996
45119
|
#include <jsi/jsi.h>
|
|
44997
45120
|
|
|
@@ -45475,7 +45598,7 @@ var init_react_native_core = __esm({
|
|
|
45475
45598
|
init_swift_distribution();
|
|
45476
45599
|
init_swift_package();
|
|
45477
45600
|
init_swiftContract();
|
|
45478
|
-
recipe = true ? "
|
|
45601
|
+
recipe = true ? "ad6a6672a4c7d5539690da16e5a429437230d138b36c48e3963d5e9f9ddad98e" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
45479
45602
|
strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
45480
45603
|
building = /* @__PURE__ */ new Map();
|
|
45481
45604
|
}
|
|
@@ -51043,7 +51166,7 @@ init_swift_native_pin();
|
|
|
51043
51166
|
init_xcode_project();
|
|
51044
51167
|
var EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
51045
51168
|
function expoNativeCompilerDigestValue() {
|
|
51046
|
-
return true ? "
|
|
51169
|
+
return true ? "5b7ad1d2620febb7d12f9053396fbc8cf3f6f1e07c8a57f9cbc444527b01cac9" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
51047
51170
|
}
|
|
51048
51171
|
var IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
51049
51172
|
function readSources(value) {
|
|
@@ -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/home-paths.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;
|