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;
|
|
@@ -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/sdk.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/sdk.mjs
CHANGED
|
@@ -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);
|
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;
|
|
@@ -59953,7 +59953,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
59953
59953
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
59954
59954
|
MULTI_MANIFEST_VERSION = 68;
|
|
59955
59955
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
59956
|
-
compilerSourceDigest = true ? "
|
|
59956
|
+
compilerSourceDigest = true ? "dda8eea414f224c24308031855c896c38101ab0d31acbc7060436bc1d4aadf0d" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
59957
59957
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
59958
59958
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
59959
59959
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -66637,7 +66637,7 @@ var init_swift_standin_digest = __esm({
|
|
|
66637
66637
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
66638
66638
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
66639
66639
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
66640
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
66640
|
+
STANDIN_SOURCE_DIGEST = true ? "0ffa2547ef06e12d293047c1e51c99b46325d43c9a029d4d9a9586b75f24b39b" : standinSourceDigest();
|
|
66641
66641
|
}
|
|
66642
66642
|
});
|
|
66643
66643
|
|
|
@@ -67116,7 +67116,7 @@ __export(expo_native_prebuilt_exports, {
|
|
|
67116
67116
|
servedExpoSwift: () => servedExpoSwift
|
|
67117
67117
|
});
|
|
67118
67118
|
function expoNativeCompilerDigestValue() {
|
|
67119
|
-
return true ? "
|
|
67119
|
+
return true ? "5b7ad1d2620febb7d12f9053396fbc8cf3f6f1e07c8a57f9cbc444527b01cac9" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
67120
67120
|
}
|
|
67121
67121
|
function readSources(value) {
|
|
67122
67122
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -67688,7 +67688,7 @@ var init_native_static_libraries = __esm({
|
|
|
67688
67688
|
nativeSha256: "b91cd08892ebe0cdd39e1336594bb66cd79fc639a894303805792047d24f468b",
|
|
67689
67689
|
upstream: "ed59cc48e37ac33ac15b252fc5ad7af4b9ecd51d",
|
|
67690
67690
|
// updated with the native producer script and port patches.
|
|
67691
|
-
recipe: "
|
|
67691
|
+
recipe: "7914af52f8a3694215d7422b01209490237921826e18438d5f1004775769ab63",
|
|
67692
67692
|
archive: "libessentia.a"
|
|
67693
67693
|
},
|
|
67694
67694
|
{
|
|
@@ -82455,15 +82455,17 @@ async function collectTurboSources(options) {
|
|
|
82455
82455
|
flattensPublicHeaders: false,
|
|
82456
82456
|
bridgingHeader: null,
|
|
82457
82457
|
prefixHeader,
|
|
82458
|
-
headerSearchPaths: [
|
|
82459
|
-
`${targetPath(targetName)}/include`,
|
|
82460
|
-
`${targetPath(TURBO_CORE_TARGET)}/include`
|
|
82461
|
-
],
|
|
82458
|
+
headerSearchPaths: [`${targetPath(targetName)}/include`],
|
|
82462
82459
|
userHeaderSearchPaths: [],
|
|
82463
82460
|
frameworkSearchPaths: [],
|
|
82464
82461
|
headerMaps: [],
|
|
82465
82462
|
productHeaders: {},
|
|
82466
|
-
|
|
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
|
+
],
|
|
82467
82469
|
importerFlags: [],
|
|
82468
82470
|
cxxFlags: [],
|
|
82469
82471
|
fileFlags: {},
|
|
@@ -83847,7 +83849,8 @@ ${moduleProviders ? `- (id<RCTModuleProvider>)getModuleProvider:(const char *)na
|
|
|
83847
83849
|
@end
|
|
83848
83850
|
|
|
83849
83851
|
// an app's Fabric component views, which its own Fabric host defines
|
|
83850
|
-
|
|
83852
|
+
void peachInstallFabricViews(facebook::jsi::Runtime &runtime, std::shared_ptr<facebook::react::CallInvoker> invoker) __attribute__((weak));
|
|
83853
|
+
void peachTeardownFabricViews() __attribute__((weak));
|
|
83851
83854
|
|
|
83852
83855
|
// UIKitCore: the key window and root view controller an app delegate makes at launch
|
|
83853
83856
|
extern "C" void PeachLaunchReactNativeWindow(void);
|
|
@@ -83869,6 +83872,7 @@ extern "C" void peachTurboInitialize() {
|
|
|
83869
83872
|
auto& runtime = peach::jsi_runtime::create(
|
|
83870
83873
|
[] { invoker->drain(); },
|
|
83871
83874
|
[] {
|
|
83875
|
+
if (peachTeardownFabricViews) peachTeardownFabricViews();
|
|
83872
83876
|
[manager invalidate];
|
|
83873
83877
|
manager = nil;
|
|
83874
83878
|
delegate = nil;
|
|
@@ -83926,7 +83930,7 @@ ${bridgeProxy ? ` // as RCTInstance does: the proxy modules reach as their brid
|
|
|
83926
83930
|
}];
|
|
83927
83931
|
[decorator.moduleRegistry setTurboModuleRegistry:manager];
|
|
83928
83932
|
[manager installJSBindings:runtime];
|
|
83929
|
-
if (peachInstallFabricViews) peachInstallFabricViews(runtime);
|
|
83933
|
+
if (peachInstallFabricViews) peachInstallFabricViews(runtime, invoker);
|
|
83930
83934
|
}
|
|
83931
83935
|
|
|
83932
83936
|
// the screenshot the device took, as UIKit posts it to every observer in the
|
|
@@ -83991,13 +83995,20 @@ namespace {
|
|
|
83991
83995
|
struct PeachFabricView {
|
|
83992
83996
|
react::ComponentHandle handle;
|
|
83993
83997
|
const react::ComponentDescriptor *descriptor;
|
|
83998
|
+
react::ShadowNodeFamily::Shared family;
|
|
83994
83999
|
react::Props::Shared props;
|
|
84000
|
+
react::State::Shared state;
|
|
83995
84001
|
react::LayoutMetrics layoutMetrics;
|
|
83996
84002
|
};
|
|
83997
84003
|
PeachFabricComponents *fabricComponents;
|
|
83998
84004
|
RCTComponentViewRegistry *fabricRegistry;
|
|
83999
|
-
std::shared_ptr<
|
|
84005
|
+
std::shared_ptr<react::ContextContainer> fabricContext;
|
|
84000
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;
|
|
84001
84012
|
std::unordered_map<int, PeachFabricView> fabricViews;
|
|
84002
84013
|
int nextFabricView = 1;
|
|
84003
84014
|
std::string fabricNames = ${JSON.stringify(views.map(({ name: name3 }) => name3).join("\n"))};
|
|
@@ -84016,32 +84027,112 @@ react::Props::Shared fabricCloneProps(jsi::Runtime &rt, const PeachFabricView &v
|
|
|
84016
84027
|
return view.descriptor->cloneProps(context, view.props, react::RawProps(rt, props));
|
|
84017
84028
|
}
|
|
84018
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
|
+
|
|
84019
84092
|
} // namespace
|
|
84020
84093
|
|
|
84021
|
-
|
|
84094
|
+
void peachInstallFabricViews(jsi::Runtime &rt, std::shared_ptr<react::CallInvoker> invoker) {
|
|
84095
|
+
fabricInvoker = std::move(invoker);
|
|
84022
84096
|
fabricComponents = [PeachFabricComponents new];
|
|
84023
84097
|
RCTComponentViewFactory *factory = [RCTComponentViewFactory currentComponentViewFactory];
|
|
84024
84098
|
factory.thirdPartyFabricComponentsProvider = fabricComponents;
|
|
84025
84099
|
fabricRegistry = [RCTComponentViewRegistry new];
|
|
84026
|
-
fabricContext = std::make_shared<
|
|
84027
|
-
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};
|
|
84028
84114
|
fabricDescriptors = [factory createComponentDescriptorRegistryWithParameters:parameters];
|
|
84029
84115
|
auto views = jsi::Object(rt);
|
|
84030
84116
|
auto method = [&](const char *name, unsigned count, jsi::HostFunctionType body) {
|
|
84031
84117
|
views.setProperty(rt, name, jsi::Function::createFromHostFunction(rt, jsi::PropNameID::forAscii(rt, name), count, std::move(body)));
|
|
84032
84118
|
};
|
|
84033
|
-
// Create then Insert: the
|
|
84034
|
-
//
|
|
84035
|
-
|
|
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 {
|
|
84036
84123
|
const auto &descriptor = fabricDescriptors->at(args[0].asString(rt).utf8(rt));
|
|
84037
84124
|
int tag = nextFabricView++;
|
|
84038
|
-
auto
|
|
84039
|
-
|
|
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);
|
|
84040
84131
|
UIView<RCTComponentViewProtocol> *componentView =
|
|
84041
84132
|
[fabricRegistry dequeueComponentViewWithComponentHandle:view.handle tag:tag].view;
|
|
84042
84133
|
[componentView updateProps:view.props oldProps:nullptr];
|
|
84043
|
-
[componentView updateEventEmitter:
|
|
84044
|
-
[componentView updateState:
|
|
84134
|
+
[componentView updateEventEmitter:family->getEventEmitter()];
|
|
84135
|
+
[componentView updateState:view.state oldState:nullptr];
|
|
84045
84136
|
[componentView updateLayoutMetrics:view.layoutMetrics oldLayoutMetrics:react::EmptyLayoutMetrics];
|
|
84046
84137
|
[componentView finalizeUpdates:RNComponentViewUpdateMaskAll];
|
|
84047
84138
|
return jsi::Value(tag);
|
|
@@ -84071,19 +84162,41 @@ extern "C" void peachInstallFabricViews(jsi::Runtime &rt) {
|
|
|
84071
84162
|
[componentView finalizeUpdates:RNComponentViewUpdateMaskLayoutMetrics];
|
|
84072
84163
|
return jsi::Value::undefined();
|
|
84073
84164
|
});
|
|
84074
|
-
// 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
|
|
84075
84167
|
method("drop", 1, [](jsi::Runtime &, const jsi::Value &, const jsi::Value *args, size_t) -> jsi::Value {
|
|
84076
84168
|
int tag = static_cast<int>(args[0].asNumber());
|
|
84077
84169
|
auto &view = fabricView(tag);
|
|
84170
|
+
view.family->getEventEmitter()->setEnabled(false);
|
|
84078
84171
|
RCTComponentViewDescriptor descriptor = [fabricRegistry componentViewDescriptorWithTag:tag];
|
|
84079
84172
|
[descriptor.view removeFromSuperview];
|
|
84080
84173
|
[fabricRegistry enqueueComponentViewWithComponentHandle:view.handle tag:tag componentViewDescriptor:descriptor];
|
|
84081
84174
|
fabricViews.erase(tag);
|
|
84082
84175
|
return jsi::Value::undefined();
|
|
84083
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
|
+
});
|
|
84084
84191
|
rt.global().setProperty(rt, "peachFabricViews", std::move(views));
|
|
84085
84192
|
}
|
|
84086
84193
|
|
|
84194
|
+
// the runtime's functions go before the runtime does
|
|
84195
|
+
void peachTeardownFabricViews() {
|
|
84196
|
+
fabricOwner.reset();
|
|
84197
|
+
fabricEventHandler.reset();
|
|
84198
|
+
}
|
|
84199
|
+
|
|
84087
84200
|
extern "C" void *peach_fabric_view_content(int tag) {
|
|
84088
84201
|
return (__bridge_retained void *)[fabricRegistry componentViewDescriptorWithTag:tag].view;
|
|
84089
84202
|
}
|
|
@@ -84113,6 +84226,7 @@ var init_turbo_source = __esm({
|
|
|
84113
84226
|
init_podspec_sources();
|
|
84114
84227
|
init_swift_source_file();
|
|
84115
84228
|
init_swift_submit();
|
|
84229
|
+
init_swiftContract();
|
|
84116
84230
|
init_turbo_codegen_intake();
|
|
84117
84231
|
init_xcode_project();
|
|
84118
84232
|
execFileAsync3 = (0, import_node_util15.promisify)(import_node_child_process51.execFile);
|
|
@@ -84262,13 +84376,22 @@ class JsCallInvoker final : public react::CallInvoker {
|
|
|
84262
84376
|
#import <React/RCTComponentViewFactory.h>
|
|
84263
84377
|
#import <React/RCTComponentViewProtocol.h>
|
|
84264
84378
|
#import <React/RCTComponentViewRegistry.h>
|
|
84379
|
+
#import <ReactCommon/RCTTurboModule.h>
|
|
84380
|
+
#include <ReactCommon/CallInvoker.h>
|
|
84265
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>
|
|
84266
84386
|
#include <react/renderer/core/LayoutMetrics.h>
|
|
84267
84387
|
#include <react/renderer/core/PropsParserContext.h>
|
|
84268
84388
|
#include <react/renderer/core/RawProps.h>
|
|
84389
|
+
#include <react/renderer/core/StateUpdate.h>
|
|
84390
|
+
#include <react/renderer/runtimescheduler/RuntimeScheduler.h>
|
|
84269
84391
|
#include <react/utils/ContextContainer.h>
|
|
84270
84392
|
#include <cstdio>
|
|
84271
84393
|
#include <cstdlib>
|
|
84394
|
+
#include <optional>
|
|
84272
84395
|
#include <unordered_map>
|
|
84273
84396
|
#include <jsi/jsi.h>
|
|
84274
84397
|
|
|
@@ -85023,7 +85146,7 @@ var init_react_native_core = __esm({
|
|
|
85023
85146
|
init_swift_distribution();
|
|
85024
85147
|
init_swift_package();
|
|
85025
85148
|
init_swiftContract();
|
|
85026
|
-
recipe = true ? "
|
|
85149
|
+
recipe = true ? "ad6a6672a4c7d5539690da16e5a429437230d138b36c48e3963d5e9f9ddad98e" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
85027
85150
|
strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
85028
85151
|
building = /* @__PURE__ */ new Map();
|
|
85029
85152
|
}
|
|
@@ -88955,7 +89078,7 @@ var init_nitro_superset = __esm({
|
|
|
88955
89078
|
init_nitroContract();
|
|
88956
89079
|
init_swift_standin_digest();
|
|
88957
89080
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
88958
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
89081
|
+
NITRO_COMPILER_DIGEST = true ? "32ab9eee82772e66c536ce78e5cb863faf23cdf987bdb5f67e6482fedc999e6f" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
88959
89082
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
88960
89083
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
88961
89084
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -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
|
{
|
package/dist-lib/vite.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;
|
|
@@ -3105,7 +3105,7 @@ var STANDIN_SOURCE_DIGEST;
|
|
|
3105
3105
|
var init_swift_standin_digest = __esm({
|
|
3106
3106
|
"src/swift-standin-digest.ts"() {
|
|
3107
3107
|
"use strict";
|
|
3108
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
3108
|
+
STANDIN_SOURCE_DIGEST = true ? "0ffa2547ef06e12d293047c1e51c99b46325d43c9a029d4d9a9586b75f24b39b" : standinSourceDigest();
|
|
3109
3109
|
}
|
|
3110
3110
|
});
|
|
3111
3111
|
|
|
@@ -4765,7 +4765,7 @@ var init_swift_compile = __esm({
|
|
|
4765
4765
|
FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
|
|
4766
4766
|
(module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
|
|
4767
4767
|
).join("");
|
|
4768
|
-
compilerSourceDigest = true ? "
|
|
4768
|
+
compilerSourceDigest = true ? "dda8eea414f224c24308031855c896c38101ab0d31acbc7060436bc1d4aadf0d" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
|
|
4769
4769
|
CORE_FOUNDATION_HANDLE_IMPORTS = [
|
|
4770
4770
|
"CFAllocator",
|
|
4771
4771
|
"CFArray",
|
|
@@ -5298,7 +5298,7 @@ var init_react_native_core = __esm({
|
|
|
5298
5298
|
init_swift_distribution();
|
|
5299
5299
|
init_swift_package();
|
|
5300
5300
|
init_swiftContract();
|
|
5301
|
-
recipe = true ? "
|
|
5301
|
+
recipe = true ? "ad6a6672a4c7d5539690da16e5a429437230d138b36c48e3963d5e9f9ddad98e" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
|
|
5302
5302
|
}
|
|
5303
5303
|
});
|
|
5304
5304
|
|
|
@@ -5492,6 +5492,7 @@ var init_turbo_source = __esm({
|
|
|
5492
5492
|
init_podspec_sources();
|
|
5493
5493
|
init_swift_source_file();
|
|
5494
5494
|
init_swift_submit();
|
|
5495
|
+
init_swiftContract();
|
|
5495
5496
|
init_turbo_codegen_intake();
|
|
5496
5497
|
init_xcode_project();
|
|
5497
5498
|
execFileAsync3 = (0, import_node_util9.promisify)(import_node_child_process13.execFile);
|
|
@@ -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/kotlin/sdk.tar.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -55,7 +55,7 @@ export const NATIVE_STATIC_LIBRARY_RECIPES = [
|
|
|
55
55
|
nativeSha256: 'b91cd08892ebe0cdd39e1336594bb66cd79fc639a894303805792047d24f468b',
|
|
56
56
|
upstream: 'ed59cc48e37ac33ac15b252fc5ad7af4b9ecd51d',
|
|
57
57
|
// updated with the native producer script and port patches.
|
|
58
|
-
recipe: '
|
|
58
|
+
recipe: '7914af52f8a3694215d7422b01209490237921826e18438d5f1004775769ab63',
|
|
59
59
|
archive: 'libessentia.a',
|
|
60
60
|
},
|
|
61
61
|
{
|