peachsim 0.1.2409 → 0.1.2411

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 (112) 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 +10313 -4172
  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 +11579 -5438
  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 +12830 -6689
  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 +1045 -246
  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 +961 -162
  51. package/dist-lib/native-app-identity-project.cjs +36 -11
  52. package/dist-lib/native-app-identity-project.mjs +36 -11
  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 +13937 -7796
  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 +110 -28
  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/kotlin/sdk.tar.gz +0 -0
  85. package/package.json +3 -3
  86. package/sdk/ios/System/Library/Frameworks/AuthenticationServices.framework/Headers/ASWebAuthenticationSession.h +1 -1
  87. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAsset.h +1 -1
  88. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHAssetResource.h +1 -1
  89. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHChange.h +1 -1
  90. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHFetchOptions.h +1 -1
  91. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHFetchResult.h +1 -1
  92. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHImageManager.h +2 -2
  93. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHObject.h +1 -1
  94. package/sdk/ios/System/Library/Frameworks/Photos.framework/Headers/PHPhotoLibrary.h +2 -2
  95. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +1 -1
  96. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVibrancyEffect.h +1 -1
  97. package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIVisualEffectView.h +1 -1
  98. package/sdk/ios/System/Library/Frameworks/UIKitActivity.framework/Headers/UIKitActivity.h +1 -1
  99. package/src/nitro-adapter.lock.json +262 -262
  100. package/src/nitro-superset.lock.json +4 -4
  101. package/src/podspec-cocoapods.ts +934 -0
  102. package/src/podspec-prism.ts +66 -0
  103. package/src/podspec-ruby-stdlib.ts +1121 -0
  104. package/src/podspec-ruby.ts +5175 -0
  105. package/src/podspec-sources.ts +25 -112
  106. package/src/swift-compile.ts +70 -12
  107. package/src/swift-distribution.lock.json +9 -8
  108. package/src/swift-host.ts +14 -4
  109. package/src/turbo-runtime.lock.json +19 -19
  110. package/src/xcode-project.ts +37 -11
  111. package/cli/drivers/linux-cocoapods.lock.json +0 -303
  112. package/cli/drivers/linux-cocoapods.ts +0 -99
@@ -1,4 +1,4 @@
1
- /*! peach v0.1.2409 | (c) 2026 Tamagui LLC | Proprietary; see LICENSE */
1
+ /*! peach v0.1.2411 | (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 ? "f2b2c9a5d56b4cc06d8934ce5600587dcf7893acdf17158203975d997dbd387e" : standinSourceDigest();
1895
+ STANDIN_SOURCE_DIGEST = true ? "2d765e977c08a74dad452d5ca662fba6baa967ccf18a7456e60717372076300b" : 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":"092e07d3f9154f5aaf9f7c668f16c933c3ac5d8c57e5c32df0222ae6f785eaf7","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":"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, ".."));
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
  " "
@@ -10445,6 +10445,11 @@ function applyOperator(value, operator) {
10445
10445
  case "identifier":
10446
10446
  case "c99extidentifier":
10447
10447
  return value.replace(/[^A-Za-z0-9_]/g, "_").replace(/^[0-9]/, "_");
10448
+ case "standardizepath":
10449
+ if (value === ".") return value;
10450
+ if (import_node_path15.default.posix.isAbsolute(value))
10451
+ return import_node_path15.default.posix.normalize(value).replace(/(?<=.)\/$/, "");
10452
+ return value.split("/").filter((component) => component !== "" && component !== ".").join("/");
10448
10453
  }
10449
10454
  throw new Error(`unsupported build setting operator :${operator}`);
10450
10455
  }
@@ -10736,14 +10741,34 @@ function compilationConditions(settings) {
10736
10741
  ];
10737
10742
  }
10738
10743
  function expand(value, lookup2) {
10739
- return value.replace(
10740
- /\$(?:\(([A-Za-z_][A-Za-z0-9_]*)((?::[^)]*)?)\)|\{([A-Za-z_][A-Za-z0-9_]*)((?::[^}]*)?)\}|([A-Za-z_][A-Za-z0-9_]*))/g,
10741
- (_match, paren, parenOps, brace, braceOps, bare) => {
10742
- const name2 = paren ?? brace ?? bare;
10743
- const operators = parenOps ?? braceOps ?? "";
10744
- return operators.split(":").slice(1).reduce((current, operator) => applyOperator(current, operator), lookup2(name2));
10745
- }
10746
- );
10744
+ const references = /\$([({]|[A-Za-z_][A-Za-z0-9_]*)/g;
10745
+ let output2 = "";
10746
+ let cursor = 0;
10747
+ for (let match = references.exec(value); match; match = references.exec(value)) {
10748
+ let expression = match[1];
10749
+ let end = references.lastIndex;
10750
+ if (expression === "(" || expression === "{") {
10751
+ const start = end;
10752
+ const delimiters = [expression === "(" ? ")" : "}"];
10753
+ while (end < value.length && delimiters.length > 0) {
10754
+ const character = value[end++];
10755
+ if (character === delimiters.at(-1)) delimiters.pop();
10756
+ else if (character === "$" && (value[end] === "(" || value[end] === "{"))
10757
+ delimiters.push(value[end++] === "(" ? ")" : "}");
10758
+ }
10759
+ if (delimiters.length > 0) continue;
10760
+ expression = expand(value.slice(start, end - 1), lookup2);
10761
+ }
10762
+ const [name2, ...operators] = expression.split(":");
10763
+ if (!name2 || !/^[A-Za-z_][A-Za-z0-9_-]*$/.test(name2)) continue;
10764
+ output2 += value.slice(cursor, match.index);
10765
+ output2 += operators.reduce(
10766
+ (current, operator) => applyOperator(current, operator),
10767
+ lookup2(name2)
10768
+ );
10769
+ cursor = references.lastIndex = end;
10770
+ }
10771
+ return output2 + value.slice(cursor);
10747
10772
  }
10748
10773
  function shellAssetCatalogs(script, settings, projectDir) {
10749
10774
  const assigned = /* @__PURE__ */ new Map();
@@ -12635,69 +12660,802 @@ var init_xcode_project = __esm({
12635
12660
  }
12636
12661
  });
12637
12662
 
