peachsim 0.1.2269 → 0.1.2270

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 (94) hide show
  1. package/cli/commands/record.ts +4 -1
  2. package/detox/index.ts +8 -4
  3. package/dist-lib/agent-daemon-client.cjs +1 -1
  4. package/dist-lib/agent-events.cjs +1 -1
  5. package/dist-lib/attached-projects.cjs +1 -1
  6. package/dist-lib/auth/shared-session.cjs +1 -1
  7. package/dist-lib/backend-origin.cjs +1 -1
  8. package/dist-lib/beta.cjs +1 -1
  9. package/dist-lib/beta.mjs +1 -1
  10. package/dist-lib/bridge-constants.cjs +1 -1
  11. package/dist-lib/bridge-contract-input.cjs +1 -1
  12. package/dist-lib/bridge-contract-input.mjs +1 -1
  13. package/dist-lib/bridge-contract.cjs +1 -1
  14. package/dist-lib/bridge-contract.mjs +1 -1
  15. package/dist-lib/bundle-channel.cjs +32 -20
  16. package/dist-lib/capture-contract.cjs +1 -1
  17. package/dist-lib/capture-contract.mjs +1 -1
  18. package/dist-lib/cloud-contract.cjs +1 -1
  19. package/dist-lib/cloud-contract.mjs +1 -1
  20. package/dist-lib/cloud-test-args.cjs +1 -1
  21. package/dist-lib/cloud-test-args.mjs +1 -1
  22. package/dist-lib/cloud.cjs +1 -1
  23. package/dist-lib/cloud.mjs +1 -1
  24. package/dist-lib/config.cjs +1 -1
  25. package/dist-lib/config.mjs +1 -1
  26. package/dist-lib/detox/index.cjs +7 -4
  27. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  28. package/dist-lib/expo-swift-bundle.cjs +21 -14
  29. package/dist-lib/expo-swift-metadata.cjs +1 -1
  30. package/dist-lib/expo-swift-metadata.mjs +1 -1
  31. package/dist-lib/home-paths.cjs +1 -1
  32. package/dist-lib/host/bridge-host.cjs +49 -26
  33. package/dist-lib/host/fetch-proxy-handler.cjs +3 -3
  34. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  35. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  36. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  37. package/dist-lib/host/websocket-proxy.cjs +1 -1
  38. package/dist-lib/index.cjs +3 -3
  39. package/dist-lib/jump-to-source-babel.cjs +1 -1
  40. package/dist-lib/jump-to-source-native.cjs +1 -1
  41. package/dist-lib/kotlin-host.cjs +9 -5
  42. package/dist-lib/menu.cjs +1 -1
  43. package/dist-lib/menu.mjs +1 -1
  44. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  45. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  46. package/dist-lib/metro-production-bundle.cjs +1 -1
  47. package/dist-lib/metro-production-bundle.mjs +1 -1
  48. package/dist-lib/metro.cjs +3 -3
  49. package/dist-lib/native-app-identity-project.cjs +1 -1
  50. package/dist-lib/native-app-identity-project.mjs +1 -1
  51. package/dist-lib/native-app-identity.cjs +1 -1
  52. package/dist-lib/native-app-identity.mjs +1 -1
  53. package/dist-lib/native-firebase-metadata.cjs +1 -1
  54. package/dist-lib/native-firebase-metadata.mjs +1 -1
  55. package/dist-lib/pdfium-raster.cjs +1 -1
  56. package/dist-lib/pdfium-raster.mjs +1 -1
  57. package/dist-lib/plist.cjs +1 -1
  58. package/dist-lib/plist.mjs +1 -1
  59. package/dist-lib/profiles.cjs +1 -1
  60. package/dist-lib/public-brand.cjs +1 -1
  61. package/dist-lib/public-origins-lib-esm.json +24 -24
  62. package/dist-lib/public-origins-lib.json +53 -53
  63. package/dist-lib/react-native-host-modules.cjs +1 -1
  64. package/dist-lib/react-native-host-modules.mjs +1 -1
  65. package/dist-lib/reap-browser.cjs +1 -1
  66. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  67. package/dist-lib/sdk.cjs +1 -1
  68. package/dist-lib/sdk.mjs +1 -1
  69. package/dist-lib/skills.cjs +56 -27
  70. package/dist-lib/swift-compile.cjs +1 -1
  71. package/dist-lib/swift-compile.mjs +1 -1
  72. package/dist-lib/swift-package.cjs +1 -1
  73. package/dist-lib/swift-package.mjs +1 -1
  74. package/dist-lib/swift-submit.cjs +2 -2
  75. package/dist-lib/swift-submit.mjs +2 -2
  76. package/dist-lib/swift-toolchain.cjs +1 -1
  77. package/dist-lib/swift.cjs +1 -1
  78. package/dist-lib/vite-swift.cjs +3 -3
  79. package/dist-lib/vite.cjs +3 -3
  80. package/dist-lib/worklet-executable.cjs +1 -1
  81. package/dist-lib/worklet-executable.mjs +1 -1
  82. package/dist-types/packages/peach-engine/src/engine/render-damage.d.ts +1 -0
  83. package/java-platform/licenses/android.txt +6 -3
  84. package/java-platform/licenses/openjdk.txt +5 -4
  85. package/kotlin/sdk.tar.gz +0 -0
  86. package/package.json +1 -1
  87. package/src/desktop-host-delivery.ts +22 -6
  88. package/src/expo-pod-prebuilt.ts +29 -3
  89. package/src/guest-bundle.ts +1 -0
  90. package/src/kotlin-host.ts +8 -4
  91. package/src/native-package-slice-build.ts +156 -96
  92. package/src/package-tree-digest.ts +33 -10
  93. package/src/swift-submit.ts +2 -1
  94. package/src/turbo-compile.ts +5 -1
