peachsim 0.1.2103 → 0.1.2105
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/detect.ts +26 -5
- package/cli/commands/shell-url.ts +41 -4
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +37 -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 +17 -13
- 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 +36 -33
- package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
- 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 +6 -5
- 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 +6 -5
- package/dist-lib/native-app-identity-project.cjs +5 -3
- package/dist-lib/native-app-identity-project.mjs +5 -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 +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 +92 -40
- package/dist-lib/swift-compile.cjs +9 -7
- package/dist-lib/swift-compile.mjs +6 -5
- 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 +22 -18
- package/dist-lib/vite.cjs +4 -4
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +3 -0
- package/dist-types/packages/peach-engine/src/render-worker/tree-sync-port.d.ts +1 -1
- package/package.json +1 -1
- package/skills/peach-setup/SKILL.md +6 -0
- package/skills/peach-setup/references/native-config.md +7 -0
- package/src/expo-swift-host.ts +8 -4
- package/src/nitro-adapter.lock.json +233 -233
- package/src/nitro-superset.lock.json +4 -4
- package/src/swift-distribution.lock.json +8 -8
- package/src/swift-root-lock.ts +7 -6
- package/src/turbo-bundle.ts +2 -10
- package/src/turbo-runtime.lock.json +19 -19
- package/src/turbo-source.ts +22 -15
- package/src/xcode-project.ts +3 -0
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"checksum": "8a692c7dca8da69d31ea86774a91ea1d01b84ed1e80369481eb14a882ebae718"
|
|
13
13
|
},
|
|
14
14
|
"framework": {
|
|
15
|
-
"distribution": "
|
|
15
|
+
"distribution": "bb5759d4e7c5aa28",
|
|
16
16
|
"wireAbi": "246b8412514b644113e6a26252c8ebd6de49ab4156ac5f5c98bb9e4c2ff2568b"
|
|
17
17
|
},
|
|
18
18
|
"archives": [
|
|
@@ -20,70 +20,70 @@
|
|
|
20
20
|
"headers": {
|
|
21
21
|
"reactNativeJsi": "0f8c2defbca69a27a848a81ae72363073bf9602fd316e57a75811be1a0528358"
|
|
22
22
|
},
|
|
23
|
-
"sha256": "
|
|
24
|
-
"size":
|
|
23
|
+
"sha256": "d0162e9ace7f45edecf4b3cd84f7b987852c04ad24b23fe69653bbbbf37d701b",
|
|
24
|
+
"size": 25395
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"headers": {
|
|
28
28
|
"reactNativeJsi": "21a624ea24fd17d56bf26832d496fc1177067f89640414c20e6486c7984dfb0a"
|
|
29
29
|
},
|
|
30
|
-
"sha256": "
|
|
31
|
-
"size":
|
|
30
|
+
"sha256": "26bf241b2299e7be6b243cfd7e289e46775a524fa0eca148013625238b1e3fdc",
|
|
31
|
+
"size": 26137
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
34
|
"headers": {
|
|
35
35
|
"reactNativeJsi": "324aefd8591d9ce688bce7589c4c2b516cd33ecb95d35c47239a87a8fcf6a8da"
|
|
36
36
|
},
|
|
37
|
-
"sha256": "
|
|
38
|
-
"size":
|
|
37
|
+
"sha256": "fb6fa0d39d16911df6c2a7e346cb7f71e88a3d73248cc1facbc3e7ec93333426",
|
|
38
|
+
"size": 25395
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"headers": {
|
|
42
42
|
"reactNativeJsi": "33596664ee7d7a6623f0796a6feb429543316c3a41b211150acda6e1d835286c"
|
|
43
43
|
},
|
|
44
|
-
"sha256": "
|
|
45
|
-
"size":
|
|
44
|
+
"sha256": "188ffe80bafc2adbc9e962d38d9caa81c8a99bc0986a8d279ff07fe53c38b547",
|
|
45
|
+
"size": 25164
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"headers": {
|
|
49
49
|
"reactNativeJsi": "66b2cd5a38511195207f6c8a76aba735f9b9cc66a52a0d00780ffe5d331623f7"
|
|
50
50
|
},
|
|
51
|
-
"sha256": "
|
|
52
|
-
"size":
|
|
51
|
+
"sha256": "3a319ee34739edfdf731e314f29bc486b42d5988115dad2e802c3512927f08c6",
|
|
52
|
+
"size": 25398
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"headers": {
|
|
56
56
|
"reactNativeJsi": "96db4e758dd53e9320cef7cad485e00aa06e7a982cefd920f17007de8a5bd9f9"
|
|
57
57
|
},
|
|
58
|
-
"sha256": "
|
|
59
|
-
"size":
|
|
58
|
+
"sha256": "30439890cc89fe9853547d63e1773c9ce41cdfabfbff21121d63337a4c36575b",
|
|
59
|
+
"size": 26138
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
"headers": {
|
|
63
63
|
"reactNativeJsi": "aeab590ddd1218df963462242d3954ce467b0fa88f70e91429e4ffc74d230893"
|
|
64
64
|
},
|
|
65
|
-
"sha256": "
|
|
66
|
-
"size":
|
|
65
|
+
"sha256": "a09da78f4dcacf439dcf87c790681737940161aa920785b8d18709f0d542c4c8",
|
|
66
|
+
"size": 26137
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
"headers": {
|
|
70
70
|
"reactNativeJsi": "b5fb260522384dd7ab07d740cdc534b529922446fcec798341c7817d9eaa49f4"
|
|
71
71
|
},
|
|
72
|
-
"sha256": "
|
|
72
|
+
"sha256": "d72c56066e1468b0f1689c4e5d0f02c2d8b54e89cd8bf5b194fc75aaff58abac",
|
|
73
73
|
"size": 25264
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
"headers": {
|
|
77
77
|
"reactNativeJsi": "c6b391a1e870ccf7cdd534be63582862840f8245b99ebd253317deece1e6ffd5"
|
|
78
78
|
},
|
|
79
|
-
"sha256": "
|
|
80
|
-
"size":
|
|
79
|
+
"sha256": "de81aef8940e05d6b5b96c537c488ede615f6ed99d8964f699e11e9d182f0192",
|
|
80
|
+
"size": 26141
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"headers": {
|
|
84
84
|
"reactNativeJsi": "c8270f1315745ecc204c4209a4f50f58ff6f14b4a385ad6820a69800270b53c6"
|
|
85
85
|
},
|
|
86
|
-
"sha256": "
|
|
86
|
+
"sha256": "09e9e4d1479b981bf66de12c9dc51c82fa88b0611acbc6e08e3076876367a54a",
|
|
87
87
|
"size": 25103
|
|
88
88
|
}
|
|
89
89
|
]
|
package/src/turbo-source.ts
CHANGED
|
@@ -952,15 +952,8 @@ function registers(root: string, files: Iterable<string>, objc = true): boolean
|
|
|
952
952
|
return false
|
|
953
953
|
}
|
|
954
954
|
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
appRoot: string,
|
|
958
|
-
projectRoot?: string,
|
|
959
|
-
iosTarget?: string,
|
|
960
|
-
answered: ReadonlySet<string> = new Set(),
|
|
961
|
-
): Promise<TurboProvider[]> {
|
|
962
|
-
const providers: TurboProvider[] = []
|
|
963
|
-
const candidates: { provider: TurboProvider; fabric: boolean }[] = []
|
|
955
|
+
export async function turboProviderCandidates(appRoot: string) {
|
|
956
|
+
const candidates: { provider: TurboProvider; fabric: boolean; expo: boolean }[] = []
|
|
964
957
|
const autolinked = await iosAutolinkedDependencies(appRoot)
|
|
965
958
|
// the React Native autolinker leaves out Expo modules, whose Objective-C
|
|
966
959
|
// can still register with React Native
|
|
@@ -973,8 +966,24 @@ export async function discoverTurboProviders(
|
|
|
973
966
|
// a pod can register Nitro objects and Fabric components independently.
|
|
974
967
|
const fabric = fabricComponents(root)
|
|
975
968
|
if (!podspecPath) continue
|
|
976
|
-
candidates.push({
|
|
969
|
+
candidates.push({
|
|
970
|
+
provider: { name, root, podspecPath },
|
|
971
|
+
fabric,
|
|
972
|
+
expo: expoPods.some((pod) => pod.root === root),
|
|
973
|
+
})
|
|
977
974
|
}
|
|
975
|
+
return candidates
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/** autolinked iOS pods that provide modules or original Fabric components. */
|
|
979
|
+
export async function discoverTurboProviders(
|
|
980
|
+
appRoot: string,
|
|
981
|
+
projectRoot?: string,
|
|
982
|
+
iosTarget?: string,
|
|
983
|
+
answered: ReadonlySet<string> = new Set(),
|
|
984
|
+
): Promise<TurboProvider[]> {
|
|
985
|
+
const providers: TurboProvider[] = []
|
|
986
|
+
const candidates = await turboProviderCandidates(appRoot)
|
|
978
987
|
const installed =
|
|
979
988
|
projectRoot && installedXcodeWorkspace(projectRoot)
|
|
980
989
|
? installedNativeSources(
|
|
@@ -983,7 +992,7 @@ export async function discoverTurboProviders(
|
|
|
983
992
|
iosTarget,
|
|
984
993
|
)
|
|
985
994
|
: null
|
|
986
|
-
for (const { provider, fabric } of candidates) {
|
|
995
|
+
for (const { provider, fabric, expo } of candidates) {
|
|
987
996
|
const pod = readPod(provider, appRoot)
|
|
988
997
|
const sources = installed
|
|
989
998
|
? installed.get(provider.name)
|
|
@@ -1004,9 +1013,7 @@ export async function discoverTurboProviders(
|
|
|
1004
1013
|
),
|
|
1005
1014
|
)
|
|
1006
1015
|
// an Expo module's own Swift runs on the Expo route
|
|
1007
|
-
const swiftPod =
|
|
1008
|
-
expoPods.some((expo) => expo.name === provider.name) &&
|
|
1009
|
-
files?.some((file) => file.endsWith('.swift'))
|
|
1016
|
+
const swiftPod = expo && files?.some((file) => file.endsWith('.swift'))
|
|
1010
1017
|
if (
|
|
1011
1018
|
!swiftPod &&
|
|
1012
1019
|
!dependencies.some((dep) => dep?.files.some((file) => file.endsWith('.swift')))
|
|
@@ -2279,7 +2286,7 @@ export async function collectTurboSources(options: {
|
|
|
2279
2286
|
)) {
|
|
2280
2287
|
// fmt 11.0.2's FMT_STRING checks fail under clang's default constant
|
|
2281
2288
|
// interpreter, which crashes on jsi.cpp, so fmt compiles in its own target
|
|
2282
|
-
const fmtUnit = unit.name === 'fmt'
|
|
2289
|
+
const fmtUnit = unit.name === 'fmt'
|
|
2283
2290
|
const unitTarget = fmtUnit ? TURBO_FMT_TARGET : TURBO_CORE_TARGET
|
|
2284
2291
|
if (fmtUnit && !result.targets.some((t) => t.name === TURBO_FMT_TARGET)) {
|
|
2285
2292
|
result.targets.push({
|
package/src/xcode-project.ts
CHANGED
|
@@ -2822,6 +2822,9 @@ export function readXcodeAppTarget(
|
|
|
2822
2822
|
plist.parse(fs.readFileSync(entitlementsFile, 'utf8')),
|
|
2823
2823
|
(value) =>
|
|
2824
2824
|
expand(value, (key) => {
|
|
2825
|
+
// simulator product packaging supplies these outside build settings.
|
|
2826
|
+
if (key === 'AppIdentifierPrefix') return 'FAKETEAMID.'
|
|
2827
|
+
if (key === 'TeamIdentifierPrefix') return ''
|
|
2825
2828
|
const resolved =
|
|
2826
2829
|
key === 'CFBundleIdentifier' ? bundleIdentifier : settings(key)
|
|
2827
2830
|
if (!resolved)
|