peachsim 0.1.813 → 0.1.815
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/cli/commands/kotlin.ts +2 -27
- package/cli/outbound-endpoints.ts +26 -27
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/agent-identity.cjs +1 -1
- package/dist-lib/agent-sessions.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 +22 -40
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cli-constants.cjs +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/detox/index.cjs +1 -1
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +21 -39
- 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 +21 -39
- 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 +8 -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 +25 -24
- 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 +8 -6
- 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/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/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/render-mode.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 +22 -40
- 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 +21 -39
- 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/android-theme.ts +22 -23
- package/src/kotlin-app.ts +41 -13
- package/src/kotlin-host.ts +32 -23
- package/src/swift-binary-modules.ts +9 -7
- package/src/swift-host.ts +7 -7
- package/src/swift-standin-emit.ts +2 -23
- package/src/xcode-project.ts +11 -8
package/cli/commands/kotlin.ts
CHANGED
|
@@ -5,8 +5,8 @@ import { DEFAULT_DEVICE_BY_PLATFORM, devices } from 'peach-engine/settings/devic
|
|
|
5
5
|
import { WebSocket, WebSocketServer } from 'ws'
|
|
6
6
|
import { kotlinGuestBundle } from '../../src/guest-bundle'
|
|
7
7
|
import {
|
|
8
|
+
readAndroidPins,
|
|
8
9
|
readKotlinApp,
|
|
9
|
-
type AndroidPins,
|
|
10
10
|
type KotlinAppProject,
|
|
11
11
|
} from '../../src/kotlin-app'
|
|
12
12
|
import { PeachExit } from '../run-rnx'
|
|
@@ -19,31 +19,6 @@ const HMR_PATH = '/__peach/kotlin-hmr'
|
|
|
19
19
|
// and in the built CLI (dist-cli/chunks)
|
|
20
20
|
const MODULE_ROOT = path.resolve(import.meta.dirname, '../../kotlin')
|
|
21
21
|
|
|
22
|
-
function androidPins(): AndroidPins {
|
|
23
|
-
const toolchain: unknown = JSON.parse(
|
|
24
|
-
fs.readFileSync(path.join(MODULE_ROOT, 'toolchain.json'), 'utf8'),
|
|
25
|
-
)
|
|
26
|
-
const android =
|
|
27
|
-
typeof toolchain === 'object' && toolchain !== null
|
|
28
|
-
? Reflect.get(Reflect.get(toolchain, 'compose') ?? {}, 'android')
|
|
29
|
-
: undefined
|
|
30
|
-
const pin = (name: string) => {
|
|
31
|
-
const value: unknown = android ? Reflect.get(android, name) : undefined
|
|
32
|
-
if (typeof value !== 'string')
|
|
33
|
-
throw new Error(`Kotlin toolchain has no Android ${name} pin`)
|
|
34
|
-
return value
|
|
35
|
-
}
|
|
36
|
-
return {
|
|
37
|
-
ui: pin('ui'),
|
|
38
|
-
foundation: pin('foundation'),
|
|
39
|
-
runtime: pin('runtime'),
|
|
40
|
-
material3: pin('material3'),
|
|
41
|
-
navigation: pin('navigation'),
|
|
42
|
-
activity: pin('activity'),
|
|
43
|
-
materialIcons: pin('materialIcons'),
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
22
|
// opens an Android app module the way the device launches it: the manifest's
|
|
48
23
|
// launcher activity, cold-started in Peach's Kotlin process. sources compile
|
|
49
24
|
// locally; an edit recompiles and starts a new process, as a rebuilt app does.
|
|
@@ -94,7 +69,7 @@ export async function runKotlin(
|
|
|
94
69
|
throw new Error(
|
|
95
70
|
`peach kotlin runs an Android app; ${device} is not an Android device`,
|
|
96
71
|
)
|
|
97
|
-
const pins =
|
|
72
|
+
const pins = readAndroidPins(MODULE_ROOT)
|
|
98
73
|
let project: KotlinAppProject = readKotlinApp(modulePath, { activity, pins })
|
|
99
74
|
const host = await import('../../src/kotlin-host')
|
|
100
75
|
const controller = new AbortController()
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { execFileSync } from 'node:child_process'
|
|
1
2
|
import fs from 'node:fs'
|
|
2
3
|
import path from 'node:path'
|
|
3
4
|
import {
|
|
@@ -752,25 +753,23 @@ interface DetectedOutboundCall {
|
|
|
752
753
|
count: number
|
|
753
754
|
}
|
|
754
755
|
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
}
|
|
773
|
-
return files.sort()
|
|
756
|
+
// tracked files only: a co-tenant's untracked scratch file in the shared
|
|
757
|
+
// checkout is not part of any commit and must not fail one.
|
|
758
|
+
function trackedSourceFiles(repositoryRoot: string, roots: string[]): string[] {
|
|
759
|
+
return execFileSync('git', ['ls-files', '-z', '--', ...roots], {
|
|
760
|
+
cwd: repositoryRoot,
|
|
761
|
+
encoding: 'utf8',
|
|
762
|
+
})
|
|
763
|
+
.split('\0')
|
|
764
|
+
.filter(
|
|
765
|
+
(file) =>
|
|
766
|
+
/\.(?:ts|tsx)$/.test(file) &&
|
|
767
|
+
!file.endsWith('.d.ts') &&
|
|
768
|
+
!file.split('/').some((part) => part === 'vendor' || part === 'test-fixtures') &&
|
|
769
|
+
fs.existsSync(path.join(repositoryRoot, file)),
|
|
770
|
+
)
|
|
771
|
+
.map((file) => path.join(repositoryRoot, file))
|
|
772
|
+
.sort()
|
|
774
773
|
}
|
|
775
774
|
|
|
776
775
|
interface NetworkNames {
|
|
@@ -953,16 +952,16 @@ function firstArgument(node: CallExpression | NewExpression, source: string): st
|
|
|
953
952
|
|
|
954
953
|
export function detectOutboundCalls(repositoryRoot: string): DetectedOutboundCall[] {
|
|
955
954
|
const roots = [
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
955
|
+
'packages/peachsim/cli',
|
|
956
|
+
'packages/peachsim/scripts',
|
|
957
|
+
'packages/peachsim/src',
|
|
958
|
+
'packages/peach-engine/src',
|
|
959
|
+
'packages/peach-engine/src-electron',
|
|
960
|
+
'packages/contrast-runtime-delivery/src',
|
|
961
|
+
'packages/peach-cloud-box/src',
|
|
963
962
|
]
|
|
964
963
|
const counts = new Map<string, number>()
|
|
965
|
-
for (const file of roots
|
|
964
|
+
for (const file of trackedSourceFiles(repositoryRoot, roots)) {
|
|
966
965
|
if (file.endsWith('/outbound-endpoints.ts')) continue
|
|
967
966
|
const source = fs.readFileSync(file, 'utf8')
|
|
968
967
|
const program = parseSync(file, source, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/beta.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -975,14 +975,14 @@ function liftExtensionOverrides(source, extraObjCExtensions) {
|
|
|
975
975
|
const args = forwardedArguments(source.slice(open + 1, close));
|
|
976
976
|
if (args === null) continue;
|
|
977
977
|
const call = (clause.includes("->") ? "return " : "") + (/\b(?:throws|rethrows)\b/.test(clause) ? "try " : "") + (/\basync\b/.test(clause) ? "await " : "") + `__peach_ext_${name2}(${args})`;
|
|
978
|
-
const
|
|
978
|
+
const signature = `func ${name2}${func[3] ?? ""}${source.slice(open, close + 1)}${clause ? ` ${clause}` : ""}`;
|
|
979
979
|
const nameAt = at + rest.indexOf(name2, rest.indexOf("func", "override".length + func[1].length) + 4);
|
|
980
980
|
lifted.push({
|
|
981
981
|
type: top.name,
|
|
982
982
|
member: name2,
|
|
983
983
|
at,
|
|
984
984
|
modifiers,
|
|
985
|
-
decl:
|
|
985
|
+
decl: signature,
|
|
986
986
|
forward: `{ ${call} };`,
|
|
987
987
|
nameAt,
|
|
988
988
|
edits: [
|
|
@@ -1209,9 +1209,9 @@ function lowerNotificationDelegate(source) {
|
|
|
1209
1209
|
const body = code.slice(open + 1, close - 1);
|
|
1210
1210
|
for (const method of body.matchAll(/\bfunc\s+userNotificationCenter\s*\(/g)) {
|
|
1211
1211
|
const at = open + 1 + method.index;
|
|
1212
|
-
const
|
|
1212
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
1213
1213
|
const label = Object.keys(selectors).find(
|
|
1214
|
-
(name2) => new RegExp(`\\b${name2}\\b`).test(
|
|
1214
|
+
(name2) => new RegExp(`\\b${name2}\\b`).test(signature)
|
|
1215
1215
|
);
|
|
1216
1216
|
if (label) edits.push([at, 0, `@ObjC(${JSON.stringify(selectors[label])}) `]);
|
|
1217
1217
|
}
|
|
@@ -1309,7 +1309,7 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
1309
1309
|
depth--;
|
|
1310
1310
|
if (depth === 1) previous = at + 1;
|
|
1311
1311
|
} else if (depth === 1 && /^func\b/.test(code.slice(at))) {
|
|
1312
|
-
const
|
|
1312
|
+
const signature = code.slice(at, code.indexOf("{", at));
|
|
1313
1313
|
const prefix = code.slice(previous, at);
|
|
1314
1314
|
const attributes = /(?:@\w+(?:\([^{}]*\))?\s*|(?:public|open|private|fileprivate|internal|final|override|static|class|nonisolated|dynamic)\s+)*$/.exec(
|
|
1315
1315
|
prefix
|
|
@@ -1318,12 +1318,12 @@ function lowerTableProtocolMethods(source, conformances) {
|
|
|
1318
1318
|
continue;
|
|
1319
1319
|
let selector;
|
|
1320
1320
|
if (conforms.has("UITableViewDataSource") && /^func\s+numberOfSections\s*\(\s*in\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*\)/.test(
|
|
1321
|
-
|
|
1321
|
+
signature
|
|
1322
1322
|
))
|
|
1323
1323
|
selector = "numberOfSectionsInTableView:";
|
|
1324
1324
|
else {
|
|
1325
1325
|
const match = /^func\s+tableView\s*\(\s*_\s+\w+\s*:\s*(?:UIKit\.)?UITableView\s*,\s*(\w+)\b/.exec(
|
|
1326
|
-
|
|
1326
|
+
signature
|
|
1327
1327
|
);
|
|
1328
1328
|
if (match) selector = selectors[match[1]];
|
|
1329
1329
|
}
|
|
@@ -3205,7 +3205,10 @@ async function range(url, spec) {
|
|
|
3205
3205
|
async function zipEntries(url) {
|
|
3206
3206
|
const { total } = await range(url, "0-0");
|
|
3207
3207
|
const tail = await range(url, `${Math.max(0, total - 65558)}-${total - 1}`);
|
|
3208
|
-
|
|
3208
|
+
let end = tail.bytes.length - 22;
|
|
3209
|
+
for (; end >= 0; end--)
|
|
3210
|
+
if (tail.bytes.readUInt32LE(end) === 101010256 && end + 22 + tail.bytes.readUInt16LE(end + 20) === tail.bytes.length)
|
|
3211
|
+
break;
|
|
3209
3212
|
if (end < 0) throw new Error(`${url} has no zip end record`);
|
|
3210
3213
|
let size = tail.bytes.readUInt32LE(end + 12);
|
|
3211
3214
|
let offset = tail.bytes.readUInt32LE(end + 16);
|
|
@@ -3250,7 +3253,7 @@ async function swiftBinaryModules(binary) {
|
|
|
3250
3253
|
import_node_fs7.default.writeFileSync(cached2, JSON.stringify(modules));
|
|
3251
3254
|
return modules;
|
|
3252
3255
|
}
|
|
3253
|
-
var import_node_crypto4, import_node_fs7, import_node_os5, import_node_path8, cacheDir
|
|
3256
|
+
var import_node_crypto4, import_node_fs7, import_node_os5, import_node_path8, cacheDir;
|
|
3254
3257
|
var init_swift_binary_modules = __esm({
|
|
3255
3258
|
"src/swift-binary-modules.ts"() {
|
|
3256
3259
|
"use strict";
|
|
@@ -3259,11 +3262,6 @@ var init_swift_binary_modules = __esm({
|
|
|
3259
3262
|
import_node_os5 = __toESM(require("node:os"), 1);
|
|
3260
3263
|
import_node_path8 = __toESM(require("node:path"), 1);
|
|
3261
3264
|
cacheDir = import_node_path8.default.join(import_node_os5.default.tmpdir(), "peach-swift-binary-modules");
|
|
3262
|
-
signature = (bytes, value) => {
|
|
3263
|
-
const needle = Buffer.alloc(4);
|
|
3264
|
-
needle.writeUInt32LE(value);
|
|
3265
|
-
return bytes.lastIndexOf(needle);
|
|
3266
|
-
};
|
|
3267
3265
|
}
|
|
3268
3266
|
});
|
|
3269
3267
|
|
|
@@ -4210,24 +4208,6 @@ function emitSwiftStandin(graphs, options) {
|
|
|
4210
4208
|
);
|
|
4211
4209
|
continue;
|
|
4212
4210
|
}
|
|
4213
|
-
if (raw2 && list2.includes("Hashable")) {
|
|
4214
|
-
if (leaf(member) === "hash(into:)") {
|
|
4215
|
-
emit(
|
|
4216
|
-
`${inner}public func hash(into hasher: inout Hasher) { hasher.combine(rawValue) }`
|
|
4217
|
-
);
|
|
4218
|
-
continue;
|
|
4219
|
-
}
|
|
4220
|
-
if (leaf(member) === "hashValue") {
|
|
4221
|
-
emit(`${inner}public var hashValue: Int { rawValue.hashValue }`);
|
|
4222
|
-
continue;
|
|
4223
|
-
}
|
|
4224
|
-
if (leaf(member).startsWith("==")) {
|
|
4225
|
-
emit(
|
|
4226
|
-
`${inner}public static func == (lhs: ${shape.name}${shape.generics}, rhs: ${shape.name}${shape.generics}) -> Bool { lhs.rawValue == rhs.rawValue }`
|
|
4227
|
-
);
|
|
4228
|
-
continue;
|
|
4229
|
-
}
|
|
4230
|
-
}
|
|
4231
4211
|
emitMember(member, inner, {
|
|
4232
4212
|
openOwner: false,
|
|
4233
4213
|
inClass: false,
|
|
@@ -4243,7 +4223,7 @@ function emitSwiftStandin(graphs, options) {
|
|
|
4243
4223
|
return void skipped.push({ path: path16, reason: `unparsed enum ${text(symbol)}` });
|
|
4244
4224
|
const members = membersOf(id);
|
|
4245
4225
|
const raw2 = rawType(members);
|
|
4246
|
-
const cases =
|
|
4226
|
+
const cases = members.filter(
|
|
4247
4227
|
(member) => member.kind.identifier === "swift.enum.case"
|
|
4248
4228
|
);
|
|
4249
4229
|
const missing = raw2 ? cases.filter((member) => !values.has(member.identifier.precise)) : [];
|
|
@@ -4467,7 +4447,7 @@ var STANDIN_EMIT_VERSION, TYPE_KINDS, MEMBER_KINDS, ACCESSOR_WORD, KEEP_EXTERNAL
|
|
|
4467
4447
|
var init_swift_standin_emit = __esm({
|
|
4468
4448
|
"src/swift-standin-emit.ts"() {
|
|
4469
4449
|
"use strict";
|
|
4470
|
-
STANDIN_EMIT_VERSION = "
|
|
4450
|
+
STANDIN_EMIT_VERSION = "5";
|
|
4471
4451
|
TYPE_KINDS = /* @__PURE__ */ new Set([
|
|
4472
4452
|
"swift.class",
|
|
4473
4453
|
"swift.struct",
|
|
@@ -7437,9 +7417,9 @@ function workspaceProjects(xcodeprojOrWorkspace) {
|
|
|
7437
7417
|
const projects2 = [];
|
|
7438
7418
|
const projectAt = /* @__PURE__ */ new Map();
|
|
7439
7419
|
const addProject = (xcodeproj) => {
|
|
7440
|
-
|
|
7420
|
+
if (!xcodeProjectFile(xcodeproj)) return;
|
|
7421
|
+
const key2 = import_node_fs13.default.realpathSync(xcodeproj);
|
|
7441
7422
|
if (projectAt.has(key2) || key2.split(import_node_path14.default.sep).includes("Pods")) return;
|
|
7442
|
-
if (!xcodeProjectFile(key2)) return;
|
|
7443
7423
|
const project = loadProject(key2);
|
|
7444
7424
|
projectAt.set(key2, project);
|
|
7445
7425
|
projects2.push(project);
|
|
@@ -7470,7 +7450,8 @@ function nativeTargets(project) {
|
|
|
7470
7450
|
}
|
|
7471
7451
|
return refs;
|
|
7472
7452
|
}
|
|
7473
|
-
function readXcodeAppTarget(
|
|
7453
|
+
function readXcodeAppTarget(input, targetName) {
|
|
7454
|
+
const xcodeprojOrWorkspace = import_node_fs13.default.realpathSync(input);
|
|
7474
7455
|
const workspace = xcodeprojOrWorkspace.endsWith(".xcworkspace") ? xcodeprojOrWorkspace : null;
|
|
7475
7456
|
const { listed, projects: projects2, projectAt } = workspaceProjects(xcodeprojOrWorkspace);
|
|
7476
7457
|
const allTargets = projects2.flatMap(nativeTargets);
|
|
@@ -7495,7 +7476,8 @@ function readXcodeAppTarget(xcodeprojOrWorkspace, targetName) {
|
|
|
7495
7476
|
const proxy = project.object(proxyId);
|
|
7496
7477
|
if (proxy?.isa !== "PBXContainerItemProxy") return void 0;
|
|
7497
7478
|
const portal = str(proxy.containerPortal);
|
|
7498
|
-
const
|
|
7479
|
+
const portalPath = project.resolvePath(portal ?? "");
|
|
7480
|
+
const owner = project.object(portal)?.isa === "PBXProject" ? project : portalPath && import_node_fs13.default.existsSync(portalPath) ? projectAt.get(import_node_fs13.default.realpathSync(portalPath)) : void 0;
|
|
7499
7481
|
const remote = str(proxy.remoteGlobalIDString);
|
|
7500
7482
|
if (!owner || !remote) return void 0;
|
|
7501
7483
|
return nativeTargets(owner).find(
|
|
@@ -7644,7 +7626,7 @@ function readXcodeAppTarget(xcodeprojOrWorkspace, targetName) {
|
|
|
7644
7626
|
"swiftpm",
|
|
7645
7627
|
"Package.resolved"
|
|
7646
7628
|
);
|
|
7647
|
-
const used =
|
|
7629
|
+
const used = order.map((ref) => ref.project);
|
|
7648
7630
|
return {
|
|
7649
7631
|
...module2,
|
|
7650
7632
|
rootDir: commonAncestor(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/cloud.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (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
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/dist-lib/detox/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! rnx v0.1.
|
|
1
|
+
/*! rnx v0.1.815 | (c) 2026 Tamagui LLC | Proprietary — see LICENSE */
|
|
2
2
|
let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; } catch {}
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|