peachsim 0.1.2427 → 0.1.2429
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 +173 -66
- 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 +163 -56
- 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 +181 -74
- package/dist-lib/host/fetch-proxy-handler.cjs +6 -6
- 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 +9 -6
- 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 +9 -6
- package/dist-lib/native-app-identity-project.cjs +6 -3
- package/dist-lib/native-app-identity-project.mjs +6 -3
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +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 +194 -85
- package/dist-lib/swift-compile.cjs +35 -22
- package/dist-lib/swift-compile.mjs +35 -22
- 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 +159 -52
- package/dist-lib/vite.cjs +6 -6
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/font-config.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/engine/style-schema.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/text-nested.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/text-paint.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/remote-stream/cloud-display.d.ts +2 -2
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +7 -0
- package/dist-types/packages/peach-globals/src/globalsContract.d.ts +2 -0
- package/dist-types/packages/peach-globals/src/index.d.ts +1 -0
- package/dist-types/packages/peach-globals/src/locationBridgeContract.d.ts +20 -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/CoreData.framework/Headers/CoreData.h +3 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSEntityMigrationPolicy.h +17 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObject.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSManagedObjectContext.h +6 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentContainer.h +15 -0
- package/sdk/ios/System/Library/Frameworks/CoreData.framework/Headers/NSPersistentStoreDescription.h +10 -0
- package/sdk/ios/System/Library/Frameworks/CoreLocation.framework/Headers/CLLocationManagerDelegate.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreServices.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSBase.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSImportExtension.h +21 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSIndexExtensionRequestHandler.h +17 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSPerson.h +28 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchQuery.h +77 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h +154 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndexDescription.h +19 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItem.h +86 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet.h +95 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Categories.h +19 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Documents.h +71 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Events.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_General.h +138 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Images.h +116 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Media.h +235 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Messaging.h +99 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItemAttributeSet_Places.h +96 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSuggestion.h +37 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSUserQuery.h +73 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CoreSpotlight.apinotes +26 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Headers/CoreSpotlight.h +29 -0
- package/sdk/ios/System/Library/Frameworks/CoreSpotlight.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIScrollView.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNNotificationSettings.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UserNotifications.framework/Headers/UNUserNotificationCenter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardList.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKBackForwardListItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleList.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentRuleListStore.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorld.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContentWorldConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKContextMenuElementInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDOMNodeSnapshot.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKDownload.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFindResult.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFormInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKFrameInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKHTTPCookieStore.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKJSHandle.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigation.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKNavigationResponse.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKOpenPanelParameters.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPDFConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreferences.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKPreviewElementInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKProcessPool.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKScriptMessage.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSecurityOrigin.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKSnapshotConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserContentController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKUserScript.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtension.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionContext.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionController.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionControllerConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebExtensionMatchPattern.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebView.h +2 -2
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebViewConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebpagePreferences.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataRecord.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWebsiteDataStore.h +1 -1
- package/sdk/ios/System/Library/Frameworks/WebKit.framework/Headers/WKWindowFeatures.h +1 -1
- package/sdk/ios/System/Library/Frameworks/_LocationEssentials.framework/Headers/CLLocationEssentials.h +3 -3
- package/src/core-data-model.ts +112 -5
- package/src/swift-compile.ts +34 -11
- package/src/swift-objc-import.ts +19 -13
- package/src/xcode-project.ts +5 -0
package/dist-lib/skills.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.2429 | (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;
|
|
@@ -1524,9 +1524,9 @@ function overlapsBounds(left, right) {
|
|
|
1524
1524
|
}
|
|
1525
1525
|
function resolveCompatVersionRange(availableRegistryRanges, declaredVersion) {
|
|
1526
1526
|
const declaredGroups = parseRange(declaredVersion);
|
|
1527
|
-
const registryGroups = availableRegistryRanges.map((
|
|
1528
|
-
range:
|
|
1529
|
-
bounds: parseRange(
|
|
1527
|
+
const registryGroups = availableRegistryRanges.map((range3) => ({
|
|
1528
|
+
range: range3,
|
|
1529
|
+
bounds: parseRange(range3)
|
|
1530
1530
|
}));
|
|
1531
1531
|
if (!declaredGroups || registryGroups.some((candidate) => !candidate.bounds)) {
|
|
1532
1532
|
return {
|
|
@@ -6210,7 +6210,7 @@ var init_supported_native_packages = __esm({
|
|
|
6210
6210
|
"react-native-config",
|
|
6211
6211
|
// seam+coverage
|
|
6212
6212
|
"react-native-config-reader",
|
|
6213
|
-
// seam
|
|
6213
|
+
// seam+compiled-turbo
|
|
6214
6214
|
"react-native-contacts",
|
|
6215
6215
|
// seam
|
|
6216
6216
|
"react-native-context-menu-view",
|
|
@@ -6560,7 +6560,7 @@ var init_supported_native_packages = __esm({
|
|
|
6560
6560
|
"react-native-sensors",
|
|
6561
6561
|
// seam
|
|
6562
6562
|
"react-native-settings",
|
|
6563
|
-
// seam+coverage
|
|
6563
|
+
// seam+compiled-turbo+coverage
|
|
6564
6564
|
"react-native-sfsymbols",
|
|
6565
6565
|
// seam
|
|
6566
6566
|
"react-native-shake",
|
|
@@ -9801,9 +9801,9 @@ var init_registry = __esm({
|
|
|
9801
9801
|
{
|
|
9802
9802
|
range: ">=1.0.0",
|
|
9803
9803
|
coverage: 0.9,
|
|
9804
|
-
note: "
|
|
9805
|
-
working: "
|
|
9806
|
-
missing: "Android
|
|
9804
|
+
note: "iOS compiles the upstream RNSettings module. Android uses the location subset of the settings API.",
|
|
9805
|
+
working: "location setting constants, getSetting resolving from the browser geolocation capability without prompting, and unknown setting rejection",
|
|
9806
|
+
missing: "Android airplane mode, captioning, openSetting, and setting change events"
|
|
9807
9807
|
}
|
|
9808
9808
|
]
|
|
9809
9809
|
},
|
|
@@ -13500,9 +13500,9 @@ var init_registry = __esm({
|
|
|
13500
13500
|
{
|
|
13501
13501
|
range: ">=1.0.0",
|
|
13502
13502
|
coverage: 0.4,
|
|
13503
|
-
note: "
|
|
13504
|
-
working: "
|
|
13505
|
-
missing: "
|
|
13503
|
+
note: "iOS compiles the upstream RNConfigReader module and Android exposes the preview build constants.",
|
|
13504
|
+
working: "iOS BuildConfigs from the simulator bundle, Android DEBUG and BUILD_TYPE",
|
|
13505
|
+
missing: "Android app-specific fields generated by Gradle"
|
|
13506
13506
|
}
|
|
13507
13507
|
]
|
|
13508
13508
|
},
|
|
@@ -15621,9 +15621,11 @@ var init_registry = __esm({
|
|
|
15621
15621
|
"expo-video-metadata": {
|
|
15622
15622
|
category: "Media",
|
|
15623
15623
|
stubType: "native",
|
|
15624
|
+
// 3.1.1 uses a JavaScript parser without a native module.
|
|
15625
|
+
shipsNativeCode: false,
|
|
15624
15626
|
versions: [
|
|
15625
15627
|
{
|
|
15626
|
-
range: ">=1.5.0",
|
|
15628
|
+
range: ">=1.5.0 <3.1.1",
|
|
15627
15629
|
coverage: 0.65,
|
|
15628
15630
|
note: "native-seam only - upstream Expo module wrapper runs from the bundle; ExpoVideoMetadata reads local VFS/Blob bytes and extracts conservative MP4 container duration, dimensions, audio-track presence, file size, orientation, and aspect ratio",
|
|
15629
15631
|
working: "getVideoInfo, local file/blob bytes, MP4 movie and fragment timing, tkhd/hdlr parsing, duration, fileSize, width, height, hasAudio, aspectRatio, is16_9, naturalOrientation",
|
|
@@ -25843,7 +25845,7 @@ var init_resolve_flow_scalar = __esm({
|
|
|
25843
25845
|
|
|
25844
25846
|
// ../../node_modules/yaml/browser/dist/compose/compose-scalar.js
|
|
25845
25847
|
function composeScalar(ctx, token, tagToken, onError) {
|
|
25846
|
-
const { value, type, comment, range:
|
|
25848
|
+
const { value, type, comment, range: range3 } = token.type === "block-scalar" ? resolveBlockScalar(ctx, token, onError) : resolveFlowScalar(token, ctx.options.strict, onError);
|
|
25847
25849
|
const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
|
|
25848
25850
|
let tag;
|
|
25849
25851
|
if (ctx.options.stringKeys && ctx.atKey) {
|
|
@@ -25863,7 +25865,7 @@ function composeScalar(ctx, token, tagToken, onError) {
|
|
|
25863
25865
|
onError(tagToken ?? token, "TAG_RESOLVE_FAILED", msg);
|
|
25864
25866
|
scalar = new Scalar(value);
|
|
25865
25867
|
}
|
|
25866
|
-
scalar.range =
|
|
25868
|
+
scalar.range = range3;
|
|
25867
25869
|
scalar.source = value;
|
|
25868
25870
|
if (type)
|
|
25869
25871
|
scalar.type = type;
|
|
@@ -30414,10 +30416,10 @@ function resolveRuntimeRootForHostname(hostname2) {
|
|
|
30414
30416
|
}
|
|
30415
30417
|
function sendFileWithRanges(req, res, filePath, total, headers) {
|
|
30416
30418
|
const head = (req?.method || "GET").toUpperCase() === "HEAD";
|
|
30417
|
-
const
|
|
30418
|
-
const invalid =
|
|
30419
|
-
if (
|
|
30420
|
-
const [, startRaw, endRaw] =
|
|
30419
|
+
const range3 = /^bytes=(\d*)-(\d*)$/.exec(req?.headers?.range || "");
|
|
30420
|
+
const invalid = range3 && range3[1] && range3[2] && Number(range3[2]) < Number(range3[1]);
|
|
30421
|
+
if (range3 && (range3[1] || range3[2]) && !invalid) {
|
|
30422
|
+
const [, startRaw, endRaw] = range3;
|
|
30421
30423
|
const start = startRaw ? Number(startRaw) : Math.max(0, total - Number(endRaw));
|
|
30422
30424
|
const end = startRaw && endRaw ? Math.min(Number(endRaw), total - 1) : total - 1;
|
|
30423
30425
|
if (start > end || start >= total) {
|
|
@@ -31988,21 +31990,21 @@ function toS(interp, value) {
|
|
|
31988
31990
|
if (value instanceof RRegexp) return `(?-mix:${value.source})`;
|
|
31989
31991
|
return toInspect(interp, value);
|
|
31990
31992
|
}
|
|
31991
|
-
function rangeToArray(interp,
|
|
31992
|
-
if (typeof
|
|
31993
|
+
function rangeToArray(interp, range3) {
|
|
31994
|
+
if (typeof range3.first === "number" && typeof range3.last === "number") {
|
|
31993
31995
|
const out = [];
|
|
31994
|
-
const end =
|
|
31995
|
-
for (let i =
|
|
31996
|
+
const end = range3.exclusive ? range3.last : range3.last + 1;
|
|
31997
|
+
for (let i = range3.first; i < end; i++) out.push(i);
|
|
31996
31998
|
return out;
|
|
31997
31999
|
}
|
|
31998
|
-
if (
|
|
32000
|
+
if (range3.first instanceof RString && range3.last instanceof RString && range3.first.s.length === 1 && range3.last.s.length === 1) {
|
|
31999
32001
|
const out = [];
|
|
32000
|
-
const end =
|
|
32001
|
-
for (let c =
|
|
32002
|
+
const end = range3.last.s.charCodeAt(0) + (range3.exclusive ? 0 : 1);
|
|
32003
|
+
for (let c = range3.first.s.charCodeAt(0); c < end; c++)
|
|
32002
32004
|
out.push(str(String.fromCharCode(c)));
|
|
32003
32005
|
return out;
|
|
32004
32006
|
}
|
|
32005
|
-
throw new UnsupportedRuby(`iterating ${toInspect(interp,
|
|
32007
|
+
throw new UnsupportedRuby(`iterating ${toInspect(interp, range3)}`);
|
|
32006
32008
|
}
|
|
32007
32009
|
function equal(interp, a, b) {
|
|
32008
32010
|
if (a === b) return true;
|
|
@@ -52490,7 +52492,7 @@ var swiftCoverageProvenance;
|
|
|
52490
52492
|
var init_provenance = __esm({
|
|
52491
52493
|
"src/swift-coverage/provenance.ts"() {
|
|
52492
52494
|
"use strict";
|
|
52493
|
-
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"a0ef7c20a2bc2b7dbd98b9006a8b000b9b4f9708f1bcf0adad8aaf79ef253022","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"
|
|
52495
|
+
swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"a0ef7c20a2bc2b7dbd98b9006a8b000b9b4f9708f1bcf0adad8aaf79ef253022","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"fea47e1e076b2cca23c8ac9037eced1d094e69d206df09c393979a5bd1d07a8a","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
|
|
52494
52496
|
}
|
|
52495
52497
|
});
|
|
52496
52498
|
|
|
@@ -59997,11 +59999,11 @@ function pruneSwiftWasmLink(directory2, toolchainBin, moduleRoot, staticClangTar
|
|
|
59997
59999
|
"$s10Foundation6BundleC22preferredLocalizations4fromSaySSGAF_tFZTf4nd_n"
|
|
59998
60000
|
]);
|
|
59999
60001
|
const keepObjCClassesNamedInSegment = (obj, segIdx) => {
|
|
60000
|
-
const
|
|
60001
|
-
if (!
|
|
60002
|
+
const range3 = obj.segPayloadRanges[segIdx];
|
|
60003
|
+
if (!range3) return;
|
|
60002
60004
|
let bytes = objectBytes.get(obj);
|
|
60003
60005
|
if (!bytes) objectBytes.set(obj, bytes = import_node_fs48.default.readFileSync(obj.file));
|
|
60004
|
-
const text7 = bytes.toString("latin1",
|
|
60006
|
+
const text7 = bytes.toString("latin1", range3[0], range3[1]);
|
|
60005
60007
|
for (const match of text7.matchAll(/So(\d+)/g)) {
|
|
60006
60008
|
const start = match.index + 2 + match[1].length;
|
|
60007
60009
|
const length = Number(match[1]);
|
|
@@ -61732,10 +61734,10 @@ function reserveGuestImageProjection(images) {
|
|
|
61732
61734
|
slots.push(slot);
|
|
61733
61735
|
return { address: slot.address, length: slot.length };
|
|
61734
61736
|
};
|
|
61735
|
-
const
|
|
61737
|
+
const range3 = reserve(null);
|
|
61736
61738
|
return {
|
|
61737
61739
|
...region,
|
|
61738
|
-
...
|
|
61740
|
+
...range3,
|
|
61739
61741
|
sections: region.sections.map((section, index) => ({
|
|
61740
61742
|
...section,
|
|
61741
61743
|
...reserve(index)
|
|
@@ -61944,11 +61946,11 @@ function finalizeGuestProjectionStorage(options) {
|
|
|
61944
61946
|
const markers = new Map(
|
|
61945
61947
|
options.reserved.countMarkers.map((marker, index) => [marker, index])
|
|
61946
61948
|
);
|
|
61947
|
-
for (const
|
|
61949
|
+
for (const range3 of ranges)
|
|
61948
61950
|
for (const segment2 of data) {
|
|
61949
|
-
const first = Math.max(
|
|
61951
|
+
const first = Math.max(range3.address, segment2.address);
|
|
61950
61952
|
const last = Math.min(
|
|
61951
|
-
|
|
61953
|
+
range3.address + range3.length,
|
|
61952
61954
|
segment2.address + segment2.length
|
|
61953
61955
|
);
|
|
61954
61956
|
const start = segment2.offset + first - segment2.address;
|
|
@@ -65703,19 +65705,20 @@ function compactSwiftClangOverlays(flags, generated) {
|
|
|
65703
65705
|
}
|
|
65704
65706
|
return duplicates.size === 0 ? flags : flags.filter((_, index) => !duplicates.has(index));
|
|
65705
65707
|
}
|
|
65706
|
-
function
|
|
65708
|
+
function submoduleImports(sources) {
|
|
65707
65709
|
const imports2 = /* @__PURE__ */ new Map();
|
|
65708
65710
|
for (const source of sources)
|
|
65709
|
-
for (const
|
|
65711
|
+
for (const match of source.matchAll(SUBMODULE_IMPORT)) {
|
|
65712
|
+
const module2 = match[1] ?? match[3];
|
|
65710
65713
|
const names = imports2.get(module2) ?? /* @__PURE__ */ new Set();
|
|
65711
|
-
names.add(
|
|
65714
|
+
names.add(match[2] ?? match[4]);
|
|
65712
65715
|
imports2.set(module2, names);
|
|
65713
65716
|
}
|
|
65714
65717
|
return imports2;
|
|
65715
65718
|
}
|
|
65716
65719
|
function swiftObjCModuleMap(module2, headers, submodules = /* @__PURE__ */ new Set(), swiftHeader) {
|
|
65717
65720
|
const header = (file) => `header ${JSON.stringify(file)}`;
|
|
65718
|
-
const stem = (file) => file.slice(file.lastIndexOf("/") + 1).replace(/\.[^.]*$/, "");
|
|
65721
|
+
const stem = (file) => file.slice(file.lastIndexOf("/") + 1).replace(/\.[^.]*$/, "").replace(/[^A-Za-z0-9_]/g, "_").replace(/^(?=\d)/, "_");
|
|
65719
65722
|
return [
|
|
65720
65723
|
`module ${module2} {`,
|
|
65721
65724
|
...headers.map(
|
|
@@ -65727,7 +65730,7 @@ function swiftObjCModuleMap(module2, headers, submodules = /* @__PURE__ */ new S
|
|
|
65727
65730
|
""
|
|
65728
65731
|
].join("\n");
|
|
65729
65732
|
}
|
|
65730
|
-
var SWIFT_OBJC_INTEROP_FLAGS, CLANG_PATH_OPTIONS,
|
|
65733
|
+
var SWIFT_OBJC_INTEROP_FLAGS, CLANG_PATH_OPTIONS, SUBMODULE_IMPORT;
|
|
65731
65734
|
var init_swift_objc_import = __esm({
|
|
65732
65735
|
"src/swift-objc-import.ts"() {
|
|
65733
65736
|
"use strict";
|
|
@@ -65758,7 +65761,7 @@ var init_swift_objc_import = __esm({
|
|
|
65758
65761
|
"-iwithprefixbefore",
|
|
65759
65762
|
"--sysroot"
|
|
65760
65763
|
]);
|
|
65761
|
-
|
|
65764
|
+
SUBMODULE_IMPORT = /^[ \t]*(?:(?:@\w+(?:\([^)]*\))?[ \t]+)*import[ \t]+([A-Za-z_]\w*)\.([A-Za-z_]\w*)[ \t]*(?:\/\/.*)?|@import[ \t]+([A-Za-z_]\w*)\.([A-Za-z_]\w*)[ \t]*;.*)$/gm;
|
|
65762
65765
|
}
|
|
65763
65766
|
});
|
|
65764
65767
|
|
|
@@ -66716,7 +66719,7 @@ function withNativeSourceGlue(input, glue) {
|
|
|
66716
66719
|
function swiftOptionalFramework(name3) {
|
|
66717
66720
|
return OPTIONAL_FRAMEWORKS.has(name3);
|
|
66718
66721
|
}
|
|
66719
|
-
function swiftCondition(text7, available) {
|
|
66722
|
+
function swiftCondition(text7, available, defines) {
|
|
66720
66723
|
const tokens2 = text7.match(/\w+\s*\([^()]*\)|&&|\|\||!|\(|\)|\w+/g) ?? [];
|
|
66721
66724
|
let index = 0;
|
|
66722
66725
|
const atom = () => {
|
|
@@ -66729,6 +66732,7 @@ function swiftCondition(text7, available) {
|
|
|
66729
66732
|
}
|
|
66730
66733
|
if (token === "true") return true;
|
|
66731
66734
|
if (token === "false") return false;
|
|
66735
|
+
if (defines && /^[A-Za-z_]\w*$/.test(token ?? "")) return defines.has(token);
|
|
66732
66736
|
const call = /^(\w+)\s*\(\s*([^,()]*?)\s*(?:,[^()]*)?\)$/.exec(token ?? "");
|
|
66733
66737
|
if (!call) return void 0;
|
|
66734
66738
|
const [, name3, argument2] = call;
|
|
@@ -66757,7 +66761,7 @@ function swiftCondition(text7, available) {
|
|
|
66757
66761
|
};
|
|
66758
66762
|
return either();
|
|
66759
66763
|
}
|
|
66760
|
-
function* swiftConditionalLines(contents2, available) {
|
|
66764
|
+
function* swiftConditionalLines(contents2, available, defines) {
|
|
66761
66765
|
const frames = [];
|
|
66762
66766
|
for (const line of swiftCodeMask(contents2).split("\n")) {
|
|
66763
66767
|
const directive = /^\s*#(if|elseif|else|endif)\b(.*)$/.exec(line);
|
|
@@ -66765,12 +66769,12 @@ function* swiftConditionalLines(contents2, available) {
|
|
|
66765
66769
|
const [, kind, rest] = directive;
|
|
66766
66770
|
const condition = (rest ?? "").replace(/\/\/.*$/, "").trim();
|
|
66767
66771
|
if (kind === "if") {
|
|
66768
|
-
const active = swiftCondition(condition, available);
|
|
66772
|
+
const active = swiftCondition(condition, available, defines);
|
|
66769
66773
|
frames.push({ active, taken: active });
|
|
66770
66774
|
} else if (kind === "endif") frames.pop();
|
|
66771
66775
|
else if (frames.length > 0) {
|
|
66772
66776
|
const frame = frames[frames.length - 1];
|
|
66773
|
-
const holds = kind === "else" ? true : swiftCondition(condition, available);
|
|
66777
|
+
const holds = kind === "else" ? true : swiftCondition(condition, available, defines);
|
|
66774
66778
|
frame.active = frame.taken === true ? false : frame.taken === false ? holds : holds && void 0;
|
|
66775
66779
|
frame.taken = frame.taken === true || holds === true ? true : frame.taken === false ? holds : void 0;
|
|
66776
66780
|
}
|
|
@@ -67591,6 +67595,17 @@ function emitSwiftPackageManifest(args) {
|
|
|
67591
67595
|
...args.nativeHeaderFlags ?? []
|
|
67592
67596
|
];
|
|
67593
67597
|
const owner = targets.find((target) => target.name === name3);
|
|
67598
|
+
const context = /* @__PURE__ */ new Set();
|
|
67599
|
+
const visit3 = (dependency) => {
|
|
67600
|
+
if (context.has(dependency)) return;
|
|
67601
|
+
context.add(dependency);
|
|
67602
|
+
for (const next of siblings.get(dependency) ?? []) visit3(next);
|
|
67603
|
+
};
|
|
67604
|
+
if (native.mixed)
|
|
67605
|
+
for (const dependency of siblings.get(name3) ?? []) visit3(dependency);
|
|
67606
|
+
const contextFlags = [...context].flatMap(
|
|
67607
|
+
(dependency) => args.native?.get(dependency)?.importFlags ?? []
|
|
67608
|
+
);
|
|
67594
67609
|
return late ? (native.groups ?? [
|
|
67595
67610
|
{
|
|
67596
67611
|
name: late.name,
|
|
@@ -67605,9 +67620,9 @@ function emitSwiftPackageManifest(args) {
|
|
|
67605
67620
|
` path: ${JSON.stringify(group.path)},`,
|
|
67606
67621
|
` sources: ${JSON.stringify(group.sources)},`,
|
|
67607
67622
|
` publicHeadersPath: ${JSON.stringify(native.groups ? "include" : "PeachSwiftImplementation")},`,
|
|
67608
|
-
` cSettings: [${macroSettings(owner?.cDefines)}${declaredClangSettings(owner, "c")} .unsafeFlags(${flagArray(targetCFlags([...nativeFlags, "-I", native.includeDirectory, ...args.headerDirectory ? ["-I", args.headerDirectory] : [], ...group.flags]))})],`,
|
|
67623
|
+
` cSettings: [${macroSettings(owner?.cDefines)}${declaredClangSettings(owner, "c")} .unsafeFlags(${flagArray(targetCFlags([...nativeFlags, "-I", native.includeDirectory, ...args.headerDirectory ? ["-I", args.headerDirectory] : [], ...group.flags, ...contextFlags]))})],`,
|
|
67609
67624
|
...group.sources.some((source) => /\.(?:cc|cpp|cxx|mm)$/.test(source)) ? [
|
|
67610
|
-
` cxxSettings: [${macroSettings(owner?.cxxDefines)}${declaredClangSettings(owner, "cxx")} .unsafeFlags(${flagArray(targetCxxFlags([...cxxFlagsFor(nativeFlags), "-I", native.includeDirectory, ...group.cxxFlags]))})]),`
|
|
67625
|
+
` cxxSettings: [${macroSettings(owner?.cxxDefines)}${declaredClangSettings(owner, "cxx")} .unsafeFlags(${flagArray(targetCxxFlags([...cxxFlagsFor(nativeFlags), "-I", native.includeDirectory, ...group.cxxFlags, ...contextFlags]))})]),`
|
|
67611
67626
|
] : [" ),"]
|
|
67612
67627
|
]) : [];
|
|
67613
67628
|
}),
|
|
@@ -68063,8 +68078,8 @@ function swiftApplicationEntry(file, source) {
|
|
|
68063
68078
|
}
|
|
68064
68079
|
return false;
|
|
68065
68080
|
}
|
|
68066
|
-
function swiftTypedApplicationEntry(source) {
|
|
68067
|
-
const code = [...swiftConditionalLines(swiftCodeMask(source))].map(({ line, active }) => active === false ? " ".repeat(line.length) : line).join("\n");
|
|
68081
|
+
function swiftTypedApplicationEntry(source, defines) {
|
|
68082
|
+
const code = [...swiftConditionalLines(swiftCodeMask(source), void 0, defines)].map(({ line, active }) => active === false ? " ".repeat(line.length) : line).join("\n");
|
|
68068
68083
|
const match = /@main\b[\s\S]*?\b(?:struct|class|enum)\s+([A-Za-z_]\w*)/.exec(code);
|
|
68069
68084
|
return match ? { index: match.index, name: match[1] } : null;
|
|
68070
68085
|
}
|
|
@@ -68666,9 +68681,9 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
68666
68681
|
clangImportedModules.add(name3);
|
|
68667
68682
|
}
|
|
68668
68683
|
}
|
|
68669
|
-
const
|
|
68684
|
+
const submoduleImports2 = submoduleImports(
|
|
68670
68685
|
Object.entries(input.files).flatMap(
|
|
68671
|
-
([file, contents2]) =>
|
|
68686
|
+
([file, contents2]) => /\.(?:swift|h|m|mm)$/.test(file) ? [contents2.toString()] : []
|
|
68672
68687
|
)
|
|
68673
68688
|
);
|
|
68674
68689
|
const headerDirectory = import_node_path60.default.join(layout2.root, ".build", "peach-cxx-headers");
|
|
@@ -69059,7 +69074,7 @@ ${swiftProjectFilesProblems(input.projectFiles).join("\n")}`
|
|
|
69059
69074
|
const moduleContents = originalModuleMap ? input.files[originalModuleMap[1]] : swiftpmModuleMap?.contents ?? packageModuleMap?.[1] ?? swiftObjCModuleMap(
|
|
69060
69075
|
swiftTargetModuleName(target.name),
|
|
69061
69076
|
roots2.map((file) => import_node_path60.default.join(layout2.root, file)),
|
|
69062
|
-
|
|
69077
|
+
submoduleImports2.get(swiftTargetModuleName(target.name))
|
|
69063
69078
|
);
|
|
69064
69079
|
if (moduleContents === void 0)
|
|
69065
69080
|
throw new Error("missing original module map " + modulemap);
|
|
@@ -69401,7 +69416,7 @@ module ${moduleName2}.Swift {
|
|
|
69401
69416
|
` : swiftObjCModuleMap(
|
|
69402
69417
|
moduleName2,
|
|
69403
69418
|
(input.nativeTargets?.find((target) => target.name === name3)?.publicHeaders ?? []).map((header) => import_node_path60.default.join(layout2.root, header)),
|
|
69404
|
-
|
|
69419
|
+
submoduleImports2.get(moduleName2),
|
|
69405
69420
|
import_node_path60.default.join(headerDirectory, name3 + "-Swift.h")
|
|
69406
69421
|
)
|
|
69407
69422
|
);
|
|
@@ -69489,7 +69504,7 @@ module ${moduleName2}.Swift {
|
|
|
69489
69504
|
)
|
|
69490
69505
|
);
|
|
69491
69506
|
const mains = entries.flatMap(([file, source]) => {
|
|
69492
|
-
const entry = swiftTypedApplicationEntry(source);
|
|
69507
|
+
const entry = swiftTypedApplicationEntry(source, new Set(target.defines ?? []));
|
|
69493
69508
|
return entry ? [{ file, source, ...entry }] : [];
|
|
69494
69509
|
});
|
|
69495
69510
|
let entryFile = "";
|
|
@@ -71501,8 +71516,8 @@ var init_swift_compile = __esm({
|
|
|
71501
71516
|
SWIFTPM_PROGRESS = /^\[\d+\/\d+\] /;
|
|
71502
71517
|
SWIFTPM_NOISE = /^(?:\[\d+\/\d+\] |Building for production\.\.\.$|warning: '--build-system native' has been deprecated)/;
|
|
71503
71518
|
REACH_STAGED_FRAMEWORKS = /* @__PURE__ */ new Set(["React"]);
|
|
71504
|
-
clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(
|
|
71505
|
-
/^@import (?:CoreFoundation|FoundationNetworking);$/gm,
|
|
71519
|
+
clangInterfaceHeader = (header) => header.replace(/^@import (?:UIKitCore|UIKitText);$/gm, "@import UIKit;").replace(/^@import (\w+?)(?:Enums|Constants);$/gm, "@import $1;").replace(
|
|
71520
|
+
/^@import (?:CoreFoundation|FoundationNetworking|PeachFoundation);$/gm,
|
|
71506
71521
|
"@import Foundation;"
|
|
71507
71522
|
).replace(/\b_TtC10Foundation\d+(NS\w+)\b/g, "$1").replace(/\b__attribute__\(\(objc_subclassing_restricted\)\)\s*/g, "");
|
|
71508
71523
|
objcEnumerations = (header) => [
|
|
@@ -71696,7 +71711,7 @@ int EXUpdatesApplyBSDiffPatch(const char * _Nonnull oldFilePath,
|
|
|
71696
71711
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
71697
71712
|
MULTI_MANIFEST_VERSION = 72;
|
|
71698
71713
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
71699
|
-
compilerSourceDigest = true ? "
|
|
71714
|
+
compilerSourceDigest = true ? "5ed6ce65e80a661269e2ae1a70eb7df501b75d5c5fd45c3cfc87cf1db220d611" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
71700
71715
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
71701
71716
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
71702
71717
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -73395,9 +73410,9 @@ function remoteVersionRequirement(entry) {
|
|
|
73395
73410
|
const major = text6(entry["up-to-next-major-version"]);
|
|
73396
73411
|
if (major !== void 0)
|
|
73397
73412
|
return { requirement: { kind: "upToNextMajorVersion", minimumVersion: major } };
|
|
73398
|
-
const
|
|
73399
|
-
if (
|
|
73400
|
-
const bounds =
|
|
73413
|
+
const range3 = text6(entry["version-range"]);
|
|
73414
|
+
if (range3 !== void 0) {
|
|
73415
|
+
const bounds = range3.split("..<");
|
|
73401
73416
|
const minimum2 = bounds[0];
|
|
73402
73417
|
const maximum2 = bounds[1];
|
|
73403
73418
|
if (bounds.length !== 2 || !minimum2 || !maximum2 || bounds[2] !== void 0)
|
|
@@ -75484,6 +75499,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
75484
75499
|
// xcode's Swift.xcspec defaults bare slash regex literals on before Swift 6
|
|
75485
75500
|
...swiftVersion < 6 && settings2("SWIFT_ENABLE_BARE_SLASH_REGEX") !== "NO" ? ["-enable-bare-slash-regex"] : [],
|
|
75486
75501
|
...packageName ? ["-package-name", packageName] : [],
|
|
75502
|
+
// as xcode passes it; the generated header then also carries
|
|
75503
|
+
// the module's internal @objc declarations
|
|
75504
|
+
...settings2("APPLICATION_EXTENSION_API_ONLY") === "YES" ? ["-application-extension"] : [],
|
|
75487
75505
|
...settingList(settings2("OTHER_SWIFT_FLAGS"))
|
|
75488
75506
|
],
|
|
75489
75507
|
includePaths: settingList(settings2("SWIFT_INCLUDE_PATHS")).map(absolute),
|
|
@@ -78449,7 +78467,7 @@ var init_swift_standin_digest = __esm({
|
|
|
78449
78467
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
78450
78468
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
78451
78469
|
standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
|
|
78452
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
78470
|
+
STANDIN_SOURCE_DIGEST = true ? "3238b362649e49ccf332149bb0b343bb7ed657c3c8287e0a231bc7316974eb6e" : standinSourceDigest();
|
|
78453
78471
|
}
|
|
78454
78472
|
});
|
|
78455
78473
|
|
|
@@ -78944,7 +78962,7 @@ __export(expo_native_prebuilt_exports, {
|
|
|
78944
78962
|
servedExpoSwift: () => servedExpoSwift
|
|
78945
78963
|
});
|
|
78946
78964
|
function expoNativeCompilerDigestValue() {
|
|
78947
|
-
return true ? "
|
|
78965
|
+
return true ? "a73dbb991a81bb1544cef0b99f6ffc474d5d36d4520550412538932edda6d36c" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
78948
78966
|
}
|
|
78949
78967
|
function readSources(value) {
|
|
78950
78968
|
const sources = isRecord(value) ? value.sources : null;
|
|
@@ -82833,9 +82851,9 @@ function functionDeclarations(ast, headers) {
|
|
|
82833
82851
|
if (Array.isArray(inner) && inner.some((child) => Reflect.get(child, "kind") === "CompoundStmt"))
|
|
82834
82852
|
continue;
|
|
82835
82853
|
const parameterless = !Array.isArray(inner) || !inner.some((child) => Reflect.get(child, "kind") === "ParmVarDecl");
|
|
82836
|
-
const
|
|
82854
|
+
const range3 = Reflect.get(decl, "range");
|
|
82837
82855
|
const offset = (end) => {
|
|
82838
|
-
const at = Reflect.get(
|
|
82856
|
+
const at = Reflect.get(range3, end);
|
|
82839
82857
|
const expansion = Reflect.get(at, "expansionLoc");
|
|
82840
82858
|
return Number(Reflect.get(expansion ?? at, "offset"));
|
|
82841
82859
|
};
|
|
@@ -88104,6 +88122,21 @@ function defaultValue(model, member, type) {
|
|
|
88104
88122
|
if (scanned) return scanned;
|
|
88105
88123
|
refuse3(model, `${member.attrs.name} has the ${type} default ${JSON.stringify(text7)}`);
|
|
88106
88124
|
}
|
|
88125
|
+
function range2(model, member, type) {
|
|
88126
|
+
const bounds = [
|
|
88127
|
+
[member.attrs.minValueString, 3, 1620],
|
|
88128
|
+
[member.attrs.maxValueString, 1, 1610]
|
|
88129
|
+
];
|
|
88130
|
+
return bounds.flatMap(([text7, operator, warning2]) => {
|
|
88131
|
+
if (text7 === void 0) return [];
|
|
88132
|
+
if (type.startsWith("Integer ") && /^-?\d+$/.test(text7) || (type === "Double" || type === "Float") && Number.isFinite(Number(text7)))
|
|
88133
|
+
return [{ operator, value: Number(text7), warning: warning2 }];
|
|
88134
|
+
refuse3(
|
|
88135
|
+
model,
|
|
88136
|
+
`${member.attrs.name} has the ${type} range bound ${JSON.stringify(text7)}`
|
|
88137
|
+
);
|
|
88138
|
+
});
|
|
88139
|
+
}
|
|
88107
88140
|
function attribute(source, member) {
|
|
88108
88141
|
checkAttributes(source.model, member, [
|
|
88109
88142
|
"name",
|
|
@@ -88115,6 +88148,8 @@ function attribute(source, member) {
|
|
|
88115
88148
|
"usesScalarValueType",
|
|
88116
88149
|
"customClassName",
|
|
88117
88150
|
"valueTransformerName",
|
|
88151
|
+
"minValueString",
|
|
88152
|
+
"maxValueString",
|
|
88118
88153
|
"indexed",
|
|
88119
88154
|
"versionHashModifier",
|
|
88120
88155
|
"elementID",
|
|
@@ -88129,18 +88164,18 @@ function attribute(source, member) {
|
|
|
88129
88164
|
if (!known)
|
|
88130
88165
|
refuse3(source.model, `${member.attrs.name} has the attribute type ${typeName}`);
|
|
88131
88166
|
const [type, className2] = known;
|
|
88132
|
-
if (member.attrs.customClassName !== void 0 && typeName !== "Transformable")
|
|
88133
|
-
refuse3(source.model, `${member.attrs.name} names a custom class for a ${typeName}`);
|
|
88134
88167
|
return {
|
|
88135
88168
|
kind: "attribute",
|
|
88136
88169
|
...common(source, member),
|
|
88137
88170
|
transient: yes(member.attrs.transient),
|
|
88138
88171
|
type,
|
|
88139
|
-
|
|
88172
|
+
// momc archives a custom class as the value class of any attribute type
|
|
88173
|
+
className: member.attrs.customClassName ?? className2,
|
|
88140
88174
|
defaultValue: defaultValue(source.model, member, typeName),
|
|
88141
88175
|
transformer: member.attrs.valueTransformerName ?? null,
|
|
88142
88176
|
flags: (yes(member.attrs.allowsExternalBinaryDataStorage) ? EXTERNAL_BINARY : 0) | (yes(member.attrs.preserveAfterDeletion) ? PRESERVE_AFTER_DELETION : 0),
|
|
88143
|
-
cloudEncryption: yes(member.attrs.allowsCloudEncryption)
|
|
88177
|
+
cloudEncryption: yes(member.attrs.allowsCloudEncryption),
|
|
88178
|
+
range: range2(source.model, member, typeName)
|
|
88144
88179
|
};
|
|
88145
88180
|
}
|
|
88146
88181
|
function relationship(source, member) {
|
|
@@ -88193,6 +88228,7 @@ function entity(source, tag) {
|
|
|
88193
88228
|
"attribute",
|
|
88194
88229
|
"relationship",
|
|
88195
88230
|
"fetchIndex",
|
|
88231
|
+
"compoundIndexes",
|
|
88196
88232
|
"uniquenessConstraints",
|
|
88197
88233
|
"userInfo"
|
|
88198
88234
|
]);
|
|
@@ -88225,6 +88261,23 @@ function entity(source, tag) {
|
|
|
88225
88261
|
elements: [{ property: property2, ascending: true }],
|
|
88226
88262
|
owned: source.tools >= 9
|
|
88227
88263
|
});
|
|
88264
|
+
const compound = tag.children.filter((child) => child.name === "compoundIndexes").flatMap((group) => {
|
|
88265
|
+
checkChildren(source.model, group, ["compoundIndex"]);
|
|
88266
|
+
return group.children;
|
|
88267
|
+
});
|
|
88268
|
+
if (compound.length > 0 && source.tools < 9)
|
|
88269
|
+
refuse3(source.model, `${tag.attrs.name} has compound indexes before xcode 9`);
|
|
88270
|
+
compound.forEach((index, at) => {
|
|
88271
|
+
checkChildren(source.model, index, ["index"]);
|
|
88272
|
+
indexes.push({
|
|
88273
|
+
name: `compoundIndex${at === 0 ? "" : at}`,
|
|
88274
|
+
elements: index.children.map((element) => {
|
|
88275
|
+
checkAttributes(source.model, element, ["value"]);
|
|
88276
|
+
return { property: element.attrs.value, ascending: true };
|
|
88277
|
+
}),
|
|
88278
|
+
owned: true
|
|
88279
|
+
});
|
|
88280
|
+
});
|
|
88228
88281
|
const uniqueness = tag.children.filter((child) => child.name === "uniquenessConstraints").flatMap((group) => {
|
|
88229
88282
|
checkChildren(source.model, group, ["uniquenessConstraint"]);
|
|
88230
88283
|
return group.children.map((constraint) => {
|
|
@@ -88296,8 +88349,16 @@ function archiveModel(model) {
|
|
|
88296
88349
|
for (const property2 of item.properties)
|
|
88297
88350
|
propertyIndex.set(`${item.name}.${property2.name}`, archive.reserve());
|
|
88298
88351
|
const entityUid = (name3) => uid(entityIndex.get(name3));
|
|
88352
|
+
const byName = new Map(model.entities.map((item) => [item.name, item]));
|
|
88353
|
+
const relationships = (item) => [
|
|
88354
|
+
...item.parent === null ? [] : relationships(byName.get(item.parent)),
|
|
88355
|
+
...item.properties.flatMap(
|
|
88356
|
+
(property2) => property2.kind === "relationship" ? [property2.name] : []
|
|
88357
|
+
)
|
|
88358
|
+
];
|
|
88299
88359
|
for (const item of model.entities) {
|
|
88300
88360
|
const self = entityUid(item.name);
|
|
88361
|
+
const related = relationships(item);
|
|
88301
88362
|
const properties = item.properties.map((property2) => {
|
|
88302
88363
|
const index = propertyIndex.get(`${item.name}.${property2.name}`);
|
|
88303
88364
|
const shared = {
|
|
@@ -88319,7 +88380,45 @@ function archiveModel(model) {
|
|
|
88319
88380
|
NSFlagsKey: property2.flags,
|
|
88320
88381
|
NSValueTransformerName: archive.string(property2.transformer),
|
|
88321
88382
|
...property2.transient ? { NSIsTransient: true } : {},
|
|
88322
|
-
...property2.cloudEncryption ? { NSAllowsCloudEncryption: true } : {}
|
|
88383
|
+
...property2.cloudEncryption ? { NSAllowsCloudEncryption: true } : {},
|
|
88384
|
+
...property2.range.length > 0 ? {
|
|
88385
|
+
NSValidationPredicates: archive.array(
|
|
88386
|
+
property2.range.map(
|
|
88387
|
+
(bound) => archive.fill(archive.reserve(), "NSComparisonPredicate", {
|
|
88388
|
+
NSLeftExpression: archive.fill(
|
|
88389
|
+
archive.reserve(),
|
|
88390
|
+
"NSSelfExpression",
|
|
88391
|
+
{
|
|
88392
|
+
NSExpressionType: 1
|
|
88393
|
+
}
|
|
88394
|
+
),
|
|
88395
|
+
NSPredicateOperator: archive.fill(
|
|
88396
|
+
archive.reserve(),
|
|
88397
|
+
"NSComparisonPredicateOperator",
|
|
88398
|
+
{
|
|
88399
|
+
NSModifier: 0,
|
|
88400
|
+
NSOperatorType: bound.operator,
|
|
88401
|
+
NSOptions: 0,
|
|
88402
|
+
NSVariant: bound.operator
|
|
88403
|
+
}
|
|
88404
|
+
),
|
|
88405
|
+
NSRightExpression: archive.fill(
|
|
88406
|
+
archive.reserve(),
|
|
88407
|
+
"NSConstantValueExpression",
|
|
88408
|
+
{
|
|
88409
|
+
NSConstantValue: archive.add(bound.value),
|
|
88410
|
+
NSExpressionType: 0
|
|
88411
|
+
}
|
|
88412
|
+
)
|
|
88413
|
+
})
|
|
88414
|
+
),
|
|
88415
|
+
"NSArray"
|
|
88416
|
+
),
|
|
88417
|
+
NSValidationWarnings: archive.array(
|
|
88418
|
+
property2.range.map((bound) => archive.add(bound.warning)),
|
|
88419
|
+
"NSArray"
|
|
88420
|
+
)
|
|
88421
|
+
} : {}
|
|
88323
88422
|
})
|
|
88324
88423
|
];
|
|
88325
88424
|
const destination = model.entities.find(
|
|
@@ -88343,7 +88442,9 @@ function archiveModel(model) {
|
|
|
88343
88442
|
});
|
|
88344
88443
|
const indexes = item.indexes.length === 0 ? {} : {
|
|
88345
88444
|
NSCompoundIndexes: archive.array(
|
|
88346
|
-
item.indexes.filter(
|
|
88445
|
+
item.indexes.filter(
|
|
88446
|
+
(index) => index.elements.length >= 2 && !index.elements.some((element) => related.includes(element.property))
|
|
88447
|
+
).map(
|
|
88347
88448
|
(index) => archive.array(
|
|
88348
88449
|
index.elements.map((element) => archive.add(element.property))
|
|
88349
88450
|
)
|
|
@@ -88559,6 +88660,14 @@ var init_core_data_model = __esm({
|
|
|
88559
88660
|
NSMutableArray: ["NSMutableArray", "NSArray", "NSObject"],
|
|
88560
88661
|
NSSet: ["NSSet", "NSObject"],
|
|
88561
88662
|
NSDate: ["NSDate", "NSObject"],
|
|
88663
|
+
NSComparisonPredicate: ["NSComparisonPredicate", "NSPredicate", "NSObject"],
|
|
88664
|
+
NSComparisonPredicateOperator: [
|
|
88665
|
+
"NSComparisonPredicateOperator",
|
|
88666
|
+
"NSPredicateOperator",
|
|
88667
|
+
"NSObject"
|
|
88668
|
+
],
|
|
88669
|
+
NSSelfExpression: ["NSSelfExpression", "NSExpression", "NSObject"],
|
|
88670
|
+
NSConstantValueExpression: ["NSConstantValueExpression", "NSExpression", "NSObject"],
|
|
88562
88671
|
NSDecimalNumberPlaceholder: [
|
|
88563
88672
|
"NSDecimalNumberPlaceholder",
|
|
88564
88673
|
"NSDecimalNumber",
|
|
@@ -91613,13 +91722,13 @@ async function serveSwiftPackageAsset(pathname, res) {
|
|
|
91613
91722
|
res.setHeader("cache-control", "public, max-age=31536000, immutable");
|
|
91614
91723
|
res.setHeader("content-type", "application/octet-stream");
|
|
91615
91724
|
res.setHeader("accept-ranges", "bytes");
|
|
91616
|
-
const
|
|
91617
|
-
if (!
|
|
91725
|
+
const range3 = /^bytes=(\d+)-(\d+)$/.exec(res.req?.headers.range ?? "");
|
|
91726
|
+
if (!range3) {
|
|
91618
91727
|
res.end(packed);
|
|
91619
91728
|
return true;
|
|
91620
91729
|
}
|
|
91621
|
-
const start = Number(
|
|
91622
|
-
const end = Math.min(Number(
|
|
91730
|
+
const start = Number(range3[1]);
|
|
91731
|
+
const end = Math.min(Number(range3[2]), packed.length - 1);
|
|
91623
91732
|
if (start > end) {
|
|
91624
91733
|
res.statusCode = 416;
|
|
91625
91734
|
res.setHeader("content-range", `bytes */${packed.length}`);
|
|
@@ -102150,7 +102259,7 @@ var init_nitro_superset = __esm({
|
|
|
102150
102259
|
init_nitroContract();
|
|
102151
102260
|
init_swift_standin_digest();
|
|
102152
102261
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
102153
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
102262
|
+
NITRO_COMPILER_DIGEST = true ? "ed595b44e58b281a4c404e74a792fba1c85dfdce95d3b951a12db875de38c382" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
102154
102263
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
102155
102264
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
102156
102265
|
published2 = /* @__PURE__ */ new Map();
|
|
@@ -102842,7 +102951,7 @@ var init_one_sdk_bundle = __esm({
|
|
|
102842
102951
|
var runtime_companion_default;
|
|
102843
102952
|
var init_runtime_companion = __esm({
|
|
102844
102953
|
"runtime-companion.json"() {
|
|
102845
|
-
runtime_companion_default = { abi: 1, sha256: "
|
|
102954
|
+
runtime_companion_default = { abi: 1, sha256: "c3e71b5eaf9166fc3fdc4333c354332e1ff41e1a6c71b6814afebe7c7d14bf9b", file: "node/cli-c3e71b5eaf9166fc3fdc4333c354332e1ff41e1a6c71b6814afebe7c7d14bf9b.cjs" };
|
|
102846
102955
|
}
|
|
102847
102956
|
});
|
|
102848
102957
|
|
|
@@ -107534,7 +107643,6 @@ var init_native_package_names = __esm({
|
|
|
107534
107643
|
"expo-updates",
|
|
107535
107644
|
"expo-vector-search",
|
|
107536
107645
|
"expo-video",
|
|
107537
|
-
"expo-video-metadata",
|
|
107538
107646
|
"expo-video-thumbnails",
|
|
107539
107647
|
"expo-web-browser",
|
|
107540
107648
|
"expo-wechat",
|
|
@@ -108107,6 +108215,7 @@ var init_native_package_names = __esm({
|
|
|
108107
108215
|
"@tamagui/native-registry",
|
|
108108
108216
|
"@uniswap/ethers-rs-mobile",
|
|
108109
108217
|
"@valora/react-native-keychain",
|
|
108218
|
+
"expo-video-metadata",
|
|
108110
108219
|
"react-native-app-control",
|
|
108111
108220
|
"react-native-blue-crypto",
|
|
108112
108221
|
"react-native-dynamic-theme",
|
|
@@ -113487,8 +113596,8 @@ async function kotlinArtifact(root, moduleRoot, origin, target = "app") {
|
|
|
113487
113596
|
function readExpoField(value) {
|
|
113488
113597
|
if (!isRecord(value) || typeof value.name !== "string" || typeof value.key !== "string" || typeof value.required !== "boolean" || typeof value.mutable !== "boolean" || typeof value.hidden !== "boolean" || typeof value.parameter !== "boolean")
|
|
113489
113598
|
throw new Error("expo-types printed an invalid field");
|
|
113490
|
-
const
|
|
113491
|
-
if (
|
|
113599
|
+
const range3 = value.initializer;
|
|
113600
|
+
if (range3 !== null && (!Array.isArray(range3) || range3.length !== 2 || typeof range3[0] !== "number" || typeof range3[1] !== "number"))
|
|
113492
113601
|
throw new Error("expo-types printed an invalid initializer range");
|
|
113493
113602
|
return {
|
|
113494
113603
|
name: value.name,
|
|
@@ -113497,7 +113606,7 @@ function readExpoField(value) {
|
|
|
113497
113606
|
mutable: value.mutable,
|
|
113498
113607
|
hidden: value.hidden,
|
|
113499
113608
|
parameter: value.parameter,
|
|
113500
|
-
initializer:
|
|
113609
|
+
initializer: range3 === null ? null : [range3[0], range3[1]]
|
|
113501
113610
|
};
|
|
113502
113611
|
}
|
|
113503
113612
|
function readExpoTypes(output2) {
|
|
@@ -113727,8 +113836,8 @@ function expoTypeSources(files2) {
|
|
|
113727
113836
|
];
|
|
113728
113837
|
if (edits.length > 0 || views.length > 0) {
|
|
113729
113838
|
let text7 = import_node_fs134.default.readFileSync(file.file, "utf8").replaceAll("\r\n", "\n");
|
|
113730
|
-
for (const { range:
|
|
113731
|
-
text7 = `${text7.slice(0,
|
|
113839
|
+
for (const { range: range3, owner, field: field2 } of edits.sort((a, b) => b.range[0] - a.range[0]))
|
|
113840
|
+
text7 = `${text7.slice(0, range3[0])}dev.peach.expo.PeachExpoTypes.initial(${owner}::class, ${literal4(field2.key)}, ${field2.required}) { ${text7.slice(range3[0], range3[1])} }${text7.slice(range3[1])}`;
|
|
113732
113841
|
if (views.length > 0) {
|
|
113733
113842
|
text7 = [
|
|
113734
113843
|
text7,
|
|
@@ -122219,8 +122328,8 @@ var init_eventBridgeContract = __esm({
|
|
|
122219
122328
|
// ../peach-globals/src/keyboardBridgeContract.ts
|
|
122220
122329
|
function isTextInputEditCommand(value) {
|
|
122221
122330
|
if (!value || typeof value !== "object" || !("range" in value)) return false;
|
|
122222
|
-
const
|
|
122223
|
-
if (!
|
|
122331
|
+
const range3 = value.range;
|
|
122332
|
+
if (!range3 || typeof range3 !== "object" || !("start" in range3) || !("end" in range3) || typeof range3.start !== "number" || typeof range3.end !== "number" || !Number.isSafeInteger(range3.start) || !Number.isSafeInteger(range3.end) || range3.start < 0 || range3.end < range3.start)
|
|
122224
122333
|
return false;
|
|
122225
122334
|
if (!("kind" in value)) return false;
|
|
122226
122335
|
if (value.kind === "compositionStart") return true;
|