peachsim 0.1.1801 → 0.1.1802

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 (87) hide show
  1. package/cli/commands/package.ts +17 -2
  2. package/dist-lib/agent-daemon-client.cjs +1 -1
  3. package/dist-lib/agent-events.cjs +1 -1
  4. package/dist-lib/attached-projects.cjs +1 -1
  5. package/dist-lib/auth/shared-session.cjs +1 -1
  6. package/dist-lib/backend-origin.cjs +1 -1
  7. package/dist-lib/beta.cjs +1 -1
  8. package/dist-lib/beta.mjs +1 -1
  9. package/dist-lib/bridge-constants.cjs +1 -1
  10. package/dist-lib/bridge-contract-input.cjs +1 -1
  11. package/dist-lib/bridge-contract-input.mjs +1 -1
  12. package/dist-lib/bridge-contract.cjs +1 -1
  13. package/dist-lib/bridge-contract.mjs +1 -1
  14. package/dist-lib/bundle-channel.cjs +43 -19
  15. package/dist-lib/capture-contract.cjs +1 -1
  16. package/dist-lib/capture-contract.mjs +1 -1
  17. package/dist-lib/cloud-contract.cjs +1 -1
  18. package/dist-lib/cloud-contract.mjs +1 -1
  19. package/dist-lib/cloud-test-args.cjs +1 -1
  20. package/dist-lib/cloud-test-args.mjs +1 -1
  21. package/dist-lib/cloud.cjs +1 -1
  22. package/dist-lib/cloud.mjs +1 -1
  23. package/dist-lib/config.cjs +1 -1
  24. package/dist-lib/config.mjs +1 -1
  25. package/dist-lib/detox/index.cjs +2 -2
  26. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  27. package/dist-lib/expo-swift-bundle.cjs +10 -4
  28. package/dist-lib/expo-swift-metadata.cjs +1 -1
  29. package/dist-lib/expo-swift-metadata.mjs +1 -1
  30. package/dist-lib/home-paths.cjs +1 -1
  31. package/dist-lib/host/bridge-host.cjs +44 -20
  32. package/dist-lib/host/fetch-proxy-handler.cjs +2 -2
  33. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  34. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  35. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  36. package/dist-lib/host/websocket-proxy.cjs +1 -1
  37. package/dist-lib/index.cjs +3 -3
  38. package/dist-lib/jump-to-source-babel.cjs +1 -1
  39. package/dist-lib/jump-to-source-native.cjs +1 -1
  40. package/dist-lib/kotlin-host.cjs +1 -1
  41. package/dist-lib/menu.cjs +1 -1
  42. package/dist-lib/menu.mjs +1 -1
  43. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  44. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  45. package/dist-lib/metro-production-bundle.cjs +1 -1
  46. package/dist-lib/metro-production-bundle.mjs +1 -1
  47. package/dist-lib/metro.cjs +3 -3
  48. package/dist-lib/native-app-identity-project.cjs +2 -2
  49. package/dist-lib/native-app-identity-project.mjs +2 -2
  50. package/dist-lib/native-app-identity.cjs +1 -1
  51. package/dist-lib/native-app-identity.mjs +1 -1
  52. package/dist-lib/native-firebase-metadata.cjs +1 -1
  53. package/dist-lib/native-firebase-metadata.mjs +1 -1
  54. package/dist-lib/plist.cjs +1 -1
  55. package/dist-lib/plist.mjs +1 -1
  56. package/dist-lib/profiles.cjs +1 -1
  57. package/dist-lib/public-brand.cjs +1 -1
  58. package/dist-lib/public-origins-lib-esm.json +23 -23
  59. package/dist-lib/public-origins-lib.json +52 -52
  60. package/dist-lib/react-native-host-modules.cjs +1 -1
  61. package/dist-lib/react-native-host-modules.mjs +1 -1
  62. package/dist-lib/reap-browser.cjs +1 -1
  63. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  64. package/dist-lib/sdk.cjs +1 -1
  65. package/dist-lib/sdk.mjs +1 -1
  66. package/dist-lib/skills.cjs +44 -20
  67. package/dist-lib/swift-compile.cjs +8 -3
  68. package/dist-lib/swift-compile.mjs +8 -3
  69. package/dist-lib/swift-package.cjs +1 -1
  70. package/dist-lib/swift-package.mjs +1 -1
  71. package/dist-lib/swift-submit.cjs +1 -1
  72. package/dist-lib/swift-submit.mjs +1 -1
  73. package/dist-lib/swift-toolchain.cjs +1 -1
  74. package/dist-lib/swift.cjs +1 -1
  75. package/dist-lib/vite-swift.cjs +9 -4
  76. package/dist-lib/vite.cjs +2 -2
  77. package/dist-lib/worklet-executable.cjs +1 -1
  78. package/dist-lib/worklet-executable.mjs +1 -1
  79. package/dist-types/packages/peach-engine/src/engine/node.d.ts +1 -0
  80. package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +1 -0
  81. package/package.json +1 -1
  82. package/runtime-companion.json +1 -1
  83. package/src/appPackageContract.ts +5 -0
  84. package/src/expo-native-workspace.ts +2 -0
  85. package/src/nitro-superset.lock.json +33 -14
  86. package/src/swift-shared-sdk.ts +11 -1
  87. package/src/turbo-source.ts +0 -1
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1801 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1802 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -3951,7 +3951,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
3951
3951
  );