12638
- // cli/internal-child-contract.ts
12639
- var init_internal_child_contract = __esm({
12640
- "cli/internal-child-contract.ts"() {
12663
+ // src/podspec-prism.ts
12664
+ var import_parsePrism;
12665
+ var init_podspec_prism = __esm({
12666
+ "src/podspec-prism.ts"() {
12641
12667
  "use strict";
12668
+ import_parsePrism = require("@ruby/prism/src/parsePrism.js");
12642
12669
  }
12643
12670
  });
12644
12671
 
12645
- // src/public-brand.ts
12646
- var name, peachPublicBrand, rnxPublicBrand;
12647
- var init_public_brand = __esm({
12648
- "src/public-brand.ts"() {
12672
+ // src/podspec-ruby.ts
12673
+ var N, NOT_FOUND;
12674
+ var init_podspec_ruby = __esm({
12675
+ "src/podspec-ruby.ts"() {
12649
12676
  "use strict";
12650
- name = "Peach";
12651
- peachPublicBrand = Object.freeze({
12652
- name,
12653
- packageName: "peachsim",
12654
- commandName: "peach",
12655
- domain: "peachsim.com",
12656
- origin: "https://peachsim.com",
12657
- boxOrigin: "https://rnx-box.contrast.dev"
12658
- });
12659
- rnxPublicBrand = peachPublicBrand;
12677
+ N = __toESM(require("@ruby/prism/src/nodes.js"), 1);
12678
+ init_podspec_prism();
12679
+ NOT_FOUND = Symbol("not found");
12660
12680
  }
12661
12681
  });
12662
12682
 
12663
- // cli/standalone.ts
12664
- var init_standalone = __esm({
12665
- "cli/standalone.ts"() {
12683
+ // src/podspec-ruby-stdlib.ts
12684
+ var init_podspec_ruby_stdlib = __esm({
12685
+ "src/podspec-ruby-stdlib.ts"() {
12666
12686
  "use strict";
12687
+ init_podspec_ruby();
12667
12688
  }
12668
12689
  });
12669
12690
 
12670
- // cli/self-invocation.ts
12671
- var init_self_invocation = __esm({
12672
- "cli/self-invocation.ts"() {
12691
+ // src/podspec-cocoapods.ts
12692
+ var PRELUDE;
12693
+ var init_podspec_cocoapods = __esm({
12694
+ "src/podspec-cocoapods.ts"() {
12673
12695
  "use strict";
12674
- init_public_brand();
12675
- init_standalone();
12676
- }
12677
- });
12696
+ init_podspec_ruby();
12697
+ init_podspec_ruby_stdlib();
12698
+ PRELUDE = String.raw`
12699
+ module Pod
12700
+ VERSION = '1.17.0'
12701
+ class Informative < StandardError; end
12702
+ class PlainInformative < StandardError; end
12703
+ class Version < Gem::Version; end
12704
+
12705
+ class Requirement
12706
+ PATTERN = /\A\s*(=|!=|>|<|>=|<=|~>)?\s*([0-9]+(?:\.[0-9a-zA-Z]+)*(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?)\s*\z/
12707
+ attr_reader :requirements
12708
+ def self.create(input)
12709
+ input.is_a?(Requirement) ? input : new(input)
12710
+ end
12711
+ def initialize(*requirements)
12712
+ requirements = requirements.flatten
12713
+ requirements.compact!
12714
+ requirements.uniq!
12715
+ @requirements = requirements.empty? ? [['>=', Version.new('0')]] : requirements.map { |r| parse(r) }
12716
+ end
12717
+ def parse(requirement)
12718
+ return ['=', requirement] if requirement.is_a?(Version)
12719
+ match = PATTERN.match(requirement.to_s)
12720
+ raise ArgumentError, "Illformed requirement [#{requirement.inspect}]" unless match
12721
+ [match[1] || '=', Version.new(match[2])]
12722
+ end
12723
+ def to_s
12724
+ requirements.map { |op, version| "#{op} #{version}" }.join(', ')
12725
+ end
12726
+ end
12678
12727
 
12679
- // cli/drivers/linux-cocoapods.ts
12680
- var import_zod, pinnedFile, archLock, linuxCocoaPodsLockSchema;
12681
- var init_linux_cocoapods = __esm({
12682
- "cli/drivers/linux-cocoapods.ts"() {
12683
- "use strict";
12684
- init_src();
12685
- import_zod = require("zod");
12686
- init_home_paths();
12687
- init_cli_release_origin();
12688
- init_internal_child_contract();
12689
- init_self_invocation();
12690
- pinnedFile = import_zod.z.object({
12691
- url: import_zod.z.string().url(),
12692
- sha256: import_zod.z.string().regex(/^[a-f0-9]{64}$/)
12693
- });
12694
- archLock = import_zod.z.object({ ruby: pinnedFile, gems: import_zod.z.array(pinnedFile).min(1) });
12695
- linuxCocoaPodsLockSchema = import_zod.z.object({
12696
- id: import_zod.z.string().regex(/^[a-f0-9]{16}$/),
12697
- ruby: import_zod.z.string(),
12698
- cocoapods: import_zod.z.string(),
12699
- arches: import_zod.z.object({ x64: archLock, arm64: archLock })
12700
- });
12728
+ class Dependency
12729
+ attr_reader :name, :requirement
12730
+ def initialize(name = nil, *requirements)
12731
+ @name = name
12732
+ @requirement = Requirement.create(requirements)
12733
+ end
12734
+ end
12735
+
12736
+ class Platform
12737
+ attr_reader :name, :deployment_target
12738
+ def initialize(name, deployment_target = nil)
12739
+ @name = name.to_s == 'macos' ? :osx : name.to_sym
12740
+ @deployment_target = deployment_target.nil? ? nil : Version.new(deployment_target)
12741
+ end
12742
+ def ==(other)
12743
+ other.is_a?(Platform) && name == other.name && deployment_target == other.deployment_target
12744
+ end
12745
+ def to_sym
12746
+ name
12747
+ end
12748
+ def to_s
12749
+ name.to_s
12750
+ end
12751
+ end
12752
+
12753
+ class Config
12754
+ attr_accessor :installation_root, :podfile, :lockfile
12755
+ def self.instance
12756
+ @instance ||= new
12757
+ end
12758
+ def sandbox_root
12759
+ installation_root + 'Pods'
12760
+ end
12761
+ def project_pods_root
12762
+ sandbox_root
12763
+ end
12764
+ def verbose?
12765
+ false
12766
+ end
12767
+ def silent?
12768
+ true
12769
+ end
12770
+ end
12771
+
12772
+ module UI
12773
+ def self.puts(*args); end
12774
+ def self.print(*args); end
12775
+ def self.warn(*args); end
12776
+ def self.notice(*args); end
12777
+ def self.message(*args); yield if block_given?; end
12778
+ def self.info(*args); yield if block_given?; end
12779
+ def self.section(*args); yield if block_given?; end
12780
+ def self.titled_section(*args); yield if block_given?; end
12781
+ end
12782
+ CoreUI = UI
12783
+
12784
+ class Specification
12785
+ module DSL
12786
+ PLATFORMS = [:osx, :ios, :tvos, :visionos, :watchos].freeze
12787
+ SINGULAR = {
12788
+ swift_versions: 'swift_version', authors: 'author', screenshots: 'screenshot', frameworks: 'framework',
12789
+ weak_frameworks: 'weak_framework', libraries: 'library', compiler_flags: 'compiler_flag',
12790
+ script_phases: 'script_phase', vendored_frameworks: 'vendored_framework', vendored_libraries: 'vendored_library',
12791
+ on_demand_resources: 'on_demand_resource', resource_bundles: 'resource_bundle', resources: 'resource',
12792
+ preserve_paths: 'preserve_path', default_subspecs: 'default_subspec'
12793
+ }.freeze
12794
+
12795
+ class Attribute
12796
+ attr_reader :name, :container, :types, :default_value
12797
+ def initialize(name, options)
12798
+ @name = name
12799
+ @multi_platform = options.fetch(:multi_platform, true)
12800
+ @root_only = options.fetch(:root_only, false)
12801
+ @inherited = options.fetch(:inherited, @root_only)
12802
+ @singularize = options.fetch(:singularize, false)
12803
+ @container = options.fetch(:container, nil)
12804
+ @default_value = options.fetch(:default_value, nil)
12805
+ @types = options.fetch(:types, [String])
12806
+ end
12807
+ def multi_platform?
12808
+ @multi_platform
12809
+ end
12810
+ def root_only?
12811
+ @root_only
12812
+ end
12813
+ def inherited?
12814
+ @inherited
12815
+ end
12816
+ def writer_name
12817
+ "#{name}="
12818
+ end
12819
+ def writer_singular_form
12820
+ "#{SINGULAR.fetch(name)}=" if @singularize
12821
+ end
12822
+ def default(platform = nil)
12823
+ @default_value
12824
+ end
12825
+ end
12826
+
12827
+ def self.attributes
12828
+ @attributes
12829
+ end
12830
+ def self.attribute(name, options = {})
12831
+ @attributes ||= {}
12832
+ @attributes[name] = Attribute.new(name, options)
12833
+ end
12834
+ def self.root_attribute(name, options = {})
12835
+ options[:root_only] = true
12836
+ options[:multi_platform] = false
12837
+ attribute(name, options)
12838
+ end
12839
+
12840
+ attribute :name, :inherited => false, :multi_platform => false
12841
+ root_attribute :version
12842
+ root_attribute :swift_versions, :container => Array, :singularize => true
12843
+ root_attribute :cocoapods_version
12844
+ root_attribute :authors, :types => [String, Array, Hash], :container => Hash, :singularize => true
12845
+ root_attribute :social_media_url
12846
+ root_attribute :license, :container => Hash
12847
+ root_attribute :homepage
12848
+ root_attribute :readme
12849
+ root_attribute :changelog
12850
+ root_attribute :source, :container => Hash
12851
+ root_attribute :summary
12852
+ root_attribute :description
12853
+ root_attribute :screenshots, :singularize => true, :container => Array
12854
+ root_attribute :documentation_url
12855
+ root_attribute :prepare_command
12856
+ root_attribute :static_framework, :types => [TrueClass, FalseClass], :default_value => false
12857
+ root_attribute :deprecated, :types => [TrueClass, FalseClass], :default_value => false
12858
+ root_attribute :deprecated_in_favor_of
12859
+ attribute :platforms, :container => Hash, :multi_platform => false, :inherited => true
12860
+ attribute :dependencies, :container => Hash, :inherited => true
12861
+ attribute :info_plist, :container => Hash, :inherited => false
12862
+ attribute :requires_arc, :types => [TrueClass, FalseClass, String, Array], :default_value => true, :inherited => true
12863
+ attribute :frameworks, :container => Array, :singularize => true, :inherited => true
12864
+ attribute :weak_frameworks, :container => Array, :singularize => true, :inherited => true
12865
+ attribute :libraries, :container => Array, :singularize => true, :inherited => true
12866
+ attribute :compiler_flags, :container => Array, :singularize => true, :inherited => true
12867
+ attribute :pod_target_xcconfig, :container => Hash, :inherited => true
12868
+ attribute :user_target_xcconfig, :container => Hash, :inherited => true
12869
+ attribute :prefix_header_contents, :types => [Array, String], :inherited => true
12870
+ attribute :prefix_header_file, :types => [TrueClass, FalseClass, String], :inherited => true
12871
+ root_attribute :module_name
12872
+ attribute :header_dir, :inherited => true
12873
+ attribute :header_mappings_dir, :inherited => true
12874
+ attribute :script_phases, :types => [Hash], :container => Array, :singularize => true
12875
+ attribute :source_files, :container => Array
12876
+ attribute :public_header_files, :container => Array
12877
+ attribute :project_header_files, :container => Array
12878
+ attribute :private_header_files, :container => Array
12879
+ attribute :vendored_frameworks, :container => Array, :singularize => true
12880
+ attribute :vendored_libraries, :container => Array, :singularize => true
12881
+ attribute :on_demand_resources, :types => [String, Array, Hash], :container => Hash, :singularize => true
12882
+ attribute :resource_bundles, :types => [String, Array], :container => Hash, :singularize => true
12883
+ attribute :resources, :container => Array, :singularize => true
12884
+ attribute :exclude_files, :container => Array
12885
+ attribute :preserve_paths, :container => Array, :singularize => true
12886
+ attribute :module_map, :types => [TrueClass, FalseClass, String], :root_only => true
12887
+ attribute :test_type, :types => [Symbol, String], :multi_platform => false
12888
+ attribute :requires_app_host, :types => [TrueClass, FalseClass], :default_value => false
12889
+ attribute :app_host_name, :types => [String]
12890
+ attribute :scheme, :types => [Hash], :container => Hash
12891
+ root_attribute :default_subspecs, :container => Array, :types => [Array, String, Symbol], :singularize => true
12892
+ attribute :xcconfig, :container => Hash, :inherited => true
12893
+
12894
+ class PlatformProxy
12895
+ attr_accessor :spec
12896
+ attr_reader :platform
12897
+ def initialize(spec, platform)
12898
+ @spec = spec
12899
+ @platform = platform
12900
+ end
12901
+ def method_missing(meth, *args, &block)
12902
+ attribute = attribute_for_method(meth)
12903
+ raise NoMethodError, "undefined method '#{meth}' for #{self}" unless attribute
12904
+ raise NoMethodError, "#{attribute} cannot be set per-platform" unless attribute.multi_platform?
12905
+ spec.store_attribute(attribute.name, args.first, platform)
12906
+ end
12907
+ def respond_to_missing?(method, include_all)
12908
+ attribute = attribute_for_method(method)
12909
+ (attribute && attribute.multi_platform?) || false
12910
+ end
12911
+ def dependency(*args)
12912
+ name, *version_requirements = args
12913
+ platform_name = platform.to_s
12914
+ platform_hash = spec.attributes_hash[platform_name] || {}
12915
+ platform_hash['dependencies'] ||= {}
12916
+ platform_hash['dependencies'][name] = version_requirements
12917
+ spec.attributes_hash[platform_name] = platform_hash
12918
+ end
12919
+ def deployment_target=(value)
12920
+ platform_name = platform.to_s
12921
+ spec.attributes_hash['platforms'] ||= {}
12922
+ spec.attributes_hash['platforms'][platform_name] = value
12923
+ end
12924
+ private
12925
+ def attribute_for_method(method)
12926
+ method = method.to_sym
12927
+ Specification::DSL.attributes.values.find do |attribute|
12928
+ if attribute.writer_name.to_sym == method
12929
+ true
12930
+ elsif attribute.writer_singular_form
12931
+ attribute.writer_singular_form.to_sym == method
12932
+ end
12933
+ end
12934
+ end
12935
+ end
12936
+ end
12937
+
12938
+ class Consumer
12939
+ attr_reader :spec, :platform_name
12940
+ def initialize(spec, platform)
12941
+ @spec = spec
12942
+ @platform_name = platform.respond_to?(:name) ? platform.name : platform
12943
+ end
12944
+
12945
+ def self.spec_attr_accessor(attr_name)
12946
+ define_method(attr_name) do
12947
+ value_for_attribute(attr_name)
12948
+ end
12949
+ end
12950
+
12951
+ spec_attr_accessor :requires_arc
12952
+ spec_attr_accessor :frameworks
12953
+ spec_attr_accessor :weak_frameworks
12954
+ spec_attr_accessor :libraries
12955
+ spec_attr_accessor :compiler_flags
12956
+ spec_attr_accessor :info_plist
12957
+ spec_attr_accessor :prefix_header_contents
12958
+ spec_attr_accessor :prefix_header_file
12959
+ spec_attr_accessor :module_name
12960
+ spec_attr_accessor :module_map
12961
+ spec_attr_accessor :header_dir
12962
+ spec_attr_accessor :header_mappings_dir
12963
+ spec_attr_accessor :requires_app_host
12964
+ spec_attr_accessor :app_host_name
12965
+ spec_attr_accessor :source_files
12966
+ spec_attr_accessor :public_header_files
12967
+ spec_attr_accessor :project_header_files
12968
+ spec_attr_accessor :private_header_files
12969
+ spec_attr_accessor :vendored_frameworks
12970
+ spec_attr_accessor :vendored_libraries
12971
+ spec_attr_accessor :resources
12972
+ spec_attr_accessor :exclude_files
12973
+ spec_attr_accessor :preserve_paths
12974
+
12975
+ def pod_target_xcconfig
12976
+ attr = Specification::DSL.attributes[:pod_target_xcconfig]
12977
+ merge_values(attr, value_for_attribute(:xcconfig), value_for_attribute(:pod_target_xcconfig))
12978
+ end
12979
+
12980
+ def user_target_xcconfig
12981
+ attr = Specification::DSL.attributes[:user_target_xcconfig]
12982
+ merge_values(attr, value_for_attribute(:xcconfig), value_for_attribute(:user_target_xcconfig))
12983
+ end
12984
+
12985
+ def dependencies
12986
+ value = value_for_attribute(:dependencies)
12987
+ value.map do |name, requirements|
12988
+ Dependency.new(name, requirements)
12989
+ end
12990
+ end
12991
+
12992
+ def value_for_attribute(attr_name)
12993
+ attr = Specification::DSL.attributes[attr_name]
12994
+ value = value_with_inheritance(spec, attr)
12995
+ value = attr.default(platform_name) if value.nil?
12996
+ value = attr.container.new if value.nil? && attr.container
12997
+ value
12998
+ end
12999
+
13000
+ def value_with_inheritance(the_spec, attr)
13001
+ value = raw_value_for_attribute(the_spec, attr)
13002
+ if the_spec.root? || !attr.inherited?
13003
+ return value
13004
+ end
13005
+ parent_value = value_with_inheritance(the_spec.parent, attr)
13006
+ merge_values(attr, parent_value, value)
13007
+ end
13008
+
13009
+ def raw_value_for_attribute(the_spec, attr)
13010
+ value = the_spec.attributes_hash[attr.name.to_s]
13011
+ value = prepare_value(attr, value)
13012
+ if attr.multi_platform?
13013
+ if platform_hash = the_spec.attributes_hash[platform_name.to_s]
13014
+ platform_value = platform_hash[attr.name.to_s]
13015
+ platform_value = prepare_value(attr, platform_value)
13016
+ value = merge_values(attr, value, platform_value)
13017
+ end
13018
+ end
13019
+ value
13020
+ end
13021
+
13022
+ def merge_values(attr, existing_value, new_value)
13023
+ return existing_value if new_value.nil?
13024
+ return new_value if existing_value.nil?
13025
+ if attr.types.include?(TrueClass)
13026
+ new_value.nil? ? existing_value : new_value
13027
+ elsif attr.container == Array
13028
+ r = [*existing_value] + [*new_value]
13029
+ r.compact
13030
+ elsif attr.container == Hash
13031
+ existing_value.merge(new_value) do |_, old, new|
13032
+ merge_hash_value(attr, old, new)
13033
+ end
13034
+ else
13035
+ new_value
13036
+ end
13037
+ end
13038
+
13039
+ def prepare_value(attr, value)
13040
+ if attr.container == Array
13041
+ value = if value.is_a?(Hash)
13042
+ [value]
13043
+ else
13044
+ [*value].compact
13045
+ end
13046
+ end
13047
+ value
13048
+ end
13049
+
13050
+ private
13051
+
13052
+ def merge_hash_value(attr, old, new)
13053
+ if attr.name == :info_plist
13054
+ new
13055
+ elsif spec.non_library_specification? && [:pod_target_xcconfig, :user_target_xcconfig, :xcconfig].include?(attr.name)
13056
+ new
13057
+ elsif new.is_a?(Array) || old.is_a?(Array)
13058
+ r = Array(old) + Array(new)
13059
+ r.compact
13060
+ else
13061
+ old + ' ' + new
13062
+ end
13063
+ end
13064
+ end
13065
+
13066
+ attr_reader :parent
13067
+ attr_accessor :attributes_hash, :subspecs, :test_specification, :app_specification, :defined_in_file
13068
+ alias_method :test_specification?, :test_specification
13069
+ alias_method :app_specification?, :app_specification
13070
+
13071
+ def initialize(parent = nil, name = nil, test_specification = false, app_specification: false)
13072
+ raise StandardError, "#{self} can not be both an app and test specification." if test_specification && app_specification
13073
+ @attributes_hash = {}
13074
+ @subspecs = []
13075
+ @consumers = {}
13076
+ @parent = parent
13077
+ @test_specification = test_specification
13078
+ @app_specification = app_specification
13079
+ attributes_hash['name'] = name
13080
+ attributes_hash['test_type'] = :unit if test_specification
13081
+ yield self if block_given?
13082
+ end
13083
+
13084
+ def to_s
13085
+ specified_version = attributes_hash['version'] || ''
13086
+ if name && !specified_version.to_s.empty?
13087
+ "#{name} (#{specified_version})"
13088
+ elsif name
13089
+ name
13090
+ else
13091
+ 'No-name'
13092
+ end
13093
+ end
13094
+
13095
+ def inspect
13096
+ "#<#{self.class.name} name=#{name.inspect}>"
13097
+ end
13098
+
13099
+ def base_name
13100
+ attributes_hash['name']
13101
+ end
13102
+
13103
+ def name
13104
+ parent ? "#{parent.name}/#{base_name}" : base_name
13105
+ end
13106
+
13107
+ def name=(name)
13108
+ attributes_hash['name'] = name
13109
+ end
13110
+
13111
+ def root
13112
+ parent ? parent.root : self
13113
+ end
13114
+
13115
+ def root?
13116
+ parent.nil?
13117
+ end
13118
+
13119
+ def subspec?
13120
+ !parent.nil?
13121
+ end
13122
+
13123
+ def spec_type
13124
+ return :test if test_specification?
13125
+ return :app if app_specification?
13126
+ :library
13127
+ end
13128
+
13129
+ def library_specification?
13130
+ !app_specification? && !test_specification?
13131
+ end
13132
+
13133
+ def non_library_specification?
13134
+ !library_specification?
13135
+ end
13136
+
13137
+ def version
13138
+ if root?
13139
+ @version ||= Version.new(attributes_hash['version'])
13140
+ else
13141
+ @version ||= root.version
13142
+ end
13143
+ end
13144
+
13145
+ def requires_arc
13146
+ attributes_hash['requires_arc']
13147
+ end
13148
+
13149
+ def swift_version
13150
+ swift_versions.last
13151
+ end
13152
+
13153
+ def swift_versions
13154
+ @swift_versions ||= begin
13155
+ swift_versions = Array(attributes_hash['swift_versions']).dup
13156
+ swift_versions << attributes_hash['swift_version'] unless attributes_hash['swift_version'].nil?
13157
+ swift_versions.map { |swift_version| Version.new(swift_version) }.uniq.sort
13158
+ end
13159
+ end
13160
+
13161
+ def module_name
13162
+ attributes_hash['module_name'] || name.split('/').first.gsub(/^([0-9])/, '_\1').gsub(/[^a-zA-Z0-9_]/, '_').gsub(/_+/, '_')
13163
+ end
13164
+
13165
+ def homepage
13166
+ attributes_hash['homepage']
13167
+ end
13168
+
13169
+ def summary
13170
+ attributes_hash['summary']
13171
+ end
13172
+
13173
+ def source
13174
+ value = attributes_hash['source']
13175
+ value && value.is_a?(Hash) ? Specification.convert_keys_to_symbol(value) : value
13176
+ end
13177
+
13178
+ def default_subspecs
13179
+ value = Array(attributes_hash['default_subspecs'])
13180
+ first = value.first
13181
+ if first == :none || first == 'none'
13182
+ first.to_sym
13183
+ else
13184
+ value
13185
+ end
13186
+ end
13187
+
13188
+ def dependencies(platform = nil)
13189
+ if platform
13190
+ consumer(platform).dependencies || []
13191
+ else
13192
+ available_platforms.map do |spec_platform|
13193
+ consumer(spec_platform).dependencies
13194
+ end.flatten.uniq
13195
+ end
13196
+ end
13197
+
13198
+ def consumer(platform)
13199
+ platform = platform.to_sym
13200
+ @consumers[platform] ||= Consumer.new(self, platform)
13201
+ end
13202
+
13203
+ def subspec_by_name(relative_name, raise_if_missing = true, include_non_library_specifications = false)
13204
+ if relative_name.nil? || relative_name == base_name
13205
+ self
13206
+ elsif relative_name.downcase == base_name.downcase
13207
+ raise Informative, "Trying to access a '#{relative_name}' specification from '#{base_name}', which has a different case."
13208
+ else
13209
+ remainder = relative_name[base_name.size + 1..-1]
13210
+ subspec_name = remainder.split('/').shift
13211
+ subspec = subspecs.find { |s| s.base_name == subspec_name && (include_non_library_specifications || !s.non_library_specification?) }
13212
+ unless subspec
13213
+ if raise_if_missing
13214
+ raise Informative, "Unable to find a specification named " \
13215
+ "'#{relative_name}' in '#{name} (#{version})'."
13216
+ else
13217
+ return nil
13218
+ end
13219
+ end
13220
+ subspec.subspec_by_name(remainder, raise_if_missing, include_non_library_specifications)
13221
+ end
13222
+ end
13223
+
13224
+ def available_platforms
13225
+ names = supported_platform_names
13226
+ names = DSL::PLATFORMS.map(&:to_s) if names.empty?
13227
+ names.map { |name| Platform.new(name, deployment_target(name)) }
13228
+ end
13229
+
13230
+ def supported_platform_names
13231
+ spec = self
13232
+ names = nil
13233
+ until spec.nil?
13234
+ if spec.attributes_hash['platforms']
13235
+ spec_platforms = spec.attributes_hash['platforms'].keys
13236
+ names = names.nil? ? spec_platforms : names & spec_platforms
13237
+ end
13238
+ spec = spec.parent
13239
+ end
13240
+ names || []
13241
+ end
13242
+
13243
+ def deployment_target(platform_name)
13244
+ result = platform_hash[platform_name.to_s]
13245
+ result ||= parent.deployment_target(platform_name) if parent
13246
+ result
13247
+ end
13248
+
13249
+ def platform_hash
13250
+ case value = attributes_hash['platforms']
13251
+ when String
13252
+ { value => nil }
13253
+ when Array
13254
+ result = {}
13255
+ value.each { |a| result[a] = nil }
13256
+ result
13257
+ when Hash
13258
+ value
13259
+ else
13260
+ {}
13261
+ end
13262
+ end
13263
+
13264
+ def store_attribute(name, value, platform_name = nil)
13265
+ name = name.to_s
13266
+ value = Specification.convert_keys_to_string(value) if value.is_a?(Hash)
13267
+ value = value.strip_heredoc.strip if value.respond_to?(:strip_heredoc)
13268
+ if platform_name
13269
+ platform_name = platform_name.to_s
13270
+ attributes_hash[platform_name] ||= {}
13271
+ attributes_hash[platform_name][name] = value
13272
+ else
13273
+ attributes_hash[name] = value
13274
+ end
13275
+ end
13276
+
13277
+ def self.convert_keys_to_string(value, recursive: true)
13278
+ return unless value
13279
+ result = {}
13280
+ value.each do |key, subvalue|
13281
+ subvalue = Specification.convert_keys_to_string(subvalue) if recursive && subvalue.is_a?(Hash)
13282
+ result[key.to_s] = subvalue
13283
+ end
13284
+ result
13285
+ end
13286
+
13287
+ def self.convert_keys_to_symbol(value, recursive: true)
13288
+ return unless value
13289
+ result = {}
13290
+ value.each do |key, subvalue|
13291
+ subvalue = Specification.convert_keys_to_symbol(subvalue) if recursive && subvalue.is_a?(Hash)
13292
+ result[key.to_sym] = subvalue
13293
+ end
13294
+ result
13295
+ end
13296
+
13297
+ DSL.attributes.values.each do |a|
13298
+ define_method(a.writer_name) do |value|
13299
+ store_attribute(a.name, value)
13300
+ end
13301
+ if a.writer_singular_form
13302
+ alias_method(a.writer_singular_form, a.writer_name)
13303
+ end
13304
+ end
13305
+
13306
+ def platform=(args)
13307
+ name, deployment_target = args
13308
+ name = :osx if name.to_s == 'macos'
13309
+ attributes_hash['platforms'] = if name
13310
+ { name.to_s => deployment_target }
13311
+ else
13312
+ {}
13313
+ end
13314
+ end
13315
+
13316
+ def deployment_target=(*_args)
13317
+ raise Informative, 'The deployment target can be declared only per platform.'
13318
+ end
13319
+
13320
+ def dependency(*args)
13321
+ name, *version_requirements = args
13322
+ if name == self.name
13323
+ raise Informative, "A specification can't require itself as a subspec"
13324
+ end
13325
+ if @parent
13326
+ composed_name = ''
13327
+ @parent.name.split('/').each do |component|
13328
+ composed_name << component
13329
+ if name == composed_name
13330
+ raise Informative, "A subspec can't require one of its parents specifications"
13331
+ else
13332
+ composed_name << '/'
13333
+ end
13334
+ end
13335
+ end
13336
+
13337
+ configurations_option = version_requirements.find { |option| option.is_a?(Hash) && option.key?(:configurations) }
13338
+ whitelisted_configurations = if configurations_option
13339
+ version_requirements.delete(configurations_option)
13340
+ Array(configurations_option.delete(:configurations)).map { |c| c.to_s.downcase }
13341
+ end
13342
+
13343
+ dependency_options = version_requirements.reject { |req| req.is_a?(String) }
13344
+ dependency_options.each do |dependency_option|
13345
+ if dependency_option.is_a?(Hash)
13346
+ if !dependency_option[:path].nil?
13347
+ raise Informative, 'Podspecs cannot specify the source of dependencies. The :path option is not supported.'
13348
+ elsif !dependency_option[:git].nil?
13349
+ raise Informative, 'Podspecs cannot specify the source of dependencies. The :git option is not supported.'
13350
+ end
13351
+ end
13352
+ raise Informative, "Unsupported version requirements. #{version_requirements.inspect} is not valid."
13353
+ end
13354
+
13355
+ attributes_hash['dependencies'] ||= {}
13356
+ attributes_hash['dependencies'][name] = version_requirements
13357
+
13358
+ unless whitelisted_configurations.nil?
13359
+ attributes_hash['configuration_pod_whitelist'] ||= {}
13360
+ attributes_hash['configuration_pod_whitelist'][name] = whitelisted_configurations
13361
+ end
13362
+ end
13363
+
13364
+ def dependency=(args)
13365
+ raise Informative, "Cannot assign value to dependency."
13366
+ end
13367
+
13368
+ def subspec(name, &block)
13369
+ subspec = Specification.new(self, name, &block)
13370
+ @subspecs << subspec
13371
+ subspec
13372
+ end
13373
+
13374
+ def test_spec(name = 'Tests', &block)
13375
+ subspec = Specification.new(self, name, true, &block)
13376
+ @subspecs << subspec
13377
+ subspec
13378
+ end
13379
+
13380
+ def app_spec(name = 'App', &block)
13381
+ appspec = Specification.new(self, name, :app_specification => true, &block)
13382
+ @subspecs << appspec
13383
+ appspec
13384
+ end
13385
+
13386
+ def ios
13387
+ DSL::PlatformProxy.new(self, :ios)
13388
+ end
13389
+ def osx
13390
+ DSL::PlatformProxy.new(self, :osx)
13391
+ end
13392
+ alias macos osx
13393
+ def tvos
13394
+ DSL::PlatformProxy.new(self, :tvos)
13395
+ end
13396
+ def visionos
13397
+ DSL::PlatformProxy.new(self, :visionos)
13398
+ end
13399
+ def watchos
13400
+ DSL::PlatformProxy.new(self, :watchos)
13401
+ end
13402
+
13403
+ def to_hash
13404
+ hash = attributes_hash.dup
13405
+ if root? || available_platforms != parent.available_platforms
13406
+ platforms = Hash[available_platforms.map { |p| [p.name.to_s, p.deployment_target && p.deployment_target.to_s] }]
13407
+ hash['platforms'] = platforms
13408
+ end
13409
+ specs_by_type = subspecs.group_by(&:spec_type)
13410
+ all_appspecs = specs_by_type[:app] || []
13411
+ all_testspecs = specs_by_type[:test] || []
13412
+ all_subspecs = specs_by_type[:library] || []
13413
+ hash.delete('testspecs')
13414
+ hash['testspecs'] = all_testspecs.map(&:to_hash) unless all_testspecs.empty?
13415
+ hash.delete('appspecs')
13416
+ hash['appspecs'] = all_appspecs.map(&:to_hash) unless all_appspecs.empty?
13417
+ hash.delete('subspecs')
13418
+ hash['subspecs'] = all_subspecs.map(&:to_hash) unless all_subspecs.empty?
13419
+ hash.delete('swift_version')
13420
+ hash['swift_version'] = swift_version.to_s unless swift_version.nil?
13421
+ hash
13422
+ end
13423
+
13424
+ def to_json(*a)
13425
+ to_hash.to_json(*a)
13426
+ end
13427
+
13428
+ def self.from_hash(hash, parent = nil, test_specification: false, app_specification: false)
13429
+ attributes_hash = hash.dup
13430
+ spec = Specification.new(parent, nil, test_specification, :app_specification => app_specification)
13431
+ subspecs = attributes_hash.delete('subspecs')
13432
+ testspecs = attributes_hash.delete('testspecs')
13433
+ appspecs = attributes_hash.delete('appspecs')
13434
+ spec.test_specification = !attributes_hash['test_type'].nil?
13435
+ spec.attributes_hash = attributes_hash
13436
+ spec.subspecs.concat((subspecs || []).map { |s| from_hash(s, spec, test_specification: false, app_specification: false) })
13437
+ spec.subspecs.concat((testspecs || []).map { |s| from_hash(s, spec, test_specification: true, app_specification: false) })
13438
+ spec.subspecs.concat((appspecs || []).map { |s| from_hash(s, spec, test_specification: false, app_specification: true) })
13439
+ spec
13440
+ end
13441
+ end
13442
+ Spec = Specification
13443
+
13444
+ def self.peach_evaluated(spec)
13445
+ consumer = spec.consumer(:ios)
13446
+ result = {'name' => spec.name.split('/').last}
13447
+ %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|
13448
+ value = consumer.public_send(attribute)
13449
+ result[attribute] = value unless value.nil?
13450
+ end
13451
+ result['default_subspecs'] = spec.attributes_hash['default_subspecs'] if spec.attributes_hash.key?('default_subspecs')
13452
+ result['dependencies'] = consumer.dependencies.to_h { |dependency| [dependency.name, dependency.requirement.requirements.map { |operator, version| "#{operator} #{version}" }] }
13453
+ result['swift_versions'] = spec.swift_versions.map(&:to_s) if spec.swift_versions
13454
+ result['subspecs'] = spec.subspecs.select(&:library_specification?).map { |child| peach_evaluated(child) }
13455
+ result
13456
+ end
13457
+ end
13458
+ `;
12701
13459
  }
12702
13460
  });
12703
13461
 
@@ -12709,40 +13467,40 @@ var init_workspace_root = __esm({
12709
13467
  });
12710
13468
 
12711
13469
  // src/podspec-sources.ts
12712
- var import_zod2, pathsSchema, attributesSchema, evaluatedSpecSchema, podspecReceiptSchema;
13470
+ var import_zod, pathsSchema, attributesSchema, evaluatedSpecSchema, podspecReceiptSchema;
12713
13471
  var init_podspec_sources = __esm({
12714
13472
  "src/podspec-sources.ts"() {
12715
13473
  "use strict";
12716
- import_zod2 = require("zod");
12717
- init_linux_cocoapods();
13474
+ import_zod = require("zod");
12718
13475
  init_home_paths();
13476
+ init_podspec_cocoapods();
12719
13477
  init_workspace_root();
12720
- pathsSchema = import_zod2.z.union([import_zod2.z.string(), import_zod2.z.array(import_zod2.z.string())]);
12721
- attributesSchema = import_zod2.z.object({
12722
- name: import_zod2.z.string().min(1),
13478
+ pathsSchema = import_zod.z.union([import_zod.z.string(), import_zod.z.array(import_zod.z.string())]);
13479
+ attributesSchema = import_zod.z.object({
13480
+ name: import_zod.z.string().min(1),
12723
13481
  source_files: pathsSchema,
12724
13482
  exclude_files: pathsSchema,
12725
13483
  public_header_files: pathsSchema,
12726
13484
  private_header_files: pathsSchema,
12727
- header_mappings_dir: import_zod2.z.string().optional(),
12728
- header_dir: import_zod2.z.string().optional(),
12729
- module_name: import_zod2.z.string().optional(),
13485
+ header_mappings_dir: import_zod.z.string().optional(),
13486
+ header_dir: import_zod.z.string().optional(),
13487
+ module_name: import_zod.z.string().optional(),
12730
13488
  vendored_frameworks: pathsSchema,
12731
13489
  vendored_libraries: pathsSchema,
12732
13490
  default_subspecs: pathsSchema.optional(),
12733
- swift_versions: import_zod2.z.array(import_zod2.z.string()).optional(),
12734
- dependencies: import_zod2.z.record(import_zod2.z.string(), import_zod2.z.array(import_zod2.z.string())),
12735
- pod_target_xcconfig: import_zod2.z.record(import_zod2.z.string(), pathsSchema).optional()
13491
+ swift_versions: import_zod.z.array(import_zod.z.string()).optional(),
13492
+ dependencies: import_zod.z.record(import_zod.z.string(), import_zod.z.array(import_zod.z.string())),
13493
+ pod_target_xcconfig: import_zod.z.record(import_zod.z.string(), pathsSchema).optional()
12736
13494
  });
12737
- evaluatedSpecSchema = import_zod2.z.lazy(
13495
+ evaluatedSpecSchema = import_zod.z.lazy(
12738
13496
  () => attributesSchema.extend({
12739
- subspecs: import_zod2.z.array(evaluatedSpecSchema).optional()
13497
+ subspecs: import_zod.z.array(evaluatedSpecSchema).optional()
12740
13498
  })
12741
13499
  );
12742
- podspecReceiptSchema = import_zod2.z.object({
12743
- key: import_zod2.z.string().regex(/^[a-f0-9]{64}$/),
12744
- environment: import_zod2.z.string().regex(/^[a-f0-9]{64}$/),
12745
- app: import_zod2.z.string().regex(/^[a-f0-9]{64}$/),
13500
+ podspecReceiptSchema = import_zod.z.object({
13501
+ key: import_zod.z.string().regex(/^[a-f0-9]{64}$/),
13502
+ environment: import_zod.z.string().regex(/^[a-f0-9]{64}$/),
13503
+ app: import_zod.z.string().regex(/^[a-f0-9]{64}$/),
12746
13504
  spec: evaluatedSpecSchema
12747
13505
  });
12748
13506
  }
@@ -13028,13 +13786,13 @@ function nitroRegisteredNames(root) {
13028
13786
  const { classes, views } = registrations(root);
13029
13787
  return { names: classes.map(({ name: name2 }) => name2), views: [...views].sort() };
13030
13788
  }
13031
- var import_node_fs19, import_node_path18, import_zod4;
13789
+ var import_node_fs19, import_node_path18, import_zod3;
13032
13790
  var init_nitro_source = __esm({
13033
13791
  "src/nitro-source.ts"() {
13034
13792
  "use strict";
13035
13793
  import_node_fs19 = __toESM(require("node:fs"), 1);
13036
13794
  import_node_path18 = __toESM(require("node:path"), 1);
13037
- import_zod4 = require("zod");
13795
+ import_zod3 = require("zod");
13038
13796
  init_nitro_dependencies();
13039
13797
  init_podspec_sources();
13040
13798
  init_react_native_autolinking();
@@ -13844,6 +14602,24 @@ var init_config = __esm({
13844
14602
  }
13845
14603
  });
13846
14604
 
14605
+ // src/public-brand.ts
14606
+ var name, peachPublicBrand, rnxPublicBrand;
14607
+ var init_public_brand = __esm({
14608
+ "src/public-brand.ts"() {
14609
+ "use strict";
14610
+ name = "Peach";
14611
+ peachPublicBrand = Object.freeze({
14612
+ name,
14613
+ packageName: "peachsim",
14614
+ commandName: "peach",
14615
+ domain: "peachsim.com",
14616
+ origin: "https://peachsim.com",
14617
+ boxOrigin: "https://rnx-box.contrast.dev"
14618
+ });
14619
+ rnxPublicBrand = peachPublicBrand;
14620
+ }
14621
+ });
14622
+
13847
14623
  // src/visit-parsed-program.ts
13848
14624
  function visitParsedProgram(program, visitor) {
13849
14625
  function visit3(value) {
@@ -14981,7 +15757,7 @@ var init_react_native_core = __esm({
14981
15757
  init_swift_distribution();
14982
15758
  init_swift_package();
14983
15759
  init_swiftContract();
14984
- recipe = true ? "6425ef9cf485d8d9b2637bfd86f1dadd809b8afa3b62c607c10e5bc1882e0741" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
15760
+ recipe = true ? "69b07e9fa50c2e82ce458ed542c4e01980e8abeab0261d9176395a3348963751" : reactNativeCoreDigest2(__sootsim_import_meta_dirname);
14985
15761
  }
14986
15762
  });
14987
15763
 
@@ -15039,6 +15815,29 @@ var init_swift_cxx_reachable = __esm({
15039
15815
  }
15040
15816
  });
15041
15817
 
15818
+ // cli/internal-child-contract.ts
15819
+ var init_internal_child_contract = __esm({
15820
+ "cli/internal-child-contract.ts"() {
15821
+ "use strict";
15822
+ }
15823
+ });
15824
+
15825
+ // cli/standalone.ts
15826
+ var init_standalone = __esm({
15827
+ "cli/standalone.ts"() {
15828
+ "use strict";
15829
+ }
15830
+ });
15831
+
15832
+ // cli/self-invocation.ts
15833
+ var init_self_invocation = __esm({
15834
+ "cli/self-invocation.ts"() {
15835
+ "use strict";
15836
+ init_public_brand();
15837
+ init_standalone();
15838
+ }
15839
+ });
15840
+
15042
15841
  // src/swift-pdf-raster.ts
15043
15842
  var init_swift_pdf_raster = __esm({
15044
15843
  "src/swift-pdf-raster.ts"() {
@@ -16777,7 +17576,7 @@ function evaluateObjcBody(body, bundle, constants, scope) {
16777
17576
  const quoted = /^@"([^"]*)"$/.exec(text3.trim());
16778
17577
  return quoted ? quoted[1] : constants.get(text3.trim());
16779
17578
  };
16780
- const truthy = (name2) => {
17579
+ const truthy2 = (name2) => {
16781
17580
  const value = variables.get(name2);
16782
17581
  return typeof value === "string" ? value.length > 0 : value !== void 0;
16783
17582
  };
@@ -16789,7 +17588,7 @@ function evaluateObjcBody(body, bundle, constants, scope) {
16789
17588
  );
16790
17589
  if (early) {
16791
17590
  if (!variables.has(early[2])) return null;
16792
- if (early[1] === "!" === !truthy(early[2])) return early[4] === "YES";
17591
+ if (early[1] === "!" === !truthy2(early[2])) return early[4] === "YES";
16793
17592
  continue;
16794
17593
  }
16795
17594
  const declaration = /^(?:NSString|NSDictionary)\s*\*\s*(\w+)\s*=\s*([\s\S]+)$/.exec(
@@ -17126,7 +17925,7 @@ function readNativeFirebaseConfig(projectRoot, platforms = ["ios", "android"], i
17126
17925
  init_podspec_sources();
17127
17926
 
17128
17927
  // src/portable-expo-contract.ts
17129
- var import_zod3 = require("zod");
17928
+ var import_zod2 = require("zod");
17130
17929
  init_is_record();
17131
17930
  init_podspec_sources();
17132
17931