expo-targets 0.2.7 → 0.2.8

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 +41 -192
  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
@@ -4,7 +4,79 @@
4
4
  * Provides helpers for injecting target blocks into Podfile.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.ensureReactNativeExtensionFrameworkPaths = exports.ensureExtensionDeploymentTargets = exports.updatePodfilePlatform = exports.ensureMainTargetUsesFrameworks = exports.removeTargetBlock = exports.hasTargetBlock = exports.insertTargetBlock = exports.generateStandaloneTargetBlock = exports.mainTargetUsesFrameworks = exports.generateReactNativeTargetBlock = exports.ensureResourceBundleCodeSigning = void 0;
7
+ exports.ensureExcludedPackagesPostIntegrate = exports.ensureReactNativeExtensionFrameworkPaths = exports.ensureExtensionDeploymentTargets = exports.updatePodfilePlatform = exports.ensureMainTargetUsesFrameworks = exports.removeTargetBlock = exports.hasTargetBlock = exports.insertTargetBlock = exports.generateStandaloneTargetBlock = exports.mainTargetUsesFrameworks = exports.generateReactNativeTargetBlock = exports.EXCLUDED_PACKAGES_MARKER = exports.ensureResourceBundleCodeSigning = void 0;
8
+ /**
9
+ * Locate the line that closes `react_native_post_install(...)`, which is where
10
+ * generated post_install code has to be injected. Returns -1 when the call is
11
+ * not present.
12
+ */
13
+ function findReactNativePostInstallEndLine(lines) {
14
+ let startLine = -1;
15
+ let parenDepth = 0;
16
+ for (let i = 0; i < lines.length; i++) {
17
+ const line = lines[i];
18
+ const openParens = (line.match(/\(/g) || []).length;
19
+ const closeParens = (line.match(/\)/g) || []).length;
20
+ if (line.includes('react_native_post_install(')) {
21
+ startLine = i;
22
+ parenDepth = openParens - closeParens;
23
+ continue;
24
+ }
25
+ if (startLine === -1) {
26
+ continue;
27
+ }
28
+ parenDepth += openParens - closeParens;
29
+ if (parenDepth === 0 && closeParens > 0) {
30
+ return i;
31
+ }
32
+ }
33
+ return -1;
34
+ }
35
+ /**
36
+ * Locate the line holding the `end` that closes `post_install do`.
37
+ * Ruby closes many keywords with `end`, so all openers have to be counted.
38
+ */
39
+ function findPostInstallEndLine(lines) {
40
+ const blockOpenRegex = /\b(do|if|unless|def|class|module|begin|case|while|until)\b/g;
41
+ let startLine = -1;
42
+ let depth = 0;
43
+ for (let i = 0; i < lines.length; i++) {
44
+ const line = lines[i];
45
+ if (line.includes('post_install do')) {
46
+ startLine = i;
47
+ depth = 1;
48
+ continue;
49
+ }
50
+ if (startLine === -1) {
51
+ continue;
52
+ }
53
+ const openMatches = (line.match(blockOpenRegex) || []).length;
54
+ const endMatches = (line.match(/\bend\b/g) || []).length;
55
+ depth += openMatches - endMatches;
56
+ if (depth === 0 && endMatches > 0) {
57
+ return i;
58
+ }
59
+ }
60
+ return -1;
61
+ }
62
+ /**
63
+ * Drop a previously injected block so injection stays idempotent.
64
+ */
65
+ function removeMarkedBlock(podfileContent, startMarker, endMarker) {
66
+ const startIndex = podfileContent.indexOf(startMarker);
67
+ if (startIndex === -1) {
68
+ return podfileContent;
69
+ }
70
+ const endIndex = podfileContent.indexOf(endMarker, startIndex);
71
+ if (endIndex === -1) {
72
+ return podfileContent;
73
+ }
74
+ const beforeBlock = podfileContent.substring(0, startIndex);
75
+ const afterBlock = podfileContent.substring(endIndex + endMarker.length);
76
+ return `${beforeBlock.trimEnd()}\n${afterBlock.trimStart()}`;
77
+ }
78
+ const RESOURCE_BUNDLE_SIGNING_START = ' # [expo-targets-resource-bundle-signing-start]';
79
+ const RESOURCE_BUNDLE_SIGNING_END = ' # [expo-targets-resource-bundle-signing-end]';
8
80
  /**
9
81
  * Ensure resource bundle targets have code signing disabled for Xcode 14+.
10
82
  * Starting from Xcode 14, resource bundles are signed by default, which requires
@@ -14,13 +86,10 @@ exports.ensureReactNativeExtensionFrameworkPaths = exports.ensureExtensionDeploy
14
86
  * Uses START/END markers for reliable, idempotent injection.
15
87
  */
