peachsim 0.1.1814 → 0.1.1815
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/control.ts +5 -2
- package/cli/commands/inspect.ts +43 -385
- package/cli/commands/package.ts +6 -1
- package/cli/commands/runtime.ts +2 -2
- package/cli/outbound-endpoints.ts +1 -1
- 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 +453 -331
- 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 +89 -14
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +26 -18
- 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 +464 -336
- package/dist-lib/host/fetch-proxy-handler.cjs +14 -12
- 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 +15 -14
- 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 +15 -14
- package/dist-lib/native-app-identity-project.cjs +4 -3
- package/dist-lib/native-app-identity-project.mjs +4 -3
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +24 -24
- package/dist-lib/public-origins-lib.json +66 -63
- 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 +503 -342
- package/dist-lib/swift-compile.cjs +4 -3
- package/dist-lib/swift-compile.mjs +4 -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 +26 -18
- package/dist-lib/vite.cjs +14 -12
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/nativeReplayContract.d.ts +2 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/src/cli-runtime.ts +32 -4
- package/src/expo-swift-ready.ts +16 -2
- package/src/installed-native-libraries.ts +79 -18
- package/src/nitro-adapter.lock.json +240 -240
- package/src/nitro-compile.ts +6 -3
- package/src/nitro-dependencies.ts +8 -2
- package/src/nitro-source.ts +34 -3
- package/src/nitro-superset.lock.json +14 -14
- package/src/nitroContract.ts +26 -3
- package/src/runtime-delivery.ts +2 -2
- package/src/swift-compile.ts +2 -1
- package/src/swift-distribution.lock.json +9 -8
- package/src/swift-installed-targets.ts +13 -0
- package/src/swift-standins.ts +8 -2
- package/src/turbo-bundle.ts +20 -1
- package/src/turbo-compile.ts +6 -12
- package/src/turbo-runtime.lock.json +19 -19
- package/src/turbo-source.ts +16 -0
package/src/nitroContract.ts
CHANGED
|
@@ -47,7 +47,10 @@ export type NitroCompiledModule = CompiledModule<
|
|
|
47
47
|
>
|
|
48
48
|
/** an app's compiled C++ TurboModule providers. the module names they
|
|
49
49
|
* register are read from the executable, as React Native reads its map. */
|
|
50
|
-
export type TurboCompiledModule = CompiledModule<CompiledPackage>
|
|
50
|
+
export type TurboCompiledModule = CompiledModule<CompiledPackage> & {
|
|
51
|
+
/** installed providers left out because they link a prebuilt binary, with why. */
|
|
52
|
+
unavailable?: { name: string; diagnostic: string }[]
|
|
53
|
+
}
|
|
51
54
|
|
|
52
55
|
function readCompiledPackage(value: unknown): CompiledPackage | null {
|
|
53
56
|
if (typeof value !== 'object' || value === null) return null
|
|
@@ -143,8 +146,28 @@ function readCompiledMetadata<Package extends CompiledPackage>(
|
|
|
143
146
|
|
|
144
147
|
export const readNitroMetadata = (value: unknown): NitroCompiledModule | null =>
|
|
145
148
|
readCompiledMetadata('Nitro', value, readNitroPackage, (entry) => entry.hybridObjects)
|
|
146
|
-
export
|
|
147
|
-
|
|
149
|
+
export function readTurboMetadata(value: unknown): TurboCompiledModule | null {
|
|
150
|
+
const metadata = readCompiledMetadata(
|
|
151
|
+
'TurboModule',
|
|
152
|
+
value,
|
|
153
|
+
readCompiledPackage,
|
|
154
|
+
() => [],
|
|
155
|
+
)
|
|
156
|
+
if (!metadata) return null
|
|
157
|
+
const listed = Reflect.get(Object(value), 'unavailable')
|
|
158
|
+
if (listed === undefined) return metadata
|
|
159
|
+
if (!Array.isArray(listed)) throw new Error('invalid TurboModule compilation metadata')
|
|
160
|
+
const unavailable = listed.map((entry) => {
|
|
161
|
+
if (
|
|
162
|
+
!isRecord(entry) ||
|
|
163
|
+
typeof entry.name !== 'string' ||
|
|
164
|
+
typeof entry.diagnostic !== 'string'
|
|
165
|
+
)
|
|
166
|
+
throw new Error('invalid TurboModule compilation metadata')
|
|
167
|
+
return { name: entry.name, diagnostic: entry.diagnostic }
|
|
168
|
+
})
|
|
169
|
+
return { ...metadata, unavailable }
|
|
170
|
+
}
|
|
148
171
|
|
|
149
172
|
export function readNitroFooter(source: string): NitroCompiledModule | null {
|
|
150
173
|
return readNitroMetadata(readBundleMetadataFooter(source, 'nitro'))
|
package/src/runtime-delivery.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
// out as a bare require.
|
|
12
12
|
|
|
13
13
|
import { createRuntimeDelivery, type RuntimeProduct } from '@contrast/runtime-delivery'
|
|
14
|
-
import {
|
|
14
|
+
import { ensureCliCompanion } from './cli-runtime'
|
|
15
15
|
import {
|
|
16
16
|
cacheDir,
|
|
17
17
|
configFilePath,
|
|
@@ -38,7 +38,7 @@ export const RNX_RUNTIME_PRODUCT: RuntimeProduct = {
|
|
|
38
38
|
// engine-tenant/ beneath it. index.html is what the daemon and the
|
|
39
39
|
// vite/metro plugins serve, so its absence means the tarball is not one.
|
|
40
40
|
installedMarker: 'index.html',
|
|
41
|
-
verifyInstall:
|
|
41
|
+
verifyInstall: ensureCliCompanion,
|
|
42
42
|
env: {
|
|
43
43
|
cdnOrigin: 'PEACH_CDN_ORIGIN',
|
|
44
44
|
channel: 'PEACH_RUNTIME_CHANNEL',
|
package/src/swift-compile.ts
CHANGED
|
@@ -796,7 +796,8 @@ const OPTIONAL_FRAMEWORK_DEPENDENCIES: Record<string, string[]> = {
|
|
|
796
796
|
TOCropViewController: [],
|
|
797
797
|
RiveRuntime: ['MetalKit'],
|
|
798
798
|
MetalKit: ['ModelIO'],
|
|
799
|
-
|
|
799
|
+
DatadogInternal: [],
|
|
800
|
+
DatadogCore: ['DatadogInternal'],
|
|
800
801
|
DatadogLogs: ['DatadogCore'],
|
|
801
802
|
DatadogRUM: ['DatadogCore'],
|
|
802
803
|
DatadogTrace: ['DatadogCore'],
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id": "
|
|
2
|
+
"id": "92d08dea86eafc17",
|
|
3
3
|
"release": "swift-6.4.0-RELEASE-custom-a560ff35bf882b5c",
|
|
4
4
|
"wasmSdkId": "swift-6.4.0-RELEASE_wasm-peach-5d385b68",
|
|
5
5
|
"wasmSdkUrl": "https://r2.sootsim.com/swift-wasm-sdk/swift-6.4.0-RELEASE_wasm-peach-5d385b68.artifactbundle.tar.gz",
|
|
6
6
|
"wasmSdkChecksum": "d91882af99821a296c3db4459896b46ceaef37e9a30caad14e5f24cf6b964ae9",
|
|
7
|
-
"source": "
|
|
7
|
+
"source": "e5fb86f09228f6a9802a802657fea000ed6a3118",
|
|
8
8
|
"targets": [
|
|
9
9
|
"ImagePlayground",
|
|
10
10
|
"QuickLookThumbnailing",
|
|
@@ -138,6 +138,7 @@
|
|
|
138
138
|
"ModelIOEnums",
|
|
139
139
|
"ModelIO",
|
|
140
140
|
"MetalKit",
|
|
141
|
+
"DatadogInternal",
|
|
141
142
|
"DatadogCore",
|
|
142
143
|
"DatadogLogs",
|
|
143
144
|
"DatadogRUM",
|
|
@@ -230,16 +231,16 @@
|
|
|
230
231
|
},
|
|
231
232
|
"hosts": {
|
|
232
233
|
"darwin-arm64": {
|
|
233
|
-
"sha256": "
|
|
234
|
-
"size":
|
|
234
|
+
"sha256": "b97c1ef24c74d88fe5b03240ac21017959884861a7ab3d298bc4b97e74e1bd02",
|
|
235
|
+
"size": 98848007
|
|
235
236
|
},
|
|
236
237
|
"linux-x64": {
|
|
237
|
-
"sha256": "
|
|
238
|
-
"size":
|
|
238
|
+
"sha256": "2beb12ad379dc2e618029a69c36b92d55c8f1b43b78e9600d97c13f17a1dab8f",
|
|
239
|
+
"size": 101566420
|
|
239
240
|
},
|
|
240
241
|
"linux-arm64": {
|
|
241
|
-
"sha256": "
|
|
242
|
-
"size":
|
|
242
|
+
"sha256": "5ea72a514d3f67aaf477babb848c14177b57b6cbc1671ea075075586a4c38d6a",
|
|
243
|
+
"size": 101056003
|
|
243
244
|
}
|
|
244
245
|
}
|
|
245
246
|
}
|
|
@@ -137,6 +137,19 @@ export function applyInstalledSwiftTargets(
|
|
|
137
137
|
const module = moduleMapName(snapshot.input.files[file] ?? '')
|
|
138
138
|
return !collection.targets.some((target) => target.name === module)
|
|
139
139
|
})
|
|
140
|
+
// a header the installed search paths already supply, and its module covers,
|
|
141
|
+
// must not also reach the target as a second textual copy
|
|
142
|
+
for (const file of Object.keys(collection.files)) {
|
|
143
|
+
const prefix = `${generated.path}/include/`
|
|
144
|
+
if (!file.startsWith(prefix)) continue
|
|
145
|
+
const include = file.slice(prefix.length)
|
|
146
|
+
if (
|
|
147
|
+
native.headerSearchPaths.some(
|
|
148
|
+
(directory) => snapshot.input.files[`${directory}/${include}`] !== undefined,
|
|
149
|
+
)
|
|
150
|
+
)
|
|
151
|
+
delete collection.files[file]
|
|
152
|
+
}
|
|
140
153
|
const flags = originalModuleFlags(native.flags)
|
|
141
154
|
generated.clangSettings = [
|
|
142
155
|
{ tool: 'c', flags: [...flags, ...ndebug, ...search] },
|
package/src/swift-standins.ts
CHANGED
|
@@ -305,12 +305,18 @@ function stageDeclaredFramework(
|
|
|
305
305
|
): void {
|
|
306
306
|
const name = path.basename(framework, '.framework')
|
|
307
307
|
const own = `${name}-Swift.h`
|
|
308
|
-
const
|
|
308
|
+
const declaration = fs.readFileSync(
|
|
309
309
|
path.join(framework, 'Modules/module.modulemap'),
|
|
310
310
|
'utf8',
|
|
311
311
|
)
|
|
312
|
+
// expo's use_frameworks setup removes React's framework module from the pod's
|
|
313
|
+
// module map, so the module is declared again from the umbrella the framework ships.
|
|
314
|
+
const modulemap = declaration.includes(`framework module ${name}`)
|
|
315
|
+
? declaration
|
|
316
|
+
: `framework module ${name} {\n umbrella header "${name}-umbrella.h"\n export *\n}\n`
|
|
312
317
|
const umbrella = /umbrella header "([^"]+)"/.exec(modulemap)?.[1]
|
|
313
|
-
if (!umbrella
|
|
318
|
+
if (!umbrella || !fs.existsSync(path.join(framework, 'Headers', umbrella)))
|
|
319
|
+
throw new Error(`${name} module map names no umbrella header`)
|
|
314
320
|
const headers = new Map(
|
|
315
321
|
fs
|
|
316
322
|
.readdirSync(path.join(framework, 'Headers'))
|
package/src/turbo-bundle.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createRequire } from 'node:module'
|
|
2
2
|
import path from 'node:path'
|
|
3
3
|
import { prepareNativeAppRoot } from './expo-native-workspace'
|
|
4
|
+
import { installedNativeLibraries } from './installed-native-libraries'
|
|
4
5
|
import {
|
|
5
6
|
compiledModuleAssets,
|
|
6
7
|
compiledModuleRequestHandler,
|
|
@@ -10,6 +11,7 @@ import { swiftDistributionRoot } from './swift-distribution'
|
|
|
10
11
|
import { icuUrl, type SwiftArtifact } from './swift-host'
|
|
11
12
|
import { compileTurboModule } from './turbo-compile'
|
|
12
13
|
import { discoverTurboProviders } from './turbo-source'
|
|
14
|
+
import { installedXcodeWorkspace } from './xcode-project'
|
|
13
15
|
import type { TurboCompiledModule } from './nitroContract'
|
|
14
16
|
|
|
15
17
|
export const TURBO_ROUTE = '/__peach/turbo'
|
|
@@ -38,6 +40,21 @@ export async function compileTurboApp(
|
|
|
38
40
|
// the app's own committed ios directory has no installed pods: the compile
|
|
39
41
|
// reads the prepared workspace, as the Nitro compile does
|
|
40
42
|
const projectRoot = await prepareNativeAppRoot(appRoot)
|
|
43
|
+
const installed = installedXcodeWorkspace(projectRoot)
|
|
44
|
+
? installedNativeLibraries(providers, projectRoot, module, iosTarget)
|
|
45
|
+
: null
|
|
46
|
+
// a provider that links a prebuilt binary stays out of the executable, so
|
|
47
|
+
// the app finds its modules absent where it calls them, as on a device
|
|
48
|
+
// that never linked the pod.
|
|
49
|
+
const unavailable = [...(installed?.unavailable ?? [])].map(([name, diagnostic]) => ({
|
|
50
|
+
name,
|
|
51
|
+
diagnostic,
|
|
52
|
+
}))
|
|
53
|
+
const compiled = providers.filter(({ name }) => !installed?.unavailable.has(name))
|
|
54
|
+
if (compiled.length === 0) {
|
|
55
|
+
for (const { diagnostic } of unavailable) console.warn(`[peach] ${diagnostic}`)
|
|
56
|
+
return null
|
|
57
|
+
}
|
|
41
58
|
const { artifact, collection } = await compileTurboModule({
|
|
42
59
|
appRoot,
|
|
43
60
|
reactNativeRoot: path.dirname(
|
|
@@ -45,10 +62,11 @@ export async function compileTurboApp(
|
|
|
45
62
|
'react-native/package.json',
|
|
46
63
|
),
|
|
47
64
|
),
|
|
48
|
-
providers,
|
|
65
|
+
providers: compiled,
|
|
49
66
|
moduleRoot: module,
|
|
50
67
|
projectRoot,
|
|
51
68
|
iosTarget,
|
|
69
|
+
installedPods: installed?.pods,
|
|
52
70
|
})
|
|
53
71
|
return {
|
|
54
72
|
artifact,
|
|
@@ -59,6 +77,7 @@ export async function compileTurboApp(
|
|
|
59
77
|
hash: artifact.hash,
|
|
60
78
|
icuUrl: icuUrl(origin, artifact),
|
|
61
79
|
bundleFiles: artifact.package.bundleFiles.files,
|
|
80
|
+
...(unavailable.length > 0 ? { unavailable } : {}),
|
|
62
81
|
},
|
|
63
82
|
}
|
|
64
83
|
}
|
package/src/turbo-compile.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { createHash } from 'node:crypto'
|
|
|
2
2
|
import fs from 'node:fs'
|
|
3
3
|
import os from 'node:os'
|
|
4
4
|
import path from 'node:path'
|
|
5
|
-
import { installedNativeLibraries } from './installed-native-libraries'
|
|
6
5
|
import { readIosAppTarget } from './native-app-identity-project'
|
|
7
6
|
import {
|
|
8
7
|
committedAdapterLocks,
|
|
@@ -36,6 +35,7 @@ import {
|
|
|
36
35
|
collectTurboSources,
|
|
37
36
|
prepareTurboSourceDependencies,
|
|
38
37
|
TURBO_CORE_TARGET,
|
|
38
|
+
type TurboInstalledPod,
|
|
39
39
|
type TurboProvider,
|
|
40
40
|
type TurboSourceCollection,
|
|
41
41
|
} from './turbo-source'
|
|
@@ -171,6 +171,8 @@ export async function compileTurboModule(options: {
|
|
|
171
171
|
moduleRoot: string
|
|
172
172
|
projectRoot: string
|
|
173
173
|
iosTarget?: string
|
|
174
|
+
/** the installed workspace's pods; without them the podspecs' literal source membership applies. */
|
|
175
|
+
installedPods?: ReadonlyMap<string, TurboInstalledPod>
|
|
174
176
|
}): Promise<{ artifact: SwiftArtifact; collection: TurboSourceCollection }> {
|
|
175
177
|
await prepareTurboSourceDependencies(options.reactNativeRoot)
|
|
176
178
|
const key = createHash('sha256')
|
|
@@ -186,15 +188,7 @@ export async function compileTurboModule(options: {
|
|
|
186
188
|
reactNativeRoot: options.reactNativeRoot,
|
|
187
189
|
providers: options.providers,
|
|
188
190
|
codegenDir: path.join(scratch, 'codegen'),
|
|
189
|
-
|
|
190
|
-
installedPods: installedXcodeWorkspace(options.projectRoot)
|
|
191
|
-
? installedNativeLibraries(
|
|
192
|
-
options.providers,
|
|
193
|
-
options.projectRoot,
|
|
194
|
-
options.moduleRoot,
|
|
195
|
-
options.iosTarget,
|
|
196
|
-
)
|
|
197
|
-
: undefined,
|
|
191
|
+
installedPods: options.installedPods,
|
|
198
192
|
})
|
|
199
193
|
const swiftTargets = collection.targets.filter((target) =>
|
|
200
194
|
Object.keys(collection.files).some(
|
|
@@ -211,7 +205,7 @@ export async function compileTurboModule(options: {
|
|
|
211
205
|
options.projectRoot,
|
|
212
206
|
`Swift TurboModule providers (${workspaceSwift.map(({ name }) => name).join(', ')})`,
|
|
213
207
|
)
|
|
214
|
-
await prepareXcodeSwiftPackages(workspace)
|
|
208
|
+
await prepareXcodeSwiftPackages(workspace, options.iosTarget)
|
|
215
209
|
await withXcodeProject(
|
|
216
210
|
workspace,
|
|
217
211
|
{
|
|
@@ -298,7 +292,7 @@ export async function compileTurboModule(options: {
|
|
|
298
292
|
options.projectRoot,
|
|
299
293
|
`the modules no collected source provides (${missing.join(', ')})`,
|
|
300
294
|
)
|
|
301
|
-
await prepareXcodeSwiftPackages(workspace)
|
|
295
|
+
await prepareXcodeSwiftPackages(workspace, options.iosTarget)
|
|
302
296
|
dependencies = await withXcodeProject(
|
|
303
297
|
workspace,
|
|
304
298
|
{
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"checksum": "d91882af99821a296c3db4459896b46ceaef37e9a30caad14e5f24cf6b964ae9"
|
|
13
13
|
},
|
|
14
14
|
"framework": {
|
|
15
|
-
"distribution": "
|
|
15
|
+
"distribution": "92d08dea86eafc17",
|
|
16
16
|
"wireAbi": "246b8412514b644113e6a26252c8ebd6de49ab4156ac5f5c98bb9e4c2ff2568b"
|
|
17
17
|
},
|
|
18
18
|
"archives": [
|
|
@@ -20,64 +20,64 @@
|
|
|
20
20
|
"headers": {
|
|
21
21
|
"reactNativeJsi": "0f8c2defbca69a27a848a81ae72363073bf9602fd316e57a75811be1a0528358"
|
|
22
22
|
},
|
|
23
|
-
"sha256": "
|
|
24
|
-
"size":
|
|
23
|
+
"sha256": "1c025e16714e307807927e6dc402e5969380379348b81239ae0e51893579bf86",
|
|
24
|
+
"size": 25410
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"headers": {
|
|
28
28
|
"reactNativeJsi": "21a624ea24fd17d56bf26832d496fc1177067f89640414c20e6486c7984dfb0a"
|
|
29
29
|
},
|
|
30
|
-
"sha256": "
|
|
31
|
-
"size":
|
|
30
|
+
"sha256": "5f3ff09bd19438a4241b04886b8faed29653c9a0496f71456fed04773024743d",
|
|
31
|
+
"size": 26143
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"headers": {
|
|
35
35
|
"reactNativeJsi": "324aefd8591d9ce688bce7589c4c2b516cd33ecb95d35c47239a87a8fcf6a8da"
|
|
36
36
|
},
|
|
37
|
-
"sha256": "
|
|
38
|
-
"size":
|
|
37
|
+
"sha256": "f338727cb59425568a5431cb46fee1929a0eeb7e74e137784c3a6b4032e3b8f7",
|
|
38
|
+
"size": 25399
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"headers": {
|
|
42
42
|
"reactNativeJsi": "33596664ee7d7a6623f0796a6feb429543316c3a41b211150acda6e1d835286c"
|
|
43
43
|
},
|
|
44
|
-
"sha256": "
|
|
45
|
-
"size":
|
|
44
|
+
"sha256": "aa26e40d43b57677bae9770d4fae08005974d97727ede149a6075ec1e9f49330",
|
|
45
|
+
"size": 25175
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"headers": {
|
|
49
49
|
"reactNativeJsi": "66b2cd5a38511195207f6c8a76aba735f9b9cc66a52a0d00780ffe5d331623f7"
|
|
50
50
|
},
|
|
51
|
-
"sha256": "
|
|
52
|
-
"size":
|
|
51
|
+
"sha256": "b16b3f3357aa86ad40c207bbb81d4a4ce21152f7c9dfdc092e4d070895dd1868",
|
|
52
|
+
"size": 25410
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"headers": {
|
|
56
56
|
"reactNativeJsi": "96db4e758dd53e9320cef7cad485e00aa06e7a982cefd920f17007de8a5bd9f9"
|
|
57
57
|
},
|
|
58
|
-
"sha256": "
|
|
59
|
-
"size":
|
|
58
|
+
"sha256": "38ea876c785d0febcf2428d98d539e7394c0fd25b930843750a8a24352973736",
|
|
59
|
+
"size": 26143
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
"headers": {
|
|
63
63
|
"reactNativeJsi": "aeab590ddd1218df963462242d3954ce467b0fa88f70e91429e4ffc74d230893"
|
|
64
64
|
},
|
|
65
|
-
"sha256": "
|
|
66
|
-
"size":
|
|
65
|
+
"sha256": "a5874458a8784cfa5aaea1f4e2ca3b5a5de1c1f0192daae419a4b1b0d4d921f4",
|
|
66
|
+
"size": 26144
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
"headers": {
|
|
70
70
|
"reactNativeJsi": "b5fb260522384dd7ab07d740cdc534b529922446fcec798341c7817d9eaa49f4"
|
|
71
71
|
},
|
|
72
|
-
"sha256": "
|
|
73
|
-
"size":
|
|
72
|
+
"sha256": "d2032854a6a40112f989cc819eb08ea810872bf8f0493da984ac73baffb68381",
|
|
73
|
+
"size": 25275
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"headers": {
|
|
77
77
|
"reactNativeJsi": "c6b391a1e870ccf7cdd534be63582862840f8245b99ebd253317deece1e6ffd5"
|
|
78
78
|
},
|
|
79
|
-
"sha256": "
|
|
80
|
-
"size":
|
|
79
|
+
"sha256": "6c0ef47aa726477eeb9fd3968287b90aca798f47777eaaccb526ca41dce1430e",
|
|
80
|
+
"size": 26149
|
|
81
81
|
}
|
|
82
82
|
]
|
|
83
83
|
}
|
package/src/turbo-source.ts
CHANGED
|
@@ -1186,6 +1186,7 @@ export async function collectTurboSources(options: {
|
|
|
1186
1186
|
// an include a file names, resolved as clang would against the pod's own
|
|
1187
1187
|
// directory, then the search paths CocoaPods gives a module pod. unresolved
|
|
1188
1188
|
// names are the SDK's own headers.
|
|
1189
|
+
const podFileLists = new Map<string, Set<string>>()
|
|
1189
1190
|
const resolve = (from: Scan, include: string, quoted: boolean) => {
|
|
1190
1191
|
if (quoted) {
|
|
1191
1192
|
const relative = path.posix.normalize(
|
|
@@ -1261,6 +1262,21 @@ export async function collectTurboSources(options: {
|
|
|
1261
1262
|
)
|
|
1262
1263
|
return
|
|
1263
1264
|
}
|
|
1265
|
+
if (quoted && from.root) {
|
|
1266
|
+
// a pod's private headers share one flattened header map, so a quoted
|
|
1267
|
+
// include reaches a sibling in another directory of the same pod
|
|
1268
|
+
let files = podFileLists.get(from.root)
|
|
1269
|
+
if (!files) {
|
|
1270
|
+
files = new Set()
|
|
1271
|
+
walkFiles(from.root, '', files)
|
|
1272
|
+
podFileLists.set(from.root, files)
|
|
1273
|
+
}
|
|
1274
|
+
const found = [...files].find((file) => file.endsWith(`/${include}`))
|
|
1275
|
+
if (found) {
|
|
1276
|
+
alias(own, original(from.targetName, from.label, from.root, found, false))
|
|
1277
|
+
return
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1264
1280
|
if (codegen && HEADER.test(include)) {
|
|
1265
1281
|
const generated = codegenSpecRoot(codegen)
|
|
1266
1282
|
const relative = path.posix.normalize(include.replace(/^ReactCodegen\//, ''))
|