package/dist-lib/sdk.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2269 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2270 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2269 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2270 | (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;
@@ -29766,12 +29766,22 @@ function verifyHost(dir) {
29766
29766
  }
29767
29767
  }
29768
29768
  function bundleValue(app, key2) {
29769
- const read = (0, import_node_child_process6.spawnSync)(
29770
- "plutil",
29771
- ["-extract", key2, "raw", "-o", "-", import_node_path6.default.join(app, "Contents/Info.plist")],
29772
- { encoding: "utf8" }
29773
- );
29774
- return read.status === 0 ? read.stdout.trim() : null;
29769
+ const plist5 = import_node_path6.default.join(app, "Contents/Info.plist");
29770
+ const stat2 = import_node_fs10.default.statSync(plist5, { throwIfNoEntry: false });
29771
+ if (!stat2) return null;
29772
+ const stamp = `${stat2.ino}:${stat2.size}:${stat2.mtimeMs}`;
29773
+ let entry = bundleValues.get(plist5);
29774
+ if (entry?.stamp !== stamp) {
29775
+ entry = { stamp, values: /* @__PURE__ */ new Map() };
29776
+ bundleValues.set(plist5, entry);
29777
+ }
29778
+ if (entry.values.has(key2)) return entry.values.get(key2) ?? null;
29779
+ const read = (0, import_node_child_process6.spawnSync)("plutil", ["-extract", key2, "raw", "-o", "-", plist5], {
29780
+ encoding: "utf8"
29781
+ });
29782
+ const value = read.status === 0 ? read.stdout.trim() : null;
29783
+ entry.values.set(key2, value);
29784
+ return value;
29775
29785
  }
29776
29786
  function isNativeHostBundle(app) {
29777
29787
  return process.platform === "darwin" && bundleValue(app, "CFBundleIdentifier") === HOST_BUNDLE_ID;
@@ -29943,7 +29953,7 @@ function desktopHostDelivery(channelInput) {
29943
29953
  writeActiveRuntime: placeHost
29944
29954
  });
29945
29955
  }
