expo-targets 0.2.7 → 0.2.9

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 (705) hide show
  1. package/README.md +36 -217
  2. package/build/metro/src/index.d.ts +1 -1
  3. package/build/metro/src/index.d.ts.map +1 -1
  4. package/build/metro/src/index.js +2 -1
  5. package/build/metro/src/index.js.map +1 -1
  6. package/build/metro/src/withTargetsMetro.d.ts +14 -0
  7. package/build/metro/src/withTargetsMetro.d.ts.map +1 -1
  8. package/build/metro/src/withTargetsMetro.js +75 -23
  9. package/build/metro/src/withTargetsMetro.js.map +1 -1
  10. package/build/plugin/src/android/widgetSourceSets.d.ts +10 -0
  11. package/build/plugin/src/android/widgetSourceSets.d.ts.map +1 -0
  12. package/build/plugin/src/android/widgetSourceSets.js +167 -0
  13. package/build/plugin/src/android/widgetSourceSets.js.map +1 -0
  14. package/build/plugin/src/android/withAndroidAppBuildGradle.d.ts +1 -1
  15. package/build/plugin/src/android/withAndroidAppBuildGradle.d.ts.map +1 -1
  16. package/build/plugin/src/android/withAndroidAppBuildGradle.js +0 -1
  17. package/build/plugin/src/android/withAndroidAppBuildGradle.js.map +1 -1
  18. package/build/plugin/src/android/withAndroidTarget.d.ts +1 -1
  19. package/build/plugin/src/android/withAndroidTarget.d.ts.map +1 -1
  20. package/build/plugin/src/android/withAndroidTarget.js +0 -1
  21. package/build/plugin/src/android/withAndroidTarget.js.map +1 -1
  22. package/build/plugin/src/android/withAndroidWidget.d.ts +1 -1
  23. package/build/plugin/src/android/withAndroidWidget.d.ts.map +1 -1
  24. package/build/plugin/src/android/withAndroidWidget.js +174 -249
  25. package/build/plugin/src/android/withAndroidWidget.js.map +1 -1
  26. package/build/plugin/src/config.d.ts +52 -10
  27. package/build/plugin/src/config.d.ts.map +1 -1
  28. package/build/plugin/src/config.js +49 -1
  29. package/build/plugin/src/config.js.map +1 -1
  30. package/build/plugin/src/domain/appGroups.d.ts +19 -0
  31. package/build/plugin/src/domain/appGroups.d.ts.map +1 -0
  32. package/build/plugin/src/domain/appGroups.js +44 -0
  33. package/build/plugin/src/domain/appGroups.js.map +1 -0
  34. package/build/plugin/src/domain/bundleIds.d.ts +9 -0
  35. package/build/plugin/src/domain/bundleIds.d.ts.map +1 -0
  36. package/build/plugin/src/domain/bundleIds.js +10 -0
  37. package/build/plugin/src/domain/bundleIds.js.map +1 -0
  38. package/build/plugin/src/domain/characteristics.d.ts +44 -0
  39. package/build/plugin/src/domain/characteristics.d.ts.map +1 -0
  40. package/build/plugin/src/domain/characteristics.js +781 -0
  41. package/build/plugin/src/domain/characteristics.js.map +1 -0
  42. package/build/plugin/src/domain/deployment.d.ts +14 -0
  43. package/build/plugin/src/domain/deployment.d.ts.map +1 -0
  44. package/build/plugin/src/domain/deployment.js +14 -0
  45. package/build/plugin/src/domain/deployment.js.map +1 -0
  46. package/build/plugin/src/domain/index.d.ts +14 -0
  47. package/build/plugin/src/domain/index.d.ts.map +1 -0
  48. package/build/plugin/src/domain/index.js +37 -0
  49. package/build/plugin/src/domain/index.js.map +1 -0
  50. package/build/plugin/src/domain/rnCompat.d.ts +16 -0
  51. package/build/plugin/src/domain/rnCompat.d.ts.map +1 -0
  52. package/build/plugin/src/domain/rnCompat.js +37 -0
  53. package/build/plugin/src/domain/rnCompat.js.map +1 -0
  54. package/build/plugin/src/domain/types.d.ts +9 -0
  55. package/build/plugin/src/domain/types.d.ts.map +1 -0
  56. package/build/plugin/src/domain/types.js +10 -0
  57. package/build/plugin/src/domain/types.js.map +1 -0
  58. package/build/plugin/src/index.d.ts +2 -2
  59. package/build/plugin/src/index.d.ts.map +1 -1
  60. package/build/plugin/src/index.js +5 -0
  61. package/build/plugin/src/index.js.map +1 -1
  62. package/build/plugin/src/ios/apply/fs/applyTargetPlan.d.ts +11 -0
  63. package/build/plugin/src/ios/apply/fs/applyTargetPlan.d.ts.map +1 -0
  64. package/build/plugin/src/ios/apply/fs/applyTargetPlan.js +77 -0
  65. package/build/plugin/src/ios/apply/fs/applyTargetPlan.js.map +1 -0
  66. package/build/plugin/src/ios/apply/fs/assets.d.ts +7 -0
  67. package/build/plugin/src/ios/apply/fs/assets.d.ts.map +1 -0
  68. package/build/plugin/src/ios/apply/fs/assets.js +50 -0
  69. package/build/plugin/src/ios/apply/fs/assets.js.map +1 -0
  70. package/build/plugin/src/ios/apply/fs/entitlements.d.ts +7 -0
  71. package/build/plugin/src/ios/apply/fs/entitlements.d.ts.map +1 -0
  72. package/build/plugin/src/ios/apply/fs/entitlements.js +40 -0
  73. package/build/plugin/src/ios/apply/fs/entitlements.js.map +1 -0
  74. package/build/plugin/src/ios/apply/fs/index.d.ts +14 -0
  75. package/build/plugin/src/ios/apply/fs/index.d.ts.map +1 -0
  76. package/build/plugin/src/ios/apply/fs/index.js +24 -0
  77. package/build/plugin/src/ios/apply/fs/index.js.map +1 -0
  78. package/build/plugin/src/ios/apply/fs/infoPlist.d.ts +6 -0
  79. package/build/plugin/src/ios/apply/fs/infoPlist.d.ts.map +1 -0
  80. package/build/plugin/src/ios/apply/fs/infoPlist.js +35 -0
  81. package/build/plugin/src/ios/apply/fs/infoPlist.js.map +1 -0
  82. package/build/plugin/src/ios/apply/fs/safari.d.ts +7 -0
  83. package/build/plugin/src/ios/apply/fs/safari.d.ts.map +1 -0
  84. package/build/plugin/src/ios/apply/fs/safari.js +45 -0
  85. package/build/plugin/src/ios/apply/fs/safari.js.map +1 -0
  86. package/build/plugin/src/ios/apply/fs/stickers.d.ts +8 -0
  87. package/build/plugin/src/ios/apply/fs/stickers.d.ts.map +1 -0
  88. package/build/plugin/src/ios/apply/fs/stickers.js +72 -0
  89. package/build/plugin/src/ios/apply/fs/stickers.js.map +1 -0
  90. package/build/plugin/src/ios/apply/fs/swift.d.ts +9 -0
  91. package/build/plugin/src/ios/apply/fs/swift.d.ts.map +1 -0
  92. package/build/plugin/src/ios/apply/fs/swift.js +63 -0
  93. package/build/plugin/src/ios/apply/fs/swift.js.map +1 -0
  94. package/build/plugin/src/ios/apply/pbx/applyTargetPlan.d.ts +18 -0
  95. package/build/plugin/src/ios/apply/pbx/applyTargetPlan.d.ts.map +1 -0
  96. package/build/plugin/src/ios/apply/pbx/applyTargetPlan.js +308 -0
  97. package/build/plugin/src/ios/apply/pbx/applyTargetPlan.js.map +1 -0
  98. package/build/plugin/src/ios/apply/pbx/buildPhases.d.ts +30 -0
  99. package/build/plugin/src/ios/apply/pbx/buildPhases.d.ts.map +1 -0
  100. package/build/plugin/src/ios/apply/pbx/buildPhases.js +101 -0
  101. package/build/plugin/src/ios/apply/pbx/buildPhases.js.map +1 -0
  102. package/build/plugin/src/ios/apply/pbx/buildSettings.d.ts +37 -0
  103. package/build/plugin/src/ios/apply/pbx/buildSettings.d.ts.map +1 -0
  104. package/build/plugin/src/ios/apply/pbx/buildSettings.js +80 -0
  105. package/build/plugin/src/ios/apply/pbx/buildSettings.js.map +1 -0
  106. package/build/plugin/src/ios/apply/pbx/bundleReactNative.d.ts +19 -0
  107. package/build/plugin/src/ios/apply/pbx/bundleReactNative.d.ts.map +1 -0
  108. package/build/plugin/src/ios/apply/pbx/bundleReactNative.js +136 -0
  109. package/build/plugin/src/ios/apply/pbx/bundleReactNative.js.map +1 -0
  110. package/build/plugin/src/ios/apply/pbx/copyFrameworksIntoAppClip.d.ts +25 -0
  111. package/build/plugin/src/ios/apply/pbx/copyFrameworksIntoAppClip.d.ts.map +1 -0
  112. package/build/plugin/src/ios/apply/pbx/copyFrameworksIntoAppClip.js +196 -0
  113. package/build/plugin/src/ios/apply/pbx/copyFrameworksIntoAppClip.js.map +1 -0
  114. package/build/plugin/src/ios/apply/pbx/embed.d.ts +63 -0
  115. package/build/plugin/src/ios/apply/pbx/embed.d.ts.map +1 -0
  116. package/build/plugin/src/ios/apply/pbx/embed.js +572 -0
  117. package/build/plugin/src/ios/apply/pbx/embed.js.map +1 -0
  118. package/build/plugin/src/ios/apply/pbx/fileRefs.d.ts +26 -0
  119. package/build/plugin/src/ios/apply/pbx/fileRefs.d.ts.map +1 -0
  120. package/build/plugin/src/ios/apply/pbx/fileRefs.js +122 -0
  121. package/build/plugin/src/ios/apply/pbx/fileRefs.js.map +1 -0
  122. package/build/plugin/src/ios/apply/pbx/groups.d.ts +25 -0
  123. package/build/plugin/src/ios/apply/pbx/groups.d.ts.map +1 -0
  124. package/build/plugin/src/ios/apply/pbx/groups.js +84 -0
  125. package/build/plugin/src/ios/apply/pbx/groups.js.map +1 -0
  126. package/build/plugin/src/ios/apply/pbx/index.d.ts +17 -0
  127. package/build/plugin/src/ios/apply/pbx/index.d.ts.map +1 -0
  128. package/build/plugin/src/ios/apply/pbx/index.js +50 -0
  129. package/build/plugin/src/ios/apply/pbx/index.js.map +1 -0
  130. package/build/plugin/src/ios/apply/pbx/targetLifecycle.d.ts +59 -0
  131. package/build/plugin/src/ios/apply/pbx/targetLifecycle.d.ts.map +1 -0
  132. package/build/plugin/src/ios/apply/pbx/targetLifecycle.js +185 -0
  133. package/build/plugin/src/ios/apply/pbx/targetLifecycle.js.map +1 -0
  134. package/build/plugin/src/ios/apply/pbx/types.d.ts +12 -0
  135. package/build/plugin/src/ios/apply/pbx/types.d.ts.map +1 -0
  136. package/build/plugin/src/ios/apply/pbx/types.js +6 -0
  137. package/build/plugin/src/ios/apply/pbx/types.js.map +1 -0
  138. package/build/plugin/src/ios/apply/podfile/applyPodfilePlan.d.ts +12 -0
  139. package/build/plugin/src/ios/apply/podfile/applyPodfilePlan.d.ts.map +1 -0
  140. package/build/plugin/src/ios/apply/podfile/applyPodfilePlan.js +76 -0
  141. package/build/plugin/src/ios/apply/podfile/applyPodfilePlan.js.map +1 -0
  142. package/build/plugin/src/ios/apply/podfile/index.d.ts +11 -0
  143. package/build/plugin/src/ios/apply/podfile/index.d.ts.map +1 -0
  144. package/build/plugin/src/ios/apply/podfile/index.js +32 -0
  145. package/build/plugin/src/ios/apply/podfile/index.js.map +1 -0
  146. package/build/plugin/src/ios/{utils → apply/podfile}/podfile.d.ts +21 -5
  147. package/build/plugin/src/ios/apply/podfile/podfile.d.ts.map +1 -0
  148. package/{plugin/build/ios/utils → build/plugin/src/ios/apply/podfile}/podfile.js +310 -251
  149. package/build/plugin/src/ios/apply/podfile/podfile.js.map +1 -0
  150. package/build/plugin/src/ios/apply/podfile/scan.d.ts +40 -0
  151. package/build/plugin/src/ios/apply/podfile/scan.d.ts.map +1 -0
  152. package/build/plugin/src/ios/apply/podfile/scan.js +129 -0
  153. package/build/plugin/src/ios/apply/podfile/scan.js.map +1 -0
  154. package/build/plugin/src/ios/cng/appShortcutsCodegen.d.ts +6 -0
  155. package/build/plugin/src/ios/cng/appShortcutsCodegen.d.ts.map +1 -0
  156. package/build/plugin/src/ios/cng/appShortcutsCodegen.js +79 -0
  157. package/build/plugin/src/ios/cng/appShortcutsCodegen.js.map +1 -0
  158. package/build/plugin/src/ios/cng/liveActivityCodegen.d.ts +6 -0
  159. package/build/plugin/src/ios/cng/liveActivityCodegen.d.ts.map +1 -0
  160. package/build/plugin/src/ios/cng/liveActivityCodegen.js +150 -0
  161. package/build/plugin/src/ios/cng/liveActivityCodegen.js.map +1 -0
  162. package/build/plugin/src/ios/cng/swiftTypes.d.ts +4 -0
  163. package/build/plugin/src/ios/cng/swiftTypes.d.ts.map +1 -0
  164. package/build/plugin/src/ios/cng/swiftTypes.js +34 -0
  165. package/build/plugin/src/ios/cng/swiftTypes.js.map +1 -0
  166. package/build/plugin/src/ios/cng/withExpoTargetsGenerated.d.ts +16 -0
  167. package/build/plugin/src/ios/cng/withExpoTargetsGenerated.d.ts.map +1 -0
  168. package/build/plugin/src/ios/cng/withExpoTargetsGenerated.js +311 -0
  169. package/build/plugin/src/ios/cng/withExpoTargetsGenerated.js.map +1 -0
  170. package/build/plugin/src/ios/config-plugins/withEASCredentials.d.ts +5 -5
  171. package/build/plugin/src/ios/config-plugins/withEASCredentials.d.ts.map +1 -1
  172. package/build/plugin/src/ios/config-plugins/withEASCredentials.js +9 -9
  173. package/build/plugin/src/ios/config-plugins/withEASCredentials.js.map +1 -1
  174. package/build/plugin/src/ios/config-plugins/withEntitlements.d.ts +5 -2
  175. package/build/plugin/src/ios/config-plugins/withEntitlements.d.ts.map +1 -1
  176. package/build/plugin/src/ios/config-plugins/withEntitlements.js +59 -44
  177. package/build/plugin/src/ios/config-plugins/withEntitlements.js.map +1 -1
  178. package/build/plugin/src/ios/config-plugins/withIOSTarget.d.ts +4 -4
  179. package/build/plugin/src/ios/config-plugins/withIOSTarget.d.ts.map +1 -1
  180. package/build/plugin/src/ios/config-plugins/withIOSTarget.js +210 -165
  181. package/build/plugin/src/ios/config-plugins/withIOSTarget.js.map +1 -1
  182. package/build/plugin/src/ios/config-plugins/withPodfile.d.ts +7 -3
  183. package/build/plugin/src/ios/config-plugins/withPodfile.d.ts.map +1 -1
  184. package/build/plugin/src/ios/config-plugins/withPodfile.js +39 -167
  185. package/build/plugin/src/ios/config-plugins/withPodfile.js.map +1 -1
  186. package/build/plugin/src/ios/config-plugins/withXcodeChanges.d.ts +9 -18
  187. package/build/plugin/src/ios/config-plugins/withXcodeChanges.d.ts.map +1 -1
  188. package/build/plugin/src/ios/config-plugins/withXcodeChanges.js +62 -730
  189. package/build/plugin/src/ios/config-plugins/withXcodeChanges.js.map +1 -1
  190. package/build/plugin/src/ios/observe/index.d.ts +7 -0
  191. package/build/plugin/src/ios/observe/index.d.ts.map +1 -0
  192. package/build/plugin/src/ios/observe/index.js +11 -0
  193. package/build/plugin/src/ios/observe/index.js.map +1 -0
  194. package/build/plugin/src/ios/observe/podsRb.d.ts +9 -0
  195. package/build/plugin/src/ios/observe/podsRb.d.ts.map +1 -0
  196. package/build/plugin/src/ios/observe/podsRb.js +43 -0
  197. package/build/plugin/src/ios/observe/podsRb.js.map +1 -0
  198. package/build/plugin/src/ios/observe/workspace.d.ts +48 -0
  199. package/build/plugin/src/ios/observe/workspace.d.ts.map +1 -0
  200. package/build/plugin/src/ios/observe/workspace.js +107 -0
  201. package/build/plugin/src/ios/observe/workspace.js.map +1 -0
  202. package/build/plugin/src/ios/plan/assets.d.ts +13 -0
  203. package/build/plugin/src/ios/plan/assets.d.ts.map +1 -0
  204. package/build/plugin/src/ios/plan/assets.js +112 -0
  205. package/build/plugin/src/ios/plan/assets.js.map +1 -0
  206. package/build/plugin/src/ios/plan/buildInfoPlist.d.ts +38 -0
  207. package/build/plugin/src/ios/plan/buildInfoPlist.d.ts.map +1 -0
  208. package/build/plugin/src/ios/plan/buildInfoPlist.js +331 -0
  209. package/build/plugin/src/ios/plan/buildInfoPlist.js.map +1 -0
  210. package/build/plugin/src/ios/plan/buildSettings.d.ts +9 -0
  211. package/build/plugin/src/ios/plan/buildSettings.d.ts.map +1 -0
  212. package/build/plugin/src/ios/plan/buildSettings.js +218 -0
  213. package/build/plugin/src/ios/plan/buildSettings.js.map +1 -0
  214. package/build/plugin/src/ios/plan/bundleReactNative.d.ts +7 -0
  215. package/build/plugin/src/ios/plan/bundleReactNative.d.ts.map +1 -0
  216. package/build/plugin/src/ios/plan/bundleReactNative.js +21 -0
  217. package/build/plugin/src/ios/plan/bundleReactNative.js.map +1 -0
  218. package/build/plugin/src/ios/plan/bundleResources.d.ts +11 -0
  219. package/build/plugin/src/ios/plan/bundleResources.d.ts.map +1 -0
  220. package/build/plugin/src/ios/plan/bundleResources.js +23 -0
  221. package/build/plugin/src/ios/plan/bundleResources.js.map +1 -0
  222. package/build/plugin/src/ios/plan/compose.d.ts +7 -0
  223. package/build/plugin/src/ios/plan/compose.d.ts.map +1 -0
  224. package/build/plugin/src/ios/plan/compose.js +53 -0
  225. package/build/plugin/src/ios/plan/compose.js.map +1 -0
  226. package/build/plugin/src/ios/plan/embed.d.ts +8 -0
  227. package/build/plugin/src/ios/plan/embed.d.ts.map +1 -0
  228. package/build/plugin/src/ios/plan/embed.js +13 -0
  229. package/build/plugin/src/ios/plan/embed.js.map +1 -0
  230. package/build/plugin/src/ios/plan/entitlements.d.ts +19 -0
  231. package/build/plugin/src/ios/plan/entitlements.d.ts.map +1 -0
  232. package/build/plugin/src/ios/plan/entitlements.js +72 -0
  233. package/build/plugin/src/ios/plan/entitlements.js.map +1 -0
  234. package/build/plugin/src/ios/plan/identity.d.ts +9 -0
  235. package/build/plugin/src/ios/plan/identity.d.ts.map +1 -0
  236. package/build/plugin/src/ios/plan/identity.js +61 -0
  237. package/build/plugin/src/ios/plan/identity.js.map +1 -0
  238. package/build/plugin/src/ios/plan/index.d.ts +21 -0
  239. package/build/plugin/src/ios/plan/index.d.ts.map +1 -0
  240. package/build/plugin/src/ios/plan/index.js +36 -0
  241. package/build/plugin/src/ios/plan/index.js.map +1 -0
  242. package/build/plugin/src/ios/plan/infoPlist.d.ts +8 -0
  243. package/build/plugin/src/ios/plan/infoPlist.d.ts.map +1 -0
  244. package/build/plugin/src/ios/plan/infoPlist.js +96 -0
  245. package/build/plugin/src/ios/plan/infoPlist.js.map +1 -0
  246. package/build/plugin/src/ios/plan/podfile.d.ts +18 -0
  247. package/build/plugin/src/ios/plan/podfile.d.ts.map +1 -0
  248. package/build/plugin/src/ios/plan/podfile.js +22 -0
  249. package/build/plugin/src/ios/plan/podfile.js.map +1 -0
  250. package/build/plugin/src/ios/plan/safari.d.ts +14 -0
  251. package/build/plugin/src/ios/plan/safari.d.ts.map +1 -0
  252. package/build/plugin/src/ios/plan/safari.js +32 -0
  253. package/build/plugin/src/ios/plan/safari.js.map +1 -0
  254. package/build/plugin/src/ios/plan/swiftSources.d.ts +13 -0
  255. package/build/plugin/src/ios/plan/swiftSources.d.ts.map +1 -0
  256. package/build/plugin/src/ios/plan/swiftSources.js +167 -0
  257. package/build/plugin/src/ios/plan/swiftSources.js.map +1 -0
  258. package/build/plugin/src/ios/plan/types.d.ts +191 -0
  259. package/build/plugin/src/ios/plan/types.d.ts.map +1 -0
  260. package/build/plugin/src/ios/plan/types.js +3 -0
  261. package/build/plugin/src/ios/plan/types.js.map +1 -0
  262. package/build/plugin/src/ios/utils/asset.d.ts +4 -0
  263. package/build/plugin/src/ios/utils/asset.d.ts.map +1 -1
  264. package/build/plugin/src/ios/utils/asset.js +150 -161
  265. package/build/plugin/src/ios/utils/asset.js.map +1 -1
  266. package/build/plugin/src/ios/utils/file.d.ts.map +1 -1
  267. package/build/plugin/src/ios/utils/file.js +16 -17
  268. package/build/plugin/src/ios/utils/file.js.map +1 -1
  269. package/build/plugin/src/ios/utils/index.d.ts +9 -6
  270. package/build/plugin/src/ios/utils/index.d.ts.map +1 -1
  271. package/build/plugin/src/ios/utils/index.js +10 -7
  272. package/build/plugin/src/ios/utils/index.js.map +1 -1
  273. package/build/plugin/src/ios/utils/paths.d.ts +23 -35
  274. package/build/plugin/src/ios/utils/paths.d.ts.map +1 -1
  275. package/build/plugin/src/ios/utils/paths.js +38 -37
  276. package/build/plugin/src/ios/utils/paths.js.map +1 -1
  277. package/build/plugin/src/ios/utils/plist.d.ts +1 -0
  278. package/build/plugin/src/ios/utils/plist.d.ts.map +1 -1
  279. package/build/plugin/src/ios/utils/plist.js +6 -29
  280. package/build/plugin/src/ios/utils/plist.js.map +1 -1
  281. package/build/plugin/src/ios/utils/reactNativeSwift.d.ts +1 -0
  282. package/build/plugin/src/ios/utils/reactNativeSwift.d.ts.map +1 -1
  283. package/build/plugin/src/ios/utils/reactNativeSwift.js +101 -166
  284. package/build/plugin/src/ios/utils/reactNativeSwift.js.map +1 -1
  285. package/build/plugin/src/ios/utils/safari.d.ts.map +1 -1
  286. package/build/plugin/src/ios/utils/safari.js +155 -97
  287. package/build/plugin/src/ios/utils/safari.js.map +1 -1
  288. package/build/plugin/src/logger.d.ts +4 -4
  289. package/build/plugin/src/logger.d.ts.map +1 -1
  290. package/build/plugin/src/logger.js +8 -15
  291. package/build/plugin/src/logger.js.map +1 -1
  292. package/build/plugin/src/withTargetsDir.d.ts +1 -1
  293. package/build/plugin/src/withTargetsDir.d.ts.map +1 -1
  294. package/build/plugin/src/withTargetsDir.js +216 -157
  295. package/build/plugin/src/withTargetsDir.js.map +1 -1
  296. package/build/src/Target.d.ts +15 -11
  297. package/build/src/Target.d.ts.map +1 -1
  298. package/build/src/Target.js +127 -132
  299. package/build/src/Target.js.map +1 -1
  300. package/build/src/index.d.ts +15 -9
  301. package/build/src/index.d.ts.map +1 -1
  302. package/build/src/index.js +46 -34
  303. package/build/src/index.js.map +1 -1
  304. package/build/src/modules/contentBlocker/index.d.ts +9 -0
  305. package/build/src/modules/contentBlocker/index.d.ts.map +1 -0
  306. package/build/src/modules/contentBlocker/index.js +29 -0
  307. package/build/src/modules/contentBlocker/index.js.map +1 -0
  308. package/build/src/modules/extension/index.d.ts +22 -0
  309. package/build/src/modules/extension/index.d.ts.map +1 -1
  310. package/build/src/modules/extension/index.js +54 -21
  311. package/build/src/modules/extension/index.js.map +1 -1
  312. package/build/src/modules/fileProvider/index.d.ts +12 -0
  313. package/build/src/modules/fileProvider/index.d.ts.map +1 -0
  314. package/build/src/modules/fileProvider/index.js +38 -0
  315. package/build/src/modules/fileProvider/index.js.map +1 -0
  316. package/build/src/modules/liveActivity/index.d.ts +21 -0
  317. package/build/src/modules/liveActivity/index.d.ts.map +1 -0
  318. package/build/src/modules/liveActivity/index.js +60 -0
  319. package/build/src/modules/liveActivity/index.js.map +1 -0
  320. package/build/src/modules/messages/index.d.ts +8 -0
  321. package/build/src/modules/messages/index.d.ts.map +1 -1
  322. package/build/src/modules/messages/index.js +38 -13
  323. package/build/src/modules/messages/index.js.map +1 -1
  324. package/build/src/modules/safari/bootstrapWeb.d.ts +7 -0
  325. package/build/src/modules/safari/bootstrapWeb.d.ts.map +1 -0
  326. package/build/src/modules/safari/bootstrapWeb.js +12 -0
  327. package/build/src/modules/safari/bootstrapWeb.js.map +1 -0
  328. package/build/src/modules/safari/bootstrapWeb.web.d.ts +9 -0
  329. package/build/src/modules/safari/bootstrapWeb.web.d.ts.map +1 -0
  330. package/build/src/modules/safari/bootstrapWeb.web.js +24 -0
  331. package/build/src/modules/safari/bootstrapWeb.web.js.map +1 -0
  332. package/build/src/modules/safari/index.d.ts +5 -5
  333. package/build/src/modules/safari/index.d.ts.map +1 -1
  334. package/build/src/modules/safari/index.js +19 -66
  335. package/build/src/modules/safari/index.js.map +1 -1
  336. package/build/src/modules/storage/index.d.ts.map +1 -1
  337. package/build/src/modules/storage/index.js +8 -12
  338. package/build/src/modules/storage/index.js.map +1 -1
  339. package/build/src/modules/targetsConfig.d.ts +6 -0
  340. package/build/src/modules/targetsConfig.d.ts.map +1 -0
  341. package/build/src/modules/targetsConfig.js +56 -0
  342. package/build/src/modules/targetsConfig.js.map +1 -0
  343. package/expo-module.config.json +4 -1
  344. package/ios/ExpoTargetsContentBlockerModule.swift +20 -0
  345. package/ios/ExpoTargetsExtension.podspec +1 -3
  346. package/ios/ExpoTargetsFileProviderModule.swift +45 -0
  347. package/ios/ExpoTargetsLiveActivityBridge.swift +51 -0
  348. package/ios/ExpoTargetsLiveActivityModule.swift +101 -0
  349. package/ios/ExpoTargetsMessagesModule.swift +31 -0
  350. package/ios/ExpoTargetsStorage.podspec +10 -4
  351. package/metro/build/index.d.ts +1 -1
  352. package/metro/build/index.d.ts.map +1 -1
  353. package/metro/build/index.js +2 -1
  354. package/metro/build/index.js.map +1 -1
  355. package/metro/build/withTargetsMetro.d.ts +14 -0
  356. package/metro/build/withTargetsMetro.d.ts.map +1 -1
  357. package/metro/build/withTargetsMetro.js +75 -23
  358. package/metro/build/withTargetsMetro.js.map +1 -1
  359. package/package.json +10 -8
  360. package/plugin/build/android/widgetSourceSets.d.ts +10 -0
  361. package/plugin/build/android/widgetSourceSets.d.ts.map +1 -0
  362. package/plugin/build/android/widgetSourceSets.js +167 -0
  363. package/plugin/build/android/widgetSourceSets.js.map +1 -0
  364. package/plugin/build/android/withAndroidAppBuildGradle.d.ts +1 -1
  365. package/plugin/build/android/withAndroidAppBuildGradle.d.ts.map +1 -1
  366. package/plugin/build/android/withAndroidAppBuildGradle.js +0 -1
  367. package/plugin/build/android/withAndroidAppBuildGradle.js.map +1 -1
  368. package/plugin/build/android/withAndroidTarget.d.ts +1 -1
  369. package/plugin/build/android/withAndroidTarget.d.ts.map +1 -1
  370. package/plugin/build/android/withAndroidTarget.js +0 -1
  371. package/plugin/build/android/withAndroidTarget.js.map +1 -1
  372. package/plugin/build/android/withAndroidWidget.d.ts +1 -1
  373. package/plugin/build/android/withAndroidWidget.d.ts.map +1 -1
  374. package/plugin/build/android/withAndroidWidget.js +174 -249
  375. package/plugin/build/android/withAndroidWidget.js.map +1 -1
  376. package/plugin/build/config.d.ts +52 -10
  377. package/plugin/build/config.d.ts.map +1 -1
  378. package/plugin/build/config.js +49 -1
  379. package/plugin/build/config.js.map +1 -1
  380. package/plugin/build/domain/appGroups.d.ts +19 -0
  381. package/plugin/build/domain/appGroups.d.ts.map +1 -0
  382. package/plugin/build/domain/appGroups.js +44 -0
  383. package/plugin/build/domain/appGroups.js.map +1 -0
  384. package/plugin/build/domain/bundleIds.d.ts +9 -0
  385. package/plugin/build/domain/bundleIds.d.ts.map +1 -0
  386. package/plugin/build/domain/bundleIds.js +10 -0
  387. package/plugin/build/domain/bundleIds.js.map +1 -0
  388. package/plugin/build/domain/characteristics.d.ts +44 -0
  389. package/plugin/build/domain/characteristics.d.ts.map +1 -0
  390. package/plugin/build/domain/characteristics.js +781 -0
  391. package/plugin/build/domain/characteristics.js.map +1 -0
  392. package/plugin/build/domain/deployment.d.ts +14 -0
  393. package/plugin/build/domain/deployment.d.ts.map +1 -0
  394. package/plugin/build/domain/deployment.js +14 -0
  395. package/plugin/build/domain/deployment.js.map +1 -0
  396. package/plugin/build/domain/index.d.ts +14 -0
  397. package/plugin/build/domain/index.d.ts.map +1 -0
  398. package/plugin/build/domain/index.js +37 -0
  399. package/plugin/build/domain/index.js.map +1 -0
  400. package/plugin/build/domain/rnCompat.d.ts +16 -0
  401. package/plugin/build/domain/rnCompat.d.ts.map +1 -0
  402. package/plugin/build/domain/rnCompat.js +37 -0
  403. package/plugin/build/domain/rnCompat.js.map +1 -0
  404. package/plugin/build/domain/types.d.ts +9 -0
  405. package/plugin/build/domain/types.d.ts.map +1 -0
  406. package/plugin/build/domain/types.js +10 -0
  407. package/plugin/build/domain/types.js.map +1 -0
  408. package/plugin/build/index.d.ts +2 -2
  409. package/plugin/build/index.d.ts.map +1 -1
  410. package/plugin/build/index.js +5 -0
  411. package/plugin/build/index.js.map +1 -1
  412. package/plugin/build/ios/apply/fs/applyTargetPlan.d.ts +11 -0
  413. package/plugin/build/ios/apply/fs/applyTargetPlan.d.ts.map +1 -0
  414. package/plugin/build/ios/apply/fs/applyTargetPlan.js +77 -0
  415. package/plugin/build/ios/apply/fs/applyTargetPlan.js.map +1 -0
  416. package/plugin/build/ios/apply/fs/assets.d.ts +7 -0
  417. package/plugin/build/ios/apply/fs/assets.d.ts.map +1 -0
  418. package/plugin/build/ios/apply/fs/assets.js +50 -0
  419. package/plugin/build/ios/apply/fs/assets.js.map +1 -0
  420. package/plugin/build/ios/apply/fs/entitlements.d.ts +7 -0
  421. package/plugin/build/ios/apply/fs/entitlements.d.ts.map +1 -0
  422. package/plugin/build/ios/apply/fs/entitlements.js +40 -0
  423. package/plugin/build/ios/apply/fs/entitlements.js.map +1 -0
  424. package/plugin/build/ios/apply/fs/index.d.ts +14 -0
  425. package/plugin/build/ios/apply/fs/index.d.ts.map +1 -0
  426. package/plugin/build/ios/apply/fs/index.js +24 -0
  427. package/plugin/build/ios/apply/fs/index.js.map +1 -0
  428. package/plugin/build/ios/apply/fs/infoPlist.d.ts +6 -0
  429. package/plugin/build/ios/apply/fs/infoPlist.d.ts.map +1 -0
  430. package/plugin/build/ios/apply/fs/infoPlist.js +35 -0
  431. package/plugin/build/ios/apply/fs/infoPlist.js.map +1 -0
  432. package/plugin/build/ios/apply/fs/safari.d.ts +7 -0
  433. package/plugin/build/ios/apply/fs/safari.d.ts.map +1 -0
  434. package/plugin/build/ios/apply/fs/safari.js +45 -0
  435. package/plugin/build/ios/apply/fs/safari.js.map +1 -0
  436. package/plugin/build/ios/apply/fs/stickers.d.ts +8 -0
  437. package/plugin/build/ios/apply/fs/stickers.d.ts.map +1 -0
  438. package/plugin/build/ios/apply/fs/stickers.js +72 -0
  439. package/plugin/build/ios/apply/fs/stickers.js.map +1 -0
  440. package/plugin/build/ios/apply/fs/swift.d.ts +9 -0
  441. package/plugin/build/ios/apply/fs/swift.d.ts.map +1 -0
  442. package/plugin/build/ios/apply/fs/swift.js +63 -0
  443. package/plugin/build/ios/apply/fs/swift.js.map +1 -0
  444. package/plugin/build/ios/apply/pbx/applyTargetPlan.d.ts +18 -0
  445. package/plugin/build/ios/apply/pbx/applyTargetPlan.d.ts.map +1 -0
  446. package/plugin/build/ios/apply/pbx/applyTargetPlan.js +308 -0
  447. package/plugin/build/ios/apply/pbx/applyTargetPlan.js.map +1 -0
  448. package/plugin/build/ios/apply/pbx/buildPhases.d.ts +30 -0
  449. package/plugin/build/ios/apply/pbx/buildPhases.d.ts.map +1 -0
  450. package/plugin/build/ios/apply/pbx/buildPhases.js +101 -0
  451. package/plugin/build/ios/apply/pbx/buildPhases.js.map +1 -0
  452. package/plugin/build/ios/apply/pbx/buildSettings.d.ts +37 -0
  453. package/plugin/build/ios/apply/pbx/buildSettings.d.ts.map +1 -0
  454. package/plugin/build/ios/apply/pbx/buildSettings.js +80 -0
  455. package/plugin/build/ios/apply/pbx/buildSettings.js.map +1 -0
  456. package/plugin/build/ios/apply/pbx/bundleReactNative.d.ts +19 -0
  457. package/plugin/build/ios/apply/pbx/bundleReactNative.d.ts.map +1 -0
  458. package/plugin/build/ios/apply/pbx/bundleReactNative.js +136 -0
  459. package/plugin/build/ios/apply/pbx/bundleReactNative.js.map +1 -0
  460. package/plugin/build/ios/apply/pbx/copyFrameworksIntoAppClip.d.ts +25 -0
  461. package/plugin/build/ios/apply/pbx/copyFrameworksIntoAppClip.d.ts.map +1 -0
  462. package/plugin/build/ios/apply/pbx/copyFrameworksIntoAppClip.js +196 -0
  463. package/plugin/build/ios/apply/pbx/copyFrameworksIntoAppClip.js.map +1 -0
  464. package/plugin/build/ios/apply/pbx/embed.d.ts +63 -0
  465. package/plugin/build/ios/apply/pbx/embed.d.ts.map +1 -0
  466. package/plugin/build/ios/apply/pbx/embed.js +572 -0
  467. package/plugin/build/ios/apply/pbx/embed.js.map +1 -0
  468. package/plugin/build/ios/apply/pbx/fileRefs.d.ts +26 -0
  469. package/plugin/build/ios/apply/pbx/fileRefs.d.ts.map +1 -0
  470. package/plugin/build/ios/apply/pbx/fileRefs.js +122 -0
  471. package/plugin/build/ios/apply/pbx/fileRefs.js.map +1 -0
  472. package/plugin/build/ios/apply/pbx/groups.d.ts +25 -0
  473. package/plugin/build/ios/apply/pbx/groups.d.ts.map +1 -0
  474. package/plugin/build/ios/apply/pbx/groups.js +84 -0
  475. package/plugin/build/ios/apply/pbx/groups.js.map +1 -0
  476. package/plugin/build/ios/apply/pbx/index.d.ts +17 -0
  477. package/plugin/build/ios/apply/pbx/index.d.ts.map +1 -0
  478. package/plugin/build/ios/apply/pbx/index.js +50 -0
  479. package/plugin/build/ios/apply/pbx/index.js.map +1 -0
  480. package/plugin/build/ios/apply/pbx/targetLifecycle.d.ts +59 -0
  481. package/plugin/build/ios/apply/pbx/targetLifecycle.d.ts.map +1 -0
  482. package/plugin/build/ios/apply/pbx/targetLifecycle.js +185 -0
  483. package/plugin/build/ios/apply/pbx/targetLifecycle.js.map +1 -0
  484. package/plugin/build/ios/apply/pbx/types.d.ts +12 -0
  485. package/plugin/build/ios/apply/pbx/types.d.ts.map +1 -0
  486. package/plugin/build/ios/apply/pbx/types.js +6 -0
  487. package/plugin/build/ios/apply/pbx/types.js.map +1 -0
  488. package/plugin/build/ios/apply/podfile/applyPodfilePlan.d.ts +12 -0
  489. package/plugin/build/ios/apply/podfile/applyPodfilePlan.d.ts.map +1 -0
  490. package/plugin/build/ios/apply/podfile/applyPodfilePlan.js +76 -0
  491. package/plugin/build/ios/apply/podfile/applyPodfilePlan.js.map +1 -0
  492. package/plugin/build/ios/apply/podfile/index.d.ts +11 -0
  493. package/plugin/build/ios/apply/podfile/index.d.ts.map +1 -0
  494. package/plugin/build/ios/apply/podfile/index.js +32 -0
  495. package/plugin/build/ios/apply/podfile/index.js.map +1 -0
  496. package/plugin/build/ios/{utils → apply/podfile}/podfile.d.ts +21 -5
  497. package/plugin/build/ios/apply/podfile/podfile.d.ts.map +1 -0
  498. package/{build/plugin/src/ios/utils → plugin/build/ios/apply/podfile}/podfile.js +310 -251
  499. package/plugin/build/ios/apply/podfile/podfile.js.map +1 -0
  500. package/plugin/build/ios/apply/podfile/scan.d.ts +40 -0
  501. package/plugin/build/ios/apply/podfile/scan.d.ts.map +1 -0
  502. package/plugin/build/ios/apply/podfile/scan.js +129 -0
  503. package/plugin/build/ios/apply/podfile/scan.js.map +1 -0
  504. package/plugin/build/ios/cng/appShortcutsCodegen.d.ts +6 -0
  505. package/plugin/build/ios/cng/appShortcutsCodegen.d.ts.map +1 -0
  506. package/plugin/build/ios/cng/appShortcutsCodegen.js +79 -0
  507. package/plugin/build/ios/cng/appShortcutsCodegen.js.map +1 -0
  508. package/plugin/build/ios/cng/liveActivityCodegen.d.ts +6 -0
  509. package/plugin/build/ios/cng/liveActivityCodegen.d.ts.map +1 -0
  510. package/plugin/build/ios/cng/liveActivityCodegen.js +150 -0
  511. package/plugin/build/ios/cng/liveActivityCodegen.js.map +1 -0
  512. package/plugin/build/ios/cng/swiftTypes.d.ts +4 -0
  513. package/plugin/build/ios/cng/swiftTypes.d.ts.map +1 -0
  514. package/plugin/build/ios/cng/swiftTypes.js +34 -0
  515. package/plugin/build/ios/cng/swiftTypes.js.map +1 -0
  516. package/plugin/build/ios/cng/withExpoTargetsGenerated.d.ts +16 -0
  517. package/plugin/build/ios/cng/withExpoTargetsGenerated.d.ts.map +1 -0
  518. package/plugin/build/ios/cng/withExpoTargetsGenerated.js +311 -0
  519. package/plugin/build/ios/cng/withExpoTargetsGenerated.js.map +1 -0
  520. package/plugin/build/ios/config-plugins/withEASCredentials.d.ts +5 -5
  521. package/plugin/build/ios/config-plugins/withEASCredentials.d.ts.map +1 -1
  522. package/plugin/build/ios/config-plugins/withEASCredentials.js +9 -9
  523. package/plugin/build/ios/config-plugins/withEASCredentials.js.map +1 -1
  524. package/plugin/build/ios/config-plugins/withEntitlements.d.ts +5 -2
  525. package/plugin/build/ios/config-plugins/withEntitlements.d.ts.map +1 -1
  526. package/plugin/build/ios/config-plugins/withEntitlements.js +59 -44
  527. package/plugin/build/ios/config-plugins/withEntitlements.js.map +1 -1
  528. package/plugin/build/ios/config-plugins/withIOSTarget.d.ts +4 -4
  529. package/plugin/build/ios/config-plugins/withIOSTarget.d.ts.map +1 -1
  530. package/plugin/build/ios/config-plugins/withIOSTarget.js +210 -165
  531. package/plugin/build/ios/config-plugins/withIOSTarget.js.map +1 -1
  532. package/plugin/build/ios/config-plugins/withPodfile.d.ts +7 -3
  533. package/plugin/build/ios/config-plugins/withPodfile.d.ts.map +1 -1
  534. package/plugin/build/ios/config-plugins/withPodfile.js +39 -167
  535. package/plugin/build/ios/config-plugins/withPodfile.js.map +1 -1
  536. package/plugin/build/ios/config-plugins/withXcodeChanges.d.ts +9 -18
  537. package/plugin/build/ios/config-plugins/withXcodeChanges.d.ts.map +1 -1
  538. package/plugin/build/ios/config-plugins/withXcodeChanges.js +62 -730
  539. package/plugin/build/ios/config-plugins/withXcodeChanges.js.map +1 -1
  540. package/plugin/build/ios/observe/index.d.ts +7 -0
  541. package/plugin/build/ios/observe/index.d.ts.map +1 -0
  542. package/plugin/build/ios/observe/index.js +11 -0
  543. package/plugin/build/ios/observe/index.js.map +1 -0
  544. package/plugin/build/ios/observe/podsRb.d.ts +9 -0
  545. package/plugin/build/ios/observe/podsRb.d.ts.map +1 -0
  546. package/plugin/build/ios/observe/podsRb.js +43 -0
  547. package/plugin/build/ios/observe/podsRb.js.map +1 -0
  548. package/plugin/build/ios/observe/workspace.d.ts +48 -0
  549. package/plugin/build/ios/observe/workspace.d.ts.map +1 -0
  550. package/plugin/build/ios/observe/workspace.js +107 -0
  551. package/plugin/build/ios/observe/workspace.js.map +1 -0
  552. package/plugin/build/ios/plan/assets.d.ts +13 -0
  553. package/plugin/build/ios/plan/assets.d.ts.map +1 -0
  554. package/plugin/build/ios/plan/assets.js +112 -0
  555. package/plugin/build/ios/plan/assets.js.map +1 -0
  556. package/plugin/build/ios/plan/buildInfoPlist.d.ts +38 -0
  557. package/plugin/build/ios/plan/buildInfoPlist.d.ts.map +1 -0
  558. package/plugin/build/ios/plan/buildInfoPlist.js +331 -0
  559. package/plugin/build/ios/plan/buildInfoPlist.js.map +1 -0
  560. package/plugin/build/ios/plan/buildSettings.d.ts +9 -0
  561. package/plugin/build/ios/plan/buildSettings.d.ts.map +1 -0
  562. package/plugin/build/ios/plan/buildSettings.js +218 -0
  563. package/plugin/build/ios/plan/buildSettings.js.map +1 -0
  564. package/plugin/build/ios/plan/bundleReactNative.d.ts +7 -0
  565. package/plugin/build/ios/plan/bundleReactNative.d.ts.map +1 -0
  566. package/plugin/build/ios/plan/bundleReactNative.js +21 -0
  567. package/plugin/build/ios/plan/bundleReactNative.js.map +1 -0
  568. package/plugin/build/ios/plan/bundleResources.d.ts +11 -0
  569. package/plugin/build/ios/plan/bundleResources.d.ts.map +1 -0
  570. package/plugin/build/ios/plan/bundleResources.js +23 -0
  571. package/plugin/build/ios/plan/bundleResources.js.map +1 -0
  572. package/plugin/build/ios/plan/compose.d.ts +7 -0
  573. package/plugin/build/ios/plan/compose.d.ts.map +1 -0
  574. package/plugin/build/ios/plan/compose.js +53 -0
  575. package/plugin/build/ios/plan/compose.js.map +1 -0
  576. package/plugin/build/ios/plan/embed.d.ts +8 -0
  577. package/plugin/build/ios/plan/embed.d.ts.map +1 -0
  578. package/plugin/build/ios/plan/embed.js +13 -0
  579. package/plugin/build/ios/plan/embed.js.map +1 -0
  580. package/plugin/build/ios/plan/entitlements.d.ts +19 -0
  581. package/plugin/build/ios/plan/entitlements.d.ts.map +1 -0
  582. package/plugin/build/ios/plan/entitlements.js +72 -0
  583. package/plugin/build/ios/plan/entitlements.js.map +1 -0
  584. package/plugin/build/ios/plan/identity.d.ts +9 -0
  585. package/plugin/build/ios/plan/identity.d.ts.map +1 -0
  586. package/plugin/build/ios/plan/identity.js +61 -0
  587. package/plugin/build/ios/plan/identity.js.map +1 -0
  588. package/plugin/build/ios/plan/index.d.ts +21 -0
  589. package/plugin/build/ios/plan/index.d.ts.map +1 -0
  590. package/plugin/build/ios/plan/index.js +36 -0
  591. package/plugin/build/ios/plan/index.js.map +1 -0
  592. package/plugin/build/ios/plan/infoPlist.d.ts +8 -0
  593. package/plugin/build/ios/plan/infoPlist.d.ts.map +1 -0
  594. package/plugin/build/ios/plan/infoPlist.js +96 -0
  595. package/plugin/build/ios/plan/infoPlist.js.map +1 -0
  596. package/plugin/build/ios/plan/podfile.d.ts +18 -0
  597. package/plugin/build/ios/plan/podfile.d.ts.map +1 -0
  598. package/plugin/build/ios/plan/podfile.js +22 -0
  599. package/plugin/build/ios/plan/podfile.js.map +1 -0
  600. package/plugin/build/ios/plan/safari.d.ts +14 -0
  601. package/plugin/build/ios/plan/safari.d.ts.map +1 -0
  602. package/plugin/build/ios/plan/safari.js +32 -0
  603. package/plugin/build/ios/plan/safari.js.map +1 -0
  604. package/plugin/build/ios/plan/swiftSources.d.ts +13 -0
  605. package/plugin/build/ios/plan/swiftSources.d.ts.map +1 -0
  606. package/plugin/build/ios/plan/swiftSources.js +167 -0
  607. package/plugin/build/ios/plan/swiftSources.js.map +1 -0
  608. package/plugin/build/ios/plan/types.d.ts +191 -0
  609. package/plugin/build/ios/plan/types.d.ts.map +1 -0
  610. package/plugin/build/ios/plan/types.js +3 -0
  611. package/plugin/build/ios/plan/types.js.map +1 -0
  612. package/plugin/build/ios/templates/ReactNativeClipApp.swift +48 -0
  613. package/plugin/build/ios/templates/ReactNativeViewController.swift +9 -7
  614. package/plugin/build/ios/templates/clip-extension-data.swift +4 -6
  615. package/plugin/build/ios/utils/asset.d.ts +4 -0
  616. package/plugin/build/ios/utils/asset.d.ts.map +1 -1
  617. package/plugin/build/ios/utils/asset.js +150 -161
  618. package/plugin/build/ios/utils/asset.js.map +1 -1
  619. package/plugin/build/ios/utils/file.d.ts.map +1 -1
  620. package/plugin/build/ios/utils/file.js +16 -17
  621. package/plugin/build/ios/utils/file.js.map +1 -1
  622. package/plugin/build/ios/utils/index.d.ts +9 -6
  623. package/plugin/build/ios/utils/index.d.ts.map +1 -1
  624. package/plugin/build/ios/utils/index.js +10 -7
  625. package/plugin/build/ios/utils/index.js.map +1 -1
  626. package/plugin/build/ios/utils/paths.d.ts +23 -35
  627. package/plugin/build/ios/utils/paths.d.ts.map +1 -1
  628. package/plugin/build/ios/utils/paths.js +38 -37
  629. package/plugin/build/ios/utils/paths.js.map +1 -1
  630. package/plugin/build/ios/utils/plist.d.ts +1 -0
  631. package/plugin/build/ios/utils/plist.d.ts.map +1 -1
  632. package/plugin/build/ios/utils/plist.js +6 -29
  633. package/plugin/build/ios/utils/plist.js.map +1 -1
  634. package/plugin/build/ios/utils/reactNativeSwift.d.ts +1 -0
  635. package/plugin/build/ios/utils/reactNativeSwift.d.ts.map +1 -1
  636. package/plugin/build/ios/utils/reactNativeSwift.js +101 -166
  637. package/plugin/build/ios/utils/reactNativeSwift.js.map +1 -1
  638. package/plugin/build/ios/utils/safari.d.ts.map +1 -1
  639. package/plugin/build/ios/utils/safari.js +155 -97
  640. package/plugin/build/ios/utils/safari.js.map +1 -1
  641. package/plugin/build/logger.d.ts +4 -4
  642. package/plugin/build/logger.d.ts.map +1 -1
  643. package/plugin/build/logger.js +8 -15
  644. package/plugin/build/logger.js.map +1 -1
  645. package/plugin/build/withTargetsDir.d.ts +1 -1
  646. package/plugin/build/withTargetsDir.d.ts.map +1 -1
  647. package/plugin/build/withTargetsDir.js +216 -157
  648. package/plugin/build/withTargetsDir.js.map +1 -1
  649. package/build/plugin/src/ios/config-plugins/withIosColorset.d.ts +0 -8
  650. package/build/plugin/src/ios/config-plugins/withIosColorset.d.ts.map +0 -1
  651. package/build/plugin/src/ios/config-plugins/withIosColorset.js +0 -25
  652. package/build/plugin/src/ios/config-plugins/withIosColorset.js.map +0 -1
  653. package/build/plugin/src/ios/config-plugins/withIosStickerPack.d.ts +0 -8
  654. package/build/plugin/src/ios/config-plugins/withIosStickerPack.d.ts.map +0 -1
  655. package/build/plugin/src/ios/config-plugins/withIosStickerPack.js +0 -52
  656. package/build/plugin/src/ios/config-plugins/withIosStickerPack.js.map +0 -1
  657. package/build/plugin/src/ios/target.d.ts +0 -44
  658. package/build/plugin/src/ios/target.d.ts.map +0 -1
  659. package/build/plugin/src/ios/target.js +0 -670
  660. package/build/plugin/src/ios/target.js.map +0 -1
  661. package/build/plugin/src/ios/utils/podfile.d.ts.map +0 -1
  662. package/build/plugin/src/ios/utils/podfile.js.map +0 -1
  663. package/build/plugin/src/ios/utils/xcode.d.ts +0 -185
  664. package/build/plugin/src/ios/utils/xcode.d.ts.map +0 -1
  665. package/build/plugin/src/ios/utils/xcode.js +0 -706
  666. package/build/plugin/src/ios/utils/xcode.js.map +0 -1
  667. package/build/plugin/src/parseTargetConfig.d.ts +0 -3
  668. package/build/plugin/src/parseTargetConfig.d.ts.map +0 -1
  669. package/build/plugin/src/parseTargetConfig.js +0 -113
  670. package/build/plugin/src/parseTargetConfig.js.map +0 -1
  671. package/ios/Tests/.swiftlint.yml +0 -52
  672. package/ios/Tests/Helpers/MockExtensionContext.swift +0 -58
  673. package/ios/Tests/Helpers/MockUserDefaults.swift +0 -70
  674. package/ios/Tests/Helpers/MockWidgetCenter.swift +0 -71
  675. package/ios/Tests/Helpers/TestHelpers.swift +0 -90
  676. package/ios/Tests/Integration/TargetIntegrationTests.swift +0 -478
  677. package/ios/Tests/Main/AllTests.swift +0 -80
  678. package/ios/Tests/Package.swift +0 -66
  679. package/ios/Tests/Performance/StoragePerformanceTests.swift +0 -461
  680. package/ios/Tests/Unit/Extension/ExpoTargetsExtensionModuleTests.swift +0 -501
  681. package/ios/Tests/Unit/Storage/ExpoTargetsStorageModuleTests.swift +0 -578
  682. package/ios/Tests/Unit/Template/ShareExtensionTemplateTests.swift +0 -421
  683. package/ios/Tests/XCTestPlan.xctestplan +0 -87
  684. package/plugin/build/ios/config-plugins/withIosColorset.d.ts +0 -8
  685. package/plugin/build/ios/config-plugins/withIosColorset.d.ts.map +0 -1
  686. package/plugin/build/ios/config-plugins/withIosColorset.js +0 -25
  687. package/plugin/build/ios/config-plugins/withIosColorset.js.map +0 -1
  688. package/plugin/build/ios/config-plugins/withIosStickerPack.d.ts +0 -8
  689. package/plugin/build/ios/config-plugins/withIosStickerPack.d.ts.map +0 -1
  690. package/plugin/build/ios/config-plugins/withIosStickerPack.js +0 -52
  691. package/plugin/build/ios/config-plugins/withIosStickerPack.js.map +0 -1
  692. package/plugin/build/ios/target.d.ts +0 -44
  693. package/plugin/build/ios/target.d.ts.map +0 -1
  694. package/plugin/build/ios/target.js +0 -670
  695. package/plugin/build/ios/target.js.map +0 -1
  696. package/plugin/build/ios/utils/podfile.d.ts.map +0 -1
  697. package/plugin/build/ios/utils/podfile.js.map +0 -1
  698. package/plugin/build/ios/utils/xcode.d.ts +0 -185
  699. package/plugin/build/ios/utils/xcode.d.ts.map +0 -1
  700. package/plugin/build/ios/utils/xcode.js +0 -706
  701. package/plugin/build/ios/utils/xcode.js.map +0 -1
  702. package/plugin/build/parseTargetConfig.d.ts +0 -3
  703. package/plugin/build/parseTargetConfig.d.ts.map +0 -1
  704. package/plugin/build/parseTargetConfig.js +0 -113
  705. package/plugin/build/parseTargetConfig.js.map +0 -1
@@ -0,0 +1,101 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.addFileToBuildPhase = exports.removeBuildPhases = exports.hasBuildPhase = void 0;
4
+ /**
5
+ * Build phase inspection and mutation for native targets.
6
+ */
7
+ /**
8
+ * Check if target already has a specific build phase type
9
+ */
10
+ function hasBuildPhase({ project, targetUuid, phaseType, }) {
11
+ const xcodeProject = project;
12
+ const target = xcodeProject.hash.project.objects.PBXNativeTarget[targetUuid];
13
+ if (!target?.buildPhases) {
14
+ return false;
15
+ }
16
+ const phaseSection = xcodeProject.hash.project.objects[phaseType];
17
+ if (!phaseSection) {
18
+ return false;
19
+ }
20
+ return target.buildPhases.some((phase) => {
21
+ const phaseUuid = phase.value;
22
+ return phaseSection[phaseUuid] !== undefined;
23
+ });
24
+ }
25
+ exports.hasBuildPhase = hasBuildPhase;
26
+ /**
27
+ * Remove build phases of a specific type from target
28
+ */
29
+ function removeBuildPhases({ project, targetUuid, phaseType, }) {
30
+ const xcodeProject = project;
31
+ const target = xcodeProject.hash.project.objects.PBXNativeTarget[targetUuid];
32
+ if (!target?.buildPhases) {
33
+ return;
34
+ }
35
+ const phaseSection = xcodeProject.hash.project.objects[phaseType];
36
+ if (!phaseSection) {
37
+ return;
38
+ }
39
+ // Find matching phase UUIDs
40
+ const phasesToRemove = [];
41
+ for (const phase of target.buildPhases) {
42
+ if (phaseSection[phase.value]) {
43
+ phasesToRemove.push(phase.value);
44
+ }
45
+ }
46
+ // Remove phases from target's buildPhases array
47
+ target.buildPhases = target.buildPhases.filter((phase) => !phasesToRemove.includes(phase.value));
48
+ // Remove phase objects and comments from section
49
+ for (const phaseUuid of phasesToRemove) {
50
+ delete phaseSection[phaseUuid];
51
+ delete phaseSection[`${phaseUuid}_comment`];
52
+ }
53
+ }
54
+ exports.removeBuildPhases = removeBuildPhases;
55
+ /**
56
+ * Add file to specific build phase by file reference UUID.
57
+ */
58
+ function addFileToBuildPhase({ project, targetUuid, fileRefUuid, phaseType, }) {
59
+ const xcodeProject = project;
60
+ const target = xcodeProject.hash.project.objects.PBXNativeTarget[targetUuid];
61
+ if (!target?.buildPhases) {
62
+ throw new Error(`Target ${targetUuid} not found or has no build phases`);
63
+ }
64
+ // Find the build phase
65
+ const phaseUuid = target.buildPhases.find((phase) => {
66
+ const phaseObj = xcodeProject.hash.project.objects[phaseType][phase.value];
67
+ return phaseObj !== undefined;
68
+ })?.value;
69
+ if (!phaseUuid) {
70
+ throw new Error(`Build phase ${phaseType} not found for target ${targetUuid}`);
71
+ }
72
+ const phase = xcodeProject.hash.project.objects[phaseType][phaseUuid];
73
+ // Check if file already exists in build phase
74
+ if (phase.files) {
75
+ const existingFile = phase.files.find((file) => {
76
+ const buildFile = xcodeProject.hash.project.objects.PBXBuildFile[file.value];
77
+ return buildFile && buildFile.fileRef === fileRefUuid;
78
+ });
79
+ if (existingFile) {
80
+ return; // Already added
81
+ }
82
+ }
83
+ // Create PBXBuildFile
84
+ const buildFileUuid = xcodeProject.generateUuid();
85
+ xcodeProject.hash.project.objects.PBXBuildFile[buildFileUuid] = {
86
+ isa: 'PBXBuildFile',
87
+ fileRef: fileRefUuid,
88
+ };
89
+ xcodeProject.hash.project.objects.PBXBuildFile[`${buildFileUuid}_comment`] =
90
+ `Referenced file in ${phaseType}`;
91
+ // Add to phase
92
+ if (!phase.files) {
93
+ phase.files = [];
94
+ }
95
+ phase.files.push({
96
+ value: buildFileUuid,
97
+ comment: 'Referenced file',
98
+ });
99
+ }
100
+ exports.addFileToBuildPhase = addFileToBuildPhase;
101
+ //# sourceMappingURL=buildPhases.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildPhases.js","sourceRoot":"","sources":["../../../../src/ios/apply/pbx/buildPhases.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AAEH;;GAEG;AACH,SAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,UAAU,EACV,SAAS,GAKV;IACC,MAAM,YAAY,GAAG,OAAc,CAAC;IACpC,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;IAE7E,IAAI,CAAC,MAAM,EAAE,WAAW,EAAE,CAAC;QACzB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,YAAY,GAAG,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClE,IAAI,CAAC,YAAY,EAAE,CAAC;Q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,OAAO,SAAS,IAAI,SAAS,CAAC,OAAO,KAAK,WAAW,CAAC;QACxD,CAAC,CAAC,CAAC;QACH,IAAI,YAAY,EAAE,CAAC;YACjB,OAAO,CAAC,gBAAgB;QAC1B,CAAC;IACH,CAAC;IAED,sBAAsB;IACtB,MAAM,aAAa,GAAG,YAAY,CAAC,YAAY,EAAE,CAAC;IAClD,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC,GAAG;QAC9D,GAAG,EAAE,cAAc;QACnB,OAAO,EAAE,WAAW;KACrB,CAAC;IACF,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,aAAa,UAAU,CAAC;QACxE,sBAAsB,SAAS,EAAE,CAAC;IAEpC,eAAe;IACf,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,CAAC;QACjB,KAAK,CAAC,KAAK,GAAG,EAAE,CAAC;IACnB,CAAC;IACD,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC;QACf,KAAK,EAAE,aAAa;QACpB,OAAO,EAAE,iBAAiB;KAC3B,CAAC,CAAC;AACL,CAAC;AAhED,kDAgEC"}
@@ -0,0 +1,37 @@
1
+ import type { XcodeProject } from '@expo/config-plugins';
2
+ import type { XcodeTarget } from './types';
3
+ /**
4
+ * Apply build settings to all configurations of a target.
5
+ */
6
+ export declare function applyBuildSettings({ project, target, buildSettings, verbose, logger, }: {
7
+ project: XcodeProject;
8
+ target: XcodeTarget;
9
+ buildSettings: Record<string, string | string[]>;
10
+ verbose?: boolean;
11
+ logger?: {
12
+ log: (message: string) => void;
13
+ };
14
+ }): void;
15
+ /**
16
+ * Remove a build setting from all configurations of a target.
17
+ */
18
+ export declare function removeBuildSetting({ project, target, settingKey, verbose, logger, }: {
19
+ project: XcodeProject;
20
+ target: XcodeTarget;
21
+ settingKey: string;
22
+ verbose?: boolean;
23
+ logger?: {
24
+ log: (message: string) => void;
25
+ };
26
+ }): void;
27
+ /**
28
+ * Get build settings from the main app target.
29
+ */
30
+ export declare function getMainAppBuildSettings({ project, mainTarget, }: {
31
+ project: XcodeProject;
32
+ mainTarget: {
33
+ uuid: string;
34
+ target: any;
35
+ };
36
+ }): Record<string, any>;
37
+ //# sourceMappingURL=buildSettings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildSettings.d.ts","sourceRoot":"","sources":["../../../../src/ios/apply/pbx/buildSettings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAgC3C;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,MAAM,EACN,aAAa,EACb,OAAe,EACf,MAAM,GACP,EAAE;IACD,OAAO,EAAE,YAAY,CAAC;IACtB,MAAM,EAAE,WAAW,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;IACjD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;KAAE,CAAC;CAC7C,GAAG,IAAI,CA2BP;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,OAAO,EACP,MAAM,EACN,UAAU,EACV,OAAe,EACf,MAAM,GACP,EAAE;IACD,OAAO,EAAE,YAAY,CAAC;IACtB,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;KAAE,CAAC;CAC7C,GAAG,IAAI,CA2BP;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,OAAO,EACP,UAAU,GACX,EAAE;IACD,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,GAAG,CAAA;KAAE,CAAC;CAC3C,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAYtB"}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getMainAppBuildSettings = exports.removeBuildSetting = exports.applyBuildSettings = void 0;
4
+ /**
5
+ * Reading and writing XCBuildConfiguration build settings.
6
+ */
7
+ /**
8
+ * Settings worth naming individually in verbose output — they are the two that
9
+ * commonly break an extension build when they drift from the host app.
10
+ */
11
+ const VERBOSE_LOGGED_SETTINGS = new Set([
12
+ 'SWIFT_VERSION',
13
+ 'IPHONEOS_DEPLOYMENT_TARGET',
14
+ ]);
15
+ function writeBuildSettings({ configSection, buildSettings, verboseLogger, }) {
16
+ for (const [key, value] of Object.entries(buildSettings)) {
17
+ configSection.buildSettings[key] = value;
18
+ if (VERBOSE_LOGGED_SETTINGS.has(key)) {
19
+ verboseLogger?.log(` Set ${key}=${value} to ${configSection.name}`);
20
+ }
21
+ }
22
+ }
23
+ /**
24
+ * Apply build settings to all configurations of a target.
25
+ */
26
+ function applyBuildSettings({ project, target, buildSettings, verbose = false, logger, }) {
27
+ const xcodeProject = project;
28
+ const targetBuildConfigId = target.pbxNativeTarget?.buildConfigurationList ||
29
+ target.target?.buildConfigurationList;
30
+ const buildConfigList = xcodeProject.pbxXCConfigurationList()[targetBuildConfigId];
31
+ if (!buildConfigList?.buildConfigurations) {
32
+ logger?.log('No build configurations found for target');
33
+ return;
34
+ }
35
+ const verboseLogger = verbose ? logger : undefined;
36
+ for (const config of buildConfigList.buildConfigurations) {
37
+ const configSection = xcodeProject.pbxXCBuildConfigurationSection()[config.value];
38
+ verboseLogger?.log(` Configuring ${configSection?.name} build settings`);
39
+ if (configSection?.buildSettings) {
40
+ writeBuildSettings({ configSection, buildSettings, verboseLogger });
41
+ }
42
+ }
43
+ }
44
+ exports.applyBuildSettings = applyBuildSettings;
45
+ /**
46
+ * Remove a build setting from all configurations of a target.
47
+ */
48
+ function removeBuildSetting({ project, target, settingKey, verbose = false, logger, }) {
49
+ const xcodeProject = project;
50
+ const targetBuildConfigId = target.pbxNativeTarget?.buildConfigurationList ||
51
+ target.target?.buildConfigurationList;
52
+ const buildConfigList = xcodeProject.pbxXCConfigurationList()[targetBuildConfigId];
53
+ if (!buildConfigList?.buildConfigurations) {
54
+ return;
55
+ }
56
+ const verboseLogger = verbose ? logger : undefined;
57
+ for (const config of buildConfigList.buildConfigurations) {
58
+ const configSection = xcodeProject.pbxXCBuildConfigurationSection()[config.value];
59
+ if (configSection?.buildSettings?.[settingKey]) {
60
+ delete configSection.buildSettings[settingKey];
61
+ verboseLogger?.log(` Removed ${settingKey} from ${configSection.name}`);
62
+ }
63
+ }
64
+ }
65
+ exports.removeBuildSetting = removeBuildSetting;
66
+ /**
67
+ * Get build settings from the main app target.
68
+ */
69
+ function getMainAppBuildSettings({ project, mainTarget, }) {
70
+ const xcodeProject = project;
71
+ const mainTargetBuildConfigId = mainTarget.target?.buildConfigurationList;
72
+ const mainBuildConfigList = xcodeProject.pbxXCConfigurationList()[mainTargetBuildConfigId];
73
+ const mainBuildConfig = mainBuildConfigList?.buildConfigurations?.[0]?.value;
74
+ return mainBuildConfig
75
+ ? xcodeProject.pbxXCBuildConfigurationSection()[mainBuildConfig]
76
+ ?.buildSettings || {}
77
+ : {};
78
+ }
79
+ exports.getMainAppBuildSettings = getMainAppBuildSettings;
80
+ //# sourceMappingURL=buildSettings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildSettings.js","sourceRoot":"","sources":["../../../../src/ios/apply/pbx/buildSettings.ts"],"names":[],"mappings":";;;AAIA;;GAEG;AAEH;;;GAGG;AACH,MAAM,uBAAuB,GAAG,IAAI,GAAG,CAAC;IACtC,eAAe;IACf,4BAA4B;CAC7B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AY,CAAC,sBAAsB,EAAE,CAAC,uBAAuB,CAAC,CAAC;IACjE,MAAM,eAAe,GAAG,mBAAmB,EAAE,mBAAmB,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC;IAE7E,OAAO,eAAe;QACpB,CAAC,CAAC,YAAY,CAAC,8BAA8B,EAAE,CAAC,eAAe,CAAC;YAC5D,EAAE,aAAa,IAAI,EAAE;QACzB,CAAC,CAAC,EAAE,CAAC;AACT,CAAC;AAlBD,0DAkBC"}
@@ -0,0 +1,19 @@
1
+ import type { XcodeProject } from '@expo/config-plugins';
2
+ import type { Logger } from '../../../logger';
3
+ import type { BundleReactNativePlan } from '../../plan/types';
4
+ /**
5
+ * Shell phase for RN extension/clip targets. Mirrors the Expo host script, but
6
+ * pins `ENTRY_FILE` to this target's entry so Release embeds the correct
7
+ * `main.jsbundle` into the appex (not the host app entry).
8
+ */
9
+ export declare function buildExtensionBundleShellScript(entryFile: string): string;
10
+ /**
11
+ * Ensure the target has an idempotent Bundle RN shell phase for `plan`.
12
+ */
13
+ export declare function ensureBundleReactNativePhase({ project, targetUuid, plan, logger, }: {
14
+ project: XcodeProject;
15
+ targetUuid: string;
16
+ plan: BundleReactNativePlan;
17
+ logger?: Logger;
18
+ }): void;
19
+ //# sourceMappingURL=bundleReactNative.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundleReactNative.d.ts","sourceRoot":"","sources":["../../../../src/ios/apply/pbx/bundleReactNative.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAI9D;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CA6DzE;AAiDD;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,EAC3C,OAAO,EACP,UAAU,EACV,IAAI,EACJ,MAAM,GACP,EAAE;IACD,OAAO,EAAE,YAAY,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,qBAAqB,CAAC;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,IAAI,CA8BP"}
@@ -0,0 +1,136 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ensureBundleReactNativePhase = exports.buildExtensionBundleShellScript = void 0;
4
+ const PHASE_NAME = 'Bundle React Native code and images';
5
+ /**
6
+ * Shell phase for RN extension/clip targets. Mirrors the Expo host script, but
7
+ * pins `ENTRY_FILE` to this target's entry so Release embeds the correct
8
+ * `main.jsbundle` into the appex (not the host app entry).
9
+ */
10
+ function buildExtensionBundleShellScript(entryFile) {
11
+ // entryFile is project-root relative; keep it free of shell metacharacters.
12
+ const safeEntry = entryFile.replace(/"/g, '');
13
+ return `if [[ -f "$PODS_ROOT/../.xcode.env" ]]; then
14
+ source "$PODS_ROOT/../.xcode.env"
15
+ fi
16
+ if [[ -f "$PODS_ROOT/../.xcode.env.local" ]]; then
17
+ source "$PODS_ROOT/../.xcode.env.local"
18
+ fi
19
+
20
+ # The project root by default is one level up from the ios directory
21
+ export PROJECT_ROOT="$PROJECT_DIR"/..
22
+
23
+ # Pin this target's JS entry (not the host app entry).
24
+ export ENTRY_FILE="$PROJECT_ROOT/${safeEntry}"
25
+
26
+ if [[ "$CONFIGURATION" = *Debug* ]]; then
27
+ export SKIP_BUNDLING=1
28
+ fi
29
+
30
+ if [[ -z "$CLI_PATH" ]]; then
31
+ # Use Expo CLI
32
+ export CLI_PATH="$("$NODE_BINARY" --print "require.resolve('@expo/cli', { paths: [require.resolve('expo/package.json')] })")"
33
+ fi
34
+ if [[ -z "$BUNDLE_COMMAND" ]]; then
35
+ # Default Expo CLI command for bundling
36
+ export BUNDLE_COMMAND="export:embed"
37
+ fi
38
+
39
+ # Source .xcode.env.updates if it exists to allow
40
+ # SKIP_BUNDLING to be unset if needed
41
+ if [[ -f "$PODS_ROOT/../.xcode.env.updates" ]]; then
42
+ source "$PODS_ROOT/../.xcode.env.updates"
43
+ fi
44
+ # Source local changes to allow overrides
45
+ # if needed
46
+ if [[ -f "$PODS_ROOT/../.xcode.env.local" ]]; then
47
+ source "$PODS_ROOT/../.xcode.env.local"
48
+ fi
49
+
50
+ \`"$NODE_BINARY" --print "require('path').dirname(require.resolve('react-native/package.json')) + '/scripts/react-native-xcode.sh'"\`
51
+
52
+ # App Clip / appex: export:embed often leaves main.jsbundle in
53
+ # CONFIGURATION_BUILD_DIR; Xcode's later "Create .app" can also drop an
54
+ # in-wrapper copy. Persist a stable sidecar for the host embed phase.
55
+ for candidate in \\
56
+ "$CONFIGURATION_BUILD_DIR/main.jsbundle" \\
57
+ "$TARGET_BUILD_DIR/main.jsbundle" \\
58
+ "$TARGET_BUILD_DIR/$WRAPPER_NAME/main.jsbundle"
59
+ do
60
+ if [[ -f "$candidate" ]]; then
61
+ WRAPPER="\${TARGET_BUILD_DIR}/\${WRAPPER_NAME}"
62
+ mkdir -p "$WRAPPER"
63
+ cp "$candidate" "$WRAPPER/main.jsbundle" || true
64
+ # Sidecar next to the .app so host post-embed can re-copy after Create.
65
+ cp "$candidate" "\${CONFIGURATION_BUILD_DIR}/\${PRODUCT_NAME}-main.jsbundle"
66
+ echo "expo-targets: placed main.jsbundle ($candidate → wrapper + sidecar)"
67
+ break
68
+ fi
69
+ done
70
+ `;
71
+ }
72
+ exports.buildExtensionBundleShellScript = buildExtensionBundleShellScript;
73
+ /** Quote a string the way Expo writes host Bundle RN phases (single-line + \\n). */
74
+ function toPbxString(value) {
75
+ return `"${value
76
+ .replace(/\\/g, '\\\\')
77
+ .replace(/"/g, '\\"')
78
+ .replace(/\n/g, '\\n')}"`;
79
+ }
80
+ function findShellScriptPhase({ project, targetUuid, phaseName, }) {
81
+ const xcodeProject = project;
82
+ const target = xcodeProject.hash.project.objects.PBXNativeTarget[targetUuid];
83
+ const section = xcodeProject.hash.project.objects.PBXShellScriptBuildPhase;
84
+ if (!(target?.buildPhases && section)) {
85
+ return;
86
+ }
87
+ const quoted = `"${phaseName}"`;
88
+ for (const ref of target.buildPhases) {
89
+ const phase = section[ref.value];
90
+ if (!phase)
91
+ continue;
92
+ if (phase.name === phaseName || phase.name === quoted) {
93
+ return { uuid: ref.value, phase };
94
+ }
95
+ }
96
+ }
97
+ function applyPhaseFields(phase, shellScript) {
98
+ phase.name = `"${PHASE_NAME}"`;
99
+ phase.shellPath = '/bin/sh';
100
+ phase.shellScript = toPbxString(shellScript);
101
+ phase.alwaysOutOfDate = 1;
102
+ phase.inputPaths = [
103
+ '"$(SRCROOT)/.xcode.env"',
104
+ '"$(SRCROOT)/.xcode.env.local"',
105
+ ];
106
+ phase.outputPaths = [];
107
+ phase.runOnlyForDeploymentPostprocessing = 0;
108
+ }
109
+ /**
110
+ * Ensure the target has an idempotent Bundle RN shell phase for `plan`.
111
+ */
112
+ function ensureBundleReactNativePhase({ project, targetUuid, plan, logger, }) {
113
+ const xcodeProject = project;
114
+ const shellScript = buildExtensionBundleShellScript(plan.entryFile);
115
+ const existing = findShellScriptPhase({
116
+ project,
117
+ targetUuid,
118
+ phaseName: PHASE_NAME,
119
+ });
120
+ if (existing) {
121
+ applyPhaseFields(existing.phase, shellScript);
122
+ logger?.log(`Updated ${PHASE_NAME} for entry ${plan.entryFile}`);
123
+ return;
124
+ }
125
+ // Create the phase shell, then overwrite fields so quoting matches Expo host.
126
+ const { buildPhase } = xcodeProject.addBuildPhase([], 'PBXShellScriptBuildPhase', PHASE_NAME, targetUuid, {
127
+ shellPath: '/bin/sh',
128
+ shellScript: ':',
129
+ inputPaths: [],
130
+ outputPaths: [],
131
+ });
132
+ applyPhaseFields(buildPhase, shellScript);
133
+ logger?.log(`Added ${PHASE_NAME} for entry ${plan.entryFile}`);
134
+ }
135
+ exports.ensureBundleReactNativePhase = ensureBundleReactNativePhase;
136
+ //# sourceMappingURL=bundleReactNative.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bundleReactNative.js","sourceRoot":"","sources":["../../../../src/ios/apply/pbx/bundleReactNative.ts"],"names":[],"mappings":";;;AAKA,MAAM,UAAU,GAAG,qCAAqC,CAAC;AAEzD;;;;GAIG;AACH,SAAgB,+BAA+B,CAAC,SAAiB;IAC/D,4EAA4E;IAC5E,MAAM,SAAS,GAAG,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAC9C,OAAO;;;;;;;;;;;mCAW0B,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8C3C,CAAC;AACF,CAAC;AA7DD,0EA6DC;AAED,oFAAoF;AACpF,SAAS,WAAW,CAAC,KAAa;IAChC,OAAO,IAAI,KAAK;SACb,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC;SACtB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC;AAC9B,CAAC;AAED,SAAS,oBAAoB,CAAC,EAC5B,OAAO,EACP,UAAU,EACV,SAAS,GAKV;IACC,MAAM,YAAY,GAAG,OAAc,CAAC;IACpC,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;IAC7E,MAAM,OAAO,GAAG,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,wBAAwB,CAAC;IAC3E,IAAI,CAAC,CAAC,MAAM,EAAE,WAAW,IAAI,OAAO,CAAC,EAAE,CAAC;QACtC,OAAO;IACT,CAAC;IAED,MAAM,MAAM,GAAG,IAAI,SAAS,GAAG,CAAC;IAChC,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,WAAW,EAAE,CAAC;QACrC,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAA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E,EACF,0BAA0B,EAC1B,UAAU,EACV,UAAU,EACV;QACE,SAAS,EAAE,SAAS;QACpB,WAAW,EAAE,GAAG;QAChB,UAAU,EAAE,EAAE;QACd,WAAW,EAAE,EAAE;KAChB,CACF,CAAC;IACF,gBAAgB,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IAC1C,MAAM,EAAE,GAAG,CAAC,SAAS,UAAU,cAAc,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;AACjE,CAAC;AAxCD,oEAwCC"}
@@ -0,0 +1,25 @@
1
+ import type { XcodeProject } from '@expo/config-plugins';
2
+ import type { Logger } from '../../../logger';
3
+ /**
4
+ * Host post-embed script: RN App Clips link Expo/RN via @rpath but CocoaPods
5
+ * only embeds frameworks into the host (`inherit! :search_paths` on the clip).
6
+ * App Clips are separate processes, so copy host Frameworks into the nested
7
+ * AppClips/*.app after both products exist.
8
+ */
9
+ export declare function buildCopyFrameworksIntoAppClipScript(clipProductName: string): string;
10
+ /**
11
+ * Idempotent host shell phase: copy Frameworks into AppClips/<clip>.app.
12
+ * Only needed for React Native App Clips (dynamic @rpath Expo/RN frameworks).
13
+ */
14
+ export declare function ensureCopyFrameworksIntoAppClipPhase({ project, mainTargetUuid, clipProductName, logger, }: {
15
+ project: XcodeProject;
16
+ mainTargetUuid: string;
17
+ clipProductName: string;
18
+ logger?: Logger;
19
+ }): void;
20
+ /**
21
+ * CocoaPods appends `[CP] Embed Pods Frameworks` after prebuild — inject this
22
+ * into `post_install` so the copy phase stays last.
23
+ */
24
+ export declare function buildReorderAppClipFrameworksCopyPhaseRuby(mainTargetName: string): string;
25
+ //# sourceMappingURL=copyFrameworksIntoAppClip.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copyFrameworksIntoAppClip.d.ts","sourceRoot":"","sources":["../../../../src/ios/apply/pbx/copyFrameworksIntoAppClip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAY9C;;;;;GAKG;AACH,wBAAgB,oCAAoC,CAClD,eAAe,EAAE,MAAM,GACtB,MAAM,CA+DR;AAsCD;;;GAGG;AACH,wBAAgB,oCAAoC,CAAC,EACnD,OAAO,EACP,cAAc,EACd,eAAe,EACf,MAAM,GACP,EAAE;IACD,OAAO,EAAE,YAAY,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,GAAG,IAAI,CAiDP;AAoBD;;;GAGG;AACH,wBAAgB,0CAA0C,CACxD,cAAc,EAAE,MAAM,GACrB,MAAM,CAwBR"}
@@ -0,0 +1,196 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.buildReorderAppClipFrameworksCopyPhaseRuby = exports.ensureCopyFrameworksIntoAppClipPhase = exports.buildCopyFrameworksIntoAppClipScript = void 0;
4
+ const PHASE_NAME = '[expo-targets] Copy Frameworks into App Clip';
5
+ /** Quote a string the way Expo writes host shell phases (single-line + \\n). */
6
+ function toPbxString(value) {
7
+ return `"${value
8
+ .replace(/\\/g, '\\\\')
9
+ .replace(/"/g, '\\"')
10
+ .replace(/\n/g, '\\n')}"`;
11
+ }
12
+ /**
13
+ * Host post-embed script: RN App Clips link Expo/RN via @rpath but CocoaPods
14
+ * only embeds frameworks into the host (`inherit! :search_paths` on the clip).
15
+ * App Clips are separate processes, so copy host Frameworks into the nested
16
+ * AppClips/*.app after both products exist.
17
+ */
18
+ function buildCopyFrameworksIntoAppClipScript(clipProductName) {
19
+ const safe = clipProductName.replace(/"/g, '').replace(/\.app$/i, '');
20
+ return `set -euo pipefail
21
+ HOST_APP="\${TARGET_BUILD_DIR}/\${FULL_PRODUCT_NAME}"
22
+ CLIP_APP="\${HOST_APP}/AppClips/${safe}.app"
23
+ HOST_FW="\${HOST_APP}/Frameworks"
24
+ CLIP_FW="\${CLIP_APP}/Frameworks"
25
+
26
+ # CocoaPods may schedule [CP] Embed Pods Frameworks after this phase — run
27
+ # the host embed script first so Frameworks exist before we copy.
28
+ EMBED_SH=$(ls "$PODS_ROOT/Target Support Files"/Pods-*/Pods-*-frameworks.sh 2>/dev/null | grep -v '${safe}' | head -1 || true)
29
+ if [[ -n "\${EMBED_SH:-}" && -f "$EMBED_SH" ]]; then
30
+ export FRAMEWORKS_FOLDER_PATH="\${FULL_PRODUCT_NAME}/Frameworks"
31
+ /bin/sh "$EMBED_SH" || true
32
+ fi
33
+
34
+ if [[ ! -d "$HOST_FW" ]]; then
35
+ echo "note: no host Frameworks at $HOST_FW — skip App Clip framework copy"
36
+ exit 0
37
+ fi
38
+ if [[ ! -d "$CLIP_APP" ]]; then
39
+ echo "warning: App Clip missing at $CLIP_APP — skip framework copy"
40
+ exit 0
41
+ fi
42
+ mkdir -p "$CLIP_FW"
43
+ rsync -a "$HOST_FW/" "$CLIP_FW/"
44
+ echo "Copied host Frameworks into $CLIP_FW"
45
+
46
+ # Sibling product (BUILT_PRODUCTS_DIR/${safe}.app) is what Xcode/simctl
47
+ # install when launching the App Clip scheme — keep it in sync too.
48
+ SIBLING_APP="\${BUILT_PRODUCTS_DIR}/${safe}.app"
49
+ if [[ -d "$SIBLING_APP" && "$SIBLING_APP" != "$CLIP_APP" ]]; then
50
+ mkdir -p "$SIBLING_APP/Frameworks"
51
+ rsync -a "$HOST_FW/" "$SIBLING_APP/Frameworks/"
52
+ echo "Copied host Frameworks into $SIBLING_APP/Frameworks"
53
+ fi
54
+
55
+ # Re-apply JS bundle after Embed App Clips (Create .app can drop it).
56
+ copy_jsbundle() {
57
+ local dest="$1"
58
+ if [[ -f "$dest/main.jsbundle" ]]; then
59
+ return 0
60
+ fi
61
+ for candidate in \\
62
+ "\${CONFIGURATION_BUILD_DIR}/${safe}-main.jsbundle" \\
63
+ "\${BUILT_PRODUCTS_DIR}/${safe}-main.jsbundle" \\
64
+ "\${TARGET_BUILD_DIR}/${safe}.app/main.jsbundle" \\
65
+ "\${BUILT_PRODUCTS_DIR}/${safe}.app/main.jsbundle" \\
66
+ "$CLIP_APP/main.jsbundle"
67
+ do
68
+ if [[ -f "$candidate" ]]; then
69
+ cp "$candidate" "$dest/main.jsbundle"
70
+ echo "Copied JS bundle from $candidate → $dest"
71
+ return 0
72
+ fi
73
+ done
74
+ return 1
75
+ }
76
+ copy_jsbundle "$CLIP_APP" || echo "warning: no main.jsbundle for nested App Clip"
77
+ if [[ -d "\${SIBLING_APP:-}" ]]; then
78
+ copy_jsbundle "$SIBLING_APP" || true
79
+ fi
80
+ `;
81
+ }
82
+ exports.buildCopyFrameworksIntoAppClipScript = buildCopyFrameworksIntoAppClipScript;
83
+ function findShellScriptPhase({ project, targetUuid, phaseName, }) {
84
+ const xcodeProject = project;
85
+ const target = xcodeProject.hash.project.objects.PBXNativeTarget[targetUuid];
86
+ const section = xcodeProject.hash.project.objects.PBXShellScriptBuildPhase;
87
+ if (!(target?.buildPhases && section)) {
88
+ return;
89
+ }
90
+ const quoted = `"${phaseName}"`;
91
+ for (const ref of target.buildPhases) {
92
+ const phase = section[ref.value];
93
+ if (!phase)
94
+ continue;
95
+ if (phase.name === phaseName || phase.name === quoted) {
96
+ return { uuid: ref.value, phase };
97
+ }
98
+ }
99
+ }
100
+ function applyPhaseFields(phase, shellScript) {
101
+ phase.name = `"${PHASE_NAME}"`;
102
+ phase.shellPath = '/bin/sh';
103
+ phase.shellScript = toPbxString(shellScript);
104
+ phase.alwaysOutOfDate = 1;
105
+ phase.inputPaths = [];
106
+ phase.outputPaths = [];
107
+ phase.runOnlyForDeploymentPostprocessing = 0;
108
+ }
109
+ /**
110
+ * Idempotent host shell phase: copy Frameworks into AppClips/<clip>.app.
111
+ * Only needed for React Native App Clips (dynamic @rpath Expo/RN frameworks).
112
+ */
113
+ function ensureCopyFrameworksIntoAppClipPhase({ project, mainTargetUuid, clipProductName, logger, }) {
114
+ const xcodeProject = project;
115
+ const shellScript = buildCopyFrameworksIntoAppClipScript(clipProductName);
116
+ const existing = findShellScriptPhase({
117
+ project,
118
+ targetUuid: mainTargetUuid,
119
+ phaseName: PHASE_NAME,
120
+ });
121
+ if (existing) {
122
+ applyPhaseFields(existing.phase, shellScript);
123
+ movePhaseToEnd({
124
+ project: xcodeProject,
125
+ targetUuid: mainTargetUuid,
126
+ phaseUuid: existing.uuid,
127
+ });
128
+ logger?.log(`Updated ${PHASE_NAME} for ${clipProductName}`);
129
+ return;
130
+ }
131
+ const added = xcodeProject.addBuildPhase([], 'PBXShellScriptBuildPhase', PHASE_NAME, mainTargetUuid, {
132
+ shellPath: '/bin/sh',
133
+ shellScript: ':',
134
+ inputPaths: [],
135
+ outputPaths: [],
136
+ });
137
+ applyPhaseFields(added.buildPhase, shellScript);
138
+ // Must run after CocoaPods embeds frameworks into the host .app.
139
+ const phaseUuid = added.uuid ??
140
+ findShellScriptPhase({
141
+ project,
142
+ targetUuid: mainTargetUuid,
143
+ phaseName: PHASE_NAME,
144
+ })?.uuid;
145
+ if (phaseUuid) {
146
+ movePhaseToEnd({
147
+ project: xcodeProject,
148
+ targetUuid: mainTargetUuid,
149
+ phaseUuid,
150
+ });
151
+ }
152
+ logger?.log(`Added ${PHASE_NAME} for ${clipProductName}`);
153
+ }
154
+ exports.ensureCopyFrameworksIntoAppClipPhase = ensureCopyFrameworksIntoAppClipPhase;
155
+ function movePhaseToEnd({ project, targetUuid, phaseUuid, }) {
156
+ const target = project.hash.project.objects.PBXNativeTarget[targetUuid];
157
+ if (!target?.buildPhases)
158
+ return;
159
+ const phases = target.buildPhases;
160
+ const idx = phases.findIndex((p) => p.value === phaseUuid);
161
+ if (idx < 0 || idx === phases.length - 1)
162
+ return;
163
+ const [phase] = phases.splice(idx, 1);
164
+ phases.push(phase);
165
+ }
166
+ /**
167
+ * CocoaPods appends `[CP] Embed Pods Frameworks` after prebuild — inject this
168
+ * into `post_install` so the copy phase stays last.
169
+ */
170
+ function buildReorderAppClipFrameworksCopyPhaseRuby(mainTargetName) {
171
+ const safe = mainTargetName.replace(/'/g, "\\'");
172
+ return `
173
+ # [expo-targets] Keep App Clip framework-copy after CocoaPods embed.
174
+ begin
175
+ require 'xcodeproj'
176
+ project_path = Dir.glob('*.xcodeproj').first
177
+ if project_path
178
+ project = Xcodeproj::Project.open(project_path)
179
+ target = project.targets.find { |t| t.name == '${safe}' }
180
+ phase_name = '[expo-targets] Copy Frameworks into App Clip'
181
+ if target
182
+ phase = target.shell_script_build_phases.find { |p| p.name == phase_name }
183
+ if phase
184
+ target.build_phases.delete(phase)
185
+ target.build_phases << phase
186
+ project.save
187
+ end
188
+ end
189
+ end
190
+ rescue => e
191
+ Pod::UI.puts "[expo-targets] skip App Clip phase reorder: #{e}"
192
+ end
193
+ `;
194
+ }
195
+ exports.buildReorderAppClipFrameworksCopyPhaseRuby = buildReorderAppClipFrameworksCopyPhaseRuby;
196
+ //# sourceMappingURL=copyFrameworksIntoAppClip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copyFrameworksIntoAppClip.js","sourceRoot":"","sources":["../../../../src/ios/apply/pbx/copyFrameworksIntoAppClip.ts"],"names":[],"mappings":";;;AAIA,MAAM,UAAU,GAAG,8CAA8C,CAAC;AAElE,gFAAgF;AAChF,SAAS,WAAW,CAAC,KAAa;IAChC,OAAO,IAAI,KAAK;SACb,OAAO,CAAC,KAAK,EAAE,MAAM,CAAC;SACtB,OAAO,CAAC,IAAI,EAAE,KAAK,CAAC;SACpB,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC;AAC9B,CAAC;AAED;;;;;GAKG;AACH,SAAgB,oCAAoC,CAClD,eAAuB;IAEvB,MAAM,IAAI,GAAG,eAAe,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IACtE,OAAO;;kCAEyB,IAAI;;;;;;qGAM+D,IAAI;;;;;;;;;;;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