peachsim 0.1.2093 → 0.1.2095

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/detox/index.ts +15 -3
  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 +38 -25
  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 +10 -4
  26. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  27. package/dist-lib/expo-swift-bundle.cjs +26 -22
  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 +6 -1
  31. package/dist-lib/host/bridge-host.cjs +38 -25
  32. package/dist-lib/host/fetch-proxy-handler.cjs +4 -4
  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 +18 -17
  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 +18 -17
  48. package/dist-lib/native-app-identity-project.cjs +17 -16
  49. package/dist-lib/native-app-identity-project.mjs +17 -16
  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/pdfium-raster.cjs +1 -1
  55. package/dist-lib/pdfium-raster.mjs +1 -1
  56. package/dist-lib/plist.cjs +1 -1
  57. package/dist-lib/plist.mjs +1 -1
  58. package/dist-lib/profiles.cjs +1 -1
  59. package/dist-lib/public-brand.cjs +1 -1
  60. package/dist-lib/public-origins-lib-esm.json +24 -24
  61. package/dist-lib/public-origins-lib.json +53 -53
  62. package/dist-lib/react-native-host-modules.cjs +1 -1
  63. package/dist-lib/react-native-host-modules.mjs +1 -1
  64. package/dist-lib/reap-browser.cjs +1 -1
  65. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  66. package/dist-lib/sdk.cjs +1 -1
  67. package/dist-lib/sdk.mjs +1 -1
  68. package/dist-lib/skills.cjs +39 -25
  69. package/dist-lib/swift-compile.cjs +2 -2
  70. package/dist-lib/swift-compile.mjs +2 -2
  71. package/dist-lib/swift-package.cjs +1 -1
  72. package/dist-lib/swift-package.mjs +1 -1
  73. package/dist-lib/swift-submit.cjs +1 -1
  74. package/dist-lib/swift-submit.mjs +1 -1
  75. package/dist-lib/swift-toolchain.cjs +1 -1
  76. package/dist-lib/swift.cjs +1 -1
  77. package/dist-lib/vite-swift.cjs +22 -18
  78. package/dist-lib/vite.cjs +4 -4
  79. package/dist-lib/worklet-executable.cjs +1 -1
  80. package/dist-lib/worklet-executable.mjs +1 -1
  81. package/package.json +1 -1
  82. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPrintInfo.h +2 -19
  83. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIRegion.h +1 -1
  84. package/sdk/ios/System/Library/Frameworks/UIKitTypes.framework/Headers/UIKitTypes.h +18 -0
  85. package/src/expo-swift-host.ts +8 -2
  86. package/src/home-paths.ts +5 -0
  87. package/src/swift-distribution.ts +2 -2
  88. package/src/turbo-bundle.ts +11 -2
  89. package/src/turbo-source.ts +1 -1
  90. package/src/xcode-project.ts +22 -16
@@ -920,7 +920,7 @@ function shellAssetCatalogs(
920
920
  /\$\{([A-Za-z_][A-Za-z0-9_]*):-([^{}`]*)\}/g,
921
921
  (_match, key: string, fallback: string) => lookup(key) || fallback,
922
922
  )
923
- if (/\$\{[A-Za-z_][A-Za-z0-9_]*(?::?[-+=?]|[#%/^,])/.test(shell)) return null
923
+ if (/\$\{[A-Za-z_][A-Za-z0-9_]*(?::|[-+=?]|[#%/^,])/.test(shell)) return null
924
924
  const value = expand(shell, lookup)
925
925
  return /[$`]/.test(value) ? null : value
926
926
  }
@@ -966,7 +966,7 @@ function shellCopies(
966
966
  // a word is one quoted or bare token; single quotes never expand
967
967
  const word = (token: string) => {
968
968
  // shell parameter operators (`${x:-y}`) are the shell's, not build setting operators
969
- if (/\$\{[A-Za-z_][A-Za-z0-9_]*(?::?[-+=?]|[#%/^,])/.test(token)) return null
969
+ if (/\$\{[A-Za-z_][A-Za-z0-9_]*(?::|[-+=?]|[#%/^,])/.test(token)) return null
970
970
  resolved = true
971
971
  const quote = token[0]
972
972
  const value =
@@ -2778,20 +2778,6 @@ export function readXcodeAppTarget(
2778
2778
  const entitlementsFile = settings('CODE_SIGN_ENTITLEMENTS')
2779
2779
  ? path.resolve(app.project.projectDir, settings('CODE_SIGN_ENTITLEMENTS'))
2780
2780
  : null
2781
- const keychainAccessGroups = entitlementsFile
2782
- ? readKeychainAccessGroups(
2783
- plist.parse(fs.readFileSync(entitlementsFile, 'utf8')),
2784
- (value) =>
2785
- expand(value, (key) => {
2786
- const resolved = settings(key)
2787
- if (!resolved)
2788
- throw new Error(
2789
- `${entitlementsFile} references $(${key}), which ${module.name}'s build settings do not define${key === 'CFBundleIdentifier' ? ' (set PRODUCT_BUNDLE_IDENTIFIER; Xcode supplies it as CFBundleIdentifier)' : ''}`,
2790
- )
2791
- return resolved
2792
- }),
2793
- )
2794
- : undefined
2795
2781
  // a generated plist is read only once its phase has run
2796
2782
  const infoPlistPending = module.generatedInfoPlist && !options.prepareGeneratedSources
2797
2783
  const sourceInfo =
@@ -2826,6 +2812,26 @@ export function readXcodeAppTarget(
2826
2812
  if (info[key] === undefined && value) info[key] = value
2827
2813
  }
2828
2814
  }
2815
+ // signing evaluates $(CFBundleIdentifier) as PRODUCT_BUNDLE_IDENTIFIER, else the
2816
+ // Info.plist value (swift-build computeBundleIdentifier, PlanningOperation)
2817
+ const bundleIdentifier =
2818
+ settings('PRODUCT_BUNDLE_IDENTIFIER') ||
2819
+ (typeof info.CFBundleIdentifier === 'string' ? info.CFBundleIdentifier : '')
2820
+ const keychainAccessGroups = entitlementsFile
2821
+ ? readKeychainAccessGroups(
2822
+ plist.parse(fs.readFileSync(entitlementsFile, 'utf8')),
2823
+ (value) =>
2824
+ expand(value, (key) => {
2825
+ const resolved =
2826
+ key === 'CFBundleIdentifier' ? bundleIdentifier : settings(key)
2827
+ if (!resolved)
2828
+ throw new Error(
2829
+ `${entitlementsFile} references $(${key}), which ${module.name}'s build settings do not define`,
2830
+ )
2831
+ return resolved
2832
+ }),
2833
+ )
2834
+ : undefined
2829
2835
  const postBundleScripts: XcodeAppTarget['postBundleScripts'] = []
2830
2836
  for (const id of [...list(app.target.buildPhases)].reverse()) {
2831
2837
  const phase = app.project.object(id)