peachsim 0.1.1949 → 0.1.1951

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.
Files changed (114) hide show
  1. package/dist-lib/agent-daemon-client.cjs +1 -1
  2. package/dist-lib/agent-events.cjs +1 -1
  3. package/dist-lib/attached-projects.cjs +1 -1
  4. package/dist-lib/auth/shared-session.cjs +1 -1
  5. package/dist-lib/backend-origin.cjs +1 -1
  6. package/dist-lib/beta.cjs +1 -1
  7. package/dist-lib/beta.mjs +1 -1
  8. package/dist-lib/bridge-constants.cjs +1 -1
  9. package/dist-lib/bridge-contract-input.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.mjs +1 -1
  11. package/dist-lib/bridge-contract.cjs +1 -1
  12. package/dist-lib/bridge-contract.mjs +1 -1
  13. package/dist-lib/bundle-channel.cjs +76 -27
  14. package/dist-lib/capture-contract.cjs +1 -1
  15. package/dist-lib/capture-contract.mjs +1 -1
  16. package/dist-lib/cloud-contract.cjs +1 -1
  17. package/dist-lib/cloud-contract.mjs +1 -1
  18. package/dist-lib/cloud-test-args.cjs +1 -1
  19. package/dist-lib/cloud-test-args.mjs +1 -1
  20. package/dist-lib/cloud.cjs +1 -1
  21. package/dist-lib/cloud.mjs +1 -1
  22. package/dist-lib/config.cjs +1 -1
  23. package/dist-lib/config.mjs +1 -1
  24. package/dist-lib/detox/index.cjs +1 -1
  25. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  26. package/dist-lib/expo-swift-bundle.cjs +49 -18
  27. package/dist-lib/expo-swift-metadata.cjs +1 -1
  28. package/dist-lib/expo-swift-metadata.mjs +1 -1
  29. package/dist-lib/home-paths.cjs +1 -1
  30. package/dist-lib/host/bridge-host.cjs +76 -27
  31. package/dist-lib/host/fetch-proxy-handler.cjs +1 -1
  32. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  33. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  34. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  35. package/dist-lib/host/websocket-proxy.cjs +1 -1
  36. package/dist-lib/index.cjs +2 -2
  37. package/dist-lib/jump-to-source-babel.cjs +1 -1
  38. package/dist-lib/jump-to-source-native.cjs +1 -1
  39. package/dist-lib/kotlin-host.cjs +1 -1
  40. package/dist-lib/menu.cjs +1 -1
  41. package/dist-lib/menu.mjs +1 -1
  42. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  44. package/dist-lib/metro-production-bundle.cjs +1 -1
  45. package/dist-lib/metro-production-bundle.mjs +1 -1
  46. package/dist-lib/metro.cjs +2 -2
  47. package/dist-lib/native-app-identity-project.cjs +2 -2
  48. package/dist-lib/native-app-identity-project.mjs +2 -2
  49. package/dist-lib/native-app-identity.cjs +1 -1
  50. package/dist-lib/native-app-identity.mjs +1 -1
  51. package/dist-lib/native-firebase-metadata.cjs +1 -1
  52. package/dist-lib/native-firebase-metadata.mjs +1 -1
  53. package/dist-lib/pdfium-raster.cjs +1 -1
  54. package/dist-lib/pdfium-raster.mjs +1 -1
  55. package/dist-lib/plist.cjs +1 -1
  56. package/dist-lib/plist.mjs +1 -1
  57. package/dist-lib/profiles.cjs +1 -1
  58. package/dist-lib/public-brand.cjs +1 -1
  59. package/dist-lib/public-origins-lib-esm.json +24 -24
  60. package/dist-lib/public-origins-lib.json +53 -53
  61. package/dist-lib/react-native-host-modules.cjs +1 -1
  62. package/dist-lib/react-native-host-modules.mjs +1 -1
  63. package/dist-lib/reap-browser.cjs +1 -1
  64. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  65. package/dist-lib/sdk.cjs +1 -1
  66. package/dist-lib/sdk.mjs +1 -1
  67. package/dist-lib/skills.cjs +76 -27
  68. package/dist-lib/swift-compile.cjs +5 -5
  69. package/dist-lib/swift-compile.mjs +5 -5
  70. package/dist-lib/swift-package.cjs +1 -1
  71. package/dist-lib/swift-package.mjs +1 -1
  72. package/dist-lib/swift-submit.cjs +1 -1
  73. package/dist-lib/swift-submit.mjs +1 -1
  74. package/dist-lib/swift-toolchain.cjs +1 -1
  75. package/dist-lib/swift.cjs +1 -1
  76. package/dist-lib/vite-swift.cjs +14 -6
  77. package/dist-lib/vite.cjs +1 -1
  78. package/dist-lib/worklet-executable.cjs +1 -1
  79. package/dist-lib/worklet-executable.mjs +1 -1
  80. package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +3 -0
  81. package/package.json +1 -1
  82. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AUAudioUnit.h +1 -0
  83. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AUAudioUnitImplementation.h +1 -0
  84. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AUComponent.h +1 -0
  85. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AUParameters.h +1 -0
  86. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioCodec.h +1 -0
  87. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioComponent.h +1 -0
  88. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioOutputUnit.h +1 -0
  89. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnit.h +25 -0
  90. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnitParameters.h +1 -0
  91. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/AudioUnitProperties.h +1 -0
  92. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Headers/MusicDevice.h +1 -0
  93. package/sdk/ios/System/Library/Frameworks/AudioUnit.framework/Modules/module.modulemap +6 -0
  94. package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +17 -0
  95. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPBroadcast.h +192 -0
  96. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPBroadcastConfiguration.h +28 -0
  97. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPBroadcastExtension.h +154 -0
  98. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPError.h +56 -0
  99. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPPreviewViewController.h +52 -0
  100. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/RPScreenRecorder.h +150 -0
  101. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Headers/ReplayKit.h +20 -0
  102. package/sdk/ios/System/Library/Frameworks/ReplayKit.framework/Modules/module.modulemap +6 -0
  103. package/src/expo-native-workspace.ts +0 -2
  104. package/src/expo-swift-host.ts +15 -1
  105. package/src/installed-native-libraries.ts +5 -1
  106. package/src/native-static-libraries.ts +8 -0
  107. package/src/nitro-adapter.lock.json +264 -264
  108. package/src/nitro-superset.lock.json +4 -4
  109. package/src/react-native-bridge-modules.ts +27 -6
  110. package/src/swift-distribution.lock.json +11 -11
  111. package/src/swift-guest-link.ts +8 -3
  112. package/src/turbo-codegen-intake.ts +1 -0
  113. package/src/turbo-runtime.lock.json +22 -22
  114. package/src/turbo-source.ts +24 -1
