peachsim 0.1.2410 → 0.1.2412

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 (119) hide show
  1. package/README.md +2 -5
  2. package/cli/internal-child-contract.ts +0 -1
  3. package/cli/internal-child.ts +0 -6
  4. package/cli/outbound-endpoints.ts +0 -23
  5. package/dist-lib/agent-daemon-client.cjs +1 -1
  6. package/dist-lib/agent-events.cjs +1 -1
  7. package/dist-lib/attached-projects.cjs +1 -1
  8. package/dist-lib/auth/shared-session.cjs +1 -1
  9. package/dist-lib/backend-origin.cjs +1 -1
  10. package/dist-lib/beta.cjs +1 -1
  11. package/dist-lib/beta.mjs +1 -1
  12. package/dist-lib/bridge-constants.cjs +1 -1
  13. package/dist-lib/bridge-contract-input.cjs +1 -1
  14. package/dist-lib/bridge-contract-input.mjs +1 -1
  15. package/dist-lib/bridge-contract.cjs +1 -1
  16. package/dist-lib/bridge-contract.mjs +1 -1
  17. package/dist-lib/bundle-channel.cjs +10390 -4177
  18. package/dist-lib/capture-contract.cjs +1 -1
  19. package/dist-lib/capture-contract.mjs +1 -1
  20. package/dist-lib/cloud-contract.cjs +1 -1
  21. package/dist-lib/cloud-contract.mjs +1 -1
  22. package/dist-lib/cloud-test-args.cjs +1 -1
  23. package/dist-lib/cloud-test-args.mjs +1 -1
  24. package/dist-lib/cloud.cjs +1 -1
  25. package/dist-lib/cloud.mjs +1 -1
  26. package/dist-lib/config.cjs +1 -1
  27. package/dist-lib/config.mjs +1 -1
  28. package/dist-lib/detox/index.cjs +1 -1
  29. package/dist-lib/dev-bundle-resolution.cjs +1 -1
  30. package/dist-lib/expo-swift-bundle.cjs +11656 -5443
  31. package/dist-lib/expo-swift-metadata.cjs +1 -1
  32. package/dist-lib/expo-swift-metadata.mjs +1 -1
  33. package/dist-lib/home-paths.cjs +1 -1
  34. package/dist-lib/host/bridge-host.cjs +12910 -6697
  35. package/dist-lib/host/fetch-proxy-handler.cjs +925 -151
  36. package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
  37. package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
  38. package/dist-lib/host/replacement-module-handler.cjs +1 -1
  39. package/dist-lib/host/websocket-proxy.cjs +1 -1
  40. package/dist-lib/index.cjs +1018 -240
  41. package/dist-lib/jump-to-source-babel.cjs +1 -1
  42. package/dist-lib/jump-to-source-native.cjs +1 -1
  43. package/dist-lib/kotlin-host.cjs +1 -1
  44. package/dist-lib/menu.cjs +1 -1
  45. package/dist-lib/menu.mjs +1 -1
  46. package/dist-lib/metro-fingerprint-registry.cjs +1 -1
  47. package/dist-lib/metro-fingerprint-registry.mjs +1 -1
  48. package/dist-lib/metro-production-bundle.cjs +1 -1
  49. package/dist-lib/metro-production-bundle.mjs +1 -1
  50. package/dist-lib/metro.cjs +934 -156
  51. package/dist-lib/native-app-identity-project.cjs +9 -5
  52. package/dist-lib/native-app-identity-project.mjs +9 -5
  53. package/dist-lib/native-app-identity.cjs +1 -1
  54. package/dist-lib/native-app-identity.mjs +1 -1
  55. package/dist-lib/native-firebase-metadata.cjs +1 -1
  56. package/dist-lib/native-firebase-metadata.mjs +1 -1
  57. package/dist-lib/pdfium-raster.cjs +1 -1
  58. package/dist-lib/pdfium-raster.mjs +1 -1
  59. package/dist-lib/plist.cjs +1 -1
  60. package/dist-lib/plist.mjs +1 -1
  61. package/dist-lib/profiles.cjs +1 -1
  62. package/dist-lib/public-brand.cjs +1 -1
  63. package/dist-lib/public-origins-lib-esm.json +24 -24
  64. package/dist-lib/public-origins-lib.json +124 -104
  65. package/dist-lib/react-native-host-modules.cjs +1 -1
  66. package/dist-lib/react-native-host-modules.mjs +1 -1
  67. package/dist-lib/reap-browser.cjs +1 -1
  68. package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
  69. package/dist-lib/sdk.cjs +1 -1
  70. package/dist-lib/sdk.mjs +1 -1
  71. package/dist-lib/skills.cjs +14016 -7803
  72. package/dist-lib/swift-compile.cjs +62 -14
  73. package/dist-lib/swift-compile.mjs +62 -13
  74. package/dist-lib/swift-package.cjs +1 -1
  75. package/dist-lib/swift-package.mjs +1 -1
  76. package/dist-lib/swift-submit.cjs +1 -1
  77. package/dist-lib/swift-submit.mjs +1 -1
  78. package/dist-lib/swift-toolchain.cjs +1 -1
  79. package/dist-lib/swift.cjs +1 -1
  80. package/dist-lib/vite-swift.cjs +190 -36
  81. package/dist-lib/vite.cjs +3101 -2327
  82. package/dist-lib/worklet-executable.cjs +1 -1
  83. package/dist-lib/worklet-executable.mjs +1 -1
  84. package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -0
  85. package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -0
  86. package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +4 -0
  87. package/dist-types/packages/peach-engine/src/render-worker/native-widgetContract.d.ts +5 -0
  88. package/kotlin/sdk.tar.gz +0 -0
  89. package/package.json +3 -3
  90. package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSession.h +1 -1
  91. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAsset.h +1 -1
  92. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetResource.h +1 -1
  93. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHChange.h +1 -1
  94. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHFetchOptions.h +1 -1
  95. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHFetchResult.h +1 -1
  96. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHImageManager.h +2 -2
  97. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHObject.h +1 -1
  98. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHPhotoLibrary.h +2 -2
  99. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +1 -1
  100. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVibrancyEffect.h +1 -1
  101. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVisualEffectView.h +1 -1
  102. package/sdk/ios/System/Library/Frameworks/UIKitActivity.framework/Headers/UIKitActivity.h +1 -1
  103. package/src/expo-native-workspace.ts +4 -0
  104. package/src/nitro-adapter.lock.json +262 -262
  105. package/src/nitro-superset.lock.json +4 -4
  106. package/src/podspec-cocoapods.ts +934 -0
  107. package/src/podspec-prism.ts +66 -0
  108. package/src/podspec-ruby-stdlib.ts +1121 -0
  109. package/src/podspec-ruby.ts +5175 -0
  110. package/src/podspec-sources.ts +25 -112
  111. package/src/swift-compile.ts +70 -12
  112. package/src/swift-distribution.lock.json +9 -8
  113. package/src/swift-host.ts +96 -19
  114. package/src/swift-objc-compile.ts +5 -0
  115. package/src/swift-packages.ts +46 -0
  116. package/src/turbo-runtime.lock.json +19 -19
  117. package/src/xcode-project.ts +17 -7
  118. package/cli/drivers/linux-cocoapods.lock.json +0 -303
  119. package/cli/drivers/linux-cocoapods.ts +0 -99
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2410 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2412 | (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;
@@ -1892,7 +1892,7 @@ var STANDIN_SOURCE_DIGEST;
1892
1892
  var init_swift_standin_digest = __esm({
1893
1893
  "src/swift-standin-digest.ts"() {
1894
1894
  "use strict";
1895
- STANDIN_SOURCE_DIGEST = true ? "33613fe0a59b84be02c11350a1382f0d95184a98af5ca339e388eff115c7ac07" : standinSourceDigest();
1895
+ STANDIN_SOURCE_DIGEST = true ? "467738b34c64972f28a4f51bb4a9e09b15d846aaf5143fa94e95cf779eb7bf82" : standinSourceDigest();
1896
1896
  }
1897
1897
  });
1898
1898
 
@@ -3873,8 +3873,8 @@ function indentComment(comment, indent) {
3873
3873
  var stringifyComment, lineComment;
3874
3874
  var init_stringifyComment = __esm({
3875
3875
  "../../node_modules/yaml/browser/dist/stringify/stringifyComment.js"() {
3876
- stringifyComment = (str2) => str2.replace(/^(?!$)(?: $)?/gm, "#");
3877
- lineComment = (str2, indent, comment) => str2.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str2.endsWith(" ") ? "" : " ") + comment;
3876
+ stringifyComment = (str3) => str3.replace(/^(?!$)(?: $)?/gm, "#");
3877
+ lineComment = (str3, indent, comment) => str3.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str3.endsWith(" ") ? "" : " ") + comment;
3878
3878
  }
3879
3879
  });
3880
3880
 
@@ -4011,15 +4011,15 @@ var init_foldFlowLines = __esm({
4011
4011
  });
4012
4012
 
4013
4013
  // ../../node_modules/yaml/browser/dist/stringify/stringifyString.js