3952
3952
  const key = JSON.stringify(["v9", toolchainBin, sdk, frameworks, swiftSdkOptions()]);
3953
3953
  const cached = sdkViews.get(key);
3954
- if (cached) return cached;
3954
+ if (cached) return touchSdkView(cached);
3955
3955
  const configuration = (0, import_node_child_process6.execFileSync)(
3956
3956
  import_node_path9.default.join(toolchainBin, "swift"),
3957
3957
  [
@@ -4035,6 +4035,11 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
4035
4035
  }
4036
4036
  const options = ["--swift-sdks-path", view];
4037
4037
  sdkViews.set(key, options);
4038
+ return touchSdkView(options);
4039
+ }
4040
+ function touchSdkView(options) {
4041
+ const now = /* @__PURE__ */ new Date();
4042
+ import_node_fs7.default.utimesSync(options[1], now, now);
4038
4043
  return options;
4039
4044
  }
4040
4045
  function swiftSharedSdkInputFiles(moduleRoot) {
@@ -7552,7 +7557,7 @@ var executableLinkFlags = (root) => ` "-Xclang-linker", "-O0",
7552
7557
  var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quoted, "-Wl,--end-lib"] : [];
7553
7558
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
7554
7559
  var MULTI_MANIFEST_VERSION = 55;
7555
- var compilerSourceDigest = true ? "8c46343a35b3db15f9074886c9d1ed86fa0e14a331bdb02ed609062eec316d8c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
7560
+ var compilerSourceDigest = true ? "7c4d029be9f859618f690e055ecfedb7b7adbe138aaae050c8453b88aefedfd9" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
7556
7561
  function swiftArtifactHash(input, release, moduleRoot) {
7557
7562
  const hash = (0, import_node_crypto8.createHash)("sha256");
7558
7563
  hash.update(`swift-compile
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1801 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1802 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-compile.ts
4
4
  import {
@@ -3901,7 +3901,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
3901
3901
  );
3902
3902
  const key = JSON.stringify(["v9", toolchainBin, sdk, frameworks, swiftSdkOptions()]);
3903
3903
  const cached = sdkViews.get(key);
3904
- if (cached) return cached;
3904
+ if (cached) return touchSdkView(cached);
3905
3905
  const configuration = execFileSync3(
3906
3906
  path9.join(toolchainBin, "swift"),
3907
3907
  [
@@ -3985,6 +3985,11 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
3985
3985
  }
3986
3986
  const options = ["--swift-sdks-path", view];
3987
3987
  sdkViews.set(key, options);
3988
+ return touchSdkView(options);
3989
+ }
3990
+ function touchSdkView(options) {
3991
+ const now = /* @__PURE__ */ new Date();
3992
+ fs4.utimesSync(options[1], now, now);
3988
3993
  return options;
3989
3994
  }
3990
3995
  function swiftSharedSdkInputFiles(moduleRoot) {
@@ -7520,7 +7525,7 @@ var executableLinkFlags = (root) => ` "-Xclang-linker", "-O0",
7520
7525
  var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quoted, "-Wl,--end-lib"] : [];
7521
7526
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
7522
7527
  var MULTI_MANIFEST_VERSION = 55;
7523
- var compilerSourceDigest = true ? "8c46343a35b3db15f9074886c9d1ed86fa0e14a331bdb02ed609062eec316d8c" : swiftCompilerSourceDigest(import.meta.dirname);
7528
+ var compilerSourceDigest = true ? "7c4d029be9f859618f690e055ecfedb7b7adbe138aaae050c8453b88aefedfd9" : swiftCompilerSourceDigest(import.meta.dirname);
7524
7529
  function swiftArtifactHash(input, release, moduleRoot) {
7525
7530
  const hash = createHash8("sha256");
7526
7531
  hash.update(`swift-compile
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1801 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1802 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1801 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1802 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/swift-package.ts
4
4
  function swiftManifestSettings(target) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1801 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1802 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1801 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1802 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1801 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1802 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1801 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1802 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1801 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1802 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -6584,7 +6584,7 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
6584
6584
  );
6585
6585
  const key2 = JSON.stringify(["v9", toolchainBin, sdk, frameworks, swiftSdkOptions()]);
6586
6586
  const cached = sdkViews.get(key2);
6587
- if (cached) return cached;
6587
+ if (cached) return touchSdkView(cached);
6588
6588
  const configuration = (0, import_node_child_process7.execFileSync)(
6589
6589
  import_node_path9.default.join(toolchainBin, "swift"),
6590
6590
  [
@@ -6668,6 +6668,11 @@ function swiftSharedSdkViewOptions(moduleRoot, distribution, toolchainBin, sdk)
6668
6668
  }
6669
6669
  const options = ["--swift-sdks-path", view];
6670
6670
  sdkViews.set(key2, options);
6671
+ return touchSdkView(options);
6672
+ }
6673
+ function touchSdkView(options) {
6674
+ const now = /* @__PURE__ */ new Date();
6675
+ import_node_fs8.default.utimesSync(options[1], now, now);
6671
6676
  return options;
6672
6677
  }
6673
6678
  function swiftSharedSdkInputFiles(moduleRoot) {
@@ -10152,7 +10157,7 @@ var executableLinkFlags = (root) => ` "-Xclang-linker", "-O0",
10152
10157
  var darwinRecordsRegion = (quoted) => quoted.length ? ["-Wl,--start-lib", ...quoted, "-Wl,--end-lib"] : [];
10153
10158
  var REACTOR_FLAG = '"-Xclang-linker", "-mexec-model=reactor",\n';
10154
10159
  var MULTI_MANIFEST_VERSION = 55;
10155
- var compilerSourceDigest = true ? "8c46343a35b3db15f9074886c9d1ed86fa0e14a331bdb02ed609062eec316d8c" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
10160
+ var compilerSourceDigest = true ? "7c4d029be9f859618f690e055ecfedb7b7adbe138aaae050c8453b88aefedfd9" : swiftCompilerSourceDigest(__sootsim_import_meta_dirname);
10156
10161
  function swiftArtifactHash(input, release, moduleRoot) {
10157
10162
  const hash = (0, import_node_crypto8.createHash)("sha256");
10158
10163
  hash.update(`swift-compile
@@ -22494,7 +22499,7 @@ function standinSourceDigest(srcDir = __sootsim_import_meta_dirname) {
22494
22499
  }
22495
22500
  return hash.digest("hex");
22496
22501
  }
22497
- var STANDIN_SOURCE_DIGEST = true ? "5736fd54bc25e79ef785207e686708df187e9ad830119e6f82536d249a9ecb79" : standinSourceDigest();
22502
+ var STANDIN_SOURCE_DIGEST = true ? "5393643632ab792f513224a720a7fe55184a7d3aa3e5aaa68fea09f0550989f7" : standinSourceDigest();
22498
22503
 
22499
22504
  // src/swift-standins.ts
22500
22505
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1801 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1802 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __create = Object.create;
@@ -185,7 +185,7 @@ var import_node_module = require("node:module");
185
185
  var import_node_path2 = require("node:path");
186
186
 
187
187
  // runtime-companion.json
188
- var runtime_companion_default = { abi: 1, sha256: "05aa9ce388bd0d8a673ed4cdb1500cc72edc221ccd93bce8edc2fc54d82f1387", file: "node/cli-05aa9ce388bd0d8a673ed4cdb1500cc72edc221ccd93bce8edc2fc54d82f1387.cjs" };
188
+ var runtime_companion_default = { abi: 1, sha256: "e29eaf09a968e2f393cb09dd76017f54ba09ce314efcecc9348c62ffc5073aa5", file: "node/cli-e29eaf09a968e2f393cb09dd76017f54ba09ce314efcecc9348c62ffc5073aa5.cjs" };
189
189
 
190
190
  // src/runtime-assets.ts
191
191
  init_define_SWIFT_COVERAGE_SOURCE_DIGESTS();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1801 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1802 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  let __sootsim_import_meta_url = '', __sootsim_import_meta_dirname = '', __sootsim_import_meta_filename = ''; try { __sootsim_import_meta_url = require('url').pathToFileURL(__filename).href; __sootsim_import_meta_dirname = __dirname; __sootsim_import_meta_filename = __filename; } catch {}
3
3
  "use strict";
4
4
  var __defProp = Object.defineProperty;
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.1801 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.1802 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -474,6 +474,7 @@ export declare class SootSimNode {
474
474
  _paragraphBaselineOffset: number | null;
475
475
  _paragraphLineCount: number;
476
476
  _paragraphFitWidth: number | null;
477
+ _paragraphTextKitFit: number | null;
477
478
  _paragraphTighteningDelta: number;
478
479
  _paragraphText: string | null;
479
480
  _paragraphRuns: {
@@ -2,6 +2,7 @@ import type { MaybeAsync } from './bridgeContract.d.ts';
2
2
  import type { PeachHomeApp, PeachHomeStorageValue } from './shellBridgeContract.d.ts';
3
3
  export interface SootSimElectronBridge {
4
4
  personalHomeApps?: PeachHomeApp[];
5
+ launchEnvironment?: Record<string, string>;
5
6
  homeAppStorage?(bundleUrl: string): Promise<PeachHomeStorageValue[]>;
6
7
  captureScreen(full?: boolean): Promise<string | null>;
7
8
  captureVideo(): Promise<unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.1801",
3
+ "version": "0.1.1802",
4
4
  "description": "Vite and Metro plugins, testing drivers, and SDK exports for peach.",
5
5
  "author": "Tamagui LLC",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -1 +1 @@
1
- {"abi":1,"sha256":"05aa9ce388bd0d8a673ed4cdb1500cc72edc221ccd93bce8edc2fc54d82f1387","file":"node/cli-05aa9ce388bd0d8a673ed4cdb1500cc72edc221ccd93bce8edc2fc54d82f1387.cjs"}
1
+ {"abi":1,"sha256":"e29eaf09a968e2f393cb09dd76017f54ba09ce314efcecc9348c62ffc5073aa5","file":"node/cli-e29eaf09a968e2f393cb09dd76017f54ba09ce314efcecc9348c62ffc5073aa5.cjs"}
@@ -25,6 +25,11 @@ export interface AppPackageManifest {
25
25
  iconUrl?: string
26
26
  // seed a new app's config once; never override the user's later choices.
27
27
  defaults: Partial<SettingsValues>
28
+ // environment variable to host file (~/ is the user's home). the desktop host
29
+ // reads each file at launch into the app's ProcessInfo.environment, the way
30
+ // an Xcode scheme supplies launch environment; the values stay out of the
31
+ // package, the launch url and logs.
32
+ launchEnvironmentFiles: Record<string, string>
28
33
  // staged file names whose text contains the build-time placeholder origin.
29
34
  relocatableFiles: string[]
30
35
  requiresServer: boolean
@@ -432,6 +432,7 @@ export async function prepareInstalledExpoWorkspace(app: string, work: string) {
432
432
  return withSwiftRootLock(work, async (lease) => {
433
433
  fs.cpSync(root, work, {
434
434
  recursive: true,
435
+ mode: fs.constants.COPYFILE_FICLONE,
435
436
  preserveTimestamps: true,
436
437
  verbatimSymlinks: true,
437
438
  filter: (source) => {
@@ -534,6 +535,7 @@ async function prepareWorkspace(
534
535
  fs.mkdirSync(path.dirname(work), { recursive: true })
535
536
  await fs.promises.cp(root, partial, {
536
537
  recursive: true,
538
+ mode: fs.constants.COPYFILE_FICLONE,
537
539
  preserveTimestamps: true,
538
540
  verbatimSymlinks: true,
539
541
  filter: (source) => !excluded(path.relative(root, source)),
@@ -1,5 +1,5 @@
1
1
  {
2
- "key": "b69fb439207b9c4c2395cf27b6d85446",
2
+ "key": "c2a99e07bc00f67e97c5309fa98ae765",
3
3
  "inputs": {
4
4
  "ios-deployment-target": "16.4",
5
5
  "react-native": "0.88.0",
@@ -16,7 +16,7 @@
16
16
  "provider:react-native-nitro-sound": "0.2.20\u00004a7507d1bfd9bbeb3cbc2e52385c3a9b0313c216353d96048a58720566639334",
17
17
  "provider:react-native-nitro-sqlite": "10.1.0\u00005caf7edb2f36e20a9ad571987528928d5ef9dd78e473daa4d81dbecc64571d1e",
18
18
  "provider:react-native-nitro-modules": "0.37.1\u0000bdb0a25e97222439e578796350b942a9931f72d9ad4d73b44871eee2aa3301bd",
19
- "compiler": "5961b1afcfd22e1cdbef6878ed59a7ba889bd3b317c5ec2d48d66ebafff9bb95"
19
+ "compiler": "a5bdc2a24fa8bd39d392e37a04252fb47ec1cf47e6baacb7724233f3af4f4379"
20
20
  },
21
21
  "metadata": {
22
22
  "platform": "ios",
@@ -24,25 +24,33 @@
24
24
  {
25
25
  "name": "react-native-nitro-base64",
26
26
  "version": "1.1.2",
27
- "hybridObjects": ["NitroBase64"],
27
+ "hybridObjects": [
28
+ "NitroBase64"
29
+ ],
28
30
  "views": []
29
31
  },
30
32
  {
31
33
  "name": "react-native-nitro-buffer",
32
34
  "version": "0.3.0",
33
- "hybridObjects": ["NitroBuffer"],
35
+ "hybridObjects": [
36
+ "NitroBuffer"
37
+ ],
34
38
  "views": []
35
39
  },
36
40
  {
37
41
  "name": "react-native-nitro-cookies",
38
42
  "version": "1.3.1",
39
- "hybridObjects": ["NitroCookies"],
43
+ "hybridObjects": [
44
+ "NitroCookies"
45
+ ],
40
46
  "views": []
41
47
  },
42
48
  {
43
49
  "name": "react-native-nitro-geocoder",
44
50
  "version": "0.1.2",
45
- "hybridObjects": ["NitroGeocoder"],
51
+ "hybridObjects": [
52
+ "NitroGeocoder"
53
+ ],
46
54
  "views": []
47
55
  },
48
56
  {
@@ -58,37 +66,48 @@
58
66
  {
59
67
  "name": "react-native-nitro-haptics",
60
68
  "version": "0.2.3",
61
- "hybridObjects": ["Haptics"],
69
+ "hybridObjects": [
70
+ "Haptics"
71
+ ],
62
72
  "views": []
63
73
  },
64
74
  {
65
75
  "name": "react-native-nitro-markdown",
66
76
  "version": "0.16.1",
67
- "hybridObjects": ["MarkdownParser", "MarkdownSession"],
77
+ "hybridObjects": [
78
+ "MarkdownParser",
79
+ "MarkdownSession"
80
+ ],
68
81
  "views": []
69
82
  },
70
83
  {
71
84
  "name": "react-native-nitro-network-info",
72
85
  "version": "1.0.8",
73
- "hybridObjects": ["NitroNetworkInfo"],
86
+ "hybridObjects": [
87
+ "NitroNetworkInfo"
88
+ ],
74
89
  "views": []
75
90
  },
76
91
  {
77
92
  "name": "react-native-nitro-sound",
78
93
  "version": "0.2.20",
79
- "hybridObjects": ["Sound"],
94
+ "hybridObjects": [
95
+ "Sound"
96
+ ],
80
97
  "views": []
81
98
  },
82
99
  {
83
100
  "name": "react-native-nitro-sqlite",
84
101
  "version": "10.1.0",
85
- "hybridObjects": ["NitroSQLite"],
102
+ "hybridObjects": [
103
+ "NitroSQLite"
104
+ ],
86
105
  "views": []
87
106
  }
88
107
  ],
89
- "url": "https://r2.rnxsim.com/native/nitro/superset/b69fb439207b9c4c2395cf27b6d85446/72ed501af19f5d811ce2e71cd0168fbe74391d849fb8810dfd34d2a98bfd0c5e.wasm",
90
- "hash": "72ed501af19f5d811ce2e71cd0168fbe74391d849fb8810dfd34d2a98bfd0c5e",
91
- "icuUrl": "https://r2.rnxsim.com/native/nitro/superset/b69fb439207b9c4c2395cf27b6d85446/b6f7d63d7041aaf2485e76b68c284ce69e6157c9cefe0af780252a04e8c2f276",
108
+ "url": "https://r2.rnxsim.com/native/nitro/superset/c2a99e07bc00f67e97c5309fa98ae765/5dd0cc37c9a573cc1de902db6ce0412f46c57b5301e968cf2b62c8ca4e87f008.wasm",
109
+ "hash": "5dd0cc37c9a573cc1de902db6ce0412f46c57b5301e968cf2b62c8ca4e87f008",
110
+ "icuUrl": "https://r2.rnxsim.com/native/nitro/superset/c2a99e07bc00f67e97c5309fa98ae765/b6f7d63d7041aaf2485e76b68c284ce69e6157c9cefe0af780252a04e8c2f276",
92
111
  "bundleFiles": {}
93
112
  }
94
113
  }
@@ -215,7 +215,7 @@ export function swiftSharedSdkViewOptions(
215
215
  )
216
216
  const key = JSON.stringify(['v9', toolchainBin, sdk, frameworks, swiftSdkOptions()])
217
217
  const cached = sdkViews.get(key)
218
- if (cached) return cached
218
+ if (cached) return touchSdkView(cached)
219
219
  const configuration = execFileSync(
220
220
  path.join(toolchainBin, 'swift'),
221
221
  [
@@ -309,6 +309,16 @@ export function swiftSharedSdkViewOptions(
309
309
  }
310
310
  const options = ['--swift-sdks-path', view]
311
311
  sdkViews.set(key, options)
312
+ return touchSdkView(options)
313
+ }
314
+
315
+ // a view is only read after it is built, and disk cleanup retires cache
316
+ // directories by modification time, so every compile that selects one marks it
317
+ // used. otherwise a view older than the idle window is retired mid-compile and
318
+ // clang reports its headers missing.
319
+ function touchSdkView(options: string[]): string[] {
320
+ const now = new Date()
321
+ fs.utimesSync(options[1]!, now, now)
312
322
  return options
313
323
  }
314
324
 
@@ -1582,7 +1582,6 @@ export async function collectTurboSources(options: {
1582
1582
  '@interface NSNotification (PeachTurboRuntime)',
1583
1583
  '@property (nullable, readonly, copy) NSDictionary *userInfo;',
1584
1584
  '@end',
1585
- '#endif',
1586
1585
  'typedef struct __CFBundle *CFBundleRef;',
1587
1586
  '#ifndef NSLocalizedStringWithDefaultValue',
1588
1587
  '#define NSLocalizedStringWithDefaultValue(key, tbl, bundle, val, comment) ((void)(tbl), (void)(bundle), (void)(comment), (val) ?: (key))',