peachsim 0.1.1845 → 0.1.1847
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/detox/index.ts +14 -4
- 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 +139 -61
- 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 +14 -6
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +45 -23
- 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 +138 -60
- package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
- 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 +43 -19
- 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 +43 -19
- package/dist-lib/native-app-identity-project.cjs +39 -15
- package/dist-lib/native-app-identity-project.mjs +39 -15
- 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 +143 -65
- package/dist-lib/swift-compile.cjs +8 -3
- package/dist-lib/swift-compile.mjs +7 -3
- 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 +28 -13
- package/dist-lib/vite.cjs +2 -2
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +2 -1
- package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +3 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/expo-swift-host.ts +35 -18
- package/src/native-firebase-config.ts +3 -3
- package/src/swift-compile.ts +11 -3
- package/src/swift-host.ts +5 -1
- package/src/turbo-codegen-intake.ts +41 -6
- package/src/turbo-source.ts +56 -24
- package/src/xcode-project.ts +51 -18
package/detox/index.ts
CHANGED
|
@@ -3198,7 +3198,17 @@ export const device = {
|
|
|
3198
3198
|
}
|
|
3199
3199
|
try {
|
|
3200
3200
|
const baselineBitmap = await captureBitmap()
|
|
3201
|
-
const
|
|
3201
|
+
const baselinePixels = regionPixels(baselineBitmap)
|
|
3202
|
+
const baselineSize = `${baselineBitmap.width}x${baselineBitmap.height}`
|
|
3203
|
+
// a trigger that moves the app to another display (a duo unfold)
|
|
3204
|
+
// draws its stages on a display that was dark before it, as native
|
|
3205
|
+
const baseline = (bitmap: ImageBitmap) => {
|
|
3206
|
+
if (`${bitmap.width}x${bitmap.height}` === baselineSize) return baselinePixels
|
|
3207
|
+
const bounds = boundsFor(bitmap)
|
|
3208
|
+
const dark = new Uint8ClampedArray(bounds.width * bounds.height * 4)
|
|
3209
|
+
for (let offset = 3; offset < dark.length; offset += 4) dark[offset] = 255
|
|
3210
|
+
return dark
|
|
3211
|
+
}
|
|
3202
3212
|
// the press lands before the first stepped frame, so the screen it
|
|
3203
3213
|
// lands on is the baseline itself
|
|
3204
3214
|
if (input.anchorAtTouch === 'down')
|
|
@@ -3300,7 +3310,7 @@ export const device = {
|
|
|
3300
3310
|
const candidateBitmap = await captureBitmap()
|
|
3301
3311
|
const bounds = boundsFor(candidateBitmap)
|
|
3302
3312
|
const measurement = measureChange({
|
|
3303
|
-
baseline,
|
|
3313
|
+
baseline: baseline(candidateBitmap),
|
|
3304
3314
|
candidate: regionPixels(candidateBitmap),
|
|
3305
3315
|
definition: input.motionChangeDefinition,
|
|
3306
3316
|
height: bounds.height,
|
|
@@ -3325,7 +3335,7 @@ export const device = {
|
|
|
3325
3335
|
const candidateBitmap = await captureBitmap()
|
|
3326
3336
|
const bounds = boundsFor(candidateBitmap)
|
|
3327
3337
|
const measurement = measureChange({
|
|
3328
|
-
baseline,
|
|
3338
|
+
baseline: baseline(candidateBitmap),
|
|
3329
3339
|
candidate: regionPixels(candidateBitmap),
|
|
3330
3340
|
definition: input.motionChangeDefinition,
|
|
3331
3341
|
height: bounds.height,
|
|
@@ -3686,7 +3696,7 @@ export const device = {
|
|
|
3686
3696
|
const candidateBitmap = await captureBitmap()
|
|
3687
3697
|
const bounds = boundsFor(candidateBitmap)
|
|
3688
3698
|
const progress = measureChange({
|
|
3689
|
-
baseline,
|
|
3699
|
+
baseline: baseline(candidateBitmap),
|
|
3690
3700
|
candidate: regionPixels(candidateBitmap),
|
|
3691
3701
|
definition: input.motionChangeDefinition,
|
|
3692
3702
|
height: bounds.height,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1847 | (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.1847 | (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.1847 | (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.1847 | (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.1847 | (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/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1847 | (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/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1847 | (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.1847 | (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.1847 | (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.1847 | (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;
|
|
@@ -39,7 +39,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
39
39
|
var define_SWIFT_COVERAGE_SOURCE_DIGESTS_default;
|
|
40
40
|
var init_define_SWIFT_COVERAGE_SOURCE_DIGESTS = __esm({
|
|
41
41
|
"<define:__SWIFT_COVERAGE_SOURCE_DIGESTS__>"() {
|
|
42
|
-
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "e224b5e20ed3a86df1c62d6429e88234ed65317ce32c61c1b6b02aaee173d64f", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "a90155695844684e625ab83687161104f028ef34030715a40042a4407b77fca0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "
|
|
42
|
+
define_SWIFT_COVERAGE_SOURCE_DIGESTS_default = { "swift-coverage/indexdump.ts": "0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412", "swift-coverage/indexing.ts": "633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272", "swift-coverage/types.ts": "5bd72edc235189d69835155cb0367a1aee14332405896366af3be606dbe8cce8", "swift-coverage/source.ts": "8b398ceb60faf4a5729842cab60f49c2e601d6fc6bbbc1faec9023ecb8141990", "swift-coverage/package.ts": "1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b", "swift-coverage/xcode.ts": "65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa", "swift-coverage/xcode-assets.ts": "99e03b74c961d2449afd58c2cbc415ba91d1d469a4f89e461c137fd6c305b27c", "swift-coverage/xcode-asset-symbols.ts": "1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671", "swift-coverage/xcode-bridging.ts": "33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11", "swift-coverage/xcode-packages.ts": "08583ee03b92e00f3f331e52fb480ef81c9fd7e668d796a5afcfa07978bcaf03", "swift-coverage/xcode-strings.ts": "f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c", "swift-coverage/reader.ts": "da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c", "swift-coverage/provenance.ts": "eb3b41ae8b58b48f6758f084800f188dfb1edb227e483abdd6b80cde66e849b9", "swift-package-manifest.ts": "26f8d4a25d1af9917f0005153c73c9cefa4f6681c9d56c6333b8096190db0431", "swift-package.ts": "e224b5e20ed3a86df1c62d6429e88234ed65317ce32c61c1b6b02aaee173d64f", "swift-source-file.ts": "93fd659ed63a27b67f54a7c229a7ceb636dc9c59e68414920ba36cff1eda1f94", "swift-toolchain.ts": "a90155695844684e625ab83687161104f028ef34030715a40042a4407b77fca0", "home-paths.ts": "744d0e29fcc4baae6748161da45dd75e357348703331dad685c74ec813abcc83", "xcode-header-search.ts": "f8c3d557b4eca5ddad32907545353eb7ad53b2ebd0969d9ed8f7275e109a13b1", "xcode-project.ts": "02dac6951dc7dd8465a421670901c932ac320fc9f8fe277885b2916149d40182", "xcode-target-members.ts": "75a23a5fc54cc6f5e952d545f2f0f86241ff36525ab4e568c172e83c3bfb9da4", "xcode-json-project.ts": "41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6", "openstep-plist.ts": "74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3" };
|
|
43
43
|
}
|
|
44
44
|
});
|
|
45
45
|
|
|
@@ -24031,6 +24031,9 @@ function withNativeSourceGlue(input, glue) {
|
|
|
24031
24031
|
oneModule: true
|
|
24032
24032
|
};
|
|
24033
24033
|
}
|
|
24034
|
+
function swiftOptionalFramework(name3) {
|
|
24035
|
+
return OPTIONAL_FRAMEWORKS.has(name3);
|
|
24036
|
+
}
|
|
24034
24037
|
function swiftCondition(text6, available) {
|
|
24035
24038
|
const tokens2 = text6.match(/\w+\s*\([^()]*\)|&&|\|\||!|\(|\)|\w+/g) ?? [];
|
|
24036
24039
|
let index = 0;
|
|
@@ -24300,7 +24303,7 @@ function swiftTargetDependencies(files2, targets) {
|
|
|
24300
24303
|
);
|
|
24301
24304
|
const deps = new Set(
|
|
24302
24305
|
(target.dependencies ?? []).flatMap(
|
|
24303
|
-
(dependency) => dependency.kind === "target" && dependency.name !== target.name && names.has(dependency.name) ? [dependency.name] : []
|
|
24306
|
+
(dependency) => dependency.kind === "target" && dependency.name !== target.name && names.has(dependency.name) || dependency.kind === "product" && dependency.package === "sootsim-swift" && OPTIONAL_FRAMEWORKS.has(dependency.name) ? [dependency.name] : []
|
|
24304
24307
|
)
|
|
24305
24308
|
);
|
|
24306
24309
|
for (const [file, contents] of Object.entries(files2)) {
|
|
@@ -27880,7 +27883,7 @@ var init_swift_compile = __esm({
|
|
|
27880
27883
|
REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
|
|
27881
27884
|
MULTI_MANIFEST_VERSION = 65;
|
|
27882
27885
|
SWIFT_HEADER_PRODUCTS_TARGET = "PeachHeaderProducts";
|
|
27883
|
-
compilerSourceDigest = true ? "
|
|
27886
|
+
compilerSourceDigest = true ? "de4cf043c56670d57d1dccc969b1b12b70e242e3015fd98011df86b7ce82c4d6" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
|
|
27884
27887
|
nativeCxxCompilerFlags = ["-fno-cxx-modules"];
|
|
27885
27888
|
cFlagArray = (flags) => JSON.stringify(withoutGlogModuleMap(flags));
|
|
27886
27889
|
cxxFlagArray = (flags) => JSON.stringify([...nativeCxxCompilerFlags, ...withoutGlogModuleMap(flags)]);
|
|
@@ -30174,7 +30177,7 @@ function applyConditions(raw2, configuration) {
|
|
|
30174
30177
|
);
|
|
30175
30178
|
if (matches) conditional[key2.slice(0, bracket)] = value;
|
|
30176
30179
|
}
|
|
30177
|
-
return
|
|
30180
|
+
return [plain, conditional];
|
|
30178
30181
|
}
|
|
30179
30182
|
function applyOperator(value, operator) {
|
|
30180
30183
|
if (operator.startsWith("default=")) return value === "" ? operator.slice(8) : value;
|
|
@@ -30418,8 +30421,8 @@ function targetSettings(ref, configuration, builtins, options = {}, overrides =
|
|
|
30418
30421
|
const fromFile = baseFile ? readXcconfig(baseFile, read) : {};
|
|
30419
30422
|
xcconfigs.push(...read);
|
|
30420
30423
|
return [
|
|
30421
|
-
applyConditions(fromFile, name3),
|
|
30422
|
-
applyConditions(
|
|
30424
|
+
...applyConditions(fromFile, name3),
|
|
30425
|
+
...applyConditions(
|
|
30423
30426
|
Object.fromEntries(
|
|
30424
30427
|
Object.entries(own).flatMap(
|
|
30425
30428
|
([key2, value]) => typeof value === "string" ? [[key2, value]] : Array.isArray(value) ? [[key2, list(value).join(" ")]] : []
|
|
@@ -31018,11 +31021,24 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
31018
31021
|
const nested = import_node_path43.default.join(projectRoot, "ios");
|
|
31019
31022
|
const iosRoot = import_node_fs44.default.existsSync(nested) ? nested : projectRoot;
|
|
31020
31023
|
const entries = import_node_fs44.default.readdirSync(iosRoot, { withFileTypes: true });
|
|
31021
|
-
const projects2 = (entries.some((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")) ? entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")).map((entry) =>
|
|
31022
|
-
|
|
31024
|
+
const projects2 = (entries.some((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")) ? entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcodeproj")).map((entry) => ({
|
|
31025
|
+
xcodeproj: import_node_path43.default.join(iosRoot, entry.name),
|
|
31026
|
+
workspace: null
|
|
31027
|
+
})) : entries.filter((entry) => entry.isDirectory() && entry.name.endsWith(".xcworkspace")).flatMap((entry) => {
|
|
31028
|
+
const workspace = import_node_path43.default.join(iosRoot, entry.name);
|
|
31029
|
+
return workspaceReferences(workspace).map((xcodeproj2) => ({
|
|
31030
|
+
xcodeproj: xcodeproj2,
|
|
31031
|
+
workspace
|
|
31032
|
+
}));
|
|
31033
|
+
}).filter(
|
|
31034
|
+
({ xcodeproj: xcodeproj2 }) => xcodeproj2.endsWith(".xcodeproj") && !xcodeproj2.split(import_node_path43.default.sep).includes("Pods") && import_node_fs44.default.existsSync(xcodeproj2)
|
|
31023
31035
|
).filter(
|
|
31024
|
-
(xcodeproj2) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
|
|
31025
|
-
)).map((
|
|
31036
|
+
({ xcodeproj: xcodeproj2 }) => listXcodeAppTargets(xcodeproj2, { requireSources: false }).length > 0
|
|
31037
|
+
)).map(({ xcodeproj: xcodeproj2, workspace }) => ({
|
|
31038
|
+
xcodeproj: xcodeproj2,
|
|
31039
|
+
workspace,
|
|
31040
|
+
name: import_node_path43.default.basename(xcodeproj2)
|
|
31041
|
+
}));
|
|
31026
31042
|
if (projects2.length === 0) return null;
|
|
31027
31043
|
if (projects2.length > 1 && !iosTarget) {
|
|
31028
31044
|
throw new NativeAppTargetSelectionError(
|
|
@@ -31063,7 +31079,7 @@ function selectIosAppTarget(projectRoot, iosTarget) {
|
|
|
31063
31079
|
}
|
|
31064
31080
|
if (!appTargets.includes(target))
|
|
31065
31081
|
throw new Error(`native app identity has no application target ${target}`);
|
|
31066
|
-
return { xcodeproj, target };
|
|
31082
|
+
return { xcodeproj, target, workspace: project2.workspace };
|
|
31067
31083
|
}
|
|
31068
31084
|
async function resolveXcodeSwiftPackages(input, signal, target, configuration) {
|
|
31069
31085
|
if (import_node_fs44.default.existsSync(workspaceResolvedFile(import_node_fs44.default.realpathSync(input)))) return;
|
|
@@ -31825,7 +31841,14 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
31825
31841
|
const binaryFrameworks = /* @__PURE__ */ new Map();
|
|
31826
31842
|
const searchedFrameworks = /* @__PURE__ */ new Map();
|
|
31827
31843
|
const frameworkSearchDirectories = /* @__PURE__ */ new Set();
|
|
31844
|
+
const sdkFrameworks = /* @__PURE__ */ new Set();
|
|
31828
31845
|
for (const { ref, settings: settings2 } of builtTargets) {
|
|
31846
|
+
const ldflags = settingList(settings2("OTHER_LDFLAGS"));
|
|
31847
|
+
ldflags.forEach((flag, index) => {
|
|
31848
|
+
const name3 = ldflags[index + 1];
|
|
31849
|
+
if ((flag === "-framework" || flag === "-weak_framework") && name3)
|
|
31850
|
+
sdkFrameworks.add(name3);
|
|
31851
|
+
});
|
|
31829
31852
|
const absolute = (raw2) => import_node_path43.default.resolve(ref.project.projectDir, expand(raw2, settings2));
|
|
31830
31853
|
const requested = options.nativeModules;
|
|
31831
31854
|
const includeBinary = (name3, dir) => {
|
|
@@ -31942,10 +31965,11 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
31942
31965
|
const rawPath = str(file?.path) ?? "";
|
|
31943
31966
|
const name3 = /([^/]+)\.(xc)?framework$/.exec(rawPath)?.[1];
|
|
31944
31967
|
if (file?.isa !== "PBXFileReference" || !name3) continue;
|
|
31945
|
-
if (tree3 === "
|
|
31946
|
-
|
|
31947
|
-
|
|
31948
|
-
|
|
31968
|
+
if (tree3 === "SDKROOT" || /\/System\/Library\/Frameworks\/[^/]+$/.test(`/${rawPath}`)) {
|
|
31969
|
+
sdkFrameworks.add(name3);
|
|
31970
|
+
continue;
|
|
31971
|
+
}
|
|
31972
|
+
if (tree3 === "BUILT_PRODUCTS_DIR" || tree3 === "DEVELOPER_DIR" || // a target in the workspace builds it, so it exists only after that build
|
|
31949
31973
|
byProduct.has(import_node_path43.default.basename(rawPath)))
|
|
31950
31974
|
continue;
|
|
31951
31975
|
const resolved = fileId ? project2.resolvePath(fileId) : null;
|
|
@@ -32027,6 +32051,9 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
|
|
|
32027
32051
|
...new Set(localPackageDirs.map((dir) => import_node_fs44.default.realpathSync(dir)))
|
|
32028
32052
|
].sort(),
|
|
32029
32053
|
binaryFrameworks: [...binaryFrameworks].map(([name3, file]) => ({ name: name3, path: file })).sort((left, right) => left.name.localeCompare(right.name)),
|
|
32054
|
+
sdkFrameworks: [...sdkFrameworks].filter(
|
|
32055
|
+
(name3) => !binaryFrameworks.has(name3) && !byProduct.has(`${name3}.framework`)
|
|
32056
|
+
).sort(),
|
|
32030
32057
|
packageResolved,
|
|
32031
32058
|
appTargets: appTargetNames,
|
|
32032
32059
|
configuration,
|
|
@@ -34600,7 +34627,7 @@ var init_swift_standin_digest = __esm({
|
|
|
34600
34627
|
import_node_path56 = __toESM(require("node:path"), 1);
|
|
34601
34628
|
STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
|
|
34602
34629
|
SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
|
|
34603
|
-
STANDIN_SOURCE_DIGEST = true ? "
|
|
34630
|
+
STANDIN_SOURCE_DIGEST = true ? "a6f60f933c899da637801bc8d8f40e2f842fc5d4e54188240596b705c8b167fa" : standinSourceDigest();
|
|
34604
34631
|
}
|
|
34605
34632
|
});
|
|
34606
34633
|
|
|
@@ -42111,6 +42138,7 @@ function xcodeManifest(layout) {
|
|
|
42111
42138
|
);
|
|
42112
42139
|
return native ? [productDependency(native.name, native.packageDir)] : [];
|
|
42113
42140
|
});
|
|
42141
|
+
const sdkProducts = layout.app.sdkFrameworks.filter(swiftOptionalFramework).map((name3) => `.product(name: ${JSON.stringify(name3)}, package: "sootsim-swift")`);
|
|
42114
42142
|
const clangSettings = (target) => [
|
|
42115
42143
|
["cSettings", "c", target.cDefines],
|
|
42116
42144
|
["cxxSettings", "cxx", target.cxxDefines]
|
|
@@ -42133,7 +42161,7 @@ function xcodeManifest(layout) {
|
|
|
42133
42161
|
"// swift-tools-version: 6.2",
|
|
42134
42162
|
"import PackageDescription",
|
|
42135
42163
|
`let package = Package(name: "app", ${layout.app.iosDeploymentTarget ? `platforms: [.iOS(${JSON.stringify(layout.app.iosDeploymentTarget)})], ` : ""}dependencies: [${[...nativePaths].map(([name3, directory2]) => `.package(name: ${JSON.stringify(name3)}, path: ${JSON.stringify(directory2)})`).join(", ")}], targets: [`,
|
|
42136
|
-
` .executableTarget(name: "${layout.app.moduleName}", dependencies: [${appProducts.join(", ")}], path: "${XCODE_APP_DIR}", ${appSettings}),`,
|
|
42164
|
+
` .executableTarget(name: "${layout.app.moduleName}", dependencies: [${[...appProducts, ...sdkProducts].join(", ")}], path: "${XCODE_APP_DIR}", ${appSettings}),`,
|
|
42137
42165
|
...layout.targets.map(
|
|
42138
42166
|
(target) => target.systemLibrary ? ` .systemLibrary(name: "${target.name}", path: "${target.path}"),` : ` .target(name: "${target.name}", dependencies: [${dependencies(target)}], path: "${target.path}", ${target.exclude.length > 0 ? `exclude: ${JSON.stringify(target.exclude)}, ` : ""}${target.resources ? "resources: [], " : ""}${target.publicHeadersPath === void 0 ? "" : `publicHeadersPath: ${JSON.stringify(target.publicHeadersPath)}, `}${clangSettings(target)}${swiftManifestSettings(target)}${libraries(target)}),`
|
|
42139
42167
|
),
|
|
@@ -45204,7 +45232,7 @@ function installedRendererDependencyGlobs(reactNativeRoot) {
|
|
|
45204
45232
|
})
|
|
45205
45233
|
);
|
|
45206
45234
|
}
|
|
45207
|
-
function installedFabricSources(reactNativeRoot) {
|
|
45235
|
+
function installedFabricSources(reactNativeRoot, { legacyBridge = false, bridgeOnly = false } = {}) {
|
|
45208
45236
|
const root = import_node_fs71.default.realpathSync(reactNativeRoot);
|
|
45209
45237
|
const specs = ["React", "ReactCommon", "ReactApple", "Libraries"].flatMap(
|
|
45210
45238
|
(directory2) => import_node_fs71.default.readdirSync(import_node_path69.default.join(root, directory2), {
|
|
@@ -45212,12 +45240,16 @@ function installedFabricSources(reactNativeRoot) {
|
|
|
45212
45240
|
withFileTypes: true
|
|
45213
45241
|
})
|
|
45214
45242
|
).filter(
|
|
45215
|
-
(entry) => entry.isFile() && (RENDERER_PODS.has(import_node_path69.default.basename(entry.name, ".podspec")) || RENDERER_PODS_VERSIONED.has(import_node_path69.default.basename(entry.name, ".podspec"))) && entry.name.endsWith(".podspec")
|
|
45216
|
-
).map((entry) => import_node_path69.default.join(entry.parentPath, entry.name)).concat(import_node_path69.default.join(root, "React-Core.podspec")).
|
|
45243
|
+
(entry) => entry.isFile() && (RENDERER_PODS.has(import_node_path69.default.basename(entry.name, ".podspec")) || RENDERER_PODS_VERSIONED.has(import_node_path69.default.basename(entry.name, ".podspec")) || bridgeOnly && LEGACY_BRIDGE_PODS.has(import_node_path69.default.basename(entry.name, ".podspec"))) && entry.name.endsWith(".podspec")
|
|
45244
|
+
).map((entry) => import_node_path69.default.join(entry.parentPath, entry.name)).concat(import_node_path69.default.join(root, "React-Core.podspec")).filter(
|
|
45245
|
+
(file) => !bridgeOnly || LEGACY_BRIDGE_PODS.has(import_node_path69.default.basename(file, ".podspec"))
|
|
45246
|
+
).sort();
|
|
45217
45247
|
const required = specs.filter(
|
|
45218
|
-
(file) => RENDERER_PODS.has(
|
|
45248
|
+
(file) => (bridgeOnly ? LEGACY_BRIDGE_PODS : RENDERER_PODS).has(
|
|
45249
|
+
import_node_path69.default.basename(file, ".podspec")
|
|
45250
|
+
)
|
|
45219
45251
|
);
|
|
45220
|
-
if (required.length !== RENDERER_PODS.size)
|
|
45252
|
+
if (required.length !== (bridgeOnly ? LEGACY_BRIDGE_PODS : RENDERER_PODS).size)
|
|
45221
45253
|
throw new Error(`${reactNativeRoot}: installed renderer podspecs are incomplete`);
|
|
45222
45254
|
return specs.map((file) => {
|
|
45223
45255
|
const directory2 = import_node_path69.default.dirname(file);
|
|
@@ -45227,7 +45259,7 @@ function installedFabricSources(reactNativeRoot) {
|
|
|
45227
45259
|
if (core) {
|
|
45228
45260
|
files2.push(
|
|
45229
45261
|
...podspecSourceFiles(directory2, podspecSubspec(spec, "DevSupport")).filter(
|
|
45230
|
-
(source) => import_node_path69.default.posix.basename(source) === "RCTDevLoadingViewSetEnabled.m"
|
|
45262
|
+
(source) => import_node_path69.default.posix.basename(source) === "RCTDevLoadingViewSetEnabled.m" || legacyBridge && LEGACY_BRIDGE_DEV_SUPPORT.includes(import_node_path69.default.posix.basename(source))
|
|
45231
45263
|
)
|
|
45232
45264
|
);
|
|
45233
45265
|
}
|
|
@@ -45298,7 +45330,7 @@ async function runInstalledTurboCodegen(appRoot, outDir, signal) {
|
|
|
45298
45330
|
files: hashTree(generatedRoot)
|
|
45299
45331
|
};
|
|
45300
45332
|
}
|
|
45301
|
-
var import_node_child_process37, import_node_crypto35, import_node_fs71, import_node_module7, import_node_path69, import_node_util12, run6, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE;
|
|
45333
|
+
var import_node_child_process37, import_node_crypto35, import_node_fs71, import_node_module7, import_node_path69, import_node_util12, run6, RENDERER_PODS, RENDERER_PODS_VERSIONED, COMPILED_SOURCE, LEGACY_BRIDGE_DEV_SUPPORT, LEGACY_BRIDGE_PODS;
|
|
45302
45334
|
var init_turbo_codegen_intake = __esm({
|
|
45303
45335
|
"src/turbo-codegen-intake.ts"() {
|
|
45304
45336
|
"use strict";
|
|
@@ -45348,6 +45380,20 @@ var init_turbo_codegen_intake = __esm({
|
|
|
45348
45380
|
"RCTSwiftUI"
|
|
45349
45381
|
]);
|
|
45350
45382
|
COMPILED_SOURCE = /\.(?:c|cc|cpp|cxx|m|mm|swift)$/;
|
|
45383
|
+
LEGACY_BRIDGE_DEV_SUPPORT = [
|
|
45384
|
+
"RCTInspectorNetworkHelper.mm",
|
|
45385
|
+
"RCTInspectorUtils.mm",
|
|
45386
|
+
"RCTPausedInDebuggerOverlayController.mm"
|
|
45387
|
+
];
|
|
45388
|
+
LEGACY_BRIDGE_PODS = /* @__PURE__ */ new Set([
|
|
45389
|
+
"React-Core",
|
|
45390
|
+
"React-cxxreact",
|
|
45391
|
+
"React-jsinspector",
|
|
45392
|
+
"React-jsinspectortracing",
|
|
45393
|
+
"React-perflogger",
|
|
45394
|
+
"React-jsiexecutor",
|
|
45395
|
+
"Yoga"
|
|
45396
|
+
]);
|
|
45351
45397
|
}
|
|
45352
45398
|
});
|
|
45353
45399
|
|
|
@@ -46321,8 +46367,32 @@ async function collectTurboSources(options) {
|
|
|
46321
46367
|
original(TURBO_CORE_TARGET, "react-native", reactNative.root, unit2);
|
|
46322
46368
|
};
|
|
46323
46369
|
addUnits(REACT_NATIVE_UNITS);
|
|
46370
|
+
const addPodSources = (pods) => {
|
|
46371
|
+
for (const pod of pods) {
|
|
46372
|
+
const swift = pod.files.some((file) => file.endsWith(".swift"));
|
|
46373
|
+
const name3 = swift ? pod.module : TURBO_CORE_TARGET;
|
|
46374
|
+
if (swift) {
|
|
46375
|
+
if (!pod.swiftVersion || !/^[56](?:\.0)?$/.test(pod.swiftVersion))
|
|
46376
|
+
throw new Error(
|
|
46377
|
+
pod.module + ": renderer pod must declare its Swift language version"
|
|
46378
|
+
);
|
|
46379
|
+
result.targets.push({
|
|
46380
|
+
...target(name3, []),
|
|
46381
|
+
languageMode: Number(pod.swiftVersion),
|
|
46382
|
+
cxxInterop: false
|
|
46383
|
+
});
|
|
46384
|
+
result.rendererSwiftTargets.push(name3);
|
|
46385
|
+
}
|
|
46386
|
+
for (const file of pod.files) {
|
|
46387
|
+
const collected = original(name3, "react-native", reactNative.root, file);
|
|
46388
|
+
if (swift)
|
|
46389
|
+
result.externalPodSources.push({ moduleName: pod.module, file: collected });
|
|
46390
|
+
}
|
|
46391
|
+
}
|
|
46392
|
+
};
|
|
46324
46393
|
let objc = false;
|
|
46325
46394
|
let fabric = false;
|
|
46395
|
+
let legacyBridge = false;
|
|
46326
46396
|
const objcClasses = /* @__PURE__ */ new Set();
|
|
46327
46397
|
const unregisteredObjcClasses = /* @__PURE__ */ new Set();
|
|
46328
46398
|
const deferredDepUnits = [];
|
|
@@ -46780,6 +46850,9 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
46780
46850
|
);
|
|
46781
46851
|
addUnits(REACT_NATIVE_OBJC_UNITS);
|
|
46782
46852
|
addUnits(REACT_NATIVE_OBJC_VERSIONED_UNITS, true);
|
|
46853
|
+
legacyBridge = /\bRCTCxxBridge\b/.test(
|
|
46854
|
+
import_node_fs72.default.readFileSync(import_node_path70.default.join(reactNative.root, "React/Base/RCTBridge.mm"), "utf8")
|
|
46855
|
+
);
|
|
46783
46856
|
if (decoratorHasPerformanceLogger)
|
|
46784
46857
|
addUnits([
|
|
46785
46858
|
"React/Base/RCTPerformanceLogger.mm",
|
|
@@ -46796,28 +46869,11 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
46796
46869
|
);
|
|
46797
46870
|
}
|
|
46798
46871
|
}
|
|
46799
|
-
if (fabric) {
|
|
46800
|
-
|
|
46801
|
-
|
|
46802
|
-
|
|
46803
|
-
|
|
46804
|
-
if (!pod.swiftVersion || !/^[56](?:\.0)?$/.test(pod.swiftVersion))
|
|
46805
|
-
throw new Error(
|
|
46806
|
-
pod.module + ": renderer pod must declare its Swift language version"
|
|
46807
|
-
);
|
|
46808
|
-
result.targets.push({
|
|
46809
|
-
...target(name3, []),
|
|
46810
|
-
languageMode: Number(pod.swiftVersion),
|
|
46811
|
-
cxxInterop: false
|
|
46812
|
-
});
|
|
46813
|
-
result.rendererSwiftTargets.push(name3);
|
|
46814
|
-
}
|
|
46815
|
-
for (const file of pod.files) {
|
|
46816
|
-
const collected = original(name3, "react-native", reactNative.root, file);
|
|
46817
|
-
if (swift)
|
|
46818
|
-
result.externalPodSources.push({ moduleName: pod.module, file: collected });
|
|
46819
|
-
}
|
|
46820
|
-
}
|
|
46872
|
+
if (fabric || legacyBridge) {
|
|
46873
|
+
if (!fabric) result.targets[0].cxxDefines = [...defines, "USE_HERMES=1"];
|
|
46874
|
+
addPodSources(
|
|
46875
|
+
installedFabricSources(reactNative.root, { legacyBridge, bridgeOnly: !fabric })
|
|
46876
|
+
);
|
|
46821
46877
|
const patterns = installedRendererDependencyGlobs(reactNative.root);
|
|
46822
46878
|
const matchers = new Map(
|
|
46823
46879
|
Object.entries(patterns).map(([name3, globs]) => [name3, globs.map(globRegex)])
|
|
@@ -46827,13 +46883,27 @@ ${declared.map((symbol2) => `extern "C" void ${symbol2}();
|
|
|
46827
46883
|
reactNative.root,
|
|
46828
46884
|
(name3, relative4) => matchers.get(name3)?.some((pattern) => pattern.test(relative4)) ?? false
|
|
46829
46885
|
)) {
|
|
46830
|
-
const
|
|
46886
|
+
const fmtUnit = unit2.name === "fmt" && !fabric;
|
|
46887
|
+
const unitTarget = fmtUnit ? TURBO_FMT_TARGET : TURBO_CORE_TARGET;
|
|
46888
|
+
if (fmtUnit && !result.targets.some((t) => t.name === TURBO_FMT_TARGET)) {
|
|
46889
|
+
result.targets.push({
|
|
46890
|
+
...target(TURBO_FMT_TARGET, [TURBO_CORE_TARGET]),
|
|
46891
|
+
clangSettings: [
|
|
46892
|
+
{ tool: "cxx", flags: ["-fexperimental-new-constant-interpreter"] }
|
|
46893
|
+
]
|
|
46894
|
+
});
|
|
46895
|
+
add(
|
|
46896
|
+
`${targetPath(TURBO_FMT_TARGET)}/include/${TURBO_FMT_TARGET}.h`,
|
|
46897
|
+
"#pragma once\n"
|
|
46898
|
+
);
|
|
46899
|
+
}
|
|
46900
|
+
const key2 = `${targetPath(unitTarget)}/dependencies/${unit2.name}/${unit2.relative}`;
|
|
46831
46901
|
if (add(key2, unit2.text)) {
|
|
46832
46902
|
result.sources.push({ file: key2, source: unit2.source, sha256: unit2.sha256 });
|
|
46833
46903
|
scanText(
|
|
46834
46904
|
{
|
|
46835
46905
|
key: key2,
|
|
46836
|
-
targetName:
|
|
46906
|
+
targetName: unitTarget,
|
|
46837
46907
|
label: "",
|
|
46838
46908
|
root: "",
|
|
46839
46909
|
relative: unit2.includePath
|
|
@@ -47333,7 +47403,7 @@ ${moduleProviders ? " [found addObjectsFromArray:RCTModuleProviders.moduleProvi
|
|
|
47333
47403
|
}
|
|
47334
47404
|
`;
|
|
47335
47405
|
}
|
|
47336
|
-
var import_node_child_process38, import_node_crypto36, import_node_fs72, import_node_path70, import_node_util13, execFileAsync3, TURBO_CORE_TARGET, TURBO_ENTRY_HEADER, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER3, OBJC2, OBJC_TURBO, OBJC_BRIDGE, OBJC_REGISTERED, REACT_NATIVE_UNITS, REACT_NATIVE_INCLUDE_ROOTS, REACT_NATIVE_OBJC_UNITS, REACT_NATIVE_OBJC_VERSIONED_UNITS, REACT_NATIVE_HEADER_DIRS, REACT_NATIVE_BARE_HEADER_DIRS, sha2563, versionParts, iosOf, JS_CALL_INVOKER;
|
|
47406
|
+
var import_node_child_process38, import_node_crypto36, import_node_fs72, import_node_path70, import_node_util13, execFileAsync3, TURBO_CORE_TARGET, TURBO_FMT_TARGET, TURBO_ENTRY_HEADER, REGISTRATION, CODEGEN_OBJC, UNIT, HEADER3, OBJC2, OBJC_TURBO, OBJC_BRIDGE, OBJC_REGISTERED, REACT_NATIVE_UNITS, REACT_NATIVE_INCLUDE_ROOTS, REACT_NATIVE_OBJC_UNITS, REACT_NATIVE_OBJC_VERSIONED_UNITS, REACT_NATIVE_HEADER_DIRS, REACT_NATIVE_BARE_HEADER_DIRS, sha2563, versionParts, iosOf, JS_CALL_INVOKER;
|
|
47337
47407
|
var init_turbo_source = __esm({
|
|
47338
47408
|
"src/turbo-source.ts"() {
|
|
47339
47409
|
"use strict";
|
|
@@ -47357,6 +47427,7 @@ var init_turbo_source = __esm({
|
|
|
47357
47427
|
init_xcode_project();
|
|
47358
47428
|
execFileAsync3 = (0, import_node_util13.promisify)(import_node_child_process38.execFile);
|
|
47359
47429
|
TURBO_CORE_TARGET = "TurboCore";
|
|
47430
|
+
TURBO_FMT_TARGET = "TurboFmt";
|
|
47360
47431
|
TURBO_ENTRY_HEADER = "PeachTurboEntry.hpp";
|
|
47361
47432
|
REGISTRATION = "registerCxxModuleToGlobalModuleMap";
|
|
47362
47433
|
CODEGEN_OBJC = /@generated by codegen project: GenerateModuleObjCpp\b/;
|
|
@@ -47973,9 +48044,12 @@ ${source}` : source;
|
|
|
47973
48044
|
unit2.files["Package.swift"] = expoManifest(
|
|
47974
48045
|
unit2.files,
|
|
47975
48046
|
"",
|
|
47976
|
-
new Map(
|
|
47977
|
-
installedTargets.filter((target2) => included.has(target2.name)).map((target2) => [target2.name, target2])
|
|
47978
|
-
|
|
48047
|
+
new Map([
|
|
48048
|
+
...installedTargets.filter((target2) => included.has(target2.name)).map((target2) => [target2.name, target2]),
|
|
48049
|
+
...installedTargets.filter((target2) => target2.executable).map(
|
|
48050
|
+
(target2) => ["PeachExpoApp", target2]
|
|
48051
|
+
)
|
|
48052
|
+
])
|
|
47979
48053
|
);
|
|
47980
48054
|
}
|
|
47981
48055
|
const support = Object.assign(
|
|
@@ -48683,9 +48757,12 @@ function expoManifest(files2, generation = "", settings = /* @__PURE__ */ new Ma
|
|
|
48683
48757
|
);
|
|
48684
48758
|
return `.target(name: ${JSON.stringify(name3)}, dependencies: ${JSON.stringify(dependencies)}, path: ${JSON.stringify(dir)}${declared?.resources ? ", resources: []" : ""}${configuration ? ", " + swiftManifestSettings(configuration) : ""})`;
|
|
48685
48759
|
});
|
|
48760
|
+
const appProducts = (settings.get("PeachExpoApp")?.dependencies ?? []).flatMap(
|
|
48761
|
+
(dependency) => dependency.kind === "product" && dependency.package === "sootsim-swift" ? [`.product(name: ${JSON.stringify(dependency.name)}, package: "sootsim-swift")`] : []
|
|
48762
|
+
);
|
|
48686
48763
|
return `// swift-tools-version: 6.0
|
|
48687
48764
|
import PackageDescription
|
|
48688
|
-
let package = Package(name: "PeachExpo", targets: [${declarations.join(", ")}, .executableTarget(name: "PeachExpoApp", path: "Sources/PeachExpoApp")])
|
|
48765
|
+
let package = Package(name: "PeachExpo", targets: [${declarations.join(", ")}, .executableTarget(name: "PeachExpoApp", dependencies: [${appProducts.join(", ")}], path: "Sources/PeachExpoApp")])
|
|
48689
48766
|
// stand-in inputs: ${generation}
|
|
48690
48767
|
`;
|
|
48691
48768
|
}
|
|
@@ -49208,15 +49285,16 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
49208
49285
|
error instanceof Error ? error.message : String(error),
|
|
49209
49286
|
...gaps.get(unit2) ?? []
|
|
49210
49287
|
].join("\n");
|
|
49211
|
-
const
|
|
49288
|
+
const unitFiles = [...Object.keys(unit2.files), ...expoUnitAppPaths(unit2)];
|
|
49212
49289
|
const errors = diagnostic.match(/^.+:\d+(?::\d+)?: error:.*$/gm) ?? [];
|
|
49213
|
-
const sourceErrors = errors.filter(
|
|
49214
|
-
|
|
49290
|
+
const sourceErrors = errors.filter((line) => {
|
|
49291
|
+
const file = /^.+?(?=:\d+(?::\d+)?: error:)/.exec(line)[0];
|
|
49292
|
+
return unitFiles.some((name3) => file === name3 || file.endsWith(`/${name3}`)) && !/external macro implementation type|failed to load library plugin/.test(
|
|
49215
49293
|
line
|
|
49216
|
-
)
|
|
49217
|
-
);
|
|
49294
|
+
);
|
|
49295
|
+
});
|
|
49218
49296
|
const targetErrors = diagnostic.match(
|
|
49219
|
-
/^error: target .*$|^(?:error: )?[^\n:]+: missing or unsupported declared iOS deployment target .*$/gm
|
|
49297
|
+
/^error: target .*$|^(?:error: )?[^\n:]+: missing or unsupported declared iOS deployment target .*$|^(?:ld(?:\.lld)?|wasm-ld): error: .*$/gm
|
|
49220
49298
|
) ?? [];
|
|
49221
49299
|
const unitErrors = [...targetErrors, ...sourceErrors];
|
|
49222
49300
|
if (publishArtifact && targetErrors.length === 0 && (sourceErrors.length === 0 || sourceErrors.length !== errors.length) && !(error instanceof SwiftMissingModulesError))
|
|
@@ -50551,7 +50629,7 @@ var init_nitro_superset = __esm({
|
|
|
50551
50629
|
init_swift_standin_digest();
|
|
50552
50630
|
NITRO_SUPERSET_ENTRY_NAME = "superset";
|
|
50553
50631
|
packageVersion = (root) => JSON.parse((0, import_node_fs78.readFileSync)((0, import_node_path76.join)(root, "package.json"), "utf8")).version;
|
|
50554
|
-
NITRO_COMPILER_DIGEST = true ? "
|
|
50632
|
+
NITRO_COMPILER_DIGEST = true ? "381eedf9ef6738ad89af113ebb689916b0126afd7690eaff12e4e781695643e0" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
|
|
50555
50633
|
nitroSupersetLock = parseLock(nitro_superset_lock_default);
|
|
50556
50634
|
nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
|
|
50557
50635
|
published = /* @__PURE__ */ new Map();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1847 | (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.1847 | (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.1847 | (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/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1847 | (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/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1847 | (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);
|