@@ -534,11 +534,16 @@ export function linkGuestImages(
534
534
  regions: [],
535
535
  }),
536
536
  )
537
- const generated = fs.readFileSync(ledgerObject)
537
+ // generated pieces belong to one image each: the lookup tables to the ledger data
538
+ // image, a caller wrapper to its caller, the projection tables to the projection image.
539
+ const ledgerPieces = guestProjectionRegionCapacity([fs.readFileSync(ledgerObject)], 0)
538
540
  const capacities = ledger.images.map((image) => ({
539
541
  regions: guestProjectionRegionCapacity(
540
- [...image.objects.map((object) => object.bytes), generated],
541
- images.length + 2,
542
+ image.objects.map((object) => object.bytes),
543
+ 1 +
544
+ ledger.callerWrappers.filter((wrapper) => wrapper.image === image.id).length +
545
+ (image.id === options.ledgerDataImage ? ledgerPieces : 0) +
546
+ (image.id === projection.image ? images.length + 2 : 0),
542
547
  ),
543
548
  memoryProtection: projection.memoryProtection,
544
549
  tableProtection: projection.tableProtection,
@@ -107,6 +107,7 @@ const LEGACY_BRIDGE_PODS = new Set([
107
107
  'React-jsinspector',
108
108
  'React-jsinspectortracing',
109
109
  'React-perflogger',
110
+ 'React-utils',
110
111
  'React-jsiexecutor',
111
112
  'Yoga',
112
113
  ])
@@ -8,11 +8,11 @@
8
8
  },
9
9
  "compiler": "swift-6.4.0-RELEASE-custom-a560ff35bf882b5c",
10
10
  "sdk": {
11
- "id": "swift-6.4.0-RELEASE_wasm-peach-54e5e4a8",
12
- "checksum": "e017b2f3f8ef627d4d7adbd333ede613aee9938ec482e51b1f4eed793be86ce2"
11
+ "id": "swift-6.4.0-RELEASE_wasm-peach-ddd9a804",
12
+ "checksum": "02c3075fb4de912078f81f4c278d7b9cc086b1cd352a9805e33dd168928d8b0b"
13
13
  },
14
14
  "framework": {
15
- "distribution": "967b49c73f2a183d",
15
+ "distribution": "8003facc2b2d47c5",
16
16
  "wireAbi": "246b8412514b644113e6a26252c8ebd6de49ab4156ac5f5c98bb9e4c2ff2568b"
17
17
  },
18
18
  "archives": [
@@ -20,71 +20,71 @@
20
20
  "headers": {
21
21
  "reactNativeJsi": "0f8c2defbca69a27a848a81ae72363073bf9602fd316e57a75811be1a0528358"
22
22
  },
23
- "sha256": "ce1021a2479c7deaed3201a1ecbaa84f6dc85feb7767395c776bcf7203728836",
24
- "size": 25409
23
+ "sha256": "ee5afbd89875e804df5afe2a9403b16fa84e9f3662dcdf9bfc56bb3a0db2bcb2",
24
+ "size": 25406
25
25
  },
26
26
  {
27
27
  "headers": {
28
28
  "reactNativeJsi": "21a624ea24fd17d56bf26832d496fc1177067f89640414c20e6486c7984dfb0a"
29
29
  },
30
- "sha256": "e592e2aeb01a5e340bf714d713a2f24bb6ca0c7a3ed29417e6206912f2099f43",
31
- "size": 26145
30
+ "sha256": "eac8898206fee34a1c6d37068ed0e144d832482e300fa1dcedce792eb4846c22",
31
+ "size": 26143
32
32
  },
33
33
  {
34
34
  "headers": {
35
35
  "reactNativeJsi": "324aefd8591d9ce688bce7589c4c2b516cd33ecb95d35c47239a87a8fcf6a8da"
36
36
  },
37
- "sha256": "8194a199cffa2a6e36b5f974ad5ae5ee90c5fdd111d48abe8728fffde1ccb15e",
38
- "size": 25402
37
+ "sha256": "353f2d08785bb125e7c90b956225c2d462867669f62b79081ee777c497aa6c7a",
38
+ "size": 25398
39
39
  },
40
40
  {
41
41
  "headers": {
42
42
  "reactNativeJsi": "33596664ee7d7a6623f0796a6feb429543316c3a41b211150acda6e1d835286c"
43
43
  },
44
- "sha256": "6393fc2f7f3e4f506c34c88bcb8a8e91f7be3cd2dab5d1f6af647fb618974909",
44
+ "sha256": "4b5bef14b7be47089806bec22ae55bc9ee721ed58ca2487449de801e6606007c",
45
45
  "size": 25168
46
46
  },
47
47
  {
48
48
  "headers": {
49
49
  "reactNativeJsi": "66b2cd5a38511195207f6c8a76aba735f9b9cc66a52a0d00780ffe5d331623f7"
50
50
  },
51
- "sha256": "1815bd3e0e2c5a12748a21d0f55889a08f85ff7dc4846c3340cef330889e1eaf",
52
- "size": 25407
51
+ "sha256": "17dc4ce4808cceeb33fc27b334c4283263dbe49c4a77c4485edadc4c58da51c0",
52
+ "size": 25400
53
53
  },
54
54
  {
55
55
  "headers": {
56
56
  "reactNativeJsi": "96db4e758dd53e9320cef7cad485e00aa06e7a982cefd920f17007de8a5bd9f9"
57
57
  },
58
- "sha256": "a575df53bc3124dd954d6b4062f1b63048b17effbe93718dc3dc4b09f13d8d63",
59
- "size": 26145
58
+ "sha256": "d75d3502040d18500035a7b5dbd575d1666a6fc191d304576cf63d30d1402543",
59
+ "size": 26143
60
60
  },
61
61
  {
62
62
  "headers": {
63
63
  "reactNativeJsi": "aeab590ddd1218df963462242d3954ce467b0fa88f70e91429e4ffc74d230893"
64
64
  },
65
- "sha256": "8ff6ca35da0d6854b7b05b5fe617ba0f80f3abf7447dab049fee4e5588f317cd",
66
- "size": 26144
65
+ "sha256": "a14145de36a5137b5f3d76dcb5e22f7b5c3f835054a34385076d25bf1928de82",
66
+ "size": 26141
67
67
  },
68
68
  {
69
69
  "headers": {
70
70
  "reactNativeJsi": "b5fb260522384dd7ab07d740cdc534b529922446fcec798341c7817d9eaa49f4"
71
71
  },
72
- "sha256": "4380b57d211e6a920a9f02fe3a573d3aebd777ec208198267b67155222b88f88",
73
- "size": 25274
72
+ "sha256": "3073eedca290a269bd1624cad7d0e98c603914c30ddcc9df519764fadad38b1b",
73
+ "size": 25270
74
74
  },
75
75
  {
76
76
  "headers": {
77
77
  "reactNativeJsi": "c6b391a1e870ccf7cdd534be63582862840f8245b99ebd253317deece1e6ffd5"
78
78
  },
79
- "sha256": "68bbad78b987fbd015ed00e6345c383066c55ec786f7485735a990fb5a6d2ff6",
80
- "size": 26149
79
+ "sha256": "b028db13606ee4f618db0a3a5353366cefb5b6a888f3b0fcfc3e0914060069e3",
80
+ "size": 26147
81
81
  },
82
82
  {
83
83
  "headers": {
84
84
  "reactNativeJsi": "c8270f1315745ecc204c4209a4f50f58ff6f14b4a385ad6820a69800270b53c6"
85
85
  },
86
- "sha256": "63b354b719435713bc617048b49dd1e688e10ee2c4cc6cd90c20b9c32a0b0aae",
87
- "size": 25111
86
+ "sha256": "427fab5d46c9539d7c86e7eb7b5738a93529b0a47b13c9b768f926249db9099f",
87
+ "size": 25106
88
88
  }
89
89
  ]
90
90
  }