4014
- function lineLengthOverLimit(str2, lineWidth, indentLength) {
4014
+ function lineLengthOverLimit(str3, lineWidth, indentLength) {
4015
4015
  if (!lineWidth || lineWidth < 0)
4016
4016
  return false;
4017
4017
  const limit = lineWidth - indentLength;
4018
- const strLen = str2.length;
4018
+ const strLen = str3.length;
4019
4019
  if (strLen <= limit)
4020
4020
  return false;
4021
4021
  for (let i = 0, start = 0; i < strLen; ++i) {
4022
- if (str2[i] === "\n") {
4022
+ if (str3[i] === "\n") {
4023
4023
  if (i - start > limit)
4024
4024
  return true;
4025
4025
  start = i + 1;
@@ -4036,11 +4036,11 @@ function doubleQuotedString(value, ctx) {
4036
4036
  const { implicitKey } = ctx;
4037
4037
  const minMultiLineLength = ctx.options.doubleQuotedMinMultiLineLength;
4038
4038
  const indent = ctx.indent || (containsDocumentMarker(value) ? " " : "");
4039
- let str2 = "";
4039
+ let str3 = "";
4040
4040
  let start = 0;
4041
4041
  for (let i = 0, ch = json[i]; ch; ch = json[++i]) {
4042
4042
  if (ch === " " && json[i + 1] === "\\" && json[i + 2] === "n") {
4043
- str2 += json.slice(start, i) + "\\ ";
4043
+ str3 += json.slice(start, i) + "\\ ";
4044
4044
  i += 1;
4045
4045
  start = i;
4046
4046
  ch = "\\";
@@ -4049,38 +4049,38 @@ function doubleQuotedString(value, ctx) {
4049
4049
  switch (json[i + 1]) {
4050
4050
  case "u":
4051
4051
  {
4052
- str2 += json.slice(start, i);
4052
+ str3 += json.slice(start, i);
4053
4053
  const code = json.substr(i + 2, 4);
4054
4054
  switch (code) {
4055
4055
  case "0000":
4056
- str2 += "\\0";
4056
+ str3 += "\\0";
4057
4057
  break;
4058
4058
  case "0007":
4059
- str2 += "\\a";
4059
+ str3 += "\\a";
4060
4060
  break;
4061
4061
  case "000b":
4062
- str2 += "\\v";
4062
+ str3 += "\\v";
4063
4063
  break;
4064
4064
  case "001b":
4065
- str2 += "\\e";
4065
+ str3 += "\\e";
4066
4066
  break;
4067
4067
  case "0085":
4068
- str2 += "\\N";
4068
+ str3 += "\\N";
4069
4069
  break;
4070
4070
  case "00a0":
4071
- str2 += "\\_";
4071
+ str3 += "\\_";
4072
4072
  break;
4073
4073
  case "2028":
4074
- str2 += "\\L";
4074
+ str3 += "\\L";
4075
4075
  break;
4076
4076
  case "2029":
4077
- str2 += "\\P";
4077
+ str3 += "\\P";
4078
4078
  break;
4079
4079
  default:
4080
4080
  if (code.substr(0, 2) === "00")
4081
- str2 += "\\x" + code.substr(2);
4081
+ str3 += "\\x" + code.substr(2);
4082
4082
  else
4083
- str2 += json.substr(i, 6);
4083
+ str3 += json.substr(i, 6);
4084
4084
  }
4085
4085
  i += 5;
4086
4086
  start = i + 1;
@@ -4090,14 +4090,14 @@ function doubleQuotedString(value, ctx) {
4090
4090
  if (implicitKey || json[i + 2] === '"' || json.length < minMultiLineLength) {
4091
4091
  i += 1;
4092
4092
  } else {
4093
- str2 += json.slice(start, i) + "\n\n";
4093
+ str3 += json.slice(start, i) + "\n\n";
4094
4094
  while (json[i + 2] === "\\" && json[i + 3] === "n" && json[i + 4] !== '"') {
4095
- str2 += "\n";
4095
+ str3 += "\n";
4096
4096
  i += 2;
4097
4097
  }
4098
- str2 += indent;
4098
+ str3 += indent;
4099
4099
  if (json[i + 2] === " ")
4100
- str2 += "\\";
4100
+ str3 += "\\";
4101
4101
  i += 1;
4102
4102
  start = i + 1;
4103
4103
  }
@@ -4106,8 +4106,8 @@ function doubleQuotedString(value, ctx) {
4106
4106
  i += 1;
4107
4107
  }
4108
4108
  }
4109
- str2 = start ? str2 + json.slice(start) : json;
4110
- return implicitKey ? str2 : foldFlowLines(str2, indent, FOLD_QUOTED, getFoldOptions(ctx, false));
4109
+ str3 = start ? str3 + json.slice(start) : json;
4110
+ return implicitKey ? str3 : foldFlowLines(str3, indent, FOLD_QUOTED, getFoldOptions(ctx, false));
4111
4111
  }
4112
4112
  function singleQuotedString(value, ctx) {
4113
4113
  if (ctx.options.singleQuote === false || ctx.implicitKey && value.includes("\n") || /[ \t]\n|\n[ \t]/.test(value))
@@ -4229,15 +4229,15 @@ function plainString(item, ctx, onComment, onChompKeep) {
4229
4229
  return quotedString(value, ctx);
4230
4230
  }
4231
4231
  }
4232
- const str2 = value.replace(/\n+/g, `$&
4232
+ const str3 = value.replace(/\n+/g, `$&
4233
4233
  ${indent}`);
4234
4234
  if (actualString) {
4235
- const test = (tag) => tag.default && tag.tag !== "tag:yaml.org,2002:str" && tag.test?.test(str2);
4235
+ const test = (tag) => tag.default && tag.tag !== "tag:yaml.org,2002:str" && tag.test?.test(str3);
4236
4236
  const { compat, tags } = ctx.doc.schema;
4237
4237
  if (tags.some(test) || compat?.some(test))
4238
4238
  return quotedString(value, ctx);
4239
4239
  }
4240
- return implicitKey ? str2 : foldFlowLines(str2, indent, FOLD_FLOW, getFoldOptions(ctx, false));
4240
+ return implicitKey ? str3 : foldFlowLines(str3, indent, FOLD_FLOW, getFoldOptions(ctx, false));
4241
4241
  }
4242
4242
  function stringifyString(item, ctx, onComment, onChompKeep) {
4243
4243
  const { implicitKey, inFlow } = ctx;
@@ -4282,7 +4282,7 @@ var init_stringifyString = __esm({
4282
4282
  lineWidth: ctx.options.lineWidth,
4283
4283
  minContentWidth: ctx.options.minContentWidth
4284
4284
  });
4285
- containsDocumentMarker = (str2) => /^(%|---|\.\.\.)/m.test(str2);
4285
+ containsDocumentMarker = (str3) => /^(%|---|\.\.\.)/m.test(str3);
4286
4286
  try {
4287
4287
  blockEndNewlines = new RegExp("(^|(?<!\n))\n+(?!\n|$)", "g");
4288
4288
  } catch {
@@ -4397,11 +4397,11 @@ function stringify(item, ctx, onComment, onChompKeep) {
4397
4397
  const props = stringifyProps(node, tagObj, ctx);
4398
4398
  if (props.length > 0)
4399
4399
  ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
4400
- const str2 = typeof tagObj.stringify === "function" ? tagObj.stringify(node, ctx, onComment, onChompKeep) : isScalar(node) ? stringifyString(node, ctx, onComment, onChompKeep) : node.toString(ctx, onComment, onChompKeep);
4400
+ const str3 = typeof tagObj.stringify === "function" ? tagObj.stringify(node, ctx, onComment, onChompKeep) : isScalar(node) ? stringifyString(node, ctx, onComment, onChompKeep) : node.toString(ctx, onComment, onChompKeep);
4401
4401
  if (!props)
4402
- return str2;
4403
- return isScalar(node) || str2[0] === "{" || str2[0] === "[" ? `${props} ${str2}` : `${props}
4404
- ${ctx.indent}${str2}`;
4402
+ return str3;
4403
+ return isScalar(node) || str3[0] === "{" || str3[0] === "[" ? `${props} ${str3}` : `${props}
4404
+ ${ctx.indent}${str3}`;
4405
4405
  }
4406
4406
  var init_stringify = __esm({
4407
4407
  "../../node_modules/yaml/browser/dist/stringify/stringify.js"() {
@@ -4433,8 +4433,8 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
4433
4433
  });
4434
4434
  let keyCommentDone = false;
4435
4435
  let chompKeep = false;
4436
- let str2 = stringify(key, ctx, () => keyCommentDone = true, () => chompKeep = true);
4437
- if (!explicitKey && !ctx.inFlow && str2.length > 1024) {
4436
+ let str3 = stringify(key, ctx, () => keyCommentDone = true, () => chompKeep = true);
4437
+ if (!explicitKey && !ctx.inFlow && str3.length > 1024) {
4438
4438
  if (simpleKeys)
4439
4439
  throw new Error("With simple keys, single line scalar must not span more than 1024 characters");
4440
4440
  explicitKey = true;
@@ -4443,27 +4443,27 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
4443
4443
  if (allNullValues || value == null) {
4444
4444
  if (keyCommentDone && onComment)
4445
4445
  onComment();
4446
- return str2 === "" ? "?" : explicitKey ? `? ${str2}` : str2;
4446
+ return str3 === "" ? "?" : explicitKey ? `? ${str3}` : str3;
4447
4447
  }
4448
4448
  } else if (allNullValues && !simpleKeys || value == null && explicitKey) {
4449
- str2 = `? ${str2}`;
4449
+ str3 = `? ${str3}`;
4450
4450
  if (keyComment && !keyCommentDone) {
4451
- str2 += lineComment(str2, ctx.indent, commentString(keyComment));
4451
+ str3 += lineComment(str3, ctx.indent, commentString(keyComment));
4452
4452
  } else if (chompKeep && onChompKeep)
4453
4453
  onChompKeep();
4454
- return str2;
4454
+ return str3;
4455
4455
  }
4456
4456
  if (keyCommentDone)
4457
4457
  keyComment = null;
4458
4458
  if (explicitKey) {
4459
4459
  if (keyComment)
4460
- str2 += lineComment(str2, ctx.indent, commentString(keyComment));
4461
- str2 = `? ${str2}
4460
+ str3 += lineComment(str3, ctx.indent, commentString(keyComment));
4461
+ str3 = `? ${str3}
4462
4462
  ${indent}:`;
4463
4463
  } else {
4464
- str2 = `${str2}:`;
4464
+ str3 = `${str3}:`;
4465
4465
  if (keyComment)
4466
- str2 += lineComment(str2, ctx.indent, commentString(keyComment));
4466
+ str3 += lineComment(str3, ctx.indent, commentString(keyComment));
4467
4467
  }
4468
4468
  let vsb, vcb, valueComment;
4469
4469
  if (isNode(value)) {
@@ -4479,7 +4479,7 @@ ${indent}:`;
4479
4479
  }
4480
4480
  ctx.implicitKey = false;
4481
4481
  if (!explicitKey && !keyComment && isScalar(value))
4482
- ctx.indentAtStart = str2.length + 1;
4482
+ ctx.indentAtStart = str3.length + 1;
4483
4483
  chompKeep = false;
4484
4484
  if (!indentSeq && indentStep.length >= 2 && !ctx.inFlow && !explicitKey && isSeq(value) && !value.flow && !value.tag && !value.anchor) {
4485
4485
  ctx.indent = ctx.indent.substring(2);
@@ -4523,16 +4523,16 @@ ${ctx.indent}`;
4523
4523
  } else if (valueStr === "" || valueStr[0] === "\n") {
4524
4524
  ws = "";
4525
4525
  }
4526
- str2 += ws + valueStr;
4526
+ str3 += ws + valueStr;
4527
4527
  if (ctx.inFlow) {
4528
4528
  if (valueCommentDone && onComment)
4529
4529
  onComment();
4530
4530
  } else if (valueComment && !valueCommentDone) {
4531
- str2 += lineComment(str2, ctx.indent, commentString(valueComment));
4531
+ str3 += lineComment(str3, ctx.indent, commentString(valueComment));
4532
4532
  } else if (chompKeep && onChompKeep) {
4533
4533
  onChompKeep();
4534
4534
  }
4535
- return str2;
4535
+ return str3;
4536
4536
  }
4537
4537
  var init_stringifyPair = __esm({
4538
4538
  "../../node_modules/yaml/browser/dist/stringify/stringifyPair.js"() {
@@ -4740,31 +4740,31 @@ function stringifyBlockCollection({ comment, items: items2 }, ctx, { blockItemPr
4740
4740
  }
4741
4741
  }
4742
4742
  chompKeep = false;
4743
- let str3 = stringify(item, itemCtx, () => comment2 = null, () => chompKeep = true);
4743
+ let str4 = stringify(item, itemCtx, () => comment2 = null, () => chompKeep = true);
4744
4744
  if (comment2)
4745
- str3 += lineComment(str3, itemIndent, commentString(comment2));
4745
+ str4 += lineComment(str4, itemIndent, commentString(comment2));
4746
4746
  if (chompKeep && comment2)
4747
4747
  chompKeep = false;
4748
- lines.push(blockItemPrefix + str3);
4748
+ lines.push(blockItemPrefix + str4);
4749
4749
  }
4750
- let str2;
4750
+ let str3;
4751
4751
  if (lines.length === 0) {
4752
- str2 = flowChars.start + flowChars.end;
4752
+ str3 = flowChars.start + flowChars.end;
4753
4753
  } else {
4754
- str2 = lines[0];
4754
+ str3 = lines[0];
4755
4755
  for (let i = 1; i < lines.length; ++i) {
4756
4756
  const line = lines[i];
4757
- str2 += line ? `
4757
+ str3 += line ? `
4758
4758
  ${indent}${line}` : "\n";
4759
4759
  }
4760
4760
  }
4761
4761
  if (comment) {
4762
- str2 += "\n" + indentComment(commentString(comment), indent);
4762
+ str3 += "\n" + indentComment(commentString(comment), indent);
4763
4763
  if (onComment)
4764
4764
  onComment();
4765
4765
  } else if (chompKeep && onChompKeep)
4766
4766
  onChompKeep();
4767
- return str2;
4767
+ return str3;
4768
4768
  }
4769
4769
  function stringifyFlowCollection({ items: items2 }, ctx, { flowChars, itemIndent }) {
4770
4770
  const { indent, indentStep, flowCollectionPadding: fcPadding, options: { commentString } } = ctx;
@@ -4807,21 +4807,21 @@ function stringifyFlowCollection({ items: items2 }, ctx, { flowChars, itemIndent
4807
4807
  }
4808
4808
  if (comment)
4809
4809
  reqNewline = true;
4810
- let str2 = stringify(item, itemCtx, () => comment = null);
4811
- reqNewline || (reqNewline = lines.length > linesAtValue || str2.includes("\n"));
4810
+ let str3 = stringify(item, itemCtx, () => comment = null);
4811
+ reqNewline || (reqNewline = lines.length > linesAtValue || str3.includes("\n"));
4812
4812
  if (i < items2.length - 1) {
4813
- str2 += ",";
4813
+ str3 += ",";
4814
4814
  } else if (ctx.options.trailingComma) {
4815
4815
  if (ctx.options.lineWidth > 0) {
4816
- reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (str2.length + 2) > ctx.options.lineWidth);
4816
+ reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (str3.length + 2) > ctx.options.lineWidth);
4817
4817
  }
4818
4818
  if (reqNewline) {
4819
- str2 += ",";
4819
+ str3 += ",";
4820
4820
  }
4821
4821
  }
4822
4822
  if (comment)
4823
- str2 += lineComment(str2, itemIndent, commentString(comment));
4824
- lines.push(str2);
4823
+ str3 += lineComment(str3, itemIndent, commentString(comment));
4824
+ lines.push(str3);
4825
4825
  linesAtValue = lines.length;
4826
4826
  }
4827
4827
  const { start, end } = flowChars;
@@ -4833,11 +4833,11 @@ function stringifyFlowCollection({ items: items2 }, ctx, { flowChars, itemIndent
4833
4833
  reqNewline = ctx.options.lineWidth > 0 && len > ctx.options.lineWidth;
4834
4834
  }
4835
4835
  if (reqNewline) {
4836
- let str2 = start;
4836
+ let str3 = start;
4837
4837
  for (const line of lines)
4838
- str2 += line ? `
4838
+ str3 += line ? `
4839
4839
  ${indentStep}${indent}${line}` : "\n";
4840
- return `${str2}
4840
+ return `${str3}
4841
4841
  ${indent}${end}`;
4842
4842
  } else {
4843
4843
  return `${start}${fcPadding}${lines.join(" ")}${fcPadding}${end}`;
@@ -5230,7 +5230,7 @@ var init_schema2 = __esm({
5230
5230
  identify: (value) => typeof value === "string",
5231
5231
  default: true,
5232
5232
  tag: "tag:yaml.org,2002:str",
5233
- resolve: (str2) => str2,
5233
+ resolve: (str3) => str3,
5234
5234
  stringify: stringifyJSON
5235
5235
  },
5236
5236
  {
@@ -5247,7 +5247,7 @@ var init_schema2 = __esm({
5247
5247
  default: true,
5248
5248
  tag: "tag:yaml.org,2002:bool",
5249
5249
  test: /^true$|^false$/,
5250
- resolve: (str2) => str2 === "true",
5250
+ resolve: (str3) => str3 === "true",
5251
5251
  stringify: stringifyJSON
5252
5252
  },
5253
5253
  {
@@ -5255,7 +5255,7 @@ var init_schema2 = __esm({
5255
5255
  default: true,
5256
5256
  tag: "tag:yaml.org,2002:int",
5257
5257
  test: /^-?(?:0|[1-9][0-9]*)$/,
5258
- resolve: (str2, _onError, { intAsBigInt }) => intAsBigInt ? BigInt(str2) : parseInt(str2, 10),
5258
+ resolve: (str3, _onError, { intAsBigInt }) => intAsBigInt ? BigInt(str3) : parseInt(str3, 10),
5259
5259
  stringify: ({ value }) => intIdentify(value) ? value.toString() : JSON.stringify(value)
5260
5260
  },
5261
5261
  {
@@ -5263,7 +5263,7 @@ var init_schema2 = __esm({
5263
5263
  default: true,
5264
5264
  tag: "tag:yaml.org,2002:float",
5265
5265
  test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
5266
- resolve: (str2) => parseFloat(str2),
5266
+ resolve: (str3) => parseFloat(str3),
5267
5267
  stringify: stringifyJSON
5268
5268
  }
5269
5269
  ];
@@ -5271,9 +5271,9 @@ var init_schema2 = __esm({
5271
5271
  default: true,
5272
5272
  tag: "",
5273
5273
  test: /^/,
5274
- resolve(str2, onError) {
5275
- onError(`Unresolved plain scalar ${JSON.stringify(str2)}`);
5276
- return str2;
5274
+ resolve(str3, onError) {
5275
+ onError(`Unresolved plain scalar ${JSON.stringify(str3)}`);
5276
+ return str3;
5277
5277
  }
5278
5278
  };
5279
5279
  schema = [map, seq].concat(jsonScalars, jsonError);
@@ -5475,9 +5475,9 @@ var init_set = __esm({
5475
5475
  });
5476
5476
 
5477
5477
  // ../../node_modules/yaml/browser/dist/schema/yaml-1.1/timestamp.js
5478
- function parseSexagesimal(str2, asBigInt) {
5479
- const sign = str2[0];
5480
- const parts = sign === "-" || sign === "+" ? str2.substring(1) : str2;
5478
+ function parseSexagesimal(str3, asBigInt) {
5479
+ const sign = str3[0];
5480
+ const parts = sign === "-" || sign === "+" ? str3.substring(1) : str3;
5481
5481
  const num = (n) => asBigInt ? BigInt(n) : Number(n);
5482
5482
  const res = parts.replace(/_/g, "").split(":").reduce((res2, p) => res2 * num(60) + num(p), num(0));
5483
5483
  return sign === "-" ? num(-1) * res : res;
@@ -5494,8 +5494,8 @@ var init_timestamp = __esm({
5494
5494
  // may be omitted altogether, resulting in a date format. In such a case, the time part is
5495
5495
  // assumed to be 00:00:00Z (start of day, UTC).
5496
5496
  test: RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),
5497
- resolve(str2) {
5498
- const match = str2.match(timestamp.test);
5497
+ resolve(str3) {
5498
+ const match = str3.match(timestamp.test);
5499
5499
  if (!match)
5500
5500
  throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");
5501
5501
  const [, year, month, day, hour, minute, second] = match.map(Number);
@@ -8522,7 +8522,7 @@ var swiftCoverageProvenance;
8522
8522
  var init_provenance = __esm({
8523
8523
  "src/swift-coverage/provenance.ts"() {
8524
8524
  "use strict";
8525
- swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"b0da81ab133ad067978e174c2f62f5a9655dfe6b5639bc4b884f3137a8136144","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
8525
+ swiftCoverageProvenance = true ? JSON.parse('{"swift-coverage/indexdump.ts":"0d82d8eeb96bf377f409ea7e33274c341a710c0e071f6b6e17571a23d8d92412","swift-coverage/indexing.ts":"633ccf19eec1f382a8847d0ee1dca42a2792a3c60aafd43622ed5152b09b8272","swift-coverage/types.ts":"bd8fae54ea6c53e110cd8a5d7b57c1d532dd0166e09fdaea63c4f270c3780dd1","swift-coverage/source.ts":"c151758a9f67631bc61473c375df0dc017da6902a34533b2cf4fc4fd7d19b6ee","swift-coverage/package.ts":"1f0068be7461fa7c5a7a891faf318f305cbed2e94c19667ba76627f7e5be260b","swift-coverage/xcode.ts":"65a500b806ce1c3a496de27f2e0ad77287c0f6795c618342c08af647f92af1fa","swift-coverage/xcode-assets.ts":"d98d6294b359528f7733b26db6f80f554782354faa235605f9562be4ad98b8a3","swift-coverage/xcode-asset-symbols.ts":"1b2a67733bc9d139b351466270205452a6172140bc25080d72619e2952c44671","swift-coverage/xcode-bridging.ts":"33184be8c5daf6646aa5a1276a4e15531f1be27b7c26f56550e0fbb1fc678a11","swift-coverage/xcode-packages.ts":"5c83f56357d880243ab485b260d23abd0094583ffa2287dac6e9e7eb18c3673d","swift-coverage/xcode-strings.ts":"f2dd4c7cd8ef77035184b0132909c2fa09fd20ed06b7757c2f1f960bfdde031c","swift-coverage/reader.ts":"da559b67ecd1161dea70c980b5f98f2c55af3550f0714479100fa5e9e813625c","swift-coverage/provenance.ts":"f5039c16e63c6129e22b71203f58982c68cef6e282a4f236b93da28edd39c108","swift-package-manifest.ts":"a19fe4c5e2efe18bbc3ece544ff2c8be660170d63274cccb0ab58e53083050e4","swift-package.ts":"851417572ca9aff699ad368bdc3ff05309b0256e483d40812b9c0beb869d0a5b","swift-source-file.ts":"8becce5e73b76a61d9d202c1ecfb39b1238e9bbf0e77841f1c51c98fa9ac7bd3","swift-toolchain.ts":"dec93d0206df8efbd9f538d1f3e3f6173f6eb022cb9ad6b02271481db7578d77","home-paths.ts":"d1606390f0e8e50f0ff72544eadb3d49dfabf08e004c1218f2998c36fb8995dd","xcode-header-search.ts":"4a775ba92c7b23ce71dd6bb08c188c4bccd6e1ed500cc9fc7850030b945fc8d4","xcode-project.ts":"5e7daa9fabfa1c7f38e7b7e11bb0d4168e26d958b1acdb65e54e06e7de5c6804","xcode-target-members.ts":"2f25aaf5a3aa34395983c75935491c06bd68554c47ff1cb06b49c79499c03db0","xcode-json-project.ts":"41990ebbe4b488eef34e74c4608b4b48e5a5b299ba98ca7fbcfdfa0e77be63b6","openstep-plist.ts":"74e6ce1dac80c9c318e0e9f5e3e8cd19a898a8820c36fc160609695bcb59dcd3"}') : swiftCoverageSourceDigests((0, import_node_path.join)(__sootsim_import_meta_dirname, ".."));
8526
8526
  }
8527
8527
  });
8528
8528
 
@@ -9770,7 +9770,7 @@ var init_swift_compile = __esm({
9770
9770
  FOUNDATION_IMPLICIT_FLAGS = FOUNDATION_IMPLICIT_MODULES.map(
9771
9771
  (module2) => `, "-Xfrontend", "-import-module", "-Xfrontend", "${module2}"`
9772
9772
  ).join("");
9773
- compilerSourceDigest = true ? "d287f3ad479477c70004707c1336f37c9baeb81aef1880544a5ca236e088ca16" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
9773
+ compilerSourceDigest = true ? "5bdda04d424b3a504c042269bf0bebf701fc0435974970611138a79db9b959cd" : swiftCompilerSourceDigest2(__sootsim_import_meta_dirname);
9774
9774
  C_WORDS = new Set(
9775
9775
  "auto bool break case char const continue default do double else enum extern false float for goto if inline int long register restrict return short signed sizeof static struct switch true typedef union unsigned void volatile while YES NO NULL nil Nil id self super instancetype".split(
9776
9776
  " "
@@ -11488,12 +11488,16 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
11488
11488
  );
11489
11489
  const allTargets = projects.flatMap(projectTargets);
11490
11490
  const appTargets = allTargets.filter(
11491
- (ref) => isIosAppTarget(ref, options) || targetName !== void 0 && ref.target.name === targetName && ref.target.productType === APP_EXTENSION
11491
+ (ref) => options.frameworkMachOType ? ref.target.name === targetName && FRAMEWORK_PRODUCTS.has(str(ref.target.productType) ?? "") : isIosAppTarget(ref, options) || targetName !== void 0 && ref.target.name === targetName && ref.target.productType === APP_EXTENSION
11492
11492
  );
11493
11493
  const appTargetNames = appTargets.map((ref) => str(ref.target.name) ?? ref.id);
11494
11494
  const container = import_node_path15.default.basename(xcodeprojOrWorkspace);
11495
11495
  const named = targetName ? appTargets.filter((ref) => ref.target.name === targetName) : appTargets;
11496
11496
  if (named.length !== 1) {
11497
+ if (options.frameworkMachOType)
11498
+ throw new Error(
11499
+ `${container} must declare one framework target named ${targetName}`
11500
+ );
11497
11501
  if (appTargets.length === 0)
11498
11502
  throw new Error(
11499
11503
  `${container} has no application targets; open a project or workspace that contains one`
@@ -11756,7 +11760,7 @@ function readXcodeAppTarget(input, targetName, configurationName, options = {})
11756
11760
  DEVELOPMENT_LANGUAGE: str(ref.project.project.developmentRegion) ?? "en"
11757
11761
  },
11758
11762
  options,
11759
- workspaceBuild
11763
+ ref === app && options.frameworkMachOType ? { ...workspaceBuild, MACH_O_TYPE: options.frameworkMachOType } : workspaceBuild
11760
11764
  );
11761
11765
  for (const file of read) xcconfigs.add(file);
11762
11766
  const swiftVersion = Number.parseFloat(settings2("SWIFT_VERSION") || "5");
@@ -12660,69 +12664,802 @@ var init_xcode_project = __esm({
12660
12664
  }
12661
12665
  });
12662
12666
 
12663
- // cli/internal-child-contract.ts
12664
- var init_internal_child_contract = __esm({
12665
- "cli/internal-child-contract.ts"() {
12667
+ // src/podspec-prism.ts
12668
+ var import_parsePrism;
12669
+ var init_podspec_prism = __esm({
12670
+ "src/podspec-prism.ts"() {
12666
12671
  "use strict";
12672
+ import_parsePrism = require("@ruby/prism/src/parsePrism.js");
12667
12673
  }
12668
12674
  });
12669
12675
 
12670
- // src/public-brand.ts
12671
- var name, peachPublicBrand, rnxPublicBrand;
12672
- var init_public_brand = __esm({
12673
- "src/public-brand.ts"() {
12676
+ // src/podspec-ruby.ts
12677
+ var N, NOT_FOUND;
12678
+ var init_podspec_ruby = __esm({
12679
+ "src/podspec-ruby.ts"() {
12674
12680
  "use strict";
12675
- name = "Peach";
12676
- peachPublicBrand = Object.freeze({
12677
- name,
12678
- packageName: "peachsim",
12679
- commandName: "peach",
12680
- domain: "peachsim.com",
12681
- origin: "https://peachsim.com",
12682
- boxOrigin: "https://rnx-box.contrast.dev"
12683
- });
12684
- rnxPublicBrand = peachPublicBrand;
12681
+ N = __toESM(require("@ruby/prism/src/nodes.js"), 1);
12682
+ init_podspec_prism();
12683
+ NOT_FOUND = Symbol("not found");
12685
12684
  }
12686
12685
  });
12687
12686
 
12688
- // cli/standalone.ts
12689
- var init_standalone = __esm({
12690
- "cli/standalone.ts"() {
12687
+ // src/podspec-ruby-stdlib.ts
12688
+ var init_podspec_ruby_stdlib = __esm({
12689
+ "src/podspec-ruby-stdlib.ts"() {
12691
12690
  "use strict";
12691
+ init_podspec_ruby();
12692
12692
  }
12693
12693
  });
12694
12694
 
12695
- // cli/self-invocation.ts
12696
- var init_self_invocation = __esm({
12697
- "cli/self-invocation.ts"() {
12695
+ // src/podspec-cocoapods.ts
12696
+ var PRELUDE;
12697
+ var init_podspec_cocoapods = __esm({
12698
+ "src/podspec-cocoapods.ts"() {
12698
12699
  "use strict";
12699
- init_public_brand();
12700
- init_standalone();
12701
- }
12702
- });
12700
+ init_podspec_ruby();
12701
+ init_podspec_ruby_stdlib();
12702
+ PRELUDE = String.raw`
12703
+ module Pod
12704
+ VERSION = '1.17.0'
12705
+ class Informative < StandardError; end
12706
+ class PlainInformative < StandardError; end
12707
+ class Version < Gem::Version; end
12708
+
12709
+ class Requirement
12710
+ PATTERN = /\A\s*(=|!=|>|<|>=|<=|~>)?\s*([0-9]+(?:\.[0-9a-zA-Z]+)*(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?)\s*\z/
12711
+ attr_reader :requirements
12712
+ def self.create(input)
12713
+ input.is_a?(Requirement) ? input : new(input)
12714
+ end
12715
+ def initialize(*requirements)
12716
+ requirements = requirements.flatten
12717
+ requirements.compact!
12718
+ requirements.uniq!
12719
+ @requirements = requirements.empty? ? [['>=', Version.new('0')]] : requirements.map { |r| parse(r) }
12720
+ end
12721
+ def parse(requirement)
12722
+ return ['=', requirement] if requirement.is_a?(Version)
12723
+ match = PATTERN.match(requirement.to_s)
12724
+ raise ArgumentError, "Illformed requirement [#{requirement.inspect}]" unless match
12725
+ [match[1] || '=', Version.new(match[2])]
12726
+ end
12727
+ def to_s
12728
+ requirements.map { |op, version| "#{op} #{version}" }.join(', ')
12729
+ end
12730
+ end
12703
12731
 
12704
- // cli/drivers/linux-cocoapods.ts
12705
- var import_zod, pinnedFile, archLock, linuxCocoaPodsLockSchema;
12706
- var init_linux_cocoapods = __esm({
12707
- "cli/drivers/linux-cocoapods.ts"() {
12708
- "use strict";
12709
- init_src();
12710
- import_zod = require("zod");
12711
- init_home_paths();
12712
- init_cli_release_origin();
12713
- init_internal_child_contract();
12714
- init_self_invocation();
12715
- pinnedFile = import_zod.z.object({
12716
- url: import_zod.z.string().url(),
12717
- sha256: import_zod.z.string().regex(/^[a-f0-9]{64}$/)
12718
- });
12719
- archLock = import_zod.z.object({ ruby: pinnedFile, gems: import_zod.z.array(pinnedFile).min(1) });
12720
- linuxCocoaPodsLockSchema = import_zod.z.object({
12721
- id: import_zod.z.string().regex(/^[a-f0-9]{16}$/),
12722
- ruby: import_zod.z.string(),
12723
- cocoapods: import_zod.z.string(),
12724
- arches: import_zod.z.object({ x64: archLock, arm64: archLock })
12725
- });
12732
+ class Dependency
12733
+ attr_reader :name, :requirement
12734
+ def initialize(name = nil, *requirements)
12735
+ @name = name
12736
+ @requirement = Requirement.create(requirements)
12737
+ end
12738
+ end
12739
+
12740
+ class Platform
12741
+ attr_reader :name, :deployment_target
12742
+ def initialize(name, deployment_target = nil)
12743
+ @name = name.to_s == 'macos' ? :osx : name.to_sym
12744
+ @deployment_target = deployment_target.nil? ? nil : Version.new(deployment_target)
12745
+ end
12746
+ def ==(other)
12747
+ other.is_a?(Platform) && name == other.name && deployment_target == other.deployment_target
12748
+ end
12749
+ def to_sym
12750
+ name
12751
+ end
12752
+ def to_s
12753
+ name.to_s
12754
+ end
12755
+ end
12756
+
12757
+ class Config
12758
+ attr_accessor :installation_root, :podfile, :lockfile
12759
+ def self.instance
12760
+ @instance ||= new
12761
+ end
12762
+ def sandbox_root
12763
+ installation_root + 'Pods'
12764
+ end
12765
+ def project_pods_root
12766
+ sandbox_root
12767
+ end
12768
+ def verbose?
12769
+ false
12770
+ end
12771
+ def silent?
12772
+ true
12773
+ end
12774
+ end
12775
+
12776
+ module UI
12777
+ def self.puts(*args); end
12778
+ def self.print(*args); end
12779
+ def self.warn(*args); end
12780
+ def self.notice(*args); end
12781
+ def self.message(*args); yield if block_given?; end
12782
+ def self.info(*args); yield if block_given?; end
12783
+ def self.section(*args); yield if block_given?; end
12784
+ def self.titled_section(*args); yield if block_given?; end
12785
+ end
12786
+ CoreUI = UI
12787
+
12788
+ class Specification
12789
+ module DSL
12790
+ PLATFORMS = [:osx, :ios, :tvos, :visionos, :watchos].freeze
12791
+ SINGULAR = {
12792
+ swift_versions: 'swift_version', authors: 'author', screenshots: 'screenshot', frameworks: 'framework',
12793
+ weak_frameworks: 'weak_framework', libraries: 'library', compiler_flags: 'compiler_flag',
12794
+ script_phases: 'script_phase', vendored_frameworks: 'vendored_framework', vendored_libraries: 'vendored_library',
12795
+ on_demand_resources: 'on_demand_resource', resource_bundles: 'resource_bundle', resources: 'resource',
12796
+ preserve_paths: 'preserve_path', default_subspecs: 'default_subspec'
12797
+ }.freeze
12798
+
12799
+ class Attribute
12800
+ attr_reader :name, :container, :types, :default_value
12801
+ def initialize(name, options)
12802
+ @name = name
12803
+ @multi_platform = options.fetch(:multi_platform, true)
12804
+ @root_only = options.fetch(:root_only, false)
12805
+ @inherited = options.fetch(:inherited, @root_only)
12806
+ @singularize = options.fetch(:singularize, false)
12807
+ @container = options.fetch(:container, nil)
12808
+ @default_value = options.fetch(:default_value, nil)
12809
+ @types = options.fetch(:types, [String])
12810
+ end
12811
+ def multi_platform?
12812
+ @multi_platform
12813
+ end
12814
+ def root_only?
12815
+ @root_only
12816
+ end
12817
+ def inherited?
12818
+ @inherited
12819
+ end
12820
+ def writer_name
12821
+ "#{name}="
12822
+ end
12823
+ def writer_singular_form
12824
+ "#{SINGULAR.fetch(name)}=" if @singularize
12825
+ end
12826
+ def default(platform = nil)
12827
+ @default_value
12828
+ end
12829
+ end
12830
+
12831
+ def self.attributes
12832
+ @attributes
12833
+ end
12834
+ def self.attribute(name, options = {})
12835
+ @attributes ||= {}
12836
+ @attributes[name] = Attribute.new(name, options)
12837
+ end
12838
+ def self.root_attribute(name, options = {})
12839
+ options[:root_only] = true
12840
+ options[:multi_platform] = false
12841
+ attribute(name, options)
12842
+ end
12843
+
12844
+ attribute :name, :inherited => false, :multi_platform => false
12845
+ root_attribute :version
12846
+ root_attribute :swift_versions, :container => Array, :singularize => true
12847
+ root_attribute :cocoapods_version
12848
+ root_attribute :authors, :types => [String, Array, Hash], :container => Hash, :singularize => true
12849
+ root_attribute :social_media_url
12850
+ root_attribute :license, :container => Hash
12851
+ root_attribute :homepage
12852
+ root_attribute :readme
12853
+ root_attribute :changelog
12854
+ root_attribute :source, :container => Hash
12855
+ root_attribute :summary
12856
+ root_attribute :description
12857
+ root_attribute :screenshots, :singularize => true, :container => Array
12858
+ root_attribute :documentation_url
12859
+ root_attribute :prepare_command
12860
+ root_attribute :static_framework, :types => [TrueClass, FalseClass], :default_value => false
12861
+ root_attribute :deprecated, :types => [TrueClass, FalseClass], :default_value => false
12862
+ root_attribute :deprecated_in_favor_of
12863
+ attribute :platforms, :container => Hash, :multi_platform => false, :inherited => true
12864
+ attribute :dependencies, :container => Hash, :inherited => true
12865
+ attribute :info_plist, :container => Hash, :inherited => false
12866
+ attribute :requires_arc, :types => [TrueClass, FalseClass, String, Array], :default_value => true, :inherited => true
12867
+ attribute :frameworks, :container => Array, :singularize => true, :inherited => true
12868
+ attribute :weak_frameworks, :container => Array, :singularize => true, :inherited => true
12869
+ attribute :libraries, :container => Array, :singularize => true, :inherited => true
12870
+ attribute :compiler_flags, :container => Array, :singularize => true, :inherited => true
12871
+ attribute :pod_target_xcconfig, :container => Hash, :inherited => true
12872
+ attribute :user_target_xcconfig, :container => Hash, :inherited => true
12873
+ attribute :prefix_header_contents, :types => [Array, String], :inherited => true
12874
+ attribute :prefix_header_file, :types => [TrueClass, FalseClass, String], :inherited => true
12875
+ root_attribute :module_name
12876
+ attribute :header_dir, :inherited => true
12877
+ attribute :header_mappings_dir, :inherited => true
12878
+ attribute :script_phases, :types => [Hash], :container => Array, :singularize => true
12879
+ attribute :source_files, :container => Array
12880
+ attribute :public_header_files, :container => Array
12881
+ attribute :project_header_files, :container => Array
12882
+ attribute :private_header_files, :container => Array
12883
+ attribute :vendored_frameworks, :container => Array, :singularize => true
12884
+ attribute :vendored_libraries, :container => Array, :singularize => true
12885
+ attribute :on_demand_resources, :types => [String, Array, Hash], :container => Hash, :singularize => true
12886
+ attribute :resource_bundles, :types => [String, Array], :container => Hash, :singularize => true
12887
+ attribute :resources, :container => Array, :singularize => true
12888
+ attribute :exclude_files, :container => Array
12889
+ attribute :preserve_paths, :container => Array, :singularize => true
12890
+ attribute :module_map, :types => [TrueClass, FalseClass, String], :root_only => true
12891
+ attribute :test_type, :types => [Symbol, String], :multi_platform => false
12892
+ attribute :requires_app_host, :types => [TrueClass, FalseClass], :default_value => false
12893
+ attribute :app_host_name, :types => [String]
12894
+ attribute :scheme, :types => [Hash], :container => Hash
12895
+ root_attribute :default_subspecs, :container => Array, :types => [Array, String, Symbol], :singularize => true
12896
+ attribute :xcconfig, :container => Hash, :inherited => true
12897
+
12898
+ class PlatformProxy
12899
+ attr_accessor :spec
12900
+ attr_reader :platform
12901
+ def initialize(spec, platform)
12902
+ @spec = spec
12903
+ @platform = platform
12904
+ end
12905
+ def method_missing(meth, *args, &block)
12906
+ attribute = attribute_for_method(meth)
12907
+ raise NoMethodError, "undefined method '#{meth}' for #{self}" unless attribute
12908
+ raise NoMethodError, "#{attribute} cannot be set per-platform" unless attribute.multi_platform?
12909
+ spec.store_attribute(attribute.name, args.first, platform)
12910
+ end
12911
+ def respond_to_missing?(method, include_all)
12912
+ attribute = attribute_for_method(method)
12913
+ (attribute && attribute.multi_platform?) || false
12914
+ end
12915
+ def dependency(*args)
12916
+ name, *version_requirements = args
12917
+ platform_name = platform.to_s
12918
+ platform_hash = spec.attributes_hash[platform_name] || {}
12919
+ platform_hash['dependencies'] ||= {}
12920
+ platform_hash['dependencies'][name] = version_requirements
12921
+ spec.attributes_hash[platform_name] = platform_hash
12922
+ end
12923
+ def deployment_target=(value)
12924
+ platform_name = platform.to_s
12925
+ spec.attributes_hash['platforms'] ||= {}
12926
+ spec.attributes_hash['platforms'][platform_name] = value
12927
+ end
12928
+ private
12929
+ def attribute_for_method(method)
12930
+ method = method.to_sym
12931
+ Specification::DSL.attributes.values.find do |attribute|
12932
+ if attribute.writer_name.to_sym == method
12933
+ true
12934
+ elsif attribute.writer_singular_form
12935
+ attribute.writer_singular_form.to_sym == method
12936
+ end
12937
+ end
12938
+ end
12939
+ end
12940
+ end
12941
+
12942
+ class Consumer
12943
+ attr_reader :spec, :platform_name
12944
+ def initialize(spec, platform)
12945
+ @spec = spec
12946
+ @platform_name = platform.respond_to?(:name) ? platform.name : platform
12947
+ end
12948
+
12949
+ def self.spec_attr_accessor(attr_name)
12950
+ define_method(attr_name) do
12951
+ value_for_attribute(attr_name)
12952
+ end
12953
+ end
12954
+
12955
+ spec_attr_accessor :requires_arc
12956
+ spec_attr_accessor :frameworks
12957
+ spec_attr_accessor :weak_frameworks
12958
+ spec_attr_accessor :libraries
12959
+ spec_attr_accessor :compiler_flags
12960
+ spec_attr_accessor :info_plist
12961
+ spec_attr_accessor :prefix_header_contents
12962
+ spec_attr_accessor :prefix_header_file
12963
+ spec_attr_accessor :module_name
12964
+ spec_attr_accessor :module_map
12965
+ spec_attr_accessor :header_dir
12966
+ spec_attr_accessor :header_mappings_dir
12967
+ spec_attr_accessor :requires_app_host
12968
+ spec_attr_accessor :app_host_name
12969
+ spec_attr_accessor :source_files
12970
+ spec_attr_accessor :public_header_files
12971
+ spec_attr_accessor :project_header_files
12972
+ spec_attr_accessor :private_header_files
12973
+ spec_attr_accessor :vendored_frameworks
12974
+ spec_attr_accessor :vendored_libraries
12975
+ spec_attr_accessor :resources
12976
+ spec_attr_accessor :exclude_files
12977
+ spec_attr_accessor :preserve_paths
12978
+
12979
+ def pod_target_xcconfig
12980
+ attr = Specification::DSL.attributes[:pod_target_xcconfig]
12981
+ merge_values(attr, value_for_attribute(:xcconfig), value_for_attribute(:pod_target_xcconfig))
12982
+ end
12983
+
12984
+ def user_target_xcconfig
12985
+ attr = Specification::DSL.attributes[:user_target_xcconfig]
12986
+ merge_values(attr, value_for_attribute(:xcconfig), value_for_attribute(:user_target_xcconfig))
12987
+ end
12988
+
12989
+ def dependencies
12990
+ value = value_for_attribute(:dependencies)
12991
+ value.map do |name, requirements|
12992
+ Dependency.new(name, requirements)
12993
+ end
12994
+ end
12995
+
12996
+ def value_for_attribute(attr_name)
12997
+ attr = Specification::DSL.attributes[attr_name]
12998
+ value = value_with_inheritance(spec, attr)
12999
+ value = attr.default(platform_name) if value.nil?
13000
+ value = attr.container.new if value.nil? && attr.container
13001
+ value
13002
+ end
13003
+
13004
+ def value_with_inheritance(the_spec, attr)
13005
+ value = raw_value_for_attribute(the_spec, attr)
13006
+ if the_spec.root? || !attr.inherited?
13007
+ return value
13008
+ end
13009
+ parent_value = value_with_inheritance(the_spec.parent, attr)
13010
+ merge_values(attr, parent_value, value)
13011
+ end
13012
+
13013
+ def raw_value_for_attribute(the_spec, attr)
13014
+ value = the_spec.attributes_hash[attr.name.to_s]
13015
+ value = prepare_value(attr, value)
13016
+ if attr.multi_platform?
13017
+ if platform_hash = the_spec.attributes_hash[platform_name.to_s]
13018
+ platform_value = platform_hash[attr.name.to_s]
13019
+ platform_value = prepare_value(attr, platform_value)
13020
+ value = merge_values(attr, value, platform_value)
13021
+ end
13022
+ end
13023
+ value
13024
+ end
13025
+
13026
+ def merge_values(attr, existing_value, new_value)
13027
+ return existing_value if new_value.nil?
13028
+ return new_value if existing_value.nil?
13029
+ if attr.types.include?(TrueClass)
13030
+ new_value.nil? ? existing_value : new_value
13031
+ elsif attr.container == Array
13032
+ r = [*existing_value] + [*new_value]
13033
+ r.compact
13034
+ elsif attr.container == Hash
13035
+ existing_value.merge(new_value) do |_, old, new|
13036
+ merge_hash_value(attr, old, new)
13037
+ end
13038
+ else
13039
+ new_value
13040
+ end
13041
+ end
13042
+
13043
+ def prepare_value(attr, value)
13044
+ if attr.container == Array
13045
+ value = if value.is_a?(Hash)
13046
+ [value]
13047
+ else
13048
+ [*value].compact
13049
+ end
13050
+ end
13051
+ value
13052
+ end
13053
+
13054
+ private
13055
+
13056
+ def merge_hash_value(attr, old, new)
13057
+ if attr.name == :info_plist
13058
+ new
13059
+ elsif spec.non_library_specification? && [:pod_target_xcconfig, :user_target_xcconfig, :xcconfig].include?(attr.name)
13060
+ new
13061
+ elsif new.is_a?(Array) || old.is_a?(Array)
13062
+ r = Array(old) + Array(new)
13063
+ r.compact
13064
+ else
13065
+ old + ' ' + new
13066
+ end
13067
+ end
13068
+ end
13069
+
13070
+ attr_reader :parent
13071
+ attr_accessor :attributes_hash, :subspecs, :test_specification, :app_specification, :defined_in_file
13072
+ alias_method :test_specification?, :test_specification
13073
+ alias_method :app_specification?, :app_specification
13074
+
13075
+ def initialize(parent = nil, name = nil, test_specification = false, app_specification: false)
13076
+ raise StandardError, "#{self} can not be both an app and test specification." if test_specification && app_specification
13077
+ @attributes_hash = {}
13078
+ @subspecs = []
13079
+ @consumers = {}
13080
+ @parent = parent
13081
+ @test_specification = test_specification
13082
+ @app_specification = app_specification
13083
+ attributes_hash['name'] = name
13084
+ attributes_hash['test_type'] = :unit if test_specification
13085
+ yield self if block_given?
13086
+ end
13087
+
13088
+ def to_s
13089
+ specified_version = attributes_hash['version'] || ''
13090
+ if name && !specified_version.to_s.empty?
13091
+ "#{name} (#{specified_version})"
13092
+ elsif name
13093
+ name
13094
+ else
13095
+ 'No-name'
13096
+ end
13097
+ end
13098
+
13099
+ def inspect
13100
+ "#<#{self.class.name} name=#{name.inspect}>"
13101
+ end
13102
+
13103
+ def base_name
13104
+ attributes_hash['name']
13105
+ end
13106
+
13107
+ def name
13108
+ parent ? "#{parent.name}/#{base_name}" : base_name
13109
+ end
13110
+
13111
+ def name=(name)
13112
+ attributes_hash['name'] = name
13113
+ end
13114
+
13115
+ def root
13116
+ parent ? parent.root : self
13117
+ end
13118
+
13119
+ def root?
13120
+ parent.nil?
13121
+ end
13122
+
13123
+ def subspec?
13124
+ !parent.nil?
13125
+ end
13126
+
13127
+ def spec_type
13128
+ return :test if test_specification?
13129
+ return :app if app_specification?
13130
+ :library
13131
+ end
13132
+
13133
+ def library_specification?
13134
+ !app_specification? && !test_specification?
13135
+ end
13136
+
13137
+ def non_library_specification?
13138
+ !library_specification?
13139
+ end
13140
+
13141
+ def version
13142
+ if root?
13143
+ @version ||= Version.new(attributes_hash['version'])
13144
+ else
13145
+ @version ||= root.version
13146
+ end
13147
+ end
13148
+
13149
+ def requires_arc
13150
+ attributes_hash['requires_arc']
13151
+ end
13152
+
13153
+ def swift_version
13154
+ swift_versions.last
13155
+ end
13156
+
13157
+ def swift_versions
13158
+ @swift_versions ||= begin
13159
+ swift_versions = Array(attributes_hash['swift_versions']).dup
13160
+ swift_versions << attributes_hash['swift_version'] unless attributes_hash['swift_version'].nil?
13161
+ swift_versions.map { |swift_version| Version.new(swift_version) }.uniq.sort
13162
+ end
13163
+ end
13164
+
13165
+ def module_name
13166
+ attributes_hash['module_name'] || name.split('/').first.gsub(/^([0-9])/, '_\1').gsub(/[^a-zA-Z0-9_]/, '_').gsub(/_+/, '_')
13167
+ end
13168
+
13169
+ def homepage
13170
+ attributes_hash['homepage']
13171
+ end
13172
+
13173
+ def summary
13174
+ attributes_hash['summary']
13175
+ end
13176
+
13177
+ def source
13178
+ value = attributes_hash['source']
13179
+ value && value.is_a?(Hash) ? Specification.convert_keys_to_symbol(value) : value
13180
+ end
13181
+
13182
+ def default_subspecs
13183
+ value = Array(attributes_hash['default_subspecs'])
13184
+ first = value.first
13185
+ if first == :none || first == 'none'
13186
+ first.to_sym
13187
+ else
13188
+ value
13189
+ end
13190
+ end
13191
+
13192
+ def dependencies(platform = nil)
13193
+ if platform
13194
+ consumer(platform).dependencies || []
13195
+ else
13196
+ available_platforms.map do |spec_platform|
13197
+ consumer(spec_platform).dependencies
13198
+ end.flatten.uniq
13199
+ end
13200
+ end
13201
+
13202
+ def consumer(platform)
13203
+ platform = platform.to_sym
13204
+ @consumers[platform] ||= Consumer.new(self, platform)
13205
+ end
13206
+
13207
+ def subspec_by_name(relative_name, raise_if_missing = true, include_non_library_specifications = false)
13208
+ if relative_name.nil? || relative_name == base_name
13209
+ self
13210
+ elsif relative_name.downcase == base_name.downcase
13211
+ raise Informative, "Trying to access a '#{relative_name}' specification from '#{base_name}', which has a different case."
13212
+ else
13213
+ remainder = relative_name[base_name.size + 1..-1]
13214
+ subspec_name = remainder.split('/').shift
13215
+ subspec = subspecs.find { |s| s.base_name == subspec_name && (include_non_library_specifications || !s.non_library_specification?) }
13216
+ unless subspec
13217
+ if raise_if_missing
13218
+ raise Informative, "Unable to find a specification named " \
13219
+ "'#{relative_name}' in '#{name} (#{version})'."
13220
+ else
13221
+ return nil
13222
+ end
13223
+ end
13224
+ subspec.subspec_by_name(remainder, raise_if_missing, include_non_library_specifications)
13225
+ end
13226
+ end
13227
+
13228
+ def available_platforms
13229
+ names = supported_platform_names
13230
+ names = DSL::PLATFORMS.map(&:to_s) if names.empty?
13231
+ names.map { |name| Platform.new(name, deployment_target(name)) }
13232
+ end
13233
+
13234
+ def supported_platform_names
13235
+ spec = self
13236
+ names = nil
13237
+ until spec.nil?
13238
+ if spec.attributes_hash['platforms']
13239
+ spec_platforms = spec.attributes_hash['platforms'].keys
13240
+ names = names.nil? ? spec_platforms : names & spec_platforms
13241
+ end
13242
+ spec = spec.parent
13243
+ end
13244
+ names || []
13245
+ end
13246
+
13247
+ def deployment_target(platform_name)
13248
+ result = platform_hash[platform_name.to_s]
13249
+ result ||= parent.deployment_target(platform_name) if parent
13250
+ result
13251
+ end
13252
+
13253
+ def platform_hash
13254
+ case value = attributes_hash['platforms']
13255
+ when String
13256
+ { value => nil }
13257
+ when Array
13258
+ result = {}
13259
+ value.each { |a| result[a] = nil }
13260
+ result
13261
+ when Hash
13262
+ value
13263
+ else
13264
+ {}
13265
+ end
13266
+ end
13267
+
13268
+ def store_attribute(name, value, platform_name = nil)
13269
+ name = name.to_s
13270
+ value = Specification.convert_keys_to_string(value) if value.is_a?(Hash)
13271
+ value = value.strip_heredoc.strip if value.respond_to?(:strip_heredoc)
13272
+ if platform_name
13273
+ platform_name = platform_name.to_s
13274
+ attributes_hash[platform_name] ||= {}
13275
+ attributes_hash[platform_name][name] = value
13276
+ else
13277
+ attributes_hash[name] = value
13278
+ end
13279
+ end
13280
+
13281
+ def self.convert_keys_to_string(value, recursive: true)
13282
+ return unless value
13283
+ result = {}
13284
+ value.each do |key, subvalue|
13285
+ subvalue = Specification.convert_keys_to_string(subvalue) if recursive && subvalue.is_a?(Hash)
13286
+ result[key.to_s] = subvalue
13287
+ end
13288
+ result
13289
+ end
13290
+
13291
+ def self.convert_keys_to_symbol(value, recursive: true)
13292
+ return unless value
13293
+ result = {}
13294
+ value.each do |key, subvalue|
13295
+ subvalue = Specification.convert_keys_to_symbol(subvalue) if recursive && subvalue.is_a?(Hash)
13296
+ result[key.to_sym] = subvalue
13297
+ end
13298
+ result
13299
+ end
13300
+
13301
+ DSL.attributes.values.each do |a|
13302
+ define_method(a.writer_name) do |value|
13303
+ store_attribute(a.name, value)
13304
+ end
13305
+ if a.writer_singular_form
13306
+ alias_method(a.writer_singular_form, a.writer_name)
13307
+ end
13308
+ end
13309
+
13310
+ def platform=(args)
13311
+ name, deployment_target = args
13312
+ name = :osx if name.to_s == 'macos'
13313
+ attributes_hash['platforms'] = if name
13314
+ { name.to_s => deployment_target }
13315
+ else
13316
+ {}
13317
+ end
13318
+ end
13319
+
13320
+ def deployment_target=(*_args)
13321
+ raise Informative, 'The deployment target can be declared only per platform.'
13322
+ end
13323
+
13324
+ def dependency(*args)
13325
+ name, *version_requirements = args
13326
+ if name == self.name
13327
+ raise Informative, "A specification can't require itself as a subspec"
13328
+ end
13329
+ if @parent
13330
+ composed_name = ''
13331
+ @parent.name.split('/').each do |component|
13332
+ composed_name << component
13333
+ if name == composed_name
13334
+ raise Informative, "A subspec can't require one of its parents specifications"
13335
+ else
13336
+ composed_name << '/'
13337
+ end
13338
+ end
13339
+ end
13340
+
13341
+ configurations_option = version_requirements.find { |option| option.is_a?(Hash) && option.key?(:configurations) }
13342
+ whitelisted_configurations = if configurations_option
13343
+ version_requirements.delete(configurations_option)
13344
+ Array(configurations_option.delete(:configurations)).map { |c| c.to_s.downcase }
13345
+ end
13346
+
13347
+ dependency_options = version_requirements.reject { |req| req.is_a?(String) }
13348
+ dependency_options.each do |dependency_option|
13349
+ if dependency_option.is_a?(Hash)
13350
+ if !dependency_option[:path].nil?
13351
+ raise Informative, 'Podspecs cannot specify the source of dependencies. The :path option is not supported.'
13352
+ elsif !dependency_option[:git].nil?
13353
+ raise Informative, 'Podspecs cannot specify the source of dependencies. The :git option is not supported.'
13354
+ end
13355
+ end
13356
+ raise Informative, "Unsupported version requirements. #{version_requirements.inspect} is not valid."
13357
+ end
13358
+
13359
+ attributes_hash['dependencies'] ||= {}
13360
+ attributes_hash['dependencies'][name] = version_requirements
13361
+
13362
+ unless whitelisted_configurations.nil?
13363
+ attributes_hash['configuration_pod_whitelist'] ||= {}
13364
+ attributes_hash['configuration_pod_whitelist'][name] = whitelisted_configurations
13365
+ end
13366
+ end
13367
+
13368
+ def dependency=(args)
13369
+ raise Informative, "Cannot assign value to dependency."
13370
+ end
13371
+
13372
+ def subspec(name, &block)
13373
+ subspec = Specification.new(self, name, &block)
13374
+ @subspecs << subspec
13375
+ subspec
13376
+ end
13377
+
13378
+ def test_spec(name = 'Tests', &block)
13379
+ subspec = Specification.new(self, name, true, &block)
13380
+ @subspecs << subspec
13381
+ subspec
13382
+ end
13383
+
13384
+ def app_spec(name = 'App', &block)
13385
+ appspec = Specification.new(self, name, :app_specification => true, &block)
13386
+ @subspecs << appspec
13387
+ appspec
13388
+ end
13389
+
13390
+ def ios
13391
+ DSL::PlatformProxy.new(self, :ios)
13392
+ end
13393
+ def osx
13394
+ DSL::PlatformProxy.new(self, :osx)
13395
+ end
13396
+ alias macos osx
13397
+ def tvos
13398
+ DSL::PlatformProxy.new(self, :tvos)
13399
+ end
13400
+ def visionos
13401
+ DSL::PlatformProxy.new(self, :visionos)
13402
+ end
13403
+ def watchos
13404
+ DSL::PlatformProxy.new(self, :watchos)
13405
+ end
13406
+
13407
+ def to_hash
13408
+ hash = attributes_hash.dup
13409
+ if root? || available_platforms != parent.available_platforms
13410
+ platforms = Hash[available_platforms.map { |p| [p.name.to_s, p.deployment_target && p.deployment_target.to_s] }]
13411
+ hash['platforms'] = platforms
13412
+ end
13413
+ specs_by_type = subspecs.group_by(&:spec_type)
13414
+ all_appspecs = specs_by_type[:app] || []
13415
+ all_testspecs = specs_by_type[:test] || []
13416
+ all_subspecs = specs_by_type[:library] || []
13417
+ hash.delete('testspecs')
13418
+ hash['testspecs'] = all_testspecs.map(&:to_hash) unless all_testspecs.empty?
13419
+ hash.delete('appspecs')
13420
+ hash['appspecs'] = all_appspecs.map(&:to_hash) unless all_appspecs.empty?
13421
+ hash.delete('subspecs')
13422
+ hash['subspecs'] = all_subspecs.map(&:to_hash) unless all_subspecs.empty?
13423
+ hash.delete('swift_version')
13424
+ hash['swift_version'] = swift_version.to_s unless swift_version.nil?
13425
+ hash
13426
+ end
13427
+
13428
+ def to_json(*a)
13429
+ to_hash.to_json(*a)
13430
+ end
13431
+
13432
+ def self.from_hash(hash, parent = nil, test_specification: false, app_specification: false)
13433
+ attributes_hash = hash.dup
13434
+ spec = Specification.new(parent, nil, test_specification, :app_specification => app_specification)
13435
+ subspecs = attributes_hash.delete('subspecs')
13436
+ testspecs = attributes_hash.delete('testspecs')
13437
+ appspecs = attributes_hash.delete('appspecs')
13438
+ spec.test_specification = !attributes_hash['test_type'].nil?
13439
+ spec.attributes_hash = attributes_hash
13440
+ spec.subspecs.concat((subspecs || []).map { |s| from_hash(s, spec, test_specification: false, app_specification: false) })
13441
+ spec.subspecs.concat((testspecs || []).map { |s| from_hash(s, spec, test_specification: true, app_specification: false) })
13442
+ spec.subspecs.concat((appspecs || []).map { |s| from_hash(s, spec, test_specification: false, app_specification: true) })
13443
+ spec
13444
+ end
13445
+ end
13446
+ Spec = Specification
13447
+
13448
+ def self.peach_evaluated(spec)
13449
+ consumer = spec.consumer(:ios)
13450
+ result = {'name' => spec.name.split('/').last}
13451
+ %w[source_files exclude_files public_header_files private_header_files header_mappings_dir header_dir module_name vendored_frameworks vendored_libraries pod_target_xcconfig].each do |attribute|
13452
+ value = consumer.public_send(attribute)
13453
+ result[attribute] = value unless value.nil?
13454
+ end
13455
+ result['default_subspecs'] = spec.attributes_hash['default_subspecs'] if spec.attributes_hash.key?('default_subspecs')
13456
+ result['dependencies'] = consumer.dependencies.to_h { |dependency| [dependency.name, dependency.requirement.requirements.map { |operator, version| "#{operator} #{version}" }] }
13457
+ result['swift_versions'] = spec.swift_versions.map(&:to_s) if spec.swift_versions
13458
+ result['subspecs'] = spec.subspecs.select(&:library_specification?).map { |child| peach_evaluated(child) }
13459
+ result
13460
+ end
13461
+ end
13462
+ `;
12726
13463
  }
12727
13464
  });
12728
13465
 
@@ -12734,40 +13471,40 @@ var init_workspace_root = __esm({
12734
13471
  });
12735
13472
 
12736
13473
  // src/podspec-sources.ts
12737
- var import_zod2, pathsSchema, attributesSchema, evaluatedSpecSchema, podspecReceiptSchema;
13474
+ var import_zod, pathsSchema, attributesSchema, evaluatedSpecSchema, podspecReceiptSchema;
12738
13475
  var init_podspec_sources = __esm({
12739
13476
  "src/podspec-sources.ts"() {
12740
13477
  "use strict";
12741
- import_zod2 = require("zod");
12742
- init_linux_cocoapods();
13478
+ import_zod = require("zod");
12743
13479
  init_home_paths();
13480
+ init_podspec_cocoapods();
12744
13481
  init_workspace_root();
12745
- pathsSchema = import_zod2.z.union([import_zod2.z.string(), import_zod2.z.array(import_zod2.z.string())]);
12746
- attributesSchema = import_zod2.z.object({
12747
- name: import_zod2.z.string().min(1),
13482
+ pathsSchema = import_zod.z.union([import_zod.z.string(), import_zod.z.array(import_zod.z.string())]);
13483
+ attributesSchema = import_zod.z.object({
13484
+ name: import_zod.z.string().min(1),
12748
13485
  source_files: pathsSchema,
12749
13486
  exclude_files: pathsSchema,
12750
13487
  public_header_files: pathsSchema,
12751
13488
  private_header_files: pathsSchema,
12752
- header_mappings_dir: import_zod2.z.string().optional(),
12753
- header_dir: import_zod2.z.string().optional(),
12754
- module_name: import_zod2.z.string().optional(),
13489
+ header_mappings_dir: import_zod.z.string().optional(),
13490
+ header_dir: import_zod.z.string().optional(),
13491
+ module_name: import_zod.z.string().optional(),
12755
13492
  vendored_frameworks: pathsSchema,
12756
13493
  vendored_libraries: pathsSchema,
12757
13494
  default_subspecs: pathsSchema.optional(),
12758
- swift_versions: import_zod2.z.array(import_zod2.z.string()).optional(),
12759
- dependencies: import_zod2.z.record(import_zod2.z.string(), import_zod2.z.array(import_zod2.z.string())),
12760
- pod_target_xcconfig: import_zod2.z.record(import_zod2.z.string(), pathsSchema).optional()
13495
+ swift_versions: import_zod.z.array(import_zod.z.string()).optional(),
13496
+ dependencies: import_zod.z.record(import_zod.z.string(), import_zod.z.array(import_zod.z.string())),
13497
+ pod_target_xcconfig: import_zod.z.record(import_zod.z.string(), pathsSchema).optional()
12761
13498
  });
12762
- evaluatedSpecSchema = import_zod2.z.lazy(
13499
+ evaluatedSpecSchema = import_zod.z.lazy(
12763
13500
  () => attributesSchema.extend({
12764
- subspecs: import_zod2.z.array(evaluatedSpecSchema).optional()
13501
+ subspecs: import_zod.z.array(evaluatedSpecSchema).optional()
12765
13502
  })
12766
13503
  );
12767
- podspecReceiptSchema = import_zod2.z.object({
12768
- key: import_zod2.z.string().regex(/^[a-f0-9]{64}$/),
12769
- environment: import_zod2.z.string().regex(/^[a-f0-9]{64}$/),
12770
- app: import_zod2.z.string().regex(/^[a-f0-9]{64}$/),
13504
+ podspecReceiptSchema = import_zod.z.object({
13505
+ key: import_zod.z.string().regex(/^[a-f0-9]{64}$/),
13506
+ environment: import_zod.z.string().regex(/^[a-f0-9]{64}$/),
13507
+ app: import_zod.z.string().regex(/^[a-f0-9]{64}$/),
12771
13508
  spec: evaluatedSpecSchema
12772
13509
  });
12773
13510
  }
@@ -13053,13 +13790,13 @@ function nitroRegisteredNames(root) {
13053
13790
  const { classes, views } = registrations(root);
13054
13791
  return { names: classes.map(({ name: name2 }) => name2), views: [...views].sort() };
13055
13792
  }
13056
- var import_node_fs19, import_node_path18, import_zod4;
13793
+ var import_node_fs19, import_node_path18, import_zod3;
13057
13794
  var init_nitro_source = __esm({
13058
13795
  "src/nitro-source.ts"() {
13059
13796
  "use strict";
13060
13797
  import_node_fs19 = __toESM(require("node:fs"), 1);
13061
13798
  import_node_path18 = __toESM(require("node:path"), 1);
13062
- import_zod4 = require("zod");
13799
+ import_zod3 = require("zod");
13063
13800
  init_nitro_dependencies();
13064
13801
  init_podspec_sources();
13065
13802
  init_react_native_autolinking();
@@ -13869,6 +14606,24 @@ var init_config = __esm({
13869
14606
  }
13870
14607
  });
13871
14608
 
14609
+ // src/public-brand.ts
14610
+ var name, peachPublicBrand, rnxPublicBrand;
14611
+ var init_public_brand = __esm({
14612
+ "src/public-brand.ts"() {
14613
+ "use strict";
14614
+ name = "Peach";
14615
+ peachPublicBrand = Object.freeze({
14616
+ name,
14617
+ packageName: "peachsim",
14618
+ commandName: "peach",
14619
+ domain: "peachsim.com",
14620
+ origin: "https://peachsim.com",
14621
+ boxOrigin: "https://rnx-box.contrast.dev"
14622
+ });
14623
+ rnxPublicBrand = peachPublicBrand;
14624
+ }
14625
+ });
14626
+
13872
14627
  // src/visit-parsed-program.ts
13873
14628
  function visitParsedProgram(program, visitor) {
13874
14629
  function visit3(value) {
@@ -15006,7 +15761,7 @@ var init_react_native_core = __esm({
15006
15761
  init_swift_distribution();
15007
15762
  init_swift_package();
15008
15763
  init_swiftContract();
15009
- recipe = true ? "6425ef9cf485d8d9b2637bfd86f1dadd809b8afa3b62c607c10e5bc1882e0741" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
15764
+ recipe = true ? "69b07e9fa50c2e82ce458ed542c4e01980e8abeab0261d9176395a3348963751" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
15010
15765
  }
15011
15766
  });
15012
15767
 
@@ -15064,6 +15819,29 @@ var init_swift_cxx_reachable = __esm({
15064
15819
  }
15065
15820
  });
15066
15821
 
15822
+ // cli/internal-child-contract.ts
15823
+ var init_internal_child_contract = __esm({
15824
+ "cli/internal-child-contract.ts"() {
15825
+ "use strict";
15826
+ }
15827
+ });
15828
+
15829
+ // cli/standalone.ts
15830
+ var init_standalone = __esm({
15831
+ "cli/standalone.ts"() {
15832
+ "use strict";
15833
+ }
15834
+ });
15835
+
15836
+ // cli/self-invocation.ts
15837
+ var init_self_invocation = __esm({
15838
+ "cli/self-invocation.ts"() {
15839
+ "use strict";
15840
+ init_public_brand();
15841
+ init_standalone();
15842
+ }
15843
+ });
15844
+
15067
15845
  // src/swift-pdf-raster.ts
15068
15846
  var init_swift_pdf_raster = __esm({
15069
15847
  "src/swift-pdf-raster.ts"() {
@@ -16802,7 +17580,7 @@ function evaluateObjcBody(body, bundle, constants, scope) {
16802
17580
  const quoted = /^@"([^"]*)"$/.exec(text3.trim());
16803
17581
  return quoted ? quoted[1] : constants.get(text3.trim());
16804
17582
  };
16805
- const truthy = (name2) => {
17583
+ const truthy2 = (name2) => {
16806
17584
  const value = variables.get(name2);
16807
17585
  return typeof value === "string" ? value.length > 0 : value !== void 0;
16808
17586
  };
@@ -16814,7 +17592,7 @@ function evaluateObjcBody(body, bundle, constants, scope) {
16814
17592
  );
16815
17593
  if (early) {
16816
17594
  if (!variables.has(early[2])) return null;
16817
- if (early[1] === "!" === !truthy(early[2])) return early[4] === "YES";
17595
+ if (early[1] === "!" === !truthy2(early[2])) return early[4] === "YES";
16818
17596
  continue;
16819
17597
  }
16820
17598
  const declaration = /^(?:NSString|NSDictionary)\s*\*\s*(\w+)\s*=\s*([\s\S]+)$/.exec(
@@ -17151,7 +17929,7 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"], i
17151
17929
  init_podspec_sources();
17152
17930
 
17153
17931
  // src/portable-expo-contract.ts
17154
- var import_zod3 = require("zod");
17932
+ var import_zod2 = require("zod");
17155
17933
  init_is_record();
17156
17934
  init_podspec_sources();
17157
17935