peachsim 0.1.1979 → 0.1.1980
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 +132 -33
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +132 -33
- 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 +132 -33
- package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist-lib/native-app-identity-project.cjs +1 -1
- package/dist-lib/native-app-identity-project.mjs +1 -1
- 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 +132 -33
- package/dist-lib/swift-compile.cjs +1 -1
- package/dist-lib/swift-compile.mjs +1 -1
- 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 +1 -1
- package/dist-lib/vite.cjs +1 -1
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/package.json +1 -1
- package/src/expo-discovery-cache.ts +2 -0
- package/src/expo-swift-host.ts +144 -31
- package/src/expoSwiftContract.ts +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1980 | (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.1980 | (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.1980 | (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.1980 | (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.1980 | (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.1980 | (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.1980 | (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.1980 | (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.1980 | (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.1980 | (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;
|
|
@@ -38120,10 +38120,10 @@ function sharedDir() {
|
|
|
38120
38120
|
return import_node_path57.default.join((0, import_node_os15.homedir)(), ".peach", "cache", "expo-discovery");
|
|
38121
38121
|
}
|
|
38122
38122
|
function isExpoSwiftSourceUnit(value) {
|
|
38123
|
-
return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && (value.nativeAppIdentity === void 0 || isNativeAppIdentity(value.nativeAppIdentity)) && strings2(value.classes) && strings2(value.bridgeModules) && strings2(value.appDelegateSubscribers) && strings2(value.reactDelegateHandlers) && stringRecord(value.files) && strings2(value.frameworks) && (value.nativeTargets === void 0 || Array.isArray(value.nativeTargets) && value.nativeTargets.every(isRecord)) && (value.nativeFiles === void 0 || stringRecord(value.nativeFiles)) && (value.resources === void 0 || stringRecord(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
|
|
38123
|
+
return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && (value.nativeAppIdentity === void 0 || isNativeAppIdentity(value.nativeAppIdentity)) && strings2(value.classes) && strings2(value.bridgeModules) && strings2(value.appDelegateSubscribers) && strings2(value.reactDelegateHandlers) && stringRecord(value.files) && strings2(value.frameworks) && (value.workspaceSources === void 0 || strings2(value.workspaceSources)) && (value.nativeTargets === void 0 || Array.isArray(value.nativeTargets) && value.nativeTargets.every(isRecord)) && (value.nativeFiles === void 0 || stringRecord(value.nativeFiles)) && (value.resources === void 0 || stringRecord(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
|
|
38124
38124
|
}
|
|
38125
38125
|
function isStoredUnit(value) {
|
|
38126
|
-
return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && strings2(value.classes) && strings2(value.bridgeModules) && strings2(value.appDelegateSubscribers) && strings2(value.reactDelegateHandlers) && digestRecord(value.files) && strings2(value.frameworks) && (value.nativeTargets === void 0 || strings2(value.nativeTargets) && value.nativeTargets.every(isDigest)) && (value.nativeFiles === void 0 || digestRecord(value.nativeFiles)) && (value.resources === void 0 || digestRecord(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
|
|
38126
|
+
return isRecord(value) && typeof value.namespace === "string" && typeof value.moduleId === "string" && strings2(value.classes) && strings2(value.bridgeModules) && strings2(value.appDelegateSubscribers) && strings2(value.reactDelegateHandlers) && digestRecord(value.files) && strings2(value.frameworks) && (value.workspaceSources === void 0 || strings2(value.workspaceSources)) && (value.nativeTargets === void 0 || strings2(value.nativeTargets) && value.nativeTargets.every(isDigest)) && (value.nativeFiles === void 0 || digestRecord(value.nativeFiles)) && (value.resources === void 0 || digestRecord(value.resources)) && (value.resourceBundles === void 0 || isSwiftResourceBundles(value.resourceBundles)) && (value.swiftLanguageMode === void 0 || typeof value.swiftLanguageMode === "number");
|
|
38127
38127
|
}
|
|
38128
38128
|
function readExpoDiscovery(key2) {
|
|
38129
38129
|
let parsed;
|
|
@@ -39032,7 +39032,7 @@ var init_expo_native_prebuilt = __esm({
|
|
|
39032
39032
|
init_swift_native_pin();
|
|
39033
39033
|
init_xcode_project();
|
|
39034
39034
|
EXPO_NATIVE_ENTRY_NAME = "ios";
|
|
39035
|
-
EXPO_NATIVE_COMPILER_DIGEST = true ? "
|
|
39035
|
+
EXPO_NATIVE_COMPILER_DIGEST = true ? "9b0c766d8fabc5a17b7a5192068af220bfdd1fdb80b28a47c3f3432a2409376b" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
|
|
39036
39036
|
IDENTITY_SOURCE_SKIPS = 1 | 4 | 8 | 16 | 32 | 64 | 128 | 4096;
|
|
39037
39037
|
expoNativeEntryUrl = (key2, file) => `${NATIVE_PREBUILT_ORIGIN}/${nativeEntryPrefix("expo", EXPO_NATIVE_ENTRY_NAME, key2)}/${file}`;
|
|
39038
39038
|
isStringRecord = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
|
|
@@ -53704,11 +53704,16 @@ function cloneUnits(units) {
|
|
|
53704
53704
|
appDelegateSubscribers: unit2.appDelegateSubscribers.slice(),
|
|
53705
53705
|
reactDelegateHandlers: unit2.reactDelegateHandlers.slice(),
|
|
53706
53706
|
frameworks: unit2.frameworks.slice(),
|
|
53707
|
+
...unit2.workspaceSources ? { workspaceSources: unit2.workspaceSources.slice() } : {},
|
|
53707
53708
|
files: { ...unit2.files },
|
|
53708
53709
|
...unit2.nativeFiles ? { nativeFiles: { ...unit2.nativeFiles } } : {},
|
|
53709
53710
|
...unit2.headerAliases ? { headerAliases: { ...unit2.headerAliases } } : {},
|
|
53710
53711
|
...unit2.resources ? { resources: { ...unit2.resources } } : {},
|
|
53711
|
-
...unit2.resourceBundles ? {
|
|
53712
|
+
...unit2.resourceBundles ? {
|
|
53713
|
+
resourceBundles: unit2.resourceBundles.map((bundle) => ({
|
|
53714
|
+
...bundle
|
|
53715
|
+
}))
|
|
53716
|
+
} : {},
|
|
53712
53717
|
...unit2.nativeTargets ? { nativeTargets: unit2.nativeTargets.map(cloneNativeTarget) } : {}
|
|
53713
53718
|
}));
|
|
53714
53719
|
}
|
|
@@ -54151,24 +54156,40 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
54151
54156
|
installed?.input.files["Package.swift"] ?? ""
|
|
54152
54157
|
);
|
|
54153
54158
|
const units = [];
|
|
54159
|
+
const dependencyUnits = [];
|
|
54160
|
+
const processed = /* @__PURE__ */ new Set();
|
|
54154
54161
|
const namespacesSeen = /* @__PURE__ */ new Set();
|
|
54155
54162
|
const namespaceGroups = /* @__PURE__ */ new Map();
|
|
54156
54163
|
let answeredInstalled = false;
|
|
54157
54164
|
let needsNativeWorkspace = false;
|
|
54158
54165
|
let bytes = 0;
|
|
54159
54166
|
let fileCount = 0;
|
|
54160
|
-
|
|
54161
|
-
|
|
54162
|
-
))
|
|
54167
|
+
const entries = Object.entries(search).sort(([a], [b]) => a.localeCompare(b));
|
|
54168
|
+
const queue = entries.slice();
|
|
54169
|
+
const queued = new Set(entries.map(([name3]) => name3));
|
|
54170
|
+
const reconsider = () => {
|
|
54171
|
+
for (const entry of entries)
|
|
54172
|
+
if (!processed.has(entry[0]) && !queued.has(entry[0])) {
|
|
54173
|
+
queue.push(entry);
|
|
54174
|
+
queued.add(entry[0]);
|
|
54175
|
+
}
|
|
54176
|
+
};
|
|
54177
|
+
for (const [packageName, entry] of queue) {
|
|
54178
|
+
queued.delete(packageName);
|
|
54179
|
+
if (processed.has(packageName)) continue;
|
|
54163
54180
|
if (!entry || typeof entry !== "object")
|
|
54164
54181
|
throw new Error("invalid Expo autolinking entry");
|
|
54165
54182
|
const sourceRoot = Reflect.get(entry, "path");
|
|
54166
54183
|
if (typeof sourceRoot !== "string")
|
|
54167
54184
|
throw new Error("Expo autolinking entry has no path");
|
|
54168
54185
|
const canonical = import_node_fs81.default.realpathSync(sourceRoot);
|
|
54169
|
-
|
|
54186
|
+
const answered2 = canonical.split(import_node_path80.default.sep).includes("node_modules") && peachAnsweredNativePackages().has(packageName);
|
|
54187
|
+
if (answered2) {
|
|
54170
54188
|
answeredInstalled = true;
|
|
54171
|
-
|
|
54189
|
+
if (installed || prepareNative) {
|
|
54190
|
+
processed.add(packageName);
|
|
54191
|
+
continue;
|
|
54192
|
+
}
|
|
54172
54193
|
}
|
|
54173
54194
|
for (const name3 of ["expo-module.config.json", "unimodule.json"]) {
|
|
54174
54195
|
const descriptor = import_node_path80.default.join(canonical, name3);
|
|
@@ -54195,8 +54216,21 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
54195
54216
|
const subscriberNames = delegateNames("appDelegateSubscribers");
|
|
54196
54217
|
const handlerNames = delegateNames("reactDelegateHandlers");
|
|
54197
54218
|
const deferredToWorkspace = prepareNative && !installedWorkspace && Array.isArray(pods) && pods.length > 0;
|
|
54198
|
-
|
|
54199
|
-
|
|
54219
|
+
const dependencyOnly = answered2 || (!Array.isArray(modules) || modules.length === 0) && subscriberNames.length === 0 && handlerNames.length === 0;
|
|
54220
|
+
if (dependencyOnly) {
|
|
54221
|
+
if (installed || prepareNative || !Array.isArray(namespaces)) {
|
|
54222
|
+
processed.add(packageName);
|
|
54223
|
+
continue;
|
|
54224
|
+
}
|
|
54225
|
+
const imports2 = new Set(
|
|
54226
|
+
[...units, ...dependencyUnits].flatMap(
|
|
54227
|
+
(unit2) => Object.values(unit2.files).flatMap((source) => swiftImportNames(source))
|
|
54228
|
+
)
|
|
54229
|
+
);
|
|
54230
|
+
if (!namespaces.some((name3) => typeof name3 === "string" && imports2.has(name3)))
|
|
54231
|
+
continue;
|
|
54232
|
+
}
|
|
54233
|
+
processed.add(packageName);
|
|
54200
54234
|
if (!Array.isArray(namespaces) || namespaces.length === 0 || !namespaces.every(
|
|
54201
54235
|
(name3) => typeof name3 === "string" && /^[A-Za-z_][A-Za-z0-9_]*$/.test(name3)
|
|
54202
54236
|
))
|
|
@@ -54207,9 +54241,10 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
54207
54241
|
}
|
|
54208
54242
|
if (namespaces.length > 1 && !installed) {
|
|
54209
54243
|
if (!nativeWorkspaceAvailable()) {
|
|
54210
|
-
|
|
54211
|
-
|
|
54212
|
-
|
|
54244
|
+
if (!answered2)
|
|
54245
|
+
report(
|
|
54246
|
+
`${packageName}: ${namespaces.join(", ")} need CocoaPods target membership, which only a Mac prepares; not compiled`
|
|
54247
|
+
);
|
|
54213
54248
|
continue;
|
|
54214
54249
|
}
|
|
54215
54250
|
const prepared = await prepareExpoNativeWorkspace(appRoot, signal, iosTarget);
|
|
@@ -54302,8 +54337,13 @@ async function collectExpoSwiftSourcesUncached(appRoot, signal, installedWorkspa
|
|
|
54302
54337
|
walk3(file, binary2 || framework);
|
|
54303
54338
|
continue;
|
|
54304
54339
|
}
|
|
54305
|
-
if (!binary2 && target.isFile() && /\.(?:mm?|c|cc|cpp)$/.test(child.name))
|
|
54306
|
-
|
|
54340
|
+
if (!binary2 && target.isFile() && /\.(?:mm?|c|cc|cpp)$/.test(child.name)) {
|
|
54341
|
+
const source2 = linked ?? resolveSource(file);
|
|
54342
|
+
if (import_node_fs81.default.statSync(source2).size > 4096 || !/^(?:\s|\/\/[^\n]*|\/\*[\s\S]*?\*\/)*$/.test(
|
|
54343
|
+
import_node_fs81.default.readFileSync(source2, "utf8")
|
|
54344
|
+
))
|
|
54345
|
+
nativeSources.add(import_node_path80.default.relative(ios, file));
|
|
54346
|
+
}
|
|
54307
54347
|
if (!target.isFile() || !child.name.endsWith(".swift")) continue;
|
|
54308
54348
|
const source = linked ?? resolveSource(file);
|
|
54309
54349
|
if (sources.has(source)) continue;
|
|
@@ -54380,6 +54420,24 @@ ${import_node_fs81.default.readFileSync(source, "utf8")}`;
|
|
|
54380
54420
|
const podspecFloor = podspec ? /\.platforms\s*=\s*\{\s*:ios\s*=>\s*['"](\d+(?:\.\d+){0,2})['"]/.exec(
|
|
54381
54421
|
import_node_fs81.default.readFileSync(import_node_path80.default.join(ios, podspec), "utf8")
|
|
54382
54422
|
)?.[1] : void 0;
|
|
54423
|
+
if (dependencyOnly && Object.keys(files2).length > 0) {
|
|
54424
|
+
dependencyUnits.push({
|
|
54425
|
+
namespace,
|
|
54426
|
+
moduleId: namespace,
|
|
54427
|
+
classes: [],
|
|
54428
|
+
bridgeModules: [],
|
|
54429
|
+
appDelegateSubscribers: [],
|
|
54430
|
+
reactDelegateHandlers: [],
|
|
54431
|
+
files: files2,
|
|
54432
|
+
frameworks: [...frameworks],
|
|
54433
|
+
...nativeSources.size ? { workspaceSources: [namespace] } : {},
|
|
54434
|
+
...podspecFloor ? {
|
|
54435
|
+
nativeTargets: [synthesizedNativeTarget(namespace, podspecFloor)]
|
|
54436
|
+
} : {}
|
|
54437
|
+
});
|
|
54438
|
+
reconsider();
|
|
54439
|
+
}
|
|
54440
|
+
if (dependencyOnly) continue;
|
|
54383
54441
|
for (const declaration of declarations) {
|
|
54384
54442
|
const className = declaration.reference;
|
|
54385
54443
|
const owner = className.split(".")[0];
|
|
@@ -54412,10 +54470,13 @@ ${import_node_fs81.default.readFileSync(source, "utf8")}`;
|
|
|
54412
54470
|
files: closure,
|
|
54413
54471
|
frameworks: [...frameworks],
|
|
54414
54472
|
...absentFrameworks.length > 0 ? { absentFrameworks } : {},
|
|
54415
|
-
...podspecFloor ? {
|
|
54473
|
+
...podspecFloor ? {
|
|
54474
|
+
nativeTargets: [synthesizedNativeTarget(namespace, podspecFloor)]
|
|
54475
|
+
} : {}
|
|
54416
54476
|
};
|
|
54417
54477
|
unit2.files[EXPO_SWIFT_ENTRY] = expoEntry([unit2]);
|
|
54418
54478
|
units.push(unit2);
|
|
54479
|
+
reconsider();
|
|
54419
54480
|
}
|
|
54420
54481
|
}
|
|
54421
54482
|
if (namespaces.length > 1) {
|
|
@@ -54532,23 +54593,26 @@ ${import_node_fs81.default.readFileSync(file, "utf8")}`;
|
|
|
54532
54593
|
);
|
|
54533
54594
|
const allFiles = Object.assign(
|
|
54534
54595
|
{},
|
|
54535
|
-
...units.map((unit2) => unit2.files)
|
|
54596
|
+
...[...units, ...dependencyUnits].map((unit2) => unit2.files)
|
|
54536
54597
|
);
|
|
54537
|
-
const targets = [
|
|
54598
|
+
const targets = [
|
|
54599
|
+
...new Set([...units, ...dependencyUnits].map((unit2) => unit2.namespace))
|
|
54600
|
+
].map((namespace) => ({
|
|
54538
54601
|
name: namespace,
|
|
54539
54602
|
path: `Sources/${namespace}`
|
|
54540
54603
|
}));
|
|
54541
54604
|
const dependencies = swiftTargetDependencies(allFiles, targets);
|
|
54542
54605
|
const byNamespace = /* @__PURE__ */ new Map();
|
|
54543
|
-
for (const unit2 of units) {
|
|
54544
|
-
const
|
|
54545
|
-
|
|
54546
|
-
byNamespace.set(unit2.namespace,
|
|
54606
|
+
for (const unit2 of [...units, ...dependencyUnits]) {
|
|
54607
|
+
const entries2 = byNamespace.get(unit2.namespace) ?? [];
|
|
54608
|
+
entries2.push(unit2);
|
|
54609
|
+
byNamespace.set(unit2.namespace, entries2);
|
|
54547
54610
|
}
|
|
54548
54611
|
for (const unit2 of units) {
|
|
54549
54612
|
const included = /* @__PURE__ */ new Set([unit2.namespace]);
|
|
54613
|
+
const ownDependencies = swiftTargetDependencies(unit2.files, targets).get(unit2.namespace) ?? [];
|
|
54550
54614
|
const visit3 = (namespace) => {
|
|
54551
|
-
for (const dependency of dependencies.get(namespace) ?? []) {
|
|
54615
|
+
for (const dependency of namespace === unit2.namespace ? ownDependencies : dependencies.get(namespace) ?? []) {
|
|
54552
54616
|
if (!byNamespace.has(dependency) || included.has(dependency)) continue;
|
|
54553
54617
|
included.add(dependency);
|
|
54554
54618
|
visit3(dependency);
|
|
@@ -54565,6 +54629,12 @@ ${import_node_fs81.default.readFileSync(file, "utf8")}`;
|
|
|
54565
54629
|
...dependency.flatMap((item) => item.frameworks)
|
|
54566
54630
|
])
|
|
54567
54631
|
];
|
|
54632
|
+
unit2.workspaceSources = [
|
|
54633
|
+
.../* @__PURE__ */ new Set([
|
|
54634
|
+
...unit2.workspaceSources ?? [],
|
|
54635
|
+
...dependency.flatMap((item) => item.workspaceSources ?? [])
|
|
54636
|
+
])
|
|
54637
|
+
];
|
|
54568
54638
|
unit2.nativeTargets = [
|
|
54569
54639
|
...new Map(
|
|
54570
54640
|
[
|
|
@@ -54587,11 +54657,19 @@ ${import_node_fs81.default.readFileSync(file, "utf8")}`;
|
|
|
54587
54657
|
if (name3.startsWith(`Sources/${namespace}/`)) unit2.files[name3] = source;
|
|
54588
54658
|
}
|
|
54589
54659
|
}
|
|
54590
|
-
|
|
54591
|
-
|
|
54592
|
-
"",
|
|
54593
|
-
targetSettings2([...included].flatMap((namespace) => byNamespace.get(namespace)))
|
|
54660
|
+
const settings = targetSettings2(
|
|
54661
|
+
[...included].flatMap((namespace) => byNamespace.get(namespace))
|
|
54594
54662
|
);
|
|
54663
|
+
if (!installed)
|
|
54664
|
+
for (const namespace of included)
|
|
54665
|
+
settings.set(namespace, {
|
|
54666
|
+
languageMode: 5,
|
|
54667
|
+
mainActorIsolation: false,
|
|
54668
|
+
resources: false,
|
|
54669
|
+
...settings.get(namespace),
|
|
54670
|
+
dependencies: (namespace === unit2.namespace ? ownDependencies : dependencies.get(namespace) ?? []).filter((name3) => included.has(name3)).map((name3) => ({ kind: "target", name: name3 }))
|
|
54671
|
+
});
|
|
54672
|
+
unit2.files["Package.swift"] = expoManifest(unit2.files, "", settings);
|
|
54595
54673
|
}
|
|
54596
54674
|
if (nativeAppIdentity)
|
|
54597
54675
|
for (const unit2 of units) unit2.nativeAppIdentity = nativeAppIdentity;
|
|
@@ -54630,8 +54708,21 @@ let package = Package(name: "PeachExpo", targets: [${declarations.join(", ")}, .
|
|
|
54630
54708
|
function targetSettings2(units) {
|
|
54631
54709
|
const settings = /* @__PURE__ */ new Map();
|
|
54632
54710
|
for (const unit2 of units) {
|
|
54633
|
-
for (const target of swiftManifestTargets(unit2.files["Package.swift"] ?? ""))
|
|
54634
|
-
settings.
|
|
54711
|
+
for (const target of swiftManifestTargets(unit2.files["Package.swift"] ?? "")) {
|
|
54712
|
+
const previous = settings.get(target.name);
|
|
54713
|
+
const dependencies = [
|
|
54714
|
+
...previous?.dependencies ?? [],
|
|
54715
|
+
...target.dependencies ?? []
|
|
54716
|
+
];
|
|
54717
|
+
settings.set(target.name, {
|
|
54718
|
+
...target,
|
|
54719
|
+
dependencies: [
|
|
54720
|
+
...new Map(
|
|
54721
|
+
dependencies.map((dependency) => [JSON.stringify(dependency), dependency])
|
|
54722
|
+
).values()
|
|
54723
|
+
]
|
|
54724
|
+
});
|
|
54725
|
+
}
|
|
54635
54726
|
if (unit2.swiftLanguageMode !== void 0)
|
|
54636
54727
|
settings.set(unit2.namespace, {
|
|
54637
54728
|
...settings.get(unit2.namespace),
|
|
@@ -54988,7 +55079,11 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
54988
55079
|
projectFor(packagePath).nativeFiles = unit2.nativeFiles;
|
|
54989
55080
|
projectFor(packagePath).headerAliases = unit2.headerAliases;
|
|
54990
55081
|
projectFor(packagePath).resourceBundles = unit2.resourceBundles;
|
|
54991
|
-
projectFor(packagePath).bundleFiles = unit2.resources ? {
|
|
55082
|
+
projectFor(packagePath).bundleFiles = unit2.resources ? {
|
|
55083
|
+
files: unit2.resources,
|
|
55084
|
+
bundles: unit2.resourceBundles ?? [],
|
|
55085
|
+
watched: []
|
|
55086
|
+
} : void 0;
|
|
54992
55087
|
const stamp = sourceContentStamp(packagePath, module2.root);
|
|
54993
55088
|
const failed = readFailedCompilation(packagePath);
|
|
54994
55089
|
if (failed?.stamp === stamp) {
|
|
@@ -55164,8 +55259,12 @@ async function compileExpoSwiftModulesTraced(root, base, publishArtifact, option
|
|
|
55164
55259
|
linked.push(unit2);
|
|
55165
55260
|
} catch (error) {
|
|
55166
55261
|
signal.throwIfAborted();
|
|
55262
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
55263
|
+
const missingImports = [...message.matchAll(/^ (\S+)/gm)].map(
|
|
55264
|
+
(match) => match[1]
|
|
55265
|
+
);
|
|
55167
55266
|
const diagnostic = [
|
|
55168
|
-
error instanceof
|
|
55267
|
+
error instanceof SwiftMissingModulesError && unit2.workspaceSources?.length ? `${unit2.workspaceSources.map((name3) => `${name3} needs a Mac-prepared workspace`).join("; ")}; unresolved imports: ${missingImports.join(", ")}` : message,
|
|
55169
55268
|
...gaps.get(unit2) ?? []
|
|
55170
55269
|
].join("\n");
|
|
55171
55270
|
const unitFiles = [...Object.keys(unit2.files), ...expoUnitAppPaths(unit2)];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1980 | (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.1980 | (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.1980 | (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.1980 | (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.1980 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
package/dist-lib/config.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1980 | (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/config.mjs
CHANGED
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! peach v0.1.
|
|
1
|
+
/*! peach v0.1.1980 | (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.1980 | (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;
|