@@ -2255,6 +2255,7 @@ export async function collectTurboSources(options: {
2255
2255
  decoratorHasPerformanceLogger,
2256
2256
  managerHasDevMenuDecorator,
2257
2257
  moduleProviders,
2258
+ fabric || legacyBridge,
2258
2259
  )
2259
2260
  : turboHostSource(withRuntime),
2260
2261
  )
@@ -2398,6 +2399,8 @@ function turboObjCHostSource(
2398
2399
  decoratorHasPerformanceLogger: boolean,
2399
2400
  managerHasDevMenuDecorator: boolean,
2400
2401
  moduleProviders: boolean,
2402
+ // React-Core's Default subspec compiles, which holds RCTBridgeProxy
2403
+ bridgeProxy: boolean,
2401
2404
  ): string {
2402
2405
  const classNamesList = objcClasses.map((name) => `@${JSON.stringify(name)}`).join(', ')
2403
2406
  const unregisteredList = unregisteredClasses
@@ -2418,6 +2421,7 @@ function turboObjCHostSource(
2418
2421
  #import <React/RCTBridge+Private.h>
2419
2422
  #import <React/RCTBridge.h>
2420
2423
  #import <React/RCTBridgeModuleDecorator.h>
2424
+ ${bridgeProxy ? '#import <React/RCTBridgeProxy.h>\n#import <React/RCTBridgeProxy+Cxx.h>' : ''}
2421
2425
  ${decoratorHasPerformanceLogger ? '#import <React/RCTPerformanceLogger.h>' : ''}
2422
2426
  #import <React/RCTBridgeModule.h>
2423
2427
  #import <React/RCTEventDispatcherProtocol.h>
@@ -2724,7 +2728,26 @@ extern "C" void peachTurboInitialize() {
2724
2728
  }
2725
2729
  RCTEnableTurboModuleInterop(YES);
2726
2730
  delegate = [PeachTurboModuleDelegate new];
2727
- manager = [[RCTTurboModuleManager alloc] initWithBridgeProxy:nil
2731
+ ${
2732
+ bridgeProxy
2733
+ ? ` // as RCTInstance does: the proxy modules reach as their bridge carries the
2734
+ // runtime, so a legacy JSI installer reading bridge.runtime finds it
2735
+ RCTBridgeProxy *bridgeProxy =
2736
+ [[RCTBridgeProxy alloc] initWithViewRegistry:decorator.viewRegistry_DEPRECATED
2737
+ moduleRegistry:decorator.moduleRegistry
2738
+ bundleManager:decorator.bundleManager
2739
+ callableJSModules:decorator.callableJSModules
2740
+ dispatchToJSThread:^(dispatch_block_t block) {
2741
+ invoker->invokeAsync([block](jsi::Runtime&) { block(); });
2742
+ }
2743
+ registerSegmentWithId:nil
2744
+ runtime:&runtime
2745
+ launchOptions:nil];
2746
+ bridgeProxy.jsCallInvoker = invoker;
2747
+ [RCTBridge setCurrentBridge:(RCTBridge *)bridgeProxy];
2748
+ `
2749
+ : ''
2750
+ } manager = [[RCTTurboModuleManager alloc] initWithBridgeProxy:${bridgeProxy ? 'bridgeProxy' : 'nil'}
2728
2751
  bridgeModuleDecorator:decorator
2729
2752
  delegate:delegate
2730
2753
  jsInvoker:invoker${managerHasDevMenuDecorator ? '\n devMenuConfigurationDecorator:nil' : ''}];