peachsim 0.1.2303 → 0.1.2305
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/daemon.ts +31 -9
- 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 +85 -63
- 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 +3 -3
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +83 -61
- 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 +85 -63
- package/dist-lib/host/fetch-proxy-handler.cjs +14 -5
- 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 +30 -11
- 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 +30 -11
- package/dist-lib/native-app-identity-project.cjs +18 -8
- package/dist-lib/native-app-identity-project.mjs +18 -8
- 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 +61 -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 +2 -2
- 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 +103 -69
- 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 +23 -13
- package/dist-lib/vite.cjs +14 -5
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/native-layout.d.ts +21 -5
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +0 -5
- package/dist-types/packages/peach-globals/src/webViewBridgeContract.d.ts +6 -0
- package/java-platform/licenses/fdlibm.txt +3 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/expo-discovery-cache.ts +2 -3
- package/src/expo-native-workspace.ts +7 -23
- package/src/expo-swift-host.ts +11 -0
- package/src/git-repo-env.ts +27 -0
- package/src/native-static-libraries.ts +4 -4
- package/src/podspec-sources.ts +12 -0
- package/src/reap-browser.ts +3 -1
- package/src/swift-packages.ts +4 -20
- package/src/xcode-project.ts +23 -7
|
@@ -12,7 +12,19 @@ export type TextMeasureRecipe = [
|
|
|
12
12
|
paddingTop: number,
|
|
13
13
|
paddingBottom: number
|
|
14
14
|
];
|
|
15
|
-
export interface
|
|
15
|
+
export interface TextLinesDrainSource {
|
|
16
|
+
_peach_layout_text_lines_count(): number;
|
|
17
|
+
_peach_layout_text_lines_data(): number;
|
|
18
|
+
_peach_layout_text_lines_clear(): void;
|
|
19
|
+
readonly HEAP32: Int32Array;
|
|
20
|
+
readonly HEAPF32: Float32Array;
|
|
21
|
+
peachLayoutTextLines?: (slot: number, height?: number) => void;
|
|
22
|
+
}
|
|
23
|
+
export interface LayoutErrorDrainSource {
|
|
24
|
+
_peach_layout_take_error(): number;
|
|
25
|
+
readonly HEAPU8: Uint8Array;
|
|
26
|
+
}
|
|
27
|
+
export interface NativeLayoutExports extends TextLinesDrainSource, LayoutErrorDrainSource {
|
|
16
28
|
_peach_layout_dirty_mark(slot: number, mask: number): void;
|
|
17
29
|
_peach_layout_dirty_has(slot: number, mask: number): number;
|
|
18
30
|
_peach_layout_dirty_clear(slot: number): void;
|
|
@@ -46,7 +58,11 @@ export interface NativeLayoutExports {
|
|
|
46
58
|
_peach_layout_text_policy(slot: number, policy: number, scale: number): void;
|
|
47
59
|
_peach_layout_text_revision(slot: number): number;
|
|
48
60
|
_peach_layout_text_recipe(slot: number, revision: number, ...recipe: TextMeasureRecipe): void;
|
|
49
|
-
|
|
61
|
+
_peach_layout_measure_requests_count(): number;
|
|
62
|
+
_peach_layout_measure_requests_data(): number;
|
|
63
|
+
_peach_layout_supply_measure(slot: number, width: number, widthMode: number, height: number, heightMode: number, measuredWidth: number, measuredHeight: number, cacheable: number): void;
|
|
64
|
+
_peach_layout_clear_supplied_measures(): void;
|
|
65
|
+
_peach_layout_abort_unmeasured(): void;
|
|
50
66
|
_peach_layout_measure_paragraph(paragraph: number, width: number, ...recipe: TextMeasureRecipe): number;
|
|
51
67
|
_peach_layout_force(slot: number): void;
|
|
52
68
|
_peach_layout_force_subtree(slot: number): void;
|
|
@@ -61,11 +77,9 @@ export interface NativeLayoutExports {
|
|
|
61
77
|
readonly HEAPU8: Uint8Array;
|
|
62
78
|
readonly HEAP32: Int32Array;
|
|
63
79
|
readonly HEAPF32: Float32Array;
|
|
64
|
-
peachLayoutMeasure?: MeasureHook;
|
|
65
80
|
peachLayoutTextLines?: (slot: number, height?: number) => void;
|
|
66
81
|
peachLayoutExit?: (slot: number) => void;
|
|
67
82
|
}
|
|
68
|
-
export type MeasureHook = (slot: number, width: number, widthMode: number, height: number, heightMode: number) => void;
|
|
69
83
|
export declare const L_WIDTH = 0;
|
|
70
84
|
export declare const L_HEIGHT = 1;
|
|
71
85
|
export declare const L_MIN_WIDTH = 2;
|
|
@@ -170,4 +184,6 @@ export interface NativeLayout {
|
|
|
170
184
|
readonly units: number;
|
|
171
185
|
readonly enums: number;
|
|
172
186
|
}
|
|
173
|
-
export declare function
|
|
187
|
+
export declare function drainTextLines(ck: TextLinesDrainSource): void;
|
|
188
|
+
export declare function checkLayoutError(ck: LayoutErrorDrainSource): void;
|
|
189
|
+
export declare function bindNativeLayout(ck: CanvasKit, textLines: (slot: number, height?: number) => void, exit: (slot: number) => void): NativeLayout;
|
|
@@ -137,7 +137,6 @@ export interface SceneNativeBinding {
|
|
|
137
137
|
_peach_scene_paint_extent(slot: number, x: number, y: number, width: number, height: number, skipPortalViews: number, subtree: number): number;
|
|
138
138
|
_peach_scene_paint_extent_out(): number;
|
|
139
139
|
_peach_scene_reader_reach(slot: number): number;
|
|
140
|
-
peachRasterTransformParameters?: (slot: number, out: number) => number;
|
|
141
140
|
_peach_scene_raster_candidate(slot: number): void;
|
|
142
141
|
_peach_style_record(): number;
|
|
143
142
|
_peach_style_apply(slot: number, structuralFlags: number): number;
|
|
@@ -151,7 +150,6 @@ export interface SceneNativeBinding {
|
|
|
151
150
|
_peach_classic_layout_clear(slot: number): void;
|
|
152
151
|
_peach_classic_layout_progress(progress: number): void;
|
|
153
152
|
_peach_classic_layout_sample(slot: number, timestamp: number): number;
|
|
154
|
-
peachExtentParameters?: (slot: number) => void;
|
|
155
153
|
_peach_scene_set_buffers(integers: number, doubles: number, floats: number, layoutMatrices: number): void;
|
|
156
154
|
_peach_scene_slots_adopt(next: number, generations: number, parents: number, free: number, freeCount: number): void;
|
|
157
155
|
_peach_scene_slot_allocate(): number;
|
|
@@ -308,8 +306,6 @@ export declare class SceneTable {
|
|
|
308
306
|
f64(): Float64Array;
|
|
309
307
|
f32(): Float32Array;
|
|
310
308
|
allocate(node: object, tag: number, flags: number): number;
|
|
311
|
-
setRasterTransformPublisher(publisher: (node: object, output: () => Float64Array) => number): void;
|
|
312
|
-
setExtentPublisher(reader: (node: object) => void): void;
|
|
313
309
|
setStyleReplayer(replay: (node: object) => void): void;
|
|
314
310
|
setStickyOffsetReader(reader: (node: object) => number): void;
|
|
315
311
|
setPaintExtentPublisher(publisher: PaintExtentPublisher): void;
|
|
@@ -399,7 +395,6 @@ export declare class SceneTable {
|
|
|
399
395
|
writeZoom(slot: number, zoom: number | undefined): void;
|
|
400
396
|
writeStyle(slot: number, style: SootSimStyle, resolve: (value: unknown) => unknown, owned?: Readonly<Record<string, unknown>> | null): Float64Array | undefined;
|
|
401
397
|
applyStyleRecord(slot: number, record: Float64Array, style: SootSimStyle, resolve: (value: unknown) => unknown, owned?: Readonly<Record<string, unknown>> | null): void;
|
|
402
|
-
writeExtentStyle(slot: number, style: SootSimStyle, resolve: (value: unknown) => unknown): void;
|
|
403
398
|
writeLayoutMatrix(slot: number, transform: SootSimStyle['transform'], transformOrigin: SootSimStyle['transformOrigin'], resolve: (value: unknown) => unknown): void;
|
|
404
399
|
writeTransform(slot: number, transform: SootSimStyle['transform'], transformOrigin: SootSimStyle['transformOrigin'], resolve: (value: unknown) => unknown): void;
|
|
405
400
|
writePaintedBox(slot: number, x: number, y: number, width: number, height: number, animated: boolean, transform: SootSimStyle['transform'], transformOrigin: SootSimStyle['transformOrigin'], resolve: (value: unknown) => unknown): void;
|
|
@@ -28,6 +28,8 @@ export type SootSimWebViewHostRequest = {
|
|
|
28
28
|
bodyBase64?: string;
|
|
29
29
|
documentData?: PeachWebViewDocumentData;
|
|
30
30
|
minimumFontSize?: number;
|
|
31
|
+
elementFullscreenEnabled?: boolean;
|
|
32
|
+
mediaTypesRequiringUserAction?: SootSimWebViewMediaTypes;
|
|
31
33
|
html?: string;
|
|
32
34
|
config: string;
|
|
33
35
|
beforeKey: string;
|
|
@@ -41,6 +43,7 @@ export type SootSimWebViewHostRequest = {
|
|
|
41
43
|
kind: 'preferences';
|
|
42
44
|
instanceId: string;
|
|
43
45
|
minimumFontSize: number;
|
|
46
|
+
elementFullscreenEnabled: boolean;
|
|
44
47
|
} | {
|
|
45
48
|
kind: 'cookies';
|
|
46
49
|
instanceId: string;
|
|
@@ -207,8 +210,11 @@ export interface SootSimWebViewCookieStore {
|
|
|
207
210
|
cookies: string;
|
|
208
211
|
policy: 0 | 1;
|
|
209
212
|
}
|
|
213
|
+
export type SootSimWebViewMediaTypes = 'none' | 'audio' | 'video' | 'all';
|
|
210
214
|
export interface SootSimWebViewSpec extends Partial<NativeSurfacePresentation> {
|
|
211
215
|
minimumFontSize?: number;
|
|
216
|
+
elementFullscreenEnabled?: boolean;
|
|
217
|
+
mediaTypesRequiringUserAction?: SootSimWebViewMediaTypes;
|
|
212
218
|
cookieStore?: SootSimWebViewCookieStore;
|
|
213
219
|
captureOwner?: {
|
|
214
220
|
surfaceId: string;
|
|
@@ -73,3 +73,6 @@ SUCH DAMAGE.
|
|
|
73
73
|
|
|
74
74
|
JavaHypot.kt is derived from Bionic/FreeBSD e_hypot.c under the SunSoft notice.
|
|
75
75
|
https://android.googlesource.com/platform/bionic/+/refs/heads/android17-release/libm/upstream-freebsd/lib/msun/src/e_hypot.c
|
|
76
|
+
|
|
77
|
+
JavaLog1p.kt is derived from Bionic/FreeBSD s_log1p.c under the SunSoft notice.
|
|
78
|
+
https://android.googlesource.com/platform/bionic/+/refs/heads/android17-release/libm/upstream-freebsd/lib/msun/src/s_log1p.c
|
package/kotlin/sdk.tar.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/runtime-companion.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"abi":1,"sha256":"
|
|
1
|
+
{"abi":1,"sha256":"0fab660670984b60962d163f3e174d3f27f6685e8c3e262164e28d6e6b52ad8d","file":"node/cli-0fab660670984b60962d163f3e174d3f27f6685e8c3e262164e28d6e6b52ad8d.cjs"}
|
|
@@ -227,8 +227,7 @@ export function readExpoDiscovery(key: string): ExpoSwiftSourceUnit[] | null | u
|
|
|
227
227
|
if (!digestRecord(parsed.frameworks)) return undefined
|
|
228
228
|
try {
|
|
229
229
|
for (const [file, expected] of Object.entries(parsed.dependencies)) {
|
|
230
|
-
if (
|
|
231
|
-
return undefined
|
|
230
|
+
if (stampedFileHash(file) !== expected) return undefined
|
|
232
231
|
}
|
|
233
232
|
for (const [directory, expected] of Object.entries(parsed.frameworks)) {
|
|
234
233
|
if (frameworkDigest(directory) !== expected) return undefined
|
|
@@ -292,7 +291,7 @@ export function readExpoDiscovery(key: string): ExpoSwiftSourceUnit[] | null | u
|
|
|
292
291
|
|
|
293
292
|
const sourceLocationLine = /^#sourceLocation\(file: "(.*)", line: 1\)$/
|
|
294
293
|
|
|
295
|
-
// a warm read re-verifies every framework file; a file whose stat is unchanged
|
|
294
|
+
// a warm read re-verifies every dependency and framework file; a file whose stat is unchanged
|
|
296
295
|
// reuses its saved hash, as the swift sdk check does.
|
|
297
296
|
const fileHashes = new Map<string, { stamp: string; checksum: string }>()
|
|
298
297
|
let fileHashesLoaded = false
|
|
@@ -8,6 +8,7 @@ import { promisify } from 'node:util'
|
|
|
8
8
|
import { detectPackageManager } from '../cli/commands/detect'
|
|
9
9
|
import { teamMachineInstalled } from './admitted-mac-build'
|
|
10
10
|
import { workspaceExclusion, type WorkspaceExclusion } from './expo-workspace-exclusion'
|
|
11
|
+
import { withoutGitRepositoryEnv } from './git-repo-env'
|
|
11
12
|
import { cacheDir } from './home-paths'
|
|
12
13
|
import { failedOutputLine } from './native-failure-output'
|
|
13
14
|
import { requireNativeGit } from './native-git'
|
|
@@ -34,27 +35,7 @@ const isolatedGitEnv = {
|
|
|
34
35
|
}
|
|
35
36
|
|
|
36
37
|
function cleanWorkspaceGitEnv(): NodeJS.ProcessEnv {
|
|
37
|
-
|
|
38
|
-
for (const key of [
|
|
39
|
-
'GIT_DIR',
|
|
40
|
-
'GIT_COMMON_DIR',
|
|
41
|
-
'GIT_WORK_TREE',
|
|
42
|
-
'GIT_INDEX_FILE',
|
|
43
|
-
'GIT_OBJECT_DIRECTORY',
|
|
44
|
-
'GIT_ALTERNATE_OBJECT_DIRECTORIES',
|
|
45
|
-
'GIT_PREFIX',
|
|
46
|
-
'GIT_SHALLOW_FILE',
|
|
47
|
-
'GIT_GRAFT_FILE',
|
|
48
|
-
'GIT_NAMESPACE',
|
|
49
|
-
'GIT_IMPLICIT_WORK_TREE',
|
|
50
|
-
'GIT_CONFIG',
|
|
51
|
-
'GIT_CEILING_DIRECTORIES',
|
|
52
|
-
'GIT_DISCOVERY_ACROSS_FILESYSTEM',
|
|
53
|
-
'GIT_SUPER_PREFIX',
|
|
54
|
-
]) {
|
|
55
|
-
delete env[key]
|
|
56
|
-
}
|
|
57
|
-
return { ...env, ...isolatedGitEnv }
|
|
38
|
+
return { ...withoutGitRepositoryEnv(), ...isolatedGitEnv }
|
|
58
39
|
}
|
|
59
40
|
|
|
60
41
|
// CocoaPods refuses a non UTF-8 locale, so even its version probe names one.
|
|
@@ -799,6 +780,10 @@ function nativeWorkspacesDir(root: string): string {
|
|
|
799
780
|
return path.join(mount, '.peach-cache', 'expo-native-workspaces')
|
|
800
781
|
}
|
|
801
782
|
|
|
783
|
+
export function preparedExpoWorkspacesDir(app: string): string {
|
|
784
|
+
return nativeWorkspacesDir(findWorkspaceRoot(app))
|
|
785
|
+
}
|
|
786
|
+
|
|
802
787
|
// release producers prepare the already installed app. this preserves the
|
|
803
788
|
// exact dependency tree selected by a replay, including a staged package.
|
|
804
789
|
export async function prepareInstalledExpoWorkspace(app: string, work: string) {
|
|
@@ -1211,8 +1196,7 @@ async function runAdmitted(
|
|
|
1211
1196
|
{
|
|
1212
1197
|
cwd,
|
|
1213
1198
|
env: {
|
|
1214
|
-
...
|
|
1215
|
-
...isolatedGitEnv,
|
|
1199
|
+
...cleanWorkspaceGitEnv(),
|
|
1216
1200
|
EXPO_NO_TELEMETRY: '1',
|
|
1217
1201
|
LANG: 'en_US.UTF-8',
|
|
1218
1202
|
LC_ALL: 'en_US.UTF-8',
|
package/src/expo-swift-host.ts
CHANGED
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
hashExpoWorkspace,
|
|
27
27
|
nativeWorkspaceAvailable,
|
|
28
28
|
prepareExpoNativeWorkspace,
|
|
29
|
+
preparedExpoWorkspacesDir,
|
|
29
30
|
} from './expo-native-workspace'
|
|
30
31
|
import { PEACH_FORKED_SCRIPT_ENV } from './forked-script-contract'
|
|
31
32
|
import { cacheDir } from './home-paths'
|
|
@@ -458,6 +459,16 @@ async function discoveryKey(
|
|
|
458
459
|
readExpoConfigAsync(root),
|
|
459
460
|
preparesWorkspace ? traceStore.exit(() => hashExpoWorkspace(root)) : null,
|
|
460
461
|
])
|
|
462
|
+
// the prepared copy is a pure function of that hash: reading it witnesses nothing.
|
|
463
|
+
if (preparesWorkspace)
|
|
464
|
+
traceStore.exit(() => {
|
|
465
|
+
const prepared = preparedExpoWorkspacesDir(root)
|
|
466
|
+
for (const dir of [
|
|
467
|
+
prepared,
|
|
468
|
+
fs.existsSync(prepared) ? fs.realpathSync(prepared) : prepared,
|
|
469
|
+
])
|
|
470
|
+
if (!ignoredRoots.includes(dir)) ignoredRoots.push(dir)
|
|
471
|
+
})
|
|
461
472
|
return `${fs.realpathSync(root)}\0${installedWorkspace ?? ''}\0${iosTarget ?? ''}\0${moduleRoot ?? ''}\0${prepareNative ? '1' : '0'}\0${JSON.stringify(config)}\0${JSON.stringify(expoConfig)}\0${workspace?.hash ?? ''}`
|
|
462
473
|
}
|
|
463
474
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const GIT_REPOSITORY_ENV_KEYS: readonly string[] = [
|
|
2
|
+
'GIT_DIR',
|
|
3
|
+
'GIT_COMMON_DIR',
|
|
4
|
+
'GIT_WORK_TREE',
|
|
5
|
+
'GIT_INDEX_FILE',
|
|
6
|
+
'GIT_OBJECT_DIRECTORY',
|
|
7
|
+
'GIT_ALTERNATE_OBJECT_DIRECTORIES',
|
|
8
|
+
'GIT_PREFIX',
|
|
9
|
+
'GIT_SHALLOW_FILE',
|
|
10
|
+
'GIT_GRAFT_FILE',
|
|
11
|
+
'GIT_NAMESPACE',
|
|
12
|
+
'GIT_IMPLICIT_WORK_TREE',
|
|
13
|
+
'GIT_CONFIG',
|
|
14
|
+
'GIT_CEILING_DIRECTORIES',
|
|
15
|
+
'GIT_DISCOVERY_ACROSS_FILESYSTEM',
|
|
16
|
+
'GIT_SUPER_PREFIX',
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
export function withoutGitRepositoryEnv(
|
|
20
|
+
source: NodeJS.ProcessEnv = process.env,
|
|
21
|
+
): NodeJS.ProcessEnv {
|
|
22
|
+
const env: NodeJS.ProcessEnv = { ...source }
|
|
23
|
+
for (const key of GIT_REPOSITORY_ENV_KEYS) {
|
|
24
|
+
delete env[key]
|
|
25
|
+
}
|
|
26
|
+
return env
|
|
27
|
+
}
|
|
@@ -34,12 +34,12 @@ export function nonmodularFrameworkLibraries(
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export const NATIVE_STATIC_LIBRARY_RECIPES = [
|
|
37
|
-
// react-native-libsodium
|
|
37
|
+
// react-native-libsodium 1.5.1 through 1.7.0 vendor this minimal apple build of 1.0.21
|
|
38
38
|
{
|
|
39
39
|
name: 'libsodium',
|
|
40
|
-
nativeSha256: '
|
|
41
|
-
upstream: '
|
|
42
|
-
recipe: '
|
|
40
|
+
nativeSha256: 'a7e8af90a9d712ce8a2474f310e21682b690cb57c7ef74ce4b02dbfeeca62aa8',
|
|
41
|
+
upstream: '9e4285c7a419e82dedb0be63a72eea357d6943bc3e28e6735bf600dd4883feaf',
|
|
42
|
+
recipe: '8c913c4ffeeb6443ae8300d3dc1ebd3d784ffa62c64f431986f80523cd90ef58',
|
|
43
43
|
archive: 'libsodium.a',
|
|
44
44
|
},
|
|
45
45
|
{
|
package/src/podspec-sources.ts
CHANGED
|
@@ -1741,6 +1741,18 @@ class Evaluator {
|
|
|
1741
1741
|
}
|
|
1742
1742
|
if (toks[3]?.t === 'op' && toks[3].v === '=') {
|
|
1743
1743
|
const rhs = toks.slice(4)
|
|
1744
|
+
// ruby setters chain: `s.a = s.b = value` assigns value to both
|
|
1745
|
+
if (
|
|
1746
|
+
rhs[0]?.v === toks[0]?.v &&
|
|
1747
|
+
rhs[1]?.v === toks[1]?.v &&
|
|
1748
|
+
rhs[2]?.t === 'id' &&
|
|
1749
|
+
rhs[3]?.t === 'op' &&
|
|
1750
|
+
rhs[3].v === '='
|
|
1751
|
+
) {
|
|
1752
|
+
this.runSpecStatement(scope, spec, rhs, line)
|
|
1753
|
+
this.runSpecStatement(scope, spec, [...toks.slice(0, 4), ...rhs.slice(4)], line)
|
|
1754
|
+
return
|
|
1755
|
+
}
|
|
1744
1756
|
if (name === 'pod_target_xcconfig') {
|
|
1745
1757
|
const versions = rhs.flatMap((tok, index) =>
|
|
1746
1758
|
tok.t === 'str' &&
|
package/src/reap-browser.ts
CHANGED
|
@@ -153,7 +153,8 @@ function processIdentity(pid: number): string | null {
|
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
// only GPU-less Linux hosts that identify themselves may use Playwright's
|
|
156
|
-
// software-only chromium_headless_shell: the remote Linux builder,
|
|
156
|
+
// software-only chromium_headless_shell: the remote Linux builder, a provisioned
|
|
157
|
+
// beast host's shells (CONTRAST_GPU_LESS_HOST), GitHub Actions Linux runners, the
|
|
157
158
|
// cf-factory container, whose image sets CONTRAST_CF_FACTORY_CONTAINER, and a
|
|
158
159
|
// run whose compositor draws in the native linux host
|
|
159
160
|
// (PEACH_NATIVE_COMPOSITOR=1, packages/peach-desktop/node), where chrome draws
|
|
@@ -166,6 +167,7 @@ export function softwareChromeAllowed(
|
|
|
166
167
|
if (runtime.platform !== 'linux') return false
|
|
167
168
|
return (
|
|
168
169
|
runtime.env.CONTRAST_REMOTE_BUILD === 'linux' ||
|
|
170
|
+
runtime.env.CONTRAST_GPU_LESS_HOST === '1' ||
|
|
169
171
|
(runtime.env.GITHUB_ACTIONS === 'true' && runtime.env.RUNNER_OS === 'Linux') ||
|
|
170
172
|
runtime.env.CONTRAST_CF_FACTORY_CONTAINER === '1' ||
|
|
171
173
|
runtime.env.PEACH_NATIVE_COMPOSITOR === '1'
|
package/src/swift-packages.ts
CHANGED
|
@@ -15,6 +15,7 @@ import fs from 'node:fs'
|
|
|
15
15
|
import path from 'node:path'
|
|
16
16
|
import { setTimeout as sleep } from 'node:timers/promises'
|
|
17
17
|
import { promisify } from 'node:util'
|
|
18
|
+
import { withoutGitRepositoryEnv } from './git-repo-env'
|
|
18
19
|
import { cacheDir } from './home-paths'
|
|
19
20
|
import { requireNativeGit } from './native-git'
|
|
20
21
|
import { tryAcquireNumberedLock } from './numbered-lock'
|
|
@@ -343,27 +344,10 @@ async function fetchCheckout(
|
|
|
343
344
|
if (preparedSwiftPin(checkouts, identity, pin.location, pin.revision)) return
|
|
344
345
|
requireNativeGit()
|
|
345
346
|
const key = checkoutKey(dir, pin)
|
|
346
|
-
const gitEnv: NodeJS.ProcessEnv = {
|
|
347
|
-
|
|
348
|
-
'
|
|
349
|
-
'GIT_COMMON_DIR',
|
|
350
|
-
'GIT_WORK_TREE',
|
|
351
|
-
'GIT_INDEX_FILE',
|
|
352
|
-
'GIT_OBJECT_DIRECTORY',
|
|
353
|
-
'GIT_ALTERNATE_OBJECT_DIRECTORIES',
|
|
354
|
-
'GIT_PREFIX',
|
|
355
|
-
'GIT_SHALLOW_FILE',
|
|
356
|
-
'GIT_GRAFT_FILE',
|
|
357
|
-
'GIT_NAMESPACE',
|
|
358
|
-
'GIT_IMPLICIT_WORK_TREE',
|
|
359
|
-
'GIT_CONFIG',
|
|
360
|
-
'GIT_CEILING_DIRECTORIES',
|
|
361
|
-
'GIT_DISCOVERY_ACROSS_FILESYSTEM',
|
|
362
|
-
'GIT_SUPER_PREFIX',
|
|
363
|
-
]) {
|
|
364
|
-
delete gitEnv[name]
|
|
347
|
+
const gitEnv: NodeJS.ProcessEnv = {
|
|
348
|
+
...withoutGitRepositoryEnv(),
|
|
349
|
+
GIT_TERMINAL_PROMPT: '0',
|
|
365
350
|
}
|
|
366
|
-
gitEnv.GIT_TERMINAL_PROMPT = '0'
|
|
367
351
|
const git: Git = async (cwd, ...args) =>
|
|
368
352
|
(
|
|
369
353
|
await execFileAsync('git', ['-C', cwd, ...args], {
|
package/src/xcode-project.ts
CHANGED
|
@@ -1311,8 +1311,6 @@ function targetMembers(
|
|
|
1311
1311
|
if (interfaceOutputs.has(output))
|
|
1312
1312
|
throw new Error(`${targetName}: duplicate Interface Builder output ${output}`)
|
|
1313
1313
|
interfaceOutputs.add(output)
|
|
1314
|
-
fs.rmSync(output, { recursive: true, force: true })
|
|
1315
|
-
fs.mkdirSync(path.dirname(output), { recursive: true })
|
|
1316
1314
|
const args = [
|
|
1317
1315
|
'ibtool',
|
|
1318
1316
|
'--compile',
|
|
@@ -1328,12 +1326,30 @@ function targetMembers(
|
|
|
1328
1326
|
.map((value) => value.trim())
|
|
1329
1327
|
if (families.includes('1')) args.push('--target-device', 'iphone')
|
|
1330
1328
|
if (families.includes('2')) args.push('--target-device', 'ipad')
|
|
1331
|
-
//
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1329
|
+
// ibtool takes seconds per file and every read of the project needs the
|
|
1330
|
+
// output, so a compile whose inputs are unchanged is kept.
|
|
1331
|
+
const stamp = `${output}.peach-inputs`
|
|
1332
|
+
const inputs = JSON.stringify({
|
|
1333
|
+
args,
|
|
1334
|
+
developer: settings('DEVELOPER_DIR'),
|
|
1335
|
+
source: createHash('sha256').update(fs.readFileSync(file)).digest('hex'),
|
|
1336
1336
|
})
|
|
1337
|
+
if (
|
|
1338
|
+
!fs.existsSync(output) ||
|
|
1339
|
+
!fs.existsSync(stamp) ||
|
|
1340
|
+
fs.readFileSync(stamp, 'utf8') !== inputs
|
|
1341
|
+
) {
|
|
1342
|
+
fs.rmSync(output, { recursive: true, force: true })
|
|
1343
|
+
fs.rmSync(stamp, { force: true })
|
|
1344
|
+
fs.mkdirSync(path.dirname(output), { recursive: true })
|
|
1345
|
+
// runner-toolchain-platform: darwin
|
|
1346
|
+
execFileSync('xcrun', args, {
|
|
1347
|
+
cwd: project.projectDir,
|
|
1348
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
1349
|
+
timeout: runScriptTimeoutMs,
|
|
1350
|
+
})
|
|
1351
|
+
fs.writeFileSync(stamp, inputs)
|
|
1352
|
+
}
|
|
1337
1353
|
projectInputs.add(file)
|
|
1338
1354
|
resources.delete(file)
|
|
1339
1355
|
for (const compiled of isDirectory(output) ? walkFiles(output) : [output])
|