peachsim 0.1.2425 → 0.1.2427

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 (90) 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 +36663 -36632
  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 +42 -9
  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 +43 -10
  31. package/dist-lib/host/fetch-proxy-handler.cjs +2650 -2647
  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 +5 -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 +7313 -7310
  47. package/dist-lib/native-app-identity-project.cjs +1 -1
  48. package/dist-lib/native-app-identity-project.mjs +1 -1
  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 +99 -99
  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 +57 -19
  68. package/dist-lib/swift-compile.cjs +1 -1
  69. package/dist-lib/swift-compile.mjs +1 -1
  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 +11 -5
  77. package/dist-lib/vite.cjs +5 -2
  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/engine/node.d.ts +1 -0
  81. package/dist-types/packages/peach-engine/src/engine/svg-native.d.ts +60 -0
  82. package/dist-types/packages/peach-engine/src/native-preview-bundle.d.ts +1 -0
  83. package/package.json +1 -1
  84. package/src/expo-native-workspace.ts +4 -0
  85. package/src/native-static-libraries.ts +2 -1
  86. package/src/podfile-cocoapods.ts +1 -13
  87. package/src/podspec-cocoapods.ts +13 -1
  88. package/src/podspec-ruby.ts +4 -2
  89. package/src/swift-standin-builtin-behavior.ts +3 -0
  90. package/src/swift-standin-emit.ts +10 -1
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2427 | (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;
@@ -5984,7 +5984,7 @@ var init_supported_native_packages = __esm({
5984
5984
  "expo-linking",
5985
5985
  // seam+coverage
5986
5986
  "expo-live-activity",
5987
- // seam
5987
+ // compiled-swift
5988
5988
  "expo-live-photo",
5989
5989
  // seam+coverage
5990
5990
  "expo-local-authentication",
@@ -6042,7 +6042,7 @@ var init_supported_native_packages = __esm({
6042
6042
  "expo-sensors",
6043
6043
  // semantic-proof+seam
6044
6044
  "expo-share-extension",
6045
- // seam
6045
+ // compiled-swift
6046
6046
  "expo-share-intent",
6047
6047
  // seam
6048
6048
  "expo-sharing",
@@ -14184,9 +14184,9 @@ var init_registry = __esm({
14184
14184
  {
14185
14185
  range: ">=0.4.2 <0.5.0",
14186
14186
  coverage: 0.7,
14187
- note: "native-seam only \u2014 upstream JS (start/stop/updateActivity, normalizeConfig, the three addActivity*Listener wrappers) runs from the bundle; deterministic in-memory activities mirror the ios native module lifecycle, guards, and event payloads",
14188
- working: "startActivity sync uuid-shaped ids with stored content and normalized config passthrough, stopActivity/updateActivity with ActivityNotFound on unknown ids, onStateChange active/ended/dismissed payloads, token listener plumbing that never fires without the push plist key, multiple concurrent activities, ios 16.2 guard with native reason strings",
14189
- missing: "no Lock Screen / Dynamic Island / standby rendering host, no ActivityKit push token delivery (guest carries no push plist key), no shared-container image download (names pass through), no cross-restart persistence"
14187
+ note: "iOS compiles the upstream Expo module and uses the shared ActivityKit implementation.",
14188
+ working: "activity creation, updates, immediate dismissal, state events, and multiple activities with NSSupportsLiveActivities enabled",
14189
+ missing: "ActivityKit push token delivery and this package\u2019s WidgetKit extension rendering are unverified"
14190
14190
  }
14191
14191
  ]
14192
14192
  },
@@ -14574,8 +14574,8 @@ var init_registry = __esm({
14574
14574
  {
14575
14575
  range: ">=1.0.0",
14576
14576
  coverage: 0.75,
14577
- note: "installed JavaScript owns the RCTView, RCTText and TextInput wrappers; native ExpoShareExtension reads the app group and preserves native cleanup errors",
14578
- missing: "system extension-controller lifecycle and native app-group container provisioning"
14577
+ note: "iOS compiles the upstream Expo module and uses the shared App Group container for cleanup.",
14578
+ missing: "system share extension presentation and host app launching from the extension"
14579
14579
  }
14580
14580
  ]
14581
14581
  },
@@ -19532,11 +19532,18 @@ var init_registry = __esm({
19532
19532
  stubType: "native",
19533
19533
  versions: [
19534
19534
  {
19535
- range: ">=1.1.0",
19535
+ range: ">=1.1.0 <2.0.0",
19536
19536
  coverage: 0,
19537
- note: "unsupported Android SMS OTP autofill module",
19537
+ note: "unsupported Android SMS OTP autofill module (Expo module, no iOS native code)",
19538
19538
  working: "no OTP autofill behavior is verified",
19539
19539
  missing: "AvasOtpAutofill app hash, SMS listener lifecycle, parsing, and events"
19540
+ },
19541
+ {
19542
+ range: ">=2.0.0",
19543
+ coverage: 0,
19544
+ note: "unsupported Android SMS OTP autofill module (OtpAutofill TurboModule, no iOS native code; read from 2.0.0 source, not run)",
19545
+ working: "no OTP autofill behavior is verified",
19546
+ missing: "OtpAutofill getAppHash, startListening and stopListening"
19540
19547
  }
19541
19548
  ]
19542
19549
  },
@@ -34525,7 +34532,7 @@ function nodeShell(command, cwd, env, writable) {
34525
34532
  return { stdout: "", status: 0 };
34526
34533
  }
34527
34534
  const steps = command.split(/&&|;/).map((step) => step.trim().split(/\s+/)[0]);
34528
- if (!steps.every((program) => program === "node" || program === "cd"))
34535
+ if (!steps.every((program) => program === "node" || program === "bun" || program === "cd"))
34529
34536
  throw new UnsupportedRuby(`shell command \`${command}\``);
34530
34537
  const result = (0, import_node_child_process9.spawnSync)("/bin/sh", ["-c", command], {
34531
34538
  cwd,
@@ -40247,7 +40254,10 @@ function emitSwiftStandin(sourceGraphs, options) {
40247
40254
  /@(\w+)(?:\([^)]*\))?\s*/g,
40248
40255
  (attr, name3) => typeByPath.has(name3) ? "" : attr
40249
40256
  ) : spelledAttrs;
40250
- const attrs = options.unobjc?.has(path154) ? wrapped.replace(/@objc(?:\([^)]*\))?\s*/g, "") : wrapped;
40257
+ const selector = context.inClass && !options.inert && member.kind.identifier === "swift.type.method" && !/\basync\b/.test(rest) ? /^c:objc\(cs\)\w+\(cm\)([A-Za-z_][A-Za-z_0-9:]*)$/.exec(
40258
+ member.identifier.precise
40259
+ )?.[1] : void 0;
40260
+ const attrs = options.unobjc?.has(path154) ? wrapped.replace(/@objc(?:\([^)]*\))?\s*/g, "") : `${wrapped}${selector ? `@objc(${selector}) ` : ""}`;
40251
40261
  const modifiers = /^((?:(?:required|final|override|convenience|unowned(?:\(\w+\))?|weak|lazy|nonisolated|mutating|nonmutating) )*)(.*)$/s.exec(
40252
40262
  rest
40253
40263
  );
@@ -42301,7 +42311,9 @@ function cocoapodsInterpreter(app, writable, env) {
42301
42311
  const interp = new Interpreter({
42302
42312
  cwd: app,
42303
42313
  env: new Map(
42304
- Object.entries(env).flatMap(([k, v7]) => v7 === void 0 ? [] : [[k, v7]])
42314
+ Object.entries({ ...env, ...SOURCE_BUILD_ENV }).flatMap(
42315
+ ([k, v7]) => v7 === void 0 ? [] : [[k, v7]]
42316
+ )
42305
42317
  ),
42306
42318
  shell: (command, cwd) => {
42307
42319
  const probe2 = HOST_PROBES.get(command.trim());
@@ -42434,7 +42446,7 @@ function evaluatePodspec(file, app, writable, env) {
42434
42446
  return toJson(interp, call(pod, "peach_evaluated", [spec]));
42435
42447
  });
42436
42448
  }
42437
- var import_node_child_process14, import_node_fs24, import_node_module2, import_node_path21, PRELUDE, PodspecEvaluationError, HOST_PROBES;
42449
+ var import_node_child_process14, import_node_fs24, import_node_module2, import_node_path21, PRELUDE, PodspecEvaluationError, HOST_PROBES, SOURCE_BUILD_ENV;
42438
42450
  var init_podspec_cocoapods = __esm({
42439
42451
  "src/podspec-cocoapods.ts"() {
42440
42452
  "use strict";
@@ -43399,6 +43411,12 @@ end
43399
43411
  `],
43400
43412
  ["/usr/sbin/sysctl -n hw.optional.arm64 2>&1", "1\n"]
43401
43413
  ]);
43414
+ SOURCE_BUILD_ENV = {
43415
+ RCT_USE_RN_DEP: "0",
43416
+ RCT_USE_PREBUILT_RNCORE: "0",
43417
+ RCT_BUILD_HERMES_FROM_SOURCE: "true",
43418
+ ONE_PREBUILT_IOS: "0"
43419
+ };
43402
43420
  }
43403
43421
  });
43404
43422
 
@@ -43437,6 +43455,19 @@ var init_workspace_root = __esm({
43437
43455
  });
43438
43456
 
43439
43457
  // src/podspec-sources.ts
43458
+ function readInstalledPodspecs(appRoot, projectRoot) {
43459
+ const directory2 = import_node_path23.default.join(projectRoot, "ios/Pods/Local Podspecs");
43460
+ const files2 = import_node_fs26.default.readdirSync(directory2).filter((name3) => name3.endsWith(".podspec.json"));
43461
+ installedSpecs.set(
43462
+ import_node_fs26.default.realpathSync(appRoot),
43463
+ new Map(
43464
+ files2.map((name3) => [
43465
+ name3.slice(0, -".podspec.json".length),
43466
+ import_node_path23.default.join(directory2, name3)
43467
+ ])
43468
+ )
43469
+ );
43470
+ }
43440
43471
  function restoreEvaluatedPodspecs(appRoot, values) {
43441
43472
  const app = import_node_fs26.default.realpathSync(appRoot);
43442
43473
  inputKeys.set(app, /* @__PURE__ */ new Map());
@@ -77697,6 +77728,9 @@ async function prepareWorkspace(app, stage, key2, podsEnvironment) {
77697
77728
  import_node_fs73.default.utimesSync(work, now, now);
77698
77729
  return { app: preparedApp, work };
77699
77730
  });
77731
+ if (stage === "workspace") {
77732
+ for (const root2 of [app, result.app]) readInstalledPodspecs(root2, result.app);
77733
+ }
77700
77734
  await pruneExpoNativeWorkspaces(import_node_path71.default.dirname(work), work);
77701
77735
  current.set(key2, { watch: watch3, edits, result });
77702
77736
  return result;
@@ -77828,6 +77862,7 @@ var init_expo_native_workspace = __esm({
77828
77862
  init_native_failure_output();
77829
77863
  init_native_git();
77830
77864
  init_one_sdk_preparation();
77865
+ init_podspec_sources();
77831
77866
  init_portable_expo_workspace();
77832
77867
  init_retired_cache_directory();
77833
77868
  init_swift_helper();
@@ -78414,7 +78449,7 @@ var init_swift_standin_digest = __esm({
78414
78449
  STANDIN_DIGEST_ENTRYPOINTS = ["swift-standins.ts", "swift-objc-compile.ts"];
78415
78450
  SPECIFIER = /from\s*['"]([^'"]+)['"]|import\s*\(\s*['"]([^'"]+)['"]\s*\)/g;
78416
78451
  standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
78417
- STANDIN_SOURCE_DIGEST = true ? "3a0e0016967d34924d12848e05752d3902596cc16a0f603a5fda32cb024d02f8" : standinSourceDigest();
78452
+ STANDIN_SOURCE_DIGEST = true ? "76ba6566c9c2d1f2324dcae610243363f830f57e3753da053da53d749835e23a" : standinSourceDigest();
78418
78453
  }
78419
78454
  });
78420
78455
 
@@ -78909,7 +78944,7 @@ __export(expo_native_prebuilt_exports, {
78909
78944
  servedExpoSwift: () => servedExpoSwift
78910
78945
  });
78911
78946
  function expoNativeCompilerDigestValue() {
78912
- return true ? "305cb9d6b64ebf2397b29848afd9b634d4012fc3eb51d696e9bdda10ea074097" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
78947
+ return true ? "541814743d6d1d2638834f16c88f711def3d653a5f9f18dda242a6249a5b6b0a" : expoNativeCompilerDigest(__sootsim_import_meta_dirname);
78913
78948
  }
78914
78949
  function readSources(value) {
78915
78950
  const sources = isRecord(value) ? value.sources : null;
@@ -79399,11 +79434,11 @@ function nativeStaticLibrary(file, recipe2, moduleRoot) {
79399
79434
  return "runtime" in recipe2 ? rustStaticLibrary(archive, moduleRoot) : archive;
79400
79435
  }
79401
79436
  function isRustSymbol(name3, demangled) {
79402
- return (name3.startsWith("_R") || /^_ZN.*17h[0-9a-f]{16}E$/.test(name3)) && demangled !== name3 || name3 === "rust_eh_personality" || name3 === "__getrandom_v03_custom";
79437
+ return (name3.startsWith("_R") || /^_ZN.*17h[0-9a-f]{16}E$/.test(name3)) && demangled !== name3 || name3 === "rust_eh_personality" || name3 === "__getrandom_custom" || name3 === "__getrandom_v03_custom";
79403
79438
  }
79404
79439
  function rustStaticLibrary(file, moduleRoot) {
79405
79440
  const toolchain = swiftModuleToolchain(moduleRoot);
79406
- const key2 = (0, import_node_crypto45.createHash)("sha256").update("rust-c-abi-v2\0").update(toolchain.release).update("\0").update(import_node_fs80.default.readFileSync(file)).digest("hex");
79441
+ const key2 = (0, import_node_crypto45.createHash)("sha256").update("rust-c-abi-v3\0").update(toolchain.release).update("\0").update(import_node_fs80.default.readFileSync(file)).digest("hex");
79407
79442
  const directory2 = import_node_path78.default.join(cacheDir(), "native-archives", key2);
79408
79443
  const archive = import_node_path78.default.join(directory2, "library.a");
79409
79444
  if (import_node_fs80.default.existsSync(archive)) return archive;
@@ -81246,6 +81281,9 @@ var init_swift_standin_builtin_behavior = __esm({
81246
81281
  "src/swift-standin-builtin-behavior.ts"() {
81247
81282
  "use strict";
81248
81283
  BUILTIN_STANDIN_BEHAVIOR = {
81284
+ FirebaseAnalytics: {
81285
+ "Analytics.logEvent(_:parameters:)": { body: "" }
81286
+ },
81249
81287
  GoogleCast: {
81250
81288
  kGCKCastDeviceCategory: { body: 'return "com.google.cast.CastDevice"' },
81251
81289
  kGCKDefaultMediaReceiverApplicationID: { body: 'return "CC1AD845"' },
@@ -102112,7 +102150,7 @@ var init_nitro_superset = __esm({
102112
102150
  init_nitroContract();
102113
102151
  init_swift_standin_digest();
102114
102152
  NITRO_SUPERSET_ENTRY_NAME = "superset";
102115
- NITRO_COMPILER_DIGEST = true ? "5e8f14caf06af284e971f4107b94fe6d6979dd2ac0da718416a93c6e36e8e2a0" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
102153
+ NITRO_COMPILER_DIGEST = true ? "4f4602c969d2d3c26b420fbc06e8b910a80d13946db58aa6d01c3726b936ff20" : nitroCompilerSourceDigest(__sootsim_import_meta_dirname, STANDIN_SOURCE_DIGEST2);
102116
102154
  nitroSupersetLock = parseLock(nitro_superset_lock_default);
102117
102155
  nitroSupersetKey = (inputs) => nativeEntryKey({ ...inputs, compiler: NITRO_COMPILER_DIGEST });
102118
102156
  published2 = /* @__PURE__ */ new Map();
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2427 | (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.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2427 | (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.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2427 | (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.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2427 | (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.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2427 | (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.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2427 | (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.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2427 | (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.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2427 | (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.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2427 | (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;
@@ -6987,7 +6987,10 @@ function emitSwiftStandin(sourceGraphs, options) {
6987
6987
  /@(\w+)(?:\([^)]*\))?\s*/g,
6988
6988
  (attr, name3) => typeByPath.has(name3) ? "" : attr
6989
6989
  ) : spelledAttrs;
6990
- const attrs = options.unobjc?.has(path57) ? wrapped.replace(/@objc(?:\([^)]*\))?\s*/g, "") : wrapped;
6990
+ const selector = context.inClass && !options.inert && member.kind.identifier === "swift.type.method" && !/\basync\b/.test(rest) ? /^c:objc\(cs\)\w+\(cm\)([A-Za-z_][A-Za-z_0-9:]*)$/.exec(
6991
+ member.identifier.precise
6992
+ )?.[1] : void 0;
6993
+ const attrs = options.unobjc?.has(path57) ? wrapped.replace(/@objc(?:\([^)]*\))?\s*/g, "") : `${wrapped}${selector ? `@objc(${selector}) ` : ""}`;
6991
6994
  const modifiers = /^((?:(?:required|final|override|convenience|unowned(?:\(\w+\))?|weak|lazy|nonisolated|mutating|nonmutating) )*)(.*)$/s.exec(
6992
6995
  rest
6993
6996
  );
@@ -34696,7 +34699,7 @@ function sourceClosureDigest(srcDir, entrypoints, excludedFiles) {
34696
34699
  return hash.digest("hex");
34697
34700
  }
34698
34701
  var standinSourceDigest = (srcDir = __sootsim_import_meta_dirname) => sourceClosureDigest(srcDir, STANDIN_DIGEST_ENTRYPOINTS);
34699
- var STANDIN_SOURCE_DIGEST = true ? "3a0e0016967d34924d12848e05752d3902596cc16a0f603a5fda32cb024d02f8" : standinSourceDigest();
34702
+ var STANDIN_SOURCE_DIGEST = true ? "76ba6566c9c2d1f2324dcae610243363f830f57e3753da053da53d749835e23a" : standinSourceDigest();
34700
34703
 
34701
34704
  // src/swift-standins.ts
34702
34705
  var import_node_child_process32 = require("node:child_process");
@@ -35119,11 +35122,11 @@ function nativeStaticLibrary(file, recipe, moduleRoot) {
35119
35122
  return "runtime" in recipe ? rustStaticLibrary(archive, moduleRoot) : archive;
35120
35123
  }
35121
35124
  function isRustSymbol(name3, demangled) {
35122
- return (name3.startsWith("_R") || /^_ZN.*17h[0-9a-f]{16}E$/.test(name3)) && demangled !== name3 || name3 === "rust_eh_personality" || name3 === "__getrandom_v03_custom";
35125
+ return (name3.startsWith("_R") || /^_ZN.*17h[0-9a-f]{16}E$/.test(name3)) && demangled !== name3 || name3 === "rust_eh_personality" || name3 === "__getrandom_custom" || name3 === "__getrandom_v03_custom";
35123
35126
  }
35124
35127
  function rustStaticLibrary(file, moduleRoot) {
35125
35128
  const toolchain = swiftModuleToolchain(moduleRoot);
35126
- const key2 = (0, import_node_crypto27.createHash)("sha256").update("rust-c-abi-v2\0").update(toolchain.release).update("\0").update(import_node_fs48.default.readFileSync(file)).digest("hex");
35129
+ const key2 = (0, import_node_crypto27.createHash)("sha256").update("rust-c-abi-v3\0").update(toolchain.release).update("\0").update(import_node_fs48.default.readFileSync(file)).digest("hex");
35127
35130
  const directory = import_node_path50.default.join(cacheDir(), "native-archives", key2);
35128
35131
  const archive = import_node_path50.default.join(directory, "library.a");
35129
35132
  if (import_node_fs48.default.existsSync(archive)) return archive;
@@ -35624,6 +35627,9 @@ async function emitCxxStandin(input) {
35624
35627
 
35625
35628
  // src/swift-standin-builtin-behavior.ts
35626
35629
  var BUILTIN_STANDIN_BEHAVIOR = {
35630
+ FirebaseAnalytics: {
35631
+ "Analytics.logEvent(_:parameters:)": { body: "" }
35632
+ },
35627
35633
  GoogleCast: {
35628
35634
  kGCKCastDeviceCategory: { body: 'return "com.google.cast.CastDevice"' },
35629
35635
  kGCKDefaultMediaReceiverApplicationID: { body: 'return "CC1AD845"' },
package/dist-lib/vite.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2427 | (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;
@@ -4382,7 +4382,7 @@ var STANDIN_SOURCE_DIGEST;
4382
4382
  var init_swift_standin_digest = __esm({
4383
4383
  "src/swift-standin-digest.ts"() {
4384
4384
  "use strict";
4385
- STANDIN_SOURCE_DIGEST = true ? "3a0e0016967d34924d12848e05752d3902596cc16a0f603a5fda32cb024d02f8" : standinSourceDigest();
4385
+ STANDIN_SOURCE_DIGEST = true ? "76ba6566c9c2d1f2324dcae610243363f830f57e3753da053da53d749835e23a" : standinSourceDigest();
4386
4386
  }
4387
4387
  });
4388
4388
 
@@ -12212,6 +12212,9 @@ init_bundle_global_footer();
12212
12212
  init_is_record();
12213
12213
  init_swiftContract();
12214
12214
 
12215
+ // src/expo-native-workspace.ts
12216
+ init_podspec_sources();
12217
+
12215
12218
  // src/portable-expo-workspace.ts
12216
12219
  init_is_record();
12217
12220
 
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2427 | (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.2425 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2427 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
2
2
  var __defProp = Object.defineProperty;
3
3
  var __typeError = (msg) => {
4
4
  throw TypeError(msg);
@@ -536,6 +536,7 @@ export declare class SootSimNode extends NativeNodeRecord {
536
536
  until: number;
537
537
  } | null;
538
538
  _paintBoundary?: import('./paint-boundary-types.d.ts').PaintBoundaryState | null;
539
+ _svgSpriteAtlas?: import('./svg-native.d.ts').SvgSpriteAtlas;
539
540
  __lastBackdropSig?: string;
540
541
  __lastBackdropInk?: DamageRect;
541
542
  constructor(type: SootSimNodeType, props?: Record<string, any>, nativeRenderer?: NativeRenderer, fabricTextEpsilon?: number, resolvedStyle?: SootSimStyle, svgCurrentColorUsesPaintOpacity?: boolean);
@@ -0,0 +1,60 @@
1
+ import { type CanvasKitRenderingApi } from './canvaskit-api.d.ts';
2
+ import { SootSimNode } from './node.d.ts';
3
+ import type { RenderContext } from './types.d.ts';
4
+ import type { Image } from 'canvaskit-wasm';
5
+ export interface SvgSpriteAtlas {
6
+ key: string;
7
+ canvasKitVersion: number;
8
+ image: Image;
9
+ rects: Map<string, readonly [number, number, number, number]>;
10
+ }
11
+ export declare function drawSvgRoot(node: SootSimNode, ctx: RenderContext, x: number, y: number, w: number, h: number): void;
12
+ export declare function paintSvgLeaf(node: SootSimNode, ctx: RenderContext, x: number, y: number, w: number, h: number): number;
13
+ export declare function svgSymbolImageRect(ck: CanvasKitRenderingApi, node: SootSimNode): {
14
+ left: number;
15
+ top: number;
16
+ width: number;
17
+ height: number;
18
+ units: number;
19
+ insets: [number, number, number, number];
20
+ viewBox: {
21
+ translateX: number;
22
+ translateY: number;
23
+ scaleX: number;
24
+ scaleY: number;
25
+ };
26
+ };
27
+ export declare function isSvgRenderablePointInFill(target: unknown, point: {
28
+ x: number;
29
+ y: number;
30
+ }): boolean;
31
+ export declare function isSvgRenderablePointInStroke(target: unknown, point: {
32
+ x: number;
33
+ y: number;
34
+ }): boolean;
35
+ export declare function getSvgRenderableTotalLength(target: unknown): number;
36
+ export declare function getSvgRenderablePointAtLength(target: unknown, distance: number): {
37
+ x: number;
38
+ y: number;
39
+ };
40
+ export declare function getSvgRenderableBBox(target: unknown, options: {
41
+ clipped: boolean;
42
+ fill: boolean;
43
+ markers: boolean;
44
+ stroke: boolean;
45
+ }): {
46
+ x: number;
47
+ y: number;
48
+ width: number;
49
+ height: number;
50
+ } | null;
51
+ export declare function getSvgRenderableCTM(target: unknown): {
52
+ a: number;
53
+ b: number;
54
+ c: number;
55
+ d: number;
56
+ e: number;
57
+ f: number;
58
+ } | null;
59
+ export declare function svgShapeContains(ck: object, slot: number, path: string, x: number, y: number): boolean;
60
+ export declare function disposeSvgSurfaceResources(surface: object): void;
@@ -20,6 +20,7 @@ export type NativePreviewBundleShared = {
20
20
  depBase: string;
21
21
  depVersion?: string | null;
22
22
  serverUrl?: string | null;
23
+ assetServerPath?: string | null;
23
24
  externalPackages?: string[];
24
25
  cdnPackages?: Record<string, string>;
25
26
  sequence?: number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peachsim",
3
- "version": "0.1.2425",
3
+ "version": "0.1.2427",
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",
@@ -18,6 +18,7 @@ import { cacheDir } from './home-paths.ts'
18
18
  import { failedOutputLine } from './native-failure-output.ts'
19
19
  import { requireNativeGit } from './native-git.ts'
20
20
  import { prepareOneSDKSources } from './one-sdk-preparation.ts'
21
+ import { readInstalledPodspecs } from './podspec-sources.ts'
21
22
  import { portableExpoWorkspace } from './portable-expo-workspace.ts'
22
23
  import {
23
24
  reapRetiredCacheDirectory,
@@ -1126,6 +1127,9 @@ async function prepareWorkspace(
1126
1127
  fs.utimesSync(work, now, now)
1127
1128
  return { app: preparedApp, work }
1128
1129
  })
1130
+ if (stage === 'workspace') {
1131
+ for (const root of [app, result.app]) readInstalledPodspecs(root, result.app)
1132
+ }
1129
1133
  // retirement scans and renames other workspaces; it keeps this one by name
1130
1134
  // and takes their locks without waiting, so it needs no place inside this
1131
1135
  // workspace's lock, where it only lengthens the wait of the next prepare.
@@ -373,6 +373,7 @@ function isRustSymbol(name: string, demangled: string): boolean {
373
373
  ((name.startsWith('_R') || /^_ZN.*17h[0-9a-f]{16}E$/.test(name)) &&
374
374
  demangled !== name) ||
375
375
  name === 'rust_eh_personality' ||
376
+ name === '__getrandom_custom' ||
376
377
  name === '__getrandom_v03_custom'
377
378
  )
378
379
  }
@@ -380,7 +381,7 @@ function isRustSymbol(name: string, demangled: string): boolean {
380
381
  export function rustStaticLibrary(file: string, moduleRoot: string): string {
381
382
  const toolchain = swiftModuleToolchain(moduleRoot)
382
383
  const key = createHash('sha256')
383
- .update('rust-c-abi-v2\0')
384
+ .update('rust-c-abi-v3\0')
384
385
  .update(toolchain.release)
385
386
  .update('\0')
386
387
  .update(fs.readFileSync(file))
@@ -1347,15 +1347,6 @@ function podClass(interp: Interpreter, name: string): RModule {
1347
1347
  return found
1348
1348
  }
1349
1349
 
1350
- // peach builds React Native's core, Hermes and their C++ dependencies from
1351
- // source itself, so the Podfile takes React Native's own source route instead
1352
- // of probing Maven and downloading prebuilt archives nothing here links
1353
- const REACT_NATIVE_FROM_SOURCE = {
1354
- RCT_USE_RN_DEP: '0',
1355
- RCT_USE_PREBUILT_RNCORE: '0',
1356
- RCT_BUILD_HERMES_FROM_SOURCE: 'true',
1357
- }
1358
-
1359
1350
  /** the app's `ios/Podfile`, evaluated with React Native's and the app's helpers. */
1360
1351
  export function evaluatePodfile(
1361
1352
  app: string,
@@ -1363,10 +1354,7 @@ export function evaluatePodfile(
1363
1354
  ): EvaluatedPodfile {
1364
1355
  const file = path.join(app, 'ios', 'Podfile')
1365
1356
  return rubyFailures(file, () => {
1366
- const { interp } = cocoapodsInterpreter(app, [app], {
1367
- ...env,
1368
- ...REACT_NATIVE_FROM_SOURCE,
1369
- })
1357
+ const { interp } = cocoapodsInterpreter(app, [app], env)
1370
1358
  interp.evalString(PODFILE, 'cocoapods-core/podfile')
1371
1359
  const pathname = interp.object.consts.get('Pathname') ?? null
1372
1360
  const podfile = send(interp, podClass(interp, 'Podfile'), 'new', [
@@ -995,6 +995,16 @@ const HOST_PROBES = new Map([
995
995
  ['/usr/sbin/sysctl -n hw.optional.arm64 2>&1', '1\n'],
996
996
  ])
997
997
 
998
+ // peach builds React Native's core, Hermes, their C++ dependencies and One
999
+ // from source itself, so Podfiles and podspecs take the source route instead
1000
+ // of probing Maven and downloading prebuilt archives nothing here links
1001
+ const SOURCE_BUILD_ENV = {
1002
+ RCT_USE_RN_DEP: '0',
1003
+ RCT_USE_PREBUILT_RNCORE: '0',
1004
+ RCT_BUILD_HERMES_FROM_SOURCE: 'true',
1005
+ ONE_PREBUILT_IOS: '0',
1006
+ }
1007
+
998
1008
  /**
999
1009
  * an interpreter with cocoapods-core's Pod module and React Native's pod
1000
1010
  * helpers loaded for `app`, with `env` as ENV. evaluated Ruby may write only
@@ -1008,7 +1018,9 @@ export function cocoapodsInterpreter(
1008
1018
  const interp = new Interpreter({
1009
1019
  cwd: app,
1010
1020
  env: new Map(
1011
- Object.entries(env).flatMap(([k, v]) => (v === undefined ? [] : [[k, v]])),
1021
+ Object.entries({ ...env, ...SOURCE_BUILD_ENV }).flatMap(([k, v]) =>
1022
+ v === undefined ? [] : [[k, v]],
1023
+ ),
1012
1024
  ),
1013
1025
  shell: (command, cwd) => {
1014
1026
  const probe = HOST_PROBES.get(command.trim())
@@ -5297,7 +5297,7 @@ export function childEnv(env: Map<string, string>): NodeJS.ProcessEnv {
5297
5297
  return result
5298
5298
  }
5299
5299
 
5300
- /** runs `command` like backticks when each step is `cd` or `node`, which resolve packages as the podspec expects. */
5300
+ /** runs `command` like backticks when each step is `cd` or a script runner (`node`, `bun`), which resolve packages as the podspec expects. */
5301
5301
  export function nodeShell(
5302
5302
  command: string,
5303
5303
  cwd: string,
@@ -5314,7 +5314,9 @@ export function nodeShell(
5314
5314
  return { stdout: '', status: 0 }
5315
5315
  }
5316
5316
  const steps = command.split(/&&|;/).map((step) => step.trim().split(/\s+/)[0])
5317
- if (!steps.every((program) => program === 'node' || program === 'cd'))
5317
+ if (
5318
+ !steps.every((program) => program === 'node' || program === 'bun' || program === 'cd')
5319
+ )
5318
5320
  throw new UnsupportedRuby(`shell command \`${command}\``)
5319
5321
  const result = spawnSync('/bin/sh', ['-c', command], {
5320
5322
  cwd,
@@ -8,6 +8,9 @@ import type { SwiftStandinBehaviors } from './swift-standin-emit'
8
8
  // start. the values below are what the iOS framework reports in that state;
9
9
  // the receiver-facing and UI members stay trapping stand-ins.
10
10
  const BUILTIN_STANDIN_BEHAVIOR: SwiftStandinBehaviors = {
11
+ FirebaseAnalytics: {
12
+ 'Analytics.logEvent(_:parameters:)': { body: '' },
13
+ },
11
14
  GoogleCast: {
12
15
  kGCKCastDeviceCategory: { body: 'return "com.google.cast.CastDevice"' },
13
16
  kGCKDefaultMediaReceiverApplicationID: { body: 'return "CC1AD845"' },
@@ -1291,9 +1291,18 @@ export function emitSwiftStandin(
1291
1291
  typeByPath.has(name) ? '' : attr,
1292
1292
  )
1293
1293
  : spelledAttrs!
1294
+ const selector =
1295
+ context.inClass &&
1296
+ !options.inert &&
1297
+ member.kind.identifier === 'swift.type.method' &&
1298
+ !/\basync\b/.test(rest!)
1299
+ ? /^c:objc\(cs\)\w+\(cm\)([A-Za-z_][A-Za-z_0-9:]*)$/.exec(
1300
+ member.identifier.precise,
1301
+ )?.[1]
1302
+ : undefined
1294
1303
  const attrs = options.unobjc?.has(path)
1295
1304
  ? wrapped.replace(/@objc(?:\([^)]*\))?\s*/g, '')
1296
- : wrapped
1305
+ : `${wrapped}${selector ? `@objc(${selector}) ` : ''}`
1297
1306
  const modifiers =
1298
1307
  /^((?:(?:required|final|override|convenience|unowned(?:\(\w+\))?|weak|lazy|nonisolated|mutating|nonmutating) )*)(.*)$/s.exec(
1299
1308
  rest!,