29946
- var import_node_child_process6, import_node_crypto4, import_node_fs10, import_node_os5, import_node_path6, DESKTOP_HOST_CDN_ORIGIN, DESKTOP_HOST_CHANNELS, CHANNEL_ENV, MAC_HOST_MINIMUM_MAJOR, macMeetsHostMinimum, MAC_HOST_APP, HOST_BUNDLE_ID, HOST_REQUIREMENT;
29956
+ var import_node_child_process6, import_node_crypto4, import_node_fs10, import_node_os5, import_node_path6, DESKTOP_HOST_CDN_ORIGIN, DESKTOP_HOST_CHANNELS, CHANNEL_ENV, MAC_HOST_MINIMUM_MAJOR, macMeetsHostMinimum, MAC_HOST_APP, HOST_BUNDLE_ID, HOST_REQUIREMENT, bundleValues;
29947
29957
  var init_desktop_host_delivery = __esm({
29948
29958
  "src/desktop-host-delivery.ts"() {
29949
29959
  "use strict";
@@ -29961,6 +29971,7 @@ var init_desktop_host_delivery = __esm({
29961
29971
  MAC_HOST_APP = "/Applications/Peach.app";
29962
29972
  HOST_BUNDLE_ID = "dev.contrast.peach-desktop";
29963
29973
  HOST_REQUIREMENT = '=anchor apple generic and identifier "dev.contrast.peach-desktop" and certificate leaf[subject.OU] = "399WY8X9HY" and certificate leaf[field.1.2.840.113635.100.6.1.13] exists';
29974
+ bundleValues = /* @__PURE__ */ new Map();
29964
29975
  }
29965
29976
  });
29966
29977
 
@@ -31045,7 +31056,7 @@ var init_swift_submit = __esm({
31045
31056
  MAX_SWIFT_COMPILE_IMAGES = 256;
31046
31057
  MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
31047
31058
  MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
31048
- SWIFT_HOST_ABI = 72;
31059
+ SWIFT_HOST_ABI = 73;
31049
31060
  POLL_INTERVAL_MS = 1500;
31050
31061
  }
31051
31062
  });
@@ -66188,7 +66199,7 @@ var init_swift_standin_digest = __esm({
66188
66199
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
66189
66200
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
66190
66201
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
66191
- STANDIN_SOURCE_DIGEST = true ? "f548e83c6abe8dd5a2c941c3e6dda49428b276f3d10495535e97a14aca44c0cc" : standinSourceDigest();
66202
+ STANDIN_SOURCE_DIGEST = true ? "89e44465df23e51162420571715018b02da9bbaf61840c772745d5ba5f15487c" : standinSourceDigest();
66192
66203
  }
66193
66204
  });
66194
66205
 
@@ -66609,26 +66620,33 @@ var init_nitroContract = __esm({
66609
66620
  });
66610
66621
 
66611
66622
  // src/package-tree-digest.ts
66612
- async function packageTreeDigest(root) {
66623
+ function hashPackageTree(root, options) {
66613
66624
  const files2 = [];
66614
66625
  const walk3 = (directory2, relative6) => {
66615
66626
  for (const entry of (0, import_node_fs68.readdirSync)(directory2, { withFileTypes: true }).sort(
66616
- (a, b) => a.name.localeCompare(b.name)
66627
+ (a, b) => options.compareNames(a.name, b.name)
66617
66628
  )) {
66618
66629
  if (entry.name === "node_modules") continue;
66619
66630
  const path143 = `${relative6}${entry.name}`;
66620
66631
  if (entry.isDirectory()) walk3((0, import_node_path65.join)(directory2, entry.name), `${path143}/`);
66621
- else if (entry.isFile()) files2.push(path143);
66632
+ else if (entry.isFile() && !options.skipFile?.(entry.name)) files2.push(path143);
66622
66633
  }
66623
66634
  };
66624
66635
  walk3(root, "");
66625
66636
  const hash = (0, import_node_crypto34.createHash)("sha256");
66626
- for (let start = 0; start < files2.length; start += READ_AHEAD) {
66627
- const batch = files2.slice(start, start + READ_AHEAD);
66628
- const bytes = await Promise.all(batch.map((file) => (0, import_promises6.readFile)((0, import_node_path65.join)(root, file))));
66629
- batch.forEach((file, index) => hash.update(`${file}\0`).update(bytes[index]));
66630
- }
66631
- return hash.digest("hex");
66637
+ return (async () => {
66638
+ for (let start = 0; start < files2.length; start += READ_AHEAD) {
66639
+ const batch = files2.slice(start, start + READ_AHEAD);
66640
+ const bytes = await Promise.all(batch.map((file) => (0, import_promises6.readFile)((0, import_node_path65.join)(root, file))));
66641
+ batch.forEach((file, index) => hash.update(`${file}\0`).update(bytes[index]));
66642
+ }
66643
+ return hash.digest("hex");
66644
+ })();
66645
+ }
66646
+ function packageTreeDigest(root) {
66647
+ return hashPackageTree(root, {
66648
+ compareNames: (left, right) => left.localeCompare(right)
66649
+ });
66632
66650
  }
66633
66651
  var import_node_crypto34, import_node_fs68, import_promises6, import_node_path65, READ_AHEAD;
66634
66652
  var init_package_tree_digest = __esm({
@@ -66644,7 +66662,7 @@ var init_package_tree_digest = __esm({
66644
66662
 
66645
66663
  // src/expo-native-prebuilt.ts
66646
66664
  function expoNativeCompilerDigestValue() {
66647
- return true ? "dc9231a527fdc6ab4d8537af070a2c12b41a0e558ffe49d321ba058383d2f9c6" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
66665
+ return true ? "9b86a3d9b32c1030e03f81631aa8f360f8a5e29bbaf2e75d7110a2d558272880" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
66648
66666
  }
66649
66667
  function readSources(value) {
66650
66668
  const sources = isRecord(value) ? value.sources : null;
@@ -83810,7 +83828,8 @@ async function prepareTurboCompileInput(options) {
83810
83828
  collection.externalPodSources.map(({ moduleName: moduleName2 }) => moduleName2)
83811
83829
  );
83812
83830
  for (const target of collection.targets)
83813
- if (!externalModules.has(target.name)) available.add(target.name);
83831
+ if (!externalModules.has(target.name) || collection.rendererSwiftTargets.includes(target.name))
83832
+ available.add(target.name);
83814
83833
  const missing2 = [
83815
83834
  .../* @__PURE__ */ new Set([
83816
83835
  ...missingSwiftModules(collection.files, available).keys(),
@@ -84245,7 +84264,7 @@ var init_react_native_core = __esm({
84245
84264
  init_swift_distribution();
84246
84265
  init_swift_package();
84247
84266
  init_swiftContract();
84248
- recipe = true ? "6b67c6a71d4bea968d2b12089709b9f559c04bdd32fd1b13d97069d439205d8e" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
84267
+ recipe = true ? "8e950f0e9749922071dda3e668507e3ff24dd2678085abafc0a8403c6263bddf" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
84249
84268
  strings4 = (value) => isRecord(value) && Object.values(value).every((item) => typeof item === "string");
84250
84269
  building = /* @__PURE__ */ new Map();
84251
84270
  }
@@ -88111,7 +88130,7 @@ var init_nitro_superset = __esm({
88111
88130
  init_nitroContract();
88112
88131
  init_swift_standin_digest();
88113
88132
  NITRO_SUPERSET_ENTRY_NAME = "superset";
88114
- NITRO_COMPILER_DIGEST = true ? "abb290654ae6f789e24c9e7423d16008cd5aea040e0e07bb86b9b3e94f6e15b8" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
88133
+ NITRO_COMPILER_DIGEST = true ? "1bc5848c1af14dee0bf97f7bd5d31978f14a6253eda5cd08260d1c7e00c5ca49" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
88115
88134
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
88116
88135
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
88117
88136
  published2 = /* @__PURE__ */ new Map();
@@ -99165,9 +99184,11 @@ function entrySource(ids) {
99165
99184
  "fun peachSetAndroidDeviceInfo(model: String, release: String, apiLevel: Int, locale: String, timeZone: String, settings: String, properties: String) {",
99166
99185
  " Build.setDevice(model, release, apiLevel)",
99167
99186
  " java.util.Locale.setDefault(java.util.Locale.forLanguageTag(locale))",
99168
- " java.util.TimeZone.setDevice(timeZone)",
99169
99187
  " dev.peach.android.ProcessSettings.configure(settings)",
99170
- " android.os.SystemProperties.configure(properties)",
99188
+ " // the engine reports the device zone apart; android keeps it in persist.sys.timezone",
99189
+ ' android.os.SystemProperties.configure(org.json.JSONObject(properties).put("persist.sys.timezone", timeZone).toString())',
99190
+ " // a later call is the device's time zone change, which ActivityThread answers with setDefault(null)",
99191
+ " if (dalvik.system.RuntimeHooks.getTimeZoneIdSupplier() == null) com.android.internal.os.RuntimeInit.commonInit() else java.util.TimeZone.setDefault(null)",
99171
99192
  "}",
99172
99193
  "",
99173
99194
  "@OptIn(kotlin.js.ExperimentalJsExport::class, kotlinx.coroutines.DelicateCoroutinesApi::class)",
@@ -99557,9 +99578,11 @@ async function expoKotlinArtifact(root, moduleRoot, origin, modules) {
99557
99578
  "@JsExport fun peachSetAndroidDeviceInfo(model: String, release: String, apiLevel: Int, locale: String, timeZone: String, settings: String, properties: String) {",
99558
99579
  " android.os.Build.setDevice(model, release, apiLevel)",
99559
99580
  " java.util.Locale.setDefault(java.util.Locale.forLanguageTag(locale))",
99560
- " java.util.TimeZone.setDevice(timeZone)",
99561
99581
  " dev.peach.android.ProcessSettings.configure(settings)",
99562
- " android.os.SystemProperties.configure(properties)",
99582
+ " // the engine reports the device zone apart; android keeps it in persist.sys.timezone",
99583
+ ' android.os.SystemProperties.configure(org.json.JSONObject(properties).put("persist.sys.timezone", timeZone).toString())',
99584
+ " // a later call is the device's time zone change, which ActivityThread answers with setDefault(null)",
99585
+ " if (dalvik.system.RuntimeHooks.getTimeZoneIdSupplier() == null) com.android.internal.os.RuntimeInit.commonInit() else java.util.TimeZone.setDefault(null)",
99563
99586
  " PeachExpoRuntime.configureProcessLocale(locale)",
99564
99587
  "}",
99565
99588
  "",
@@ -112346,6 +112369,10 @@ var init_meta = __esm({
112346
112369
  "peach perf scroll <start|stop> [options]"
112347
112370
  ],
112348
112371
  options: [
112372
+ option(
112373
+ "--host",
112374
+ "for `perf cpu`: profile the desktop app's realms through its host, no Chrome"
112375
+ ),
112349
112376
  option(
112350
112377
  "--cdp-port <port>",
112351
112378
  "for `perf cpu`: Chrome DevTools port (default: $PEACH_CDP_PORT or 9222)"
@@ -112370,6 +112397,7 @@ var init_meta = __esm({
112370
112397
  examples: [
112371
112398
  example("peach open 8089 --new --driver playwright --cdp-port 9222"),
112372
112399
  example("peach perf cpu --cdp-port 9222 --duration 5"),
112400
+ example("peach perf cpu --host --duration 8"),
112373
112401
  example("peach perf react profile start"),
112374
112402
  example("peach perf react summary --limit 10"),
112375
112403
  example("peach perf shell start"),
@@ -118791,6 +118819,7 @@ ${registration}`,
118791
118819
  }
118792
118820
  ];
118793
118821
  const bundle = [
118822
+ `var __DEV__=false;`,
118794
118823
  `var __METRO_GLOBAL_PREFIX__='';`,
118795
118824
  `(function(global){${METRO_REQUIRE_POLYFILL}})(globalThis);`,
118796
118825
  ...modules.map(
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2269 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2270 | (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.2269 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2270 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
4
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2269 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2270 | (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.2269 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2270 | (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.2269 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2270 | (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;
@@ -86,7 +86,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
86
86
  var MAX_SWIFT_COMPILE_IMAGES = 256;
87
87
  var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
88
88
  var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
89
- var SWIFT_HOST_ABI = 72;
89
+ var SWIFT_HOST_ABI = 73;
90
90
  var POLL_INTERVAL_MS = 1500;
91
91
  function swiftNativeEntry(native, file) {
92
92
  return {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2269 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2270 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/is-record.ts
4
4
  function isRecord(value) {
@@ -40,7 +40,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
40
40
  var MAX_SWIFT_COMPILE_IMAGES = 256;
41
41
  var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
42
42
  var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
43
- var SWIFT_HOST_ABI = 72;
43
+ var SWIFT_HOST_ABI = 73;
44
44
  var POLL_INTERVAL_MS = 1500;
45
45
  function swiftNativeEntry(native, file) {
46
46
  return {
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2269 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2270 | (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.2269 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2270 | (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.2269 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2270 | (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;
@@ -31449,7 +31449,7 @@ var MAX_SWIFT_COMPILE_METAL_TOTAL_BYTES = 8 * 1024 * 1024;
31449
31449
  var MAX_SWIFT_COMPILE_IMAGES = 256;
31450
31450
  var MAX_SWIFT_COMPILE_IMAGE_BYTES = 4 * 1024 * 1024;
31451
31451
  var MAX_SWIFT_COMPILE_IMAGE_TOTAL_BYTES = 16 * 1024 * 1024;
31452
- var SWIFT_HOST_ABI = 72;
31452
+ var SWIFT_HOST_ABI = 73;
31453
31453
  var POLL_INTERVAL_MS = 1500;
31454
31454
  function swiftNativeEntry(native, file) {
31455
31455
  return {
@@ -32416,7 +32416,7 @@ function sourceClosureDigest(srcDir, entrypoints) {
32416
32416
  return hash.digest("hex");
32417
32417
  }
32418
32418
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
32419
- var STANDIN_SOURCE_DIGEST = true ? "f548e83c6abe8dd5a2c941c3e6dda49428b276f3d10495535e97a14aca44c0cc" : standinSourceDigest();
32419
+ var STANDIN_SOURCE_DIGEST = true ? "89e44465df23e51162420571715018b02da9bbaf61840c772745d5ba5f15487c" : standinSourceDigest();
32420
32420
 
32421
32421
  // src/swift-standins.ts
32422
32422
  var import_node_child_process31 = require("node:child_process");
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2269 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2270 | (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;
@@ -3100,7 +3100,7 @@ var STANDIN_SOURCE_DIGEST;
3100
3100
  var init_swift_standin_digest = __esm({
3101
3101
  "src/swift-standin-digest.ts"() {
3102
3102
  "use strict";
3103
- STANDIN_SOURCE_DIGEST = true ? "f548e83c6abe8dd5a2c941c3e6dda49428b276f3d10495535e97a14aca44c0cc" : standinSourceDigest();
3103
+ STANDIN_SOURCE_DIGEST = true ? "89e44465df23e51162420571715018b02da9bbaf61840c772745d5ba5f15487c" : standinSourceDigest();
3104
3104
  }
3105
3105
  });
3106
3106
 
@@ -5277,7 +5277,7 @@ var init_react_native_core = __esm({
5277
5277
  init_swift_distribution();
5278
5278
  init_swift_package();
5279
5279
  init_swiftContract();
5280
- recipe = true ? "6b67c6a71d4bea968d2b12089709b9f559c04bdd32fd1b13d97069d439205d8e" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
5280
+ recipe = true ? "8e950f0e9749922071dda3e668507e3ff24dd2678085abafc0a8403c6263bddf" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
5281
5281
  }
5282
5282
  });
5283
5283
 
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2269 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2270 | (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.2269 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2270 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
 
3
3
  // src/worklet-executable.ts
4
4
  import { parse } from "acorn";
@@ -70,6 +70,7 @@ export declare function addBackdropSample(damage: FrameDamage | null | undefined
70
70
  export declare function addTransformedBackdropSample(damage: FrameDamage | null | undefined, dpr: number, sourceSurface: Surface, matrix: Float32Array | number[], x: number, y: number, w: number, h: number): void;
71
71
  export declare function addTransformedMotionDamage(damage: FrameDamage | null | undefined, dpr: number, sourceSurface: Surface, matrix: Float32Array | number[], x: number, y: number, w: number, h: number): void;
72
72
  export declare function takeMotionDamage(damage: FrameDamage | null | undefined): DamageRect | null;
73
+ export declare function drawMotionApart(damage: FrameDamage | null | undefined, draw: () => void): boolean;
73
74
  export declare function touchDamage(damage: FrameDamage | null | undefined): void;
74
75
  export declare function setSourceUnknown(damage: FrameDamage | null | undefined, unknown: boolean): void;
75
76
  export declare function forceFullRedraw(damage: FrameDamage | null | undefined): void;
@@ -1,6 +1,9 @@
1
- overlay/java/util/TimeZoneOffsets.java ports the raw offset and DST savings rules of
2
- com.android.i18n.timezone.ZoneInfoData (Android external/icu android_icu4j/libcore_bridge,
3
- android17-release).
1
+ overlay/com/android/internal/os/LoggingPrintStream.java and AndroidPrintStream.java port
2
+ Android frameworks/base core/java/com/android/internal/os (android17-release).
3
+ overlay/libcore/util/ZoneInfo.java and overlay/dalvik/system/RuntimeHooks.java port Android
4
+ libcore's luni sources, overlay/com/android/internal/os/RuntimeInit.java ports the time zone step
5
+ of frameworks/base RuntimeInit.java, and overlay/com/android/i18n/timezone ZoneInfoData.java and
6
+ ZoneInfoDb.java port Android external/icu android_icu4j/libcore_bridge (android17-release).
4
7
  Copyright (C) 2007 The Android Open Source Project
5
8
 
6
9
  Licensed under the Apache License, Version 2.0:
@@ -19,7 +19,8 @@ Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
19
19
 
20
20
  The overlay's java/time/format/DateTimeTextNames.java and the LocaleStore edit in
21
21
  threeten-patches.ts port Android's java/time/format/DateTimeTextProvider.java and
22
- sun/util/locale/provider/CalendarDataUtility.java; kotlin/java/text/DateFormatSymbols.kt
22
+ sun/util/locale/provider/CalendarDataUtility.java, which the overlay's
23
+ sun/util/locale/provider/CalendarDataUtility.java also ports; kotlin/java/text/DateFormatSymbols.kt
23
24
  ports Android's java/text/DateFormatSymbols.java (ojluni, android17-release).
24
25
  Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
25
26
  Copyright (C) 2014 The Android Open Source Project
@@ -28,9 +29,9 @@ Copyright (c) 1996, 2020, Oracle and/or its affiliates. All rights reserved.
28
29
  The overlay's java/time/format ZoneTextPrinterParser.java, ZoneIdPrinterParser.java,
29
30
  ZoneTextNames.java, PrefixTree.java and PrefixTreeCaseless.java port Android's
30
31
  DateTimeFormatterBuilder zone printer-parsers and PrefixTree; kotlin/java/text/JavaZoneNames.kt
31
- ports java/time/format/ZoneName.java; overlay/java/util/JavaTimeZones.java and
32
- TimeZoneOffsets.java port java/util/TimeZone.java's getTimeZone, getDisplayName and custom
33
- zones (ojluni, android17-release).
32
+ ports java/time/format/ZoneName.java. The overlay's java/util TimeZone.java, SimpleTimeZone.java,
33
+ Calendar.java and GregorianCalendar.java, and its sun/util/calendar files, port Android's copies
34
+ of those OpenJDK files (ojluni, android17-release).
34
35
  Copyright (c) 2012, 2020, Oracle and/or its affiliates. All rights reserved.
35
36
  Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.
36
37
  Copyright (c) 1996, 2023, Oracle and/or its affiliates. All rights reserved.
package/kotlin/sdk.tar.gz CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.2269",
3
+ "version": "0.1.2270",
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",
@@ -75,14 +75,30 @@ function verifyHost(dir: string): void {
75
75
  }
76
76
  }
77
77
 
78
+ // a served page asks on every request, so each Info.plist's values are read once per version of the file
79
+ const bundleValues = new Map<
80
+ string,
81
+ { stamp: string; values: Map<string, string | null> }
82
+ >()
83
+
78
84
  function bundleValue(app: string, key: string): string | null {
85
+ const plist = path.join(app, 'Contents/Info.plist')
86
+ const stat = fs.statSync(plist, { throwIfNoEntry: false })
87
+ if (!stat) return null
88
+ const stamp = `${stat.ino}:${stat.size}:${stat.mtimeMs}`
89
+ let entry = bundleValues.get(plist)
90
+ if (entry?.stamp !== stamp) {
91
+ entry = { stamp, values: new Map() }
92
+ bundleValues.set(plist, entry)
93
+ }
94
+ if (entry.values.has(key)) return entry.values.get(key) ?? null
79
95
  // runner-toolchain-platform: darwin
80
- const read = spawnSync(
81
- 'plutil',
82
- ['-extract', key, 'raw', '-o', '-', path.join(app, 'Contents/Info.plist')],
83
- { encoding: 'utf8' },
84
- )
85
- return read.status === 0 ? read.stdout.trim() : null
96
+ const read = spawnSync('plutil', ['-extract', key, 'raw', '-o', '-', plist], {
97
+ encoding: 'utf8',
98
+ })
99
+ const value = read.status === 0 ? read.stdout.trim() : null
100
+ entry.values.set(key, value)
101
+ return value
86
102
  }
87
103
 
88
104
  /** whether `app` is the native host, as opposed to the Electron app, which
@@ -30,7 +30,7 @@ import {
30
30
  nativeEntryPrefix,
31
31
  nativePackageEntryName,
32
32
  } from './native-prebuilt'
33
- import { packageTreeDigest } from './package-tree-digest'
33
+ import { nativePackageTreeDigest } from './package-tree-digest'
34
34
  import { swiftNativePin } from './swift-native-pin'
35
35
 
36
36
  export interface ExpoPodPackage {
@@ -72,7 +72,7 @@ export async function expoPodInputs(
72
72
  answered: JSON.stringify([...peachAnsweredNativePackages()].sort()),
73
73
  name: pod.name,
74
74
  version: pod.version,
75
- tree: await packageTreeDigest(pod.root),
75
+ tree: await nativePackageTreeDigest(pod.root),
76
76
  }
77
77
  }
78
78
 
@@ -151,7 +151,33 @@ export async function prebuiltExpoPods(
151
151
  ),
152
152
  )
153
153
  const bundled = await lookup(expoAppBundleEntryUrl(bundleKey, 'metadata.json'))
154
- if (bundled) return bundled
154
+ if (bundled) {
155
+ const isCovered = (swiftModule: string) =>
156
+ bundled.namespaces.some(
157
+ (ns) => ns === swiftModule || ns.startsWith(`${swiftModule}.`),
158
+ )
159
+ const remaining = podEntries.filter(({ pod }) => !isCovered(pod.swiftModule))
160
+ if (remaining.length === 0) return bundled
161
+ const extraEntries = await Promise.all(
162
+ remaining.map(async ({ pod, podKey }) =>
163
+ lookup(expoPodEntryUrl(pod.name, podKey, 'metadata.json')),
164
+ ),
165
+ )
166
+ const extraHits = extraEntries.filter((entry) => entry !== null)
167
+ if (extraHits.length === 0) return bundled
168
+ const merged = [bundled, ...extraHits]
169
+ const bridgeModules = [
170
+ ...new Set(merged.flatMap((entry) => entry.bridgeModules ?? [])),
171
+ ]
172
+ return {
173
+ namespaces: merged.flatMap((entry) => entry.namespaces),
174
+ ...(merged.some((entry) => entry.bridgeModules !== undefined)
175
+ ? { bridgeModules }
176
+ : {}),
177
+ modules: merged.flatMap((entry) => entry.modules),
178
+ failures: [],
179
+ }
180
+ }
155
181
  }
156
182
  const entries = await Promise.all(
157
183
  podEntries.map(async ({ pod, podKey }) =>
@@ -49,6 +49,7 @@ ${registration}`,
49
49
  },
50
50
  ]
51
51
  const bundle = [
52
+ `var __DEV__=false;`,
52
53
  `var __METRO_GLOBAL_PREFIX__='';`,
53
54
  `(function(global){${METRO_REQUIRE_POLYFILL}})(globalThis);`,
54
55
  ...modules.map(
@@ -142,9 +142,11 @@ function entrySource(ids: string[]): string {
142
142
  'fun peachSetAndroidDeviceInfo(model: String, release: String, apiLevel: Int, locale: String, timeZone: String, settings: String, properties: String) {',
143
143
  ' Build.setDevice(model, release, apiLevel)',
144
144
  ' java.util.Locale.setDefault(java.util.Locale.forLanguageTag(locale))',
145
- ' java.util.TimeZone.setDevice(timeZone)',
146
145
  ' dev.peach.android.ProcessSettings.configure(settings)',
147
- ' android.os.SystemProperties.configure(properties)',
146
+ ' // the engine reports the device zone apart; android keeps it in persist.sys.timezone',
147
+ ' android.os.SystemProperties.configure(org.json.JSONObject(properties).put("persist.sys.timezone", timeZone).toString())',
148
+ " // a later call is the device's time zone change, which ActivityThread answers with setDefault(null)",
149
+ ' if (dalvik.system.RuntimeHooks.getTimeZoneIdSupplier() == null) com.android.internal.os.RuntimeInit.commonInit() else java.util.TimeZone.setDefault(null)',
148
150
  '}',
149
151
  '',
150
152
  '@OptIn(kotlin.js.ExperimentalJsExport::class, kotlinx.coroutines.DelicateCoroutinesApi::class)',
@@ -762,9 +764,11 @@ export async function expoKotlinArtifact(
762
764
  '@JsExport fun peachSetAndroidDeviceInfo(model: String, release: String, apiLevel: Int, locale: String, timeZone: String, settings: String, properties: String) {',
763
765
  ' android.os.Build.setDevice(model, release, apiLevel)',
764
766
  ' java.util.Locale.setDefault(java.util.Locale.forLanguageTag(locale))',
765
- ' java.util.TimeZone.setDevice(timeZone)',
766
767
  ' dev.peach.android.ProcessSettings.configure(settings)',
767
- ' android.os.SystemProperties.configure(properties)',
768
+ ' // the engine reports the device zone apart; android keeps it in persist.sys.timezone',
769
+ ' android.os.SystemProperties.configure(org.json.JSONObject(properties).put("persist.sys.timezone", timeZone).toString())',
770
+ " // a later call is the device's time zone change, which ActivityThread answers with setDefault(null)",
771
+ ' if (dalvik.system.RuntimeHooks.getTimeZoneIdSupplier() == null) com.android.internal.os.RuntimeInit.commonInit() else java.util.TimeZone.setDefault(null)',
768
772
  ' PeachExpoRuntime.configureProcessLocale(locale)',
769
773
  '}',
770
774
  '',