16
88
  function ensureResourceBundleCodeSigning(podfileContent) {
17
- const START_MARKER = ' # [expo-targets-resource-bundle-signing-start]';
18
- const END_MARKER = ' # [expo-targets-resource-bundle-signing-end]';
19
- // Check if fix already exists
20
- if (podfileContent.includes(START_MARKER)) {
89
+ if (podfileContent.includes(RESOURCE_BUNDLE_SIGNING_START)) {
21
90
  return podfileContent;
22
91
  }
23
- const fixCode = `${START_MARKER}
92
+ const fixCode = `${RESOURCE_BUNDLE_SIGNING_START}
24
93
  # Fix Xcode 14+ code signing for resource bundles
25
94
  installer.pods_project.targets.each do |target|
26
95
  if target.respond_to?(:product_type) && target.product_type == "com.apple.product-type.bundle"
@@ -29,66 +98,60 @@ function ensureResourceBundleCodeSigning(podfileContent) {
29
98
  end
30
99
  end
31
100
  end
32
- ${END_MARKER}`;
33
- // Find where to inject (after react_native_post_install closing paren)
101
+ ${RESOURCE_BUNDLE_SIGNING_END}`;
34
102
  const lines = podfileContent.split('\n');
35
- let reactNativeStartLine = -1;
36
- let reactNativeEndLine = -1;
37
- let parenDepth = 0;
38
- for (let i = 0; i < lines.length; i++) {
39
- const line = lines[i];
40
- if (line.includes('react_native_post_install(')) {
41
- reactNativeStartLine = i;
42
- parenDepth =
43
- (line.match(/\(/g) || []).length - (line.match(/\)/g) || []).length;
44
- continue;
45
- }
46
- if (reactNativeStartLine !== -1) {
47
- const openParens = (line.match(/\(/g) || []).length;
48
- const closeParens = (line.match(/\)/g) || []).length;
49
- parenDepth += openParens - closeParens;
50
- if (parenDepth === 0 && closeParens > 0) {
51
- reactNativeEndLine = i;
52
- break;
53
- }
54
- }
55
- }
56
- if (reactNativeStartLine === -1 || reactNativeEndLine === -1) {
57
- console.warn('[expo-targets] Could not find react_native_post_install to inject resource bundle signing fix');
103
+ const endLine = findReactNativePostInstallEndLine(lines);
104
+ if (endLine === -1) {
58
105
  return podfileContent;
59
106
  }
60
- // Insert after react_native_post_install
61
- const beforeLines = lines.slice(0, reactNativeEndLine + 1).join('\n');
62
- const afterLines = lines.slice(reactNativeEndLine + 1).join('\n');
63
- return beforeLines + '\n\n' + fixCode + '\n' + afterLines;
107
+ const beforeLines = lines.slice(0, endLine + 1).join('\n');
108
+ const afterLines = lines.slice(endLine + 1).join('\n');
109
+ return `${beforeLines}\n\n${fixCode}\n${afterLines}`;
64
110
  }
65
111
  exports.ensureResourceBundleCodeSigning = ensureResourceBundleCodeSigning;
112
+ /**
113
+ * Indent pods.rb content to match target block indentation.
114
+ */
115
+ function indentCustomPods(podsRbContent) {
116
+ if (!podsRbContent) {
117
+ return '';
118
+ }
119
+ const indented = podsRbContent
120
+ .split('\n')
121
+ .map((line) => (line.trim() ? ` ${line}` : ''))
122
+ .join('\n');
123
+ return `\n${indented}\n`;
124
+ }
125
+ /** Parseable marker: packages to strip from this nested target's ExpoModulesProvider. */
126
+ exports.EXCLUDED_PACKAGES_MARKER = '# [expo-targets-excluded-packages]';
66
127
  /**
67
128
  * Generate a Podfile target block for a React Native extension.
68
129
  * Extension targets only inherit search paths, with no explicit pod dependencies.
69
130
  * This avoids linking incompatible modules like Expo that contain UIApplication APIs.
70
131
  *
71
- * Note: ExpoTargetsMessages is accessed via the main app's autolinking through shared
72
- * registry defined in generated code, so no direct pod dependency is needed.
132
+ * `excludedPackages` is recorded as a comment marker so a `post_integrate` hook can
133
+ * strip those names from `expo-configure-project.sh` and regenerate the provider.
134
+ * Nested `use_expo_modules!(exclude:)` is a no-op (parent AutolinkingManager).
73
135
  *
74
136
  * @param podsRbContent - Optional content from a pods.rb file in the target directory.
75
137
  * Allows custom CocoaPods configuration (e.g., Firebase, third-party SDKs).
76
138
  * See: https://github.com/nicklockwood/apple-targets#cocoapods
77
139
  */
78
- function generateReactNativeTargetBlock({ targetName, deploymentTarget, extensionType, podsRbContent, }) {
79
- // Indent pods.rb content to match target block indentation
80
- const customPods = podsRbContent
81
- ? '\n' +
82
- podsRbContent
83
- .split('\n')
84
- .map((line) => (line.trim() ? ` ${line}` : ''))
85
- .join('\n') +
86
- '\n'
140
+ function generateReactNativeTargetBlock({ targetName, deploymentTarget, extensionType: _extensionType, podsRbContent, excludedPackages, }) {
141
+ const customPods = indentCustomPods(podsRbContent);
142
+ const packages = (excludedPackages ?? [])
143
+ .map((p) => p.trim())
144
+ .filter(Boolean);
145
+ const excludeLine = packages.length > 0
146
+ ? `\n ${exports.EXCLUDED_PACKAGES_MARKER} ${packages.join(',')}`
87
147
  : '';
148
+ // App Clips still use search_paths here; framework embedding for the clip
149
+ // product is handled by a dedicated PBX shell phase (inherit! :complete
150
+ // breaks ExpoModulesCore resolution under nested targets).
88
151
  return `
89
152
  target '${targetName}' do
90
153
  platform :ios, '${deploymentTarget}'
91
- inherit! :search_paths${customPods}
154
+ inherit! :search_paths${excludeLine}${customPods}
92
155
  end
93
156
  `;
94
157
  }
@@ -118,17 +181,9 @@ exports.mainTargetUsesFrameworks = mainTargetUsesFrameworks;
118
181
  */
119
182
  function generateStandaloneTargetBlock({ targetName, deploymentTarget, useFrameworks, podsRbContent, }) {
120
183
  const frameworksLine = useFrameworks
121
- ? ` use_frameworks! :linkage => :static\n`
122
- : '';
123
- // Indent pods.rb content to match target block indentation
124
- const customPods = podsRbContent
125
- ? '\n' +
126
- podsRbContent
127
- .split('\n')
128
- .map((line) => (line.trim() ? ` ${line}` : ''))
129
- .join('\n') +
130
- '\n'
184
+ ? ' use_frameworks! :linkage => :static\n'
131
185
  : '';
186
+ const customPods = indentCustomPods(podsRbContent);
132
187
  return `
133
188
  target '${targetName}' do
134
189
  ${frameworksLine} platform :ios, '${deploymentTarget}'${customPods}
@@ -136,40 +191,35 @@ ${frameworksLine} platform :ios, '${deploymentTarget}'${customPods}
136
191
  `;
137
192
  }
138
193
  exports.generateStandaloneTargetBlock = generateStandaloneTargetBlock;
194
+ /**
195
+ * Standalone targets are inserted as siblings AFTER the main target's closing
196
+ * `end`, which prevents CocoaPods from auto-generating Expo module providers.
197
+ */
198
+ function insertStandaloneTargetBlock(podfileContent, targetBlock, logger) {
199
+ // The main target is the outermost block in a standard Expo Podfile, so its
200
+ // closing 'end' is the last one in the file.
201
+ const lastEndMatch = podfileContent.match(/\bend\b(?!.*\bend\b)/s);
202
+ if (!lastEndMatch) {
203
+ throw new Error('Could not find any end keyword in Podfile');
204
+ }
205
+ const mainTargetEndIndex = lastEndMatch.index + lastEndMatch[0].length;
206
+ logger?.log(`Inserting standalone target after main target's closing 'end' at position ${mainTargetEndIndex}`);
207
+ return (podfileContent.slice(0, mainTargetEndIndex) +
208
+ '\n\n' +
209
+ targetBlock.trim() +
210
+ podfileContent.slice(mainTargetEndIndex));
211
+ }
139
212
  /**
140
213
  * Insert a target block into a Podfile.
141
214
  * React Native targets are nested inside main app to inherit dependencies.
142
215
  * Standalone targets are inserted as siblings to avoid Expo module autolinking.
143
216
  */
144
- function insertTargetBlock(podfileContent, targetBlock, standalone = false, logger) {
217
+ function insertTargetBlock(podfileContent, targetBlock, options = {}) {
218
+ const { standalone = false, logger } = options;
145
219
  if (standalone) {
146
- // Standalone targets: insert as sibling AFTER main target's closing 'end'
147
- // This prevents CocoaPods from auto-generating Expo module providers
148
- // Find the last 'end' in the Podfile - this should be the main target's closing 'end'
149
- // since the main target is the outermost block in a standard Expo Podfile
150
- const lastEndMatch = podfileContent.match(/\bend\b(?!.*\bend\b)/s);
151
- if (!lastEndMatch) {
152
- throw new Error('Could not find any end keyword in Podfile');
153
- }
154
- const mainTargetEndIndex = lastEndMatch.index + lastEndMatch[0].length;
155
- if (logger) {
156
- logger.log(`Inserting standalone target after main target's closing 'end' at position ${mainTargetEndIndex}`);
157
- }
158
- else {
159
- console.log(`[expo-targets] Inserting standalone target after main target's closing 'end' at position ${mainTargetEndIndex}`);
160
- }
161
- // Insert after main target's closing 'end'
162
- return (podfileContent.slice(0, mainTargetEndIndex) +
163
- '\n\n' +
164
- targetBlock.trim() +
165
- podfileContent.slice(mainTargetEndIndex));
166
- }
167
- if (logger) {
168
- logger.log('Inserting React Native target nested inside main target');
169
- }
170
- else {
171
- console.log('[expo-targets] Inserting React Native target nested inside main target');
220
+ return insertStandaloneTargetBlock(podfileContent, targetBlock, logger);
172
221
  }
222
+ logger?.log('Inserting React Native target nested inside main target');
173
223
  // React Native targets: nest inside main target before post_install
174
224
  const postInstallIndex = podfileContent.indexOf('post_install do');
175
225
  if (postInstallIndex !== -1) {
@@ -194,56 +244,53 @@ function hasTargetBlock(podfileContent, targetName) {
194
244
  }
195
245
  exports.hasTargetBlock = hasTargetBlock;
196
246
  /**
197
- * Remove an existing target block from a Podfile.
198
- * Finds the target declaration and removes it along with its entire do/end block.
247
+ * Find the index just past the `end` that closes the block opened at
248
+ * `afterDoIndex`, counting every Ruby keyword that requires an `end`.
199
249
  */
200
- function removeTargetBlock(podfileContent, targetName) {
201
- // Find the target block
202
- const targetRegex = new RegExp(`target\\s+['"]${targetName}['"]\\s+do`, 'g');
203
- const targetMatch = targetRegex.exec(podfileContent);
204
- if (!targetMatch) {
205
- return podfileContent; // Target doesn't exist, nothing to remove
206
- }
207
- // Find the corresponding closing 'end' by counting nested block pairs
208
- const startIndex = targetMatch.index;
209
- const afterDoIndex = targetMatch.index + targetMatch[0].length;
210
- // Start at depth 1 because we're already inside the target block (after 'do')
211
- let depth = 1;
212
- // Match all Ruby block keywords that require 'end'
250
+ function findBlockEndIndex(podfileContent, afterDoIndex) {
213
251
  const blockRegex = /\b(do|if|unless|case|begin|class|module|def|end)\b/g;
214
252
  blockRegex.lastIndex = afterDoIndex;
215
- let match;
216
- let targetEndIndex = -1;
217
- while ((match = blockRegex.exec(podfileContent)) !== null) {
253
+ // Start at depth 1 because we're already inside the block (after 'do').
254
+ let depth = 1;
255
+ let match = blockRegex.exec(podfileContent);
256
+ while (match !== null) {
218
257
  if (match[1] === 'end') {
219
258
  depth--;
220
259
  if (depth === 0) {
221
- // Found the matching 'end' for target
222
- targetEndIndex = match.index + match[0].length;
223
- break;
260
+ return match.index + match[0].length;
224
261
  }
225
262
  }
226
263
  else {
227
- // All other keywords open a block
228
264
  depth++;
229
265
  }
266
+ match = blockRegex.exec(podfileContent);
230
267
  }
268
+ return -1;
269
+ }
270
+ /**
271
+ * Remove an existing target block from a Podfile.
272
+ * Finds the target declaration and removes it along with its entire do/end block.
273
+ */
274
+ function removeTargetBlock(podfileContent, targetName) {
275
+ const targetRegex = new RegExp(`target\\s+['"]${targetName}['"]\\s+do`, 'g');
276
+ const targetMatch = targetRegex.exec(podfileContent);
277
+ if (!targetMatch) {
278
+ return podfileContent; // Target doesn't exist, nothing to remove
279
+ }
280
+ const startIndex = targetMatch.index;
281
+ const targetEndIndex = findBlockEndIndex(podfileContent, targetMatch.index + targetMatch[0].length);
231
282
  if (targetEndIndex === -1) {
232
283
  throw new Error(`Could not find closing end for target '${targetName}'`);
233
284
  }
234
- // Remove the target block including surrounding whitespace
235
- // Look back to remove leading whitespace/newlines
285
+ // Remove the target block including leading whitespace/newlines
236
286
  let removeStart = startIndex;
237
287
  while (removeStart > 0 && /[\s\n]/.test(podfileContent[removeStart - 1])) {
238
288
  removeStart--;
239
289
  }
240
- // Look forward to remove trailing newlines (but keep one newline if present)
241
- let removeEnd = targetEndIndex;
242
- while (removeEnd < podfileContent.length &&
243
- podfileContent[removeEnd] === '\n') {
244
- removeEnd++;
245
- break; // Keep only one trailing newline
246
- }
290
+ // Drop at most one trailing newline
291
+ const removeEnd = podfileContent[targetEndIndex] === '\n'
292
+ ? targetEndIndex + 1
293
+ : targetEndIndex;
247
294
  return podfileContent.slice(0, removeStart) + podfileContent.slice(removeEnd);
248
295
  }
249
296
  exports.removeTargetBlock = removeTargetBlock;
@@ -267,7 +314,7 @@ function ensureMainTargetUsesFrameworks(podfileContent, mainTargetName) {
267
314
  }
268
315
  // Find insertion point: after "target 'Name' do" line
269
316
  const targetLineRegex = new RegExp(`(target\\s+'${mainTargetName}'\\s+do\\s*\\n)`, 'm');
270
- return podfileContent.replace(targetLineRegex, `$1 use_frameworks! :linkage => :static\n\n`);
317
+ return podfileContent.replace(targetLineRegex, '$1 use_frameworks! :linkage => :static\n\n');
271
318
  }
272
319
  exports.ensureMainTargetUsesFrameworks = ensureMainTargetUsesFrameworks;
273
320
  /**
@@ -285,16 +332,14 @@ function updatePodfilePlatform(podfileContent, deploymentTarget) {
285
332
  const platformLineRegex = /(platform\s+:ios\s*,\s*)(?:podfile_properties\[['"]ios\.deploymentTarget['"]\]\s*\|\|\s*)?(['"])([^'"]+)(['"])/;
286
333
  const match = podfileContent.match(platformLineRegex);
287
334
  if (!match) {
288
- console.warn('[expo-targets] Could not find platform :ios line in Podfile to update');
289
335
  return podfileContent;
290
336
  }
291
337
  const currentVersion = match[3];
292
338
  const quoteChar = match[2]; // Preserve original quote style (' or ")
293
- const currentVersionNum = parseFloat(currentVersion);
294
- const newVersionNum = parseFloat(deploymentTarget);
339
+ const currentVersionNum = Number.parseFloat(currentVersion);
340
+ const newVersionNum = Number.parseFloat(deploymentTarget);
295
341
  // Only update if the new version is higher
296
342
  if (newVersionNum > currentVersionNum) {
297
- console.log(`[expo-targets] Updating Podfile platform from iOS ${currentVersion} to ${deploymentTarget}`);
298
343
  // Replace the entire platform line with a simple version
299
344
  // Use the same quote style as the original
300
345
  return podfileContent.replace(platformLineRegex, `$1${quoteChar}${deploymentTarget}${quoteChar}`);
@@ -302,37 +347,15 @@ function updatePodfilePlatform(podfileContent, deploymentTarget) {
302
347
  return podfileContent;
303
348
  }
304
349
  exports.updatePodfilePlatform = updatePodfilePlatform;
350
+ const STANDALONE_DEPLOYMENT_START = ' # [expo-targets-standalone-start]';
351
+ const STANDALONE_DEPLOYMENT_END = ' # [expo-targets-standalone-end]';
305
352
  /**
306
- * Inject deployment target fixes into the main app's existing post_install hook.
307
- * This ensures extension targets maintain their correct deployment targets even after
308
- * react_native_post_install runs, which might override them.
309
- *
310
- * Fixes both the Pods Xcode project targets AND the xcconfig files that extensions reference.
353
+ * Ruby that pins one extension target's deployment target, both in the Pods
354
+ * project and in the xcconfig the extension references.
311
355
  */
312
- function ensureExtensionDeploymentTargets(podfileContent, extensions) {
313
- if (extensions.length === 0) {
314
- return podfileContent;
315
- }
316
- const START_MARKER = ' # [expo-targets-standalone-start]';
317
- const END_MARKER = ' # [expo-targets-standalone-end]';
318
- // Remove any existing block between markers (idempotent)
319
- const startIndex = podfileContent.indexOf(START_MARKER);
320
- if (startIndex !== -1) {
321
- const endIndex = podfileContent.indexOf(END_MARKER, startIndex);
322
- if (endIndex !== -1) {
323
- const beforeBlock = podfileContent.substring(0, startIndex);
324
- const afterBlock = podfileContent.substring(endIndex + END_MARKER.length);
325
- podfileContent = beforeBlock.trimEnd() + '\n' + afterBlock.trimStart();
326
- }
327
- }
328
- // Generate the deployment target fix code to inject
329
- const fixCode = `${START_MARKER}
330
- # Fix standalone extension deployment targets
331
- installer.pods_project.targets.each do |target|
332
- ${extensions
333
- .map((ext) => ` if target.name.include?('${ext.targetName}')
356
+ const DEPLOYMENT_TARGET_RULE = ` if target.name.include?('{{TARGET_NAME}}')
334
357
  target.build_configurations.each do |config|
335
- config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '${ext.deploymentTarget}'
358
+ config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '{{DEPLOYMENT_TARGET}}'
336
359
  # Also update the xcconfig file
337
360
  xcconfig_path = config.base_configuration_reference.real_path
338
361
  if xcconfig_path && File.exist?(xcconfig_path)
@@ -340,80 +363,56 @@ ${extensions
340
363
  # Remove existing IPHONEOS_DEPLOYMENT_TARGET if present
341
364
  xcconfig_content.gsub!(/^IPHONEOS_DEPLOYMENT_TARGET = .*$/, '')
342
365
  # Add deployment target
343
- xcconfig_content += "\\nIPHONEOS_DEPLOYMENT_TARGET = ${ext.deploymentTarget}\\n"
366
+ xcconfig_content += "\\nIPHONEOS_DEPLOYMENT_TARGET = {{DEPLOYMENT_TARGET}}\\n"
344
367
  File.write(xcconfig_path, xcconfig_content)
345
368
  end
346
369
  end
347
- end`)
348
- .join('\n')}
370
+ end`;
371
+ function buildDeploymentTargetFix(extensions) {
372
+ const rules = extensions
373
+ .map((ext) => DEPLOYMENT_TARGET_RULE.replace(/{{TARGET_NAME}}/g, ext.targetName).replace(/{{DEPLOYMENT_TARGET}}/g, ext.deploymentTarget))
374
+ .join('\n');
375
+ return `${STANDALONE_DEPLOYMENT_START}
376
+ # Fix standalone extension deployment targets
377
+ installer.pods_project.targets.each do |target|
378
+ ${rules}
349
379
  end
350
- ${END_MARKER}`;
351
- // Find the post_install block and its closing 'end' by counting Ruby block keywords
352
- // Ruby uses 'end' to close: do, if, unless, def, class, module, begin, case, while, until
353
- const lines = podfileContent.split('\n');
354
- let postInstallStartLine = -1;
355
- let postInstallEndLine = -1;
356
- let depth = 0;
357
- // Ruby keywords that open blocks requiring 'end'
358
- const blockOpenRegex = /\b(do|if|unless|def|class|module|begin|case|while|until)\b/g;
359
- for (let i = 0; i < lines.length; i++) {
360
- const line = lines[i];
361
- if (line.includes('post_install do')) {
362
- postInstallStartLine = i;
363
- depth = 1;
364
- continue;
365
- }
366
- if (postInstallStartLine !== -1) {
367
- // Count all Ruby block openers and 'end' to find the matching end
368
- const openMatches = (line.match(blockOpenRegex) || []).length;
369
- const endMatches = (line.match(/\bend\b/g) || []).length;
370
- depth += openMatches - endMatches;
371
- if (depth === 0 && endMatches > 0) {
372
- postInstallEndLine = i;
373
- break;
374
- }
375
- }
376
- }
377
- if (postInstallStartLine === -1 || postInstallEndLine === -1) {
380
+ ${STANDALONE_DEPLOYMENT_END}`;
381
+ }
382
+ /**
383
+ * Inject deployment target fixes into the main app's existing post_install hook.
384
+ * This ensures extension targets maintain their correct deployment targets even after
385
+ * react_native_post_install runs, which might override them.
386
+ *
387
+ * Fixes both the Pods Xcode project targets AND the xcconfig files that extensions reference.
388
+ */
389
+ function ensureExtensionDeploymentTargets(podfileContent, extensions) {
390
+ if (extensions.length === 0) {
378
391
  return podfileContent;
379
392
  }
393
+ const content = removeMarkedBlock(podfileContent, STANDALONE_DEPLOYMENT_START, STANDALONE_DEPLOYMENT_END);
394
+ const lines = content.split('\n');
395
+ const postInstallEndLine = findPostInstallEndLine(lines);
396
+ if (postInstallEndLine === -1) {
397
+ return content;
398
+ }
380
399
  // Insert before the closing 'end' of post_install
381
400
  const beforeLines = lines.slice(0, postInstallEndLine).join('\n');
382
401
  const afterLines = lines.slice(postInstallEndLine).join('\n');
383
- return beforeLines + '\n' + fixCode + '\n' + afterLines;
402
+ return `${beforeLines}\n${buildDeploymentTargetFix(extensions)}\n${afterLines}`;
384
403
  }
385
404
  exports.ensureExtensionDeploymentTargets = ensureExtensionDeploymentTargets;
405
+ const REACT_NATIVE_PATHS_START = ' # [expo-targets-start]';
406
+ const REACT_NATIVE_PATHS_END = ' # [expo-targets-end]';
386
407
  /**
387
- * Ensure React Native extension targets have proper framework search paths.
388
- * Uses START/END markers for reliable, idempotent injection.
408
+ * Ruby that copies the Swift-relevant search paths from the main app's Pods
409
+ * target (and its xcconfig) onto one React Native extension target.
389
410
  */
390
- function ensureReactNativeExtensionFrameworkPaths(podfileContent, extensions, mainTargetName) {
391
- if (extensions.length === 0) {
392
- return podfileContent;
393
- }
394
- const START_MARKER = ' # [expo-targets-start]';
395
- const END_MARKER = ' # [expo-targets-end]';
396
- // Remove any existing block between markers (idempotent)
397
- const startIndex = podfileContent.indexOf(START_MARKER);
398
- if (startIndex !== -1) {
399
- const endIndex = podfileContent.indexOf(END_MARKER, startIndex);
400
- if (endIndex !== -1) {
401
- const beforeBlock = podfileContent.substring(0, startIndex);
402
- const afterBlock = podfileContent.substring(endIndex + END_MARKER.length);
403
- podfileContent = beforeBlock.trimEnd() + '\n' + afterBlock.trimStart();
404
- }
405
- }
406
- // Generate fresh code with markers
407
- const mainPodsTarget = `Pods-${mainTargetName}`;
408
- const fixCode = `${START_MARKER}
409
- # Fix React Native extension framework search paths
410
- installer.pods_project.targets.each do |target|
411
- ${extensions
412
- .map((ext) => ` if target.name.include?('${ext.targetName}')
411
+ const FRAMEWORK_PATHS_RULE = ` if target.name.include?('{{TARGET_NAME}}')
413
412
  target.build_configurations.each do |config|
414
- config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '${ext.deploymentTarget}'
413
+ config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '{{DEPLOYMENT_TARGET}}'
415
414
  # Copy framework search paths from main app target
416
- main_target = installer.pods_project.targets.find { |t| t.name == '${mainPodsTarget}' }
415
+ main_target = installer.pods_project.targets.find { |t| t.name == '{{MAIN_PODS_TARGET}}' }
417
416
  if main_target
418
417
  main_config = main_target.build_configurations.find { |c| c.name == config.name }
419
418
  if main_config && main_config.build_settings['FRAMEWORK_SEARCH_PATHS']
@@ -431,7 +430,7 @@ ${extensions
431
430
  # Remove existing IPHONEOS_DEPLOYMENT_TARGET if present
432
431
  xcconfig_content.gsub!(/^IPHONEOS_DEPLOYMENT_TARGET = .*$/, '')
433
432
  # Add deployment target
434
- xcconfig_content += "\\nIPHONEOS_DEPLOYMENT_TARGET = ${ext.deploymentTarget}\\n"
433
+ xcconfig_content += "\\nIPHONEOS_DEPLOYMENT_TARGET = {{DEPLOYMENT_TARGET}}\\n"
435
434
  # Copy framework search paths and other Swift-related settings from main app's xcconfig
436
435
  if main_target
437
436
  main_config = main_target.build_configurations.find { |c| c.name == config.name }
@@ -469,57 +468,117 @@ ${extensions
469
468
  File.write(xcconfig_path, xcconfig_content)
470
469
  end
471
470
  end
472
- end`)
473
- .join('\n')}
471
+ end`;
472
+ function buildFrameworkPathsFix(extensions, mainTargetName) {
473
+ const mainPodsTarget = `Pods-${mainTargetName}`;
474
+ const rules = extensions
475
+ .map((ext) => FRAMEWORK_PATHS_RULE.replace(/{{TARGET_NAME}}/g, ext.targetName)
476
+ .replace(/{{DEPLOYMENT_TARGET}}/g, ext.deploymentTarget)
477
+ .replace(/{{MAIN_PODS_TARGET}}/g, mainPodsTarget))
478
+ .join('\n');
479
+ return `${REACT_NATIVE_PATHS_START}
480
+ # Fix React Native extension framework search paths
481
+ installer.pods_project.targets.each do |target|
482
+ ${rules}
474
483
  end
475
- ${END_MARKER}`;
476
- // Find where to inject (after react_native_post_install closing paren)
477
- // Use line-by-line approach to find the closing paren properly
478
- const lines = podfileContent.split('\n');
479
- let reactNativeStartLine = -1;
480
- let reactNativeEndLine = -1;
481
- let parenDepth = 0;
482
- for (let i = 0; i < lines.length; i++) {
483
- const line = lines[i];
484
- if (line.includes('react_native_post_install(')) {
485
- reactNativeStartLine = i;
486
- parenDepth =
487
- (line.match(/\(/g) || []).length - (line.match(/\)/g) || []).length;
488
- continue;
489
- }
490
- if (reactNativeStartLine !== -1) {
491
- const openParens = (line.match(/\(/g) || []).length;
492
- const closeParens = (line.match(/\)/g) || []).length;
493
- parenDepth += openParens - closeParens;
494
- if (parenDepth === 0 && closeParens > 0) {
495
- reactNativeEndLine = i;
496
- break;
497
- }
498
- }
499
- }
500
- if (reactNativeStartLine === -1 || reactNativeEndLine === -1) {
501
- console.warn('[expo-targets] Could not find react_native_post_install');
484
+ ${REACT_NATIVE_PATHS_END}`;
485
+ }
486
+ /**
487
+ * Ensure React Native extension targets have proper framework search paths.
488
+ * Uses START/END markers for reliable, idempotent injection.
489
+ */
490
+ function ensureReactNativeExtensionFrameworkPaths(podfileContent, extensions, mainTargetName) {
491
+ if (extensions.length === 0) {
502
492
  return podfileContent;
503
493
  }
504
- // Find the position after the closing paren
505
- const beforeLines = lines.slice(0, reactNativeEndLine + 1).join('\n');
506
- const insertPosition = beforeLines.length;
507
- const beforeInsert = podfileContent.substring(0, insertPosition);
508
- const afterInsert = podfileContent.substring(insertPosition);
509
- // Insert our code with proper newlines
510
- // Ensure newline before our code
494
+ const content = removeMarkedBlock(podfileContent, REACT_NATIVE_PATHS_START, REACT_NATIVE_PATHS_END);
495
+ const lines = content.split('\n');
496
+ const endLine = findReactNativePostInstallEndLine(lines);
497
+ if (endLine === -1) {
498
+ return content;
499
+ }
500
+ // Insert right after the closing paren of react_native_post_install
501
+ const insertPosition = lines.slice(0, endLine + 1).join('\n').length;
502
+ const beforeInsert = content.substring(0, insertPosition);
503
+ const afterInsert = content.substring(insertPosition);
511
504
  const needsNewlineBefore = !beforeInsert.endsWith('\n');
512
- // Check what comes after - preserve any existing closing 'end' for post_install
513
- const afterTrimmed = afterInsert.trimStart();
514
- const hasPostInstallEnd = afterTrimmed.startsWith('end');
515
- // Insert: newline + our code + newline (preserve existing post_install end if present)
516
- // Important: preserve indentation of afterInsert to maintain valid Podfile structure
517
- // Using trimStart() would break the " end" indentation that ensureExtensionDeploymentTargets relies on
505
+ // Keep the indentation of what follows: trimming it would break the " end"
506
+ // of post_install that ensureExtensionDeploymentTargets relies on.
518
507
  return (beforeInsert.trimEnd() +
519
508
  (needsNewlineBefore ? '\n' : '') +
520
- fixCode +
509
+ buildFrameworkPathsFix(extensions, mainTargetName) +
521
510
  '\n' +
522
511
  afterInsert);
523
512
  }
524
513
  exports.ensureReactNativeExtensionFrameworkPaths = ensureReactNativeExtensionFrameworkPaths;
514
+ const EXCLUDED_PACKAGES_POST_INTEGRATE_START = '# [expo-targets-excluded-packages-start]';
515
+ const EXCLUDED_PACKAGES_POST_INTEGRATE_END = '# [expo-targets-excluded-packages-end]';
516
+ function rubySingleQuoted(value) {
517
+ return `'${value.replace(/\\/g, '\\\\').replace(/'/g, "\\'")}'`;
518
+ }
519
+ /** Ruby body lines for the excludedPackages post_integrate hook (minus hash). */
520
+ const EXCLUDED_PACKAGES_RUBY_PREFIX = [
521
+ EXCLUDED_PACKAGES_POST_INTEGRATE_START,
522
+ '# Strip host-only Expo packages from nested RN extension ExpoModulesProviders.',
523
+ '# Nested use_expo_modules!(exclude:) is a no-op (parent AutolinkingManager);',
524
+ '# Expo regenerates the provider during integrate_user_targets after post_install.',
525
+ 'post_integrate do |installer|',
526
+ ' exclusions = {',
527
+ ];
528
+ const EXCLUDED_PACKAGES_RUBY_SUFFIX = [
529
+ ' }',
530
+ ' exclusions.each do |target_name, packages|',
531
+ ' next if packages.nil? || packages.empty?',
532
+ ' support_dir = File.join(installer.sandbox.root, \'Target Support Files\', "Pods-#{target_name}")',
533
+ " script_path = File.join(support_dir, 'expo-configure-project.sh')",
534
+ " provider_path = File.join(support_dir, 'ExpoModulesProvider.swift')",
535
+ ' unless File.exist?(script_path)',
536
+ ' Pod::UI.warn "[expo-targets] Missing #{script_path}; skip excludedPackages for #{target_name}"',
537
+ ' next',
538
+ ' end',
539
+ ' content = File.read(script_path)',
540
+ ' packages.each do |pkg|',
541
+ ' content.gsub!(/\\s*"#{Regexp.escape(pkg)}"/, \'\')',
542
+ ' end',
543
+ ' File.write(script_path, content)',
544
+ " ok = system({ 'PODS_ROOT' => installer.sandbox.root.to_s }, 'bash', script_path)",
545
+ ' unless ok',
546
+ ' raise "[expo-targets] Failed to regenerate ExpoModulesProvider for #{target_name} after excludedPackages strip"',
547
+ ' end',
548
+ ' unless File.exist?(provider_path)',
549
+ ' raise "[expo-targets] ExpoModulesProvider missing after regenerate for #{target_name}"',
550
+ ' end',
551
+ ' Pod::UI.puts "[expo-targets] Applied excludedPackages to #{target_name}: #{packages.join(\', \')}"',
552
+ ' end',
553
+ 'end',
554
+ EXCLUDED_PACKAGES_POST_INTEGRATE_END,
555
+ '',
556
+ ];
557
+ function buildExcludedPackagesPostIntegrate(exclusions) {
558
+ const hashEntries = exclusions
559
+ .map(({ targetName, packages }) => {
560
+ const pkgs = packages.map(rubySingleQuoted).join(', ');
561
+ return ` ${rubySingleQuoted(targetName)} => [${pkgs}]`;
562
+ })
563
+ .join(',\n');
564
+ return [
565
+ ...EXCLUDED_PACKAGES_RUBY_PREFIX,
566
+ hashEntries,
567
+ ...EXCLUDED_PACKAGES_RUBY_SUFFIX,
568
+ ].join('\n');
569
+ }
570
+ /**
571
+ * Ensure a top-level `post_integrate` hook strips `excludedPackages` from each
572
+ * nested RN target's `expo-configure-project.sh` and regenerates its provider.
573
+ * Idempotent via START/END markers. No exclusions → remove any prior hook.
574
+ */
575
+ function ensureExcludedPackagesPostIntegrate(podfileContent, exclusions) {
576
+ const without = removeMarkedBlock(podfileContent, EXCLUDED_PACKAGES_POST_INTEGRATE_START, EXCLUDED_PACKAGES_POST_INTEGRATE_END);
577
+ if (exclusions.length === 0) {
578
+ return without.trimEnd() + '\n';
579
+ }
580
+ const block = buildExcludedPackagesPostIntegrate(exclusions);
581
+ return `${without.trimEnd()}\n\n${block}`;
582
+ }
583
+ exports.ensureExcludedPackagesPostIntegrate = ensureExcludedPackagesPostIntegrate;
525
584
  //# sourceMappingURL=podfile.js.map