@use-voltra/ios-client 2.1.1 → 2.3.0

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 (365) hide show
  1. package/README.md +61 -8
  2. package/Voltra.podspec +1 -0
  3. package/build/commonjs/dynamic-widget/api.js +15 -0
  4. package/build/commonjs/dynamic-widget/api.js.map +1 -0
  5. package/build/commonjs/events.js +23 -0
  6. package/build/commonjs/events.js.map +1 -1
  7. package/build/commonjs/index.js +74 -7
  8. package/build/commonjs/index.js.map +1 -1
  9. package/build/commonjs/live-activity/api.js +3 -1
  10. package/build/commonjs/live-activity/api.js.map +1 -1
  11. package/build/commonjs/live-activity/dynamic-api.js +173 -0
  12. package/build/commonjs/live-activity/dynamic-api.js.map +1 -0
  13. package/build/commonjs/native/NativeVoltra.js.map +1 -1
  14. package/build/commonjs/utils/enableDynamicLiveActivityHotReload.js +47 -0
  15. package/build/commonjs/utils/enableDynamicLiveActivityHotReload.js.map +1 -0
  16. package/build/commonjs/utils/enableWidgetHotReload.js +8 -11
  17. package/build/commonjs/utils/enableWidgetHotReload.js.map +1 -1
  18. package/build/commonjs/utils/useUpdateOnHMR.js +3 -7
  19. package/build/commonjs/utils/useUpdateOnHMR.js.map +1 -1
  20. package/build/commonjs/widgets/server-credentials.js +9 -0
  21. package/build/commonjs/widgets/server-credentials.js.map +1 -1
  22. package/build/commonjs/widgets/server-update.js +78 -0
  23. package/build/commonjs/widgets/server-update.js.map +1 -0
  24. package/build/module/dynamic-widget/api.js +10 -0
  25. package/build/module/dynamic-widget/api.js.map +1 -0
  26. package/build/module/events.js +23 -0
  27. package/build/module/events.js.map +1 -1
  28. package/build/module/index.js +4 -0
  29. package/build/module/index.js.map +1 -1
  30. package/build/module/live-activity/api.js +2 -2
  31. package/build/module/live-activity/api.js.map +1 -1
  32. package/build/module/live-activity/dynamic-api.js +167 -0
  33. package/build/module/live-activity/dynamic-api.js.map +1 -0
  34. package/build/module/native/NativeVoltra.js.map +1 -1
  35. package/build/module/utils/enableDynamicLiveActivityHotReload.js +43 -0
  36. package/build/module/utils/enableDynamicLiveActivityHotReload.js.map +1 -0
  37. package/build/module/utils/enableWidgetHotReload.js +9 -11
  38. package/build/module/utils/enableWidgetHotReload.js.map +1 -1
  39. package/build/module/utils/useUpdateOnHMR.js +3 -7
  40. package/build/module/utils/useUpdateOnHMR.js.map +1 -1
  41. package/build/module/widgets/server-credentials.js +9 -0
  42. package/build/module/widgets/server-credentials.js.map +1 -1
  43. package/build/module/widgets/server-update.js +72 -0
  44. package/build/module/widgets/server-update.js.map +1 -0
  45. package/build/typescript/commonjs/dynamic-widget/api.d.ts +8 -0
  46. package/build/typescript/commonjs/dynamic-widget/api.d.ts.map +1 -0
  47. package/build/typescript/commonjs/events.d.ts +7 -0
  48. package/build/typescript/commonjs/events.d.ts.map +1 -1
  49. package/build/typescript/commonjs/index.d.ts +4 -0
  50. package/build/typescript/commonjs/index.d.ts.map +1 -1
  51. package/build/typescript/commonjs/live-activity/api.d.ts +7 -0
  52. package/build/typescript/commonjs/live-activity/api.d.ts.map +1 -1
  53. package/build/typescript/commonjs/live-activity/dynamic-api.d.ts +54 -0
  54. package/build/typescript/commonjs/live-activity/dynamic-api.d.ts.map +1 -0
  55. package/build/typescript/commonjs/native/NativeVoltra.d.ts +21 -0
  56. package/build/typescript/commonjs/native/NativeVoltra.d.ts.map +1 -1
  57. package/build/typescript/commonjs/types.d.ts +1 -1
  58. package/build/typescript/commonjs/types.d.ts.map +1 -1
  59. package/build/typescript/commonjs/utils/enableDynamicLiveActivityHotReload.d.ts +15 -0
  60. package/build/typescript/commonjs/utils/enableDynamicLiveActivityHotReload.d.ts.map +1 -0
  61. package/build/typescript/commonjs/utils/enableWidgetHotReload.d.ts +5 -7
  62. package/build/typescript/commonjs/utils/enableWidgetHotReload.d.ts.map +1 -1
  63. package/build/typescript/commonjs/utils/useUpdateOnHMR.d.ts +0 -3
  64. package/build/typescript/commonjs/utils/useUpdateOnHMR.d.ts.map +1 -1
  65. package/build/typescript/commonjs/widgets/server-credentials.d.ts +8 -0
  66. package/build/typescript/commonjs/widgets/server-credentials.d.ts.map +1 -1
  67. package/build/typescript/commonjs/widgets/server-update.d.ts +64 -0
  68. package/build/typescript/commonjs/widgets/server-update.d.ts.map +1 -0
  69. package/build/typescript/module/dynamic-widget/api.d.ts +8 -0
  70. package/build/typescript/module/dynamic-widget/api.d.ts.map +1 -0
  71. package/build/typescript/module/events.d.ts +7 -0
  72. package/build/typescript/module/events.d.ts.map +1 -1
  73. package/build/typescript/module/index.d.ts +4 -0
  74. package/build/typescript/module/index.d.ts.map +1 -1
  75. package/build/typescript/module/live-activity/api.d.ts +7 -0
  76. package/build/typescript/module/live-activity/api.d.ts.map +1 -1
  77. package/build/typescript/module/live-activity/dynamic-api.d.ts +54 -0
  78. package/build/typescript/module/live-activity/dynamic-api.d.ts.map +1 -0
  79. package/build/typescript/module/native/NativeVoltra.d.ts +21 -0
  80. package/build/typescript/module/native/NativeVoltra.d.ts.map +1 -1
  81. package/build/typescript/module/types.d.ts +1 -1
  82. package/build/typescript/module/types.d.ts.map +1 -1
  83. package/build/typescript/module/utils/enableDynamicLiveActivityHotReload.d.ts +15 -0
  84. package/build/typescript/module/utils/enableDynamicLiveActivityHotReload.d.ts.map +1 -0
  85. package/build/typescript/module/utils/enableWidgetHotReload.d.ts +5 -7
  86. package/build/typescript/module/utils/enableWidgetHotReload.d.ts.map +1 -1
  87. package/build/typescript/module/utils/useUpdateOnHMR.d.ts +0 -3
  88. package/build/typescript/module/utils/useUpdateOnHMR.d.ts.map +1 -1
  89. package/build/typescript/module/widgets/server-credentials.d.ts +8 -0
  90. package/build/typescript/module/widgets/server-credentials.d.ts.map +1 -1
  91. package/build/typescript/module/widgets/server-update.d.ts +64 -0
  92. package/build/typescript/module/widgets/server-update.d.ts.map +1 -0
  93. package/expo-plugin/build/cjs/constants.js +20 -1
  94. package/expo-plugin/build/cjs/constants.js.map +1 -1
  95. package/expo-plugin/build/cjs/index.js +9 -1
  96. package/expo-plugin/build/cjs/index.js.map +1 -1
  97. package/expo-plugin/build/cjs/ios/index.js +1 -0
  98. package/expo-plugin/build/cjs/ios/index.js.map +1 -1
  99. package/expo-plugin/build/cjs/ios/infoPlist.js +28 -5
  100. package/expo-plugin/build/cjs/ios/infoPlist.js.map +1 -1
  101. package/expo-plugin/build/cjs/ios/serverUpdate.js +25 -0
  102. package/expo-plugin/build/cjs/ios/serverUpdate.js.map +1 -0
  103. package/expo-plugin/build/cjs/ios-widget/clientRendered.js +4 -4
  104. package/expo-plugin/build/cjs/ios-widget/clientRendered.js.map +1 -1
  105. package/expo-plugin/build/cjs/ios-widget/clientRenderedPrerender.js +5 -5
  106. package/expo-plugin/build/cjs/ios-widget/clientRenderedPrerender.js.map +1 -1
  107. package/expo-plugin/build/cjs/ios-widget/dynamic-live-activity/swift.js +130 -0
  108. package/expo-plugin/build/cjs/ios-widget/dynamic-live-activity/swift.js.map +1 -0
  109. package/expo-plugin/build/cjs/ios-widget/files/index.js +9 -2
  110. package/expo-plugin/build/cjs/ios-widget/files/index.js.map +1 -1
  111. package/expo-plugin/build/cjs/ios-widget/files/infoPlist.js +6 -3
  112. package/expo-plugin/build/cjs/ios-widget/files/infoPlist.js.map +1 -1
  113. package/expo-plugin/build/cjs/ios-widget/files/manifest.js +24 -0
  114. package/expo-plugin/build/cjs/ios-widget/files/manifest.js.map +1 -1
  115. package/expo-plugin/build/cjs/ios-widget/files/swift-utils.js +7 -0
  116. package/expo-plugin/build/cjs/ios-widget/files/swift-utils.js.map +1 -0
  117. package/expo-plugin/build/cjs/ios-widget/files/swift.js +56 -26
  118. package/expo-plugin/build/cjs/ios-widget/files/swift.js.map +1 -1
  119. package/expo-plugin/build/cjs/ios-widget/index.js +9 -3
  120. package/expo-plugin/build/cjs/ios-widget/index.js.map +1 -1
  121. package/expo-plugin/build/cjs/ios-widget/podfile.js +38 -12
  122. package/expo-plugin/build/cjs/ios-widget/podfile.js.map +1 -1
  123. package/expo-plugin/build/cjs/ios-widget/widgetPlist.js +34 -22
  124. package/expo-plugin/build/cjs/ios-widget/widgetPlist.js.map +1 -1
  125. package/expo-plugin/build/cjs/ios-widget/xcode/buildPhases.js +194 -118
  126. package/expo-plugin/build/cjs/ios-widget/xcode/buildPhases.js.map +1 -1
  127. package/expo-plugin/build/cjs/ios-widget/xcode/configurationList.js +30 -22
  128. package/expo-plugin/build/cjs/ios-widget/xcode/configurationList.js.map +1 -1
  129. package/expo-plugin/build/cjs/ios-widget/xcode/fileReferences.js +50 -0
  130. package/expo-plugin/build/cjs/ios-widget/xcode/fileReferences.js.map +1 -0
  131. package/expo-plugin/build/cjs/ios-widget/xcode/groups.js +45 -43
  132. package/expo-plugin/build/cjs/ios-widget/xcode/groups.js.map +1 -1
  133. package/expo-plugin/build/cjs/ios-widget/xcode/index.js +93 -91
  134. package/expo-plugin/build/cjs/ios-widget/xcode/index.js.map +1 -1
  135. package/expo-plugin/build/cjs/ios-widget/xcode/mainAppSettings.js +41 -39
  136. package/expo-plugin/build/cjs/ios-widget/xcode/mainAppSettings.js.map +1 -1
  137. package/expo-plugin/build/cjs/ios-widget/xcode/productFile.js +2 -2
  138. package/expo-plugin/build/cjs/ios-widget/xcode/productFile.js.map +1 -1
  139. package/expo-plugin/build/cjs/ios-widget/xcode/target.js +29 -63
  140. package/expo-plugin/build/cjs/ios-widget/xcode/target.js.map +1 -1
  141. package/expo-plugin/build/cjs/utils/urlScheme.js +36 -14
  142. package/expo-plugin/build/cjs/utils/urlScheme.js.map +1 -1
  143. package/expo-plugin/build/cjs/validation.js +54 -0
  144. package/expo-plugin/build/cjs/validation.js.map +1 -1
  145. package/expo-plugin/build/esm/constants.js +17 -0
  146. package/expo-plugin/build/esm/constants.js.map +1 -1
  147. package/expo-plugin/build/esm/index.js +9 -1
  148. package/expo-plugin/build/esm/index.js.map +1 -1
  149. package/expo-plugin/build/esm/ios/index.js +1 -0
  150. package/expo-plugin/build/esm/ios/index.js.map +1 -1
  151. package/expo-plugin/build/esm/ios/infoPlist.js +28 -5
  152. package/expo-plugin/build/esm/ios/infoPlist.js.map +1 -1
  153. package/expo-plugin/build/esm/ios/serverUpdate.js +21 -0
  154. package/expo-plugin/build/esm/ios/serverUpdate.js.map +1 -0
  155. package/expo-plugin/build/esm/ios-widget/clientRendered.js +5 -5
  156. package/expo-plugin/build/esm/ios-widget/clientRendered.js.map +1 -1
  157. package/expo-plugin/build/esm/ios-widget/clientRenderedPrerender.js +6 -6
  158. package/expo-plugin/build/esm/ios-widget/clientRenderedPrerender.js.map +1 -1
  159. package/expo-plugin/build/esm/ios-widget/dynamic-live-activity/swift.js +122 -0
  160. package/expo-plugin/build/esm/ios-widget/dynamic-live-activity/swift.js.map +1 -0
  161. package/expo-plugin/build/esm/ios-widget/files/index.js +10 -3
  162. package/expo-plugin/build/esm/ios-widget/files/index.js.map +1 -1
  163. package/expo-plugin/build/esm/ios-widget/files/infoPlist.js +6 -3
  164. package/expo-plugin/build/esm/ios-widget/files/infoPlist.js.map +1 -1
  165. package/expo-plugin/build/esm/ios-widget/files/manifest.js +23 -1
  166. package/expo-plugin/build/esm/ios-widget/files/manifest.js.map +1 -1
  167. package/expo-plugin/build/esm/ios-widget/files/swift-utils.js +4 -0
  168. package/expo-plugin/build/esm/ios-widget/files/swift-utils.js.map +1 -0
  169. package/expo-plugin/build/esm/ios-widget/files/swift.js +50 -20
  170. package/expo-plugin/build/esm/ios-widget/files/swift.js.map +1 -1
  171. package/expo-plugin/build/esm/ios-widget/index.js +9 -3
  172. package/expo-plugin/build/esm/ios-widget/index.js.map +1 -1
  173. package/expo-plugin/build/esm/ios-widget/podfile.js +36 -11
  174. package/expo-plugin/build/esm/ios-widget/podfile.js.map +1 -1
  175. package/expo-plugin/build/esm/ios-widget/widgetPlist.js +34 -22
  176. package/expo-plugin/build/esm/ios-widget/widgetPlist.js.map +1 -1
  177. package/expo-plugin/build/esm/ios-widget/xcode/buildPhases.js +194 -117
  178. package/expo-plugin/build/esm/ios-widget/xcode/buildPhases.js.map +1 -1
  179. package/expo-plugin/build/esm/ios-widget/xcode/configurationList.js +31 -22
  180. package/expo-plugin/build/esm/ios-widget/xcode/configurationList.js.map +1 -1
  181. package/expo-plugin/build/esm/ios-widget/xcode/fileReferences.js +45 -0
  182. package/expo-plugin/build/esm/ios-widget/xcode/fileReferences.js.map +1 -0
  183. package/expo-plugin/build/esm/ios-widget/xcode/groups.js +45 -42
  184. package/expo-plugin/build/esm/ios-widget/xcode/groups.js.map +1 -1
  185. package/expo-plugin/build/esm/ios-widget/xcode/index.js +97 -96
  186. package/expo-plugin/build/esm/ios-widget/xcode/index.js.map +1 -1
  187. package/expo-plugin/build/esm/ios-widget/xcode/mainAppSettings.js +41 -39
  188. package/expo-plugin/build/esm/ios-widget/xcode/mainAppSettings.js.map +1 -1
  189. package/expo-plugin/build/esm/ios-widget/xcode/productFile.js +3 -2
  190. package/expo-plugin/build/esm/ios-widget/xcode/productFile.js.map +1 -1
  191. package/expo-plugin/build/esm/ios-widget/xcode/target.js +28 -62
  192. package/expo-plugin/build/esm/ios-widget/xcode/target.js.map +1 -1
  193. package/expo-plugin/build/esm/utils/urlScheme.js +34 -14
  194. package/expo-plugin/build/esm/utils/urlScheme.js.map +1 -1
  195. package/expo-plugin/build/esm/validation.js +54 -1
  196. package/expo-plugin/build/esm/validation.js.map +1 -1
  197. package/expo-plugin/build/types/constants.d.ts +10 -1
  198. package/expo-plugin/build/types/constants.d.ts.map +1 -1
  199. package/expo-plugin/build/types/index.d.ts +1 -1
  200. package/expo-plugin/build/types/index.d.ts.map +1 -1
  201. package/expo-plugin/build/types/ios/index.d.ts +2 -0
  202. package/expo-plugin/build/types/ios/index.d.ts.map +1 -1
  203. package/expo-plugin/build/types/ios/infoPlist.d.ts +2 -0
  204. package/expo-plugin/build/types/ios/infoPlist.d.ts.map +1 -1
  205. package/expo-plugin/build/types/ios/serverUpdate.d.ts +11 -0
  206. package/expo-plugin/build/types/ios/serverUpdate.d.ts.map +1 -0
  207. package/expo-plugin/build/types/ios-widget/clientRendered.d.ts.map +1 -1
  208. package/expo-plugin/build/types/ios-widget/clientRenderedPrerender.d.ts.map +1 -1
  209. package/expo-plugin/build/types/ios-widget/dynamic-live-activity/swift.d.ts +7 -0
  210. package/expo-plugin/build/types/ios-widget/dynamic-live-activity/swift.d.ts.map +1 -0
  211. package/expo-plugin/build/types/ios-widget/files/index.d.ts +3 -1
  212. package/expo-plugin/build/types/ios-widget/files/index.d.ts.map +1 -1
  213. package/expo-plugin/build/types/ios-widget/files/infoPlist.d.ts +2 -1
  214. package/expo-plugin/build/types/ios-widget/files/infoPlist.d.ts.map +1 -1
  215. package/expo-plugin/build/types/ios-widget/files/manifest.d.ts +9 -2
  216. package/expo-plugin/build/types/ios-widget/files/manifest.d.ts.map +1 -1
  217. package/expo-plugin/build/types/ios-widget/files/swift-utils.d.ts +2 -0
  218. package/expo-plugin/build/types/ios-widget/files/swift-utils.d.ts.map +1 -0
  219. package/expo-plugin/build/types/ios-widget/files/swift.d.ts +6 -2
  220. package/expo-plugin/build/types/ios-widget/files/swift.d.ts.map +1 -1
  221. package/expo-plugin/build/types/ios-widget/index.d.ts +3 -1
  222. package/expo-plugin/build/types/ios-widget/index.d.ts.map +1 -1
  223. package/expo-plugin/build/types/ios-widget/podfile.d.ts +19 -1
  224. package/expo-plugin/build/types/ios-widget/podfile.d.ts.map +1 -1
  225. package/expo-plugin/build/types/ios-widget/widgetPlist.d.ts.map +1 -1
  226. package/expo-plugin/build/types/ios-widget/xcode/buildPhases.d.ts +6 -8
  227. package/expo-plugin/build/types/ios-widget/xcode/buildPhases.d.ts.map +1 -1
  228. package/expo-plugin/build/types/ios-widget/xcode/configurationList.d.ts +15 -10
  229. package/expo-plugin/build/types/ios-widget/xcode/configurationList.d.ts.map +1 -1
  230. package/expo-plugin/build/types/ios-widget/xcode/fileReferences.d.ts +16 -0
  231. package/expo-plugin/build/types/ios-widget/xcode/fileReferences.d.ts.map +1 -0
  232. package/expo-plugin/build/types/ios-widget/xcode/groups.d.ts +0 -4
  233. package/expo-plugin/build/types/ios-widget/xcode/groups.d.ts.map +1 -1
  234. package/expo-plugin/build/types/ios-widget/xcode/index.d.ts +23 -3
  235. package/expo-plugin/build/types/ios-widget/xcode/index.d.ts.map +1 -1
  236. package/expo-plugin/build/types/ios-widget/xcode/mainAppSettings.d.ts +16 -4
  237. package/expo-plugin/build/types/ios-widget/xcode/mainAppSettings.d.ts.map +1 -1
  238. package/expo-plugin/build/types/ios-widget/xcode/productFile.d.ts +0 -4
  239. package/expo-plugin/build/types/ios-widget/xcode/productFile.d.ts.map +1 -1
  240. package/expo-plugin/build/types/ios-widget/xcode/target.d.ts +11 -26
  241. package/expo-plugin/build/types/ios-widget/xcode/target.d.ts.map +1 -1
  242. package/expo-plugin/build/types/types.d.ts +23 -4
  243. package/expo-plugin/build/types/types.d.ts.map +1 -1
  244. package/expo-plugin/build/types/utils/urlScheme.d.ts +16 -0
  245. package/expo-plugin/build/types/utils/urlScheme.d.ts.map +1 -1
  246. package/expo-plugin/build/types/validation.d.ts +2 -1
  247. package/expo-plugin/build/types/validation.d.ts.map +1 -1
  248. package/expo-plugin/src/constants.ts +24 -1
  249. package/expo-plugin/src/index.ts +14 -1
  250. package/expo-plugin/src/ios/index.ts +3 -0
  251. package/expo-plugin/src/ios/infoPlist.ts +33 -5
  252. package/expo-plugin/src/ios/serverUpdate.ts +29 -0
  253. package/expo-plugin/src/ios-widget/clientRendered.ts +9 -5
  254. package/expo-plugin/src/ios-widget/clientRenderedPrerender.ts +11 -6
  255. package/expo-plugin/src/ios-widget/dynamic-live-activity/swift.ts +138 -0
  256. package/expo-plugin/src/ios-widget/files/index.ts +15 -4
  257. package/expo-plugin/src/ios-widget/files/infoPlist.ts +17 -3
  258. package/expo-plugin/src/ios-widget/files/manifest.ts +42 -2
  259. package/expo-plugin/src/ios-widget/files/swift-utils.ts +3 -0
  260. package/expo-plugin/src/ios-widget/files/swift.ts +69 -22
  261. package/expo-plugin/src/ios-widget/index.ts +13 -3
  262. package/expo-plugin/src/ios-widget/podfile.ts +46 -13
  263. package/expo-plugin/src/ios-widget/widgetPlist.ts +37 -23
  264. package/expo-plugin/src/ios-widget/xcode/__fixtures__/fresh.pbxproj +197 -0
  265. package/expo-plugin/src/ios-widget/xcode/__fixtures__/with-existing-extension.pbxproj +321 -0
  266. package/expo-plugin/src/ios-widget/xcode/__fixtures__/with-per-config-signing.pbxproj +203 -0
  267. package/expo-plugin/src/ios-widget/xcode/__snapshots__/applyXcodeChanges.node.test.ts.snap +363 -0
  268. package/expo-plugin/src/ios-widget/xcode/__tests__/pbxConsistency.ts +130 -0
  269. package/expo-plugin/src/ios-widget/xcode/buildPhases.ts +210 -164
  270. package/expo-plugin/src/ios-widget/xcode/configurationList.ts +52 -35
  271. package/expo-plugin/src/ios-widget/xcode/fileReferences.ts +51 -0
  272. package/expo-plugin/src/ios-widget/xcode/groups.ts +52 -54
  273. package/expo-plugin/src/ios-widget/xcode/index.ts +124 -119
  274. package/expo-plugin/src/ios-widget/xcode/mainAppSettings.ts +59 -54
  275. package/expo-plugin/src/ios-widget/xcode/productFile.ts +3 -2
  276. package/expo-plugin/src/ios-widget/xcode/target.ts +31 -83
  277. package/expo-plugin/src/types.ts +28 -4
  278. package/expo-plugin/src/utils/urlScheme.ts +47 -17
  279. package/expo-plugin/src/validation.ts +76 -1
  280. package/ios/Package.swift +39 -4
  281. package/ios/VoltraWidget.podspec +1 -0
  282. package/ios/app/NativeVoltra.mm +126 -7
  283. package/ios/app/VoltraLiveActivityManager.swift +30 -0
  284. package/ios/app/VoltraLiveActivityService.swift +77 -5
  285. package/ios/app/VoltraModule.swift +117 -1
  286. package/ios/app/VoltraModuleImpl.swift +116 -2
  287. package/ios/app/VoltraViewComponentView.mm +3 -3
  288. package/ios/app/VoltraWidgetService.swift +147 -12
  289. package/ios/app/dynamic-live-activity/VoltraDynamicLiveActivityService.swift +97 -0
  290. package/ios/app/dynamic-live-activity/VoltraLiveActivityChronology.swift +68 -0
  291. package/ios/shared/DynamicWidgetPropsCodec.swift +51 -0
  292. package/ios/shared/DynamicWidgetPropsStorage.swift +53 -0
  293. package/ios/shared/DynamicWidgetPropsStore.swift +117 -0
  294. package/ios/shared/DynamicWidgetRenderCoordinator.swift +31 -0
  295. package/ios/shared/DynamicWidgetServerUpdate/DynamicWidgetServerFetchResolver.swift +34 -0
  296. package/ios/shared/DynamicWidgetServerUpdate/DynamicWidgetServerProps.swift +55 -0
  297. package/ios/shared/DynamicWidgetServerUpdate/DynamicWidgetServerPropsStore.swift +146 -0
  298. package/ios/shared/DynamicWidgetServerUpdate/DynamicWidgetServerUpdateRunner.swift +193 -0
  299. package/ios/shared/DynamicWidgetUpdater.swift +30 -0
  300. package/ios/shared/ServerWidgetContentResolver.swift +60 -0
  301. package/ios/shared/ServerWidgetResponseStore.swift +25 -0
  302. package/ios/shared/ShortNames.swift +6 -0
  303. package/ios/shared/VoltraConfig.swift +41 -0
  304. package/ios/shared/VoltraConstants.swift +19 -0
  305. package/ios/shared/VoltraElement.swift +127 -43
  306. package/ios/shared/VoltraEventBus.swift +52 -7
  307. package/ios/shared/VoltraJSRenderer.swift +93 -23
  308. package/ios/shared/VoltraNode.swift +7 -111
  309. package/ios/shared/VoltraRefreshIntent.swift +1 -1
  310. package/ios/shared/VoltraWidgetDefaults.swift +9 -1
  311. package/ios/shared/VoltraWidgetKind.swift +41 -0
  312. package/ios/shared/VoltraWidgetServerFetcher.swift +52 -107
  313. package/ios/shared/WidgetServer/VoltraWidgetAppearance.swift +17 -0
  314. package/ios/shared/WidgetServer/VoltraWidgetServer.swift +138 -0
  315. package/ios/shared/WidgetServer/WidgetCanonicalConfiguration.swift +77 -0
  316. package/ios/shared/WidgetServer/WidgetScope.swift +55 -0
  317. package/ios/shared/WidgetServer/WidgetServerEtagStore.swift +55 -0
  318. package/ios/shared/WidgetServer/WidgetServerFetcher.swift +179 -0
  319. package/ios/shared/WidgetServer/WidgetServerRequestBuilder.swift +114 -0
  320. package/ios/shared/WidgetServer/WidgetServerSettingsCodec.swift +47 -0
  321. package/ios/shared/WidgetServer/WidgetServerSettingsResolver.swift +129 -0
  322. package/ios/shared/WidgetServer/WidgetServerSettingsStore.swift +170 -0
  323. package/ios/shared/WidgetServer/WidgetServerSettingsValidator.swift +73 -0
  324. package/ios/shared/WidgetServer/WidgetServerUpdateSettings.swift +123 -0
  325. package/ios/shared/WidgetServer/WidgetServerUpdateSettingsJson.swift +115 -0
  326. package/ios/shared/dynamic-live-activity/DynamicLiveActivityPropsCodec.swift +13 -0
  327. package/ios/shared/dynamic-live-activity/VoltraDynamicLiveActivityBundleSource.swift +156 -0
  328. package/ios/shared/dynamic-live-activity/VoltraDynamicLiveActivityObserver.swift +97 -0
  329. package/ios/shared/dynamic-live-activity/VoltraDynamicLiveActivityOperations.swift +105 -0
  330. package/ios/shared/dynamic-live-activity/VoltraDynamicLiveActivityPayloadValidator.swift +55 -0
  331. package/ios/shared/dynamic-live-activity/VoltraDynamicLiveActivityRegistry.swift +143 -0
  332. package/ios/shared/dynamic-live-activity/VoltraDynamicLiveActivityRenderFailureQueue.swift +158 -0
  333. package/ios/shared/dynamic-live-activity/VoltraDynamicLiveActivityRenderFailureReporter.swift +120 -0
  334. package/ios/shared/dynamic-live-activity/VoltraDynamicLiveActivityRenderer.swift +370 -0
  335. package/ios/shared/dynamic-live-activity/VoltraDynamicLiveActivityTypes.swift +87 -0
  336. package/ios/shared/dynamic-live-activity/VoltraLiveActivityOrder.swift +19 -0
  337. package/ios/target/VoltraClientWidgetRuntime.swift +60 -10
  338. package/ios/target/VoltraDynamicWidgetServerUpdateProvider.swift +204 -0
  339. package/ios/target/VoltraHomeWidget.swift +91 -92
  340. package/ios/target/VoltraWidget.swift +3 -1
  341. package/ios/ui/Extensions/VoltraNode+View.swift +113 -0
  342. package/ios/ui/Generated/Parameters/ChartParameters.swift +3 -0
  343. package/ios/ui/Helpers/VoltraDeepLinkResolver.swift +5 -3
  344. package/ios/ui/Helpers/VoltraProgressDriver.swift +6 -2
  345. package/ios/ui/Layout/VoltraFlexStackLayout.swift +9 -3
  346. package/ios/ui/Style/JSColorParser.swift +24 -8
  347. package/ios/ui/Style/JSGradientParser.swift +36 -12
  348. package/ios/ui/Style/JSStyleParser.swift +36 -12
  349. package/ios/ui/Style/LayoutStyle.swift +12 -4
  350. package/ios/ui/Views/VoltraChart.swift +160 -16
  351. package/ios/ui/Views/VoltraLinearGradient.swift +6 -2
  352. package/package.json +5 -5
  353. package/src/dynamic-widget/api.ts +25 -0
  354. package/src/events.ts +34 -0
  355. package/src/index.ts +23 -0
  356. package/src/live-activity/api.ts +2 -2
  357. package/src/live-activity/dynamic-api.ts +240 -0
  358. package/src/native/NativeVoltra.ts +22 -0
  359. package/src/types.ts +4 -0
  360. package/src/utils/enableDynamicLiveActivityHotReload.ts +50 -0
  361. package/src/utils/enableWidgetHotReload.ts +9 -16
  362. package/src/utils/useUpdateOnHMR.ts +3 -12
  363. package/src/widgets/server-credentials.ts +8 -0
  364. package/src/widgets/server-update.ts +84 -0
  365. /package/ios/shared/{VoltraKeychainHelper.swift → WidgetServer/VoltraKeychainHelper.swift} +0 -0
@@ -0,0 +1,45 @@
1
+ const pbxFile = require('xcode/lib/pbxFile');
2
+ /** Strips surrounding quotes from a pbx path/name value. */
3
+ export function normalizePath(value) {
4
+ if (!value) {
5
+ return '';
6
+ }
7
+ return value.replace(/^"|"$/g, '');
8
+ }
9
+ /** Strips a trailing `/* comment *\/` and whitespace, yielding the bare UUID of a pbx reference. */
10
+ export function normalizeRef(value) {
11
+ return String(value)
12
+ .replace(/\/\*.*?\*\//g, '')
13
+ .trim();
14
+ }
15
+ /**
16
+ * Resolves the PBXFileReference UUID for a widget file, scoped to the widget's own PBXGroup.
17
+ *
18
+ * pbxproj paths are group-relative, so a bare path like `Assets.xcassets` collides with any other
19
+ * extension's identically named file. Scoping the lookup to the children of the widget group
20
+ * (identified by `targetName`) keeps the widget's references distinct from those, which is what
21
+ * prevents the shared-fileRef corruption behind issues #87/#32. When the widget group does not
22
+ * exist yet, a fresh reference is created.
23
+ */
24
+ export function ensureWidgetFileReference(xcodeProject, filePath, targetName) {
25
+ const file = new pbxFile(filePath);
26
+ const fileReferenceSection = xcodeProject.pbxFileReferenceSection();
27
+ const group = xcodeProject.pbxGroupByName(targetName);
28
+ if (group?.children) {
29
+ for (const child of group.children) {
30
+ const refKey = normalizeRef(child.value);
31
+ const entry = fileReferenceSection[refKey];
32
+ if (!entry) {
33
+ continue;
34
+ }
35
+ const entryPath = normalizePath(entry.path);
36
+ if (entryPath === file.path || entryPath === normalizePath(filePath)) {
37
+ return refKey;
38
+ }
39
+ }
40
+ }
41
+ file.fileRef = xcodeProject.generateUuid();
42
+ xcodeProject.addToPbxFileReferenceSection(file);
43
+ return file.fileRef;
44
+ }
45
+ //# sourceMappingURL=fileReferences.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fileReferences.js","sourceRoot":"","sources":["../../../../src/ios-widget/xcode/fileReferences.ts"],"names":[],"mappings":"AAEA,MAAM,OAAO,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAA;AAE5C,4DAA4D;AAC5D,MAAM,UAAU,aAAa,CAAC,KAAyB;IACrD,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,OAAO,EAAE,CAAA;IACX,CAAC;IACD,OAAO,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAA;AACpC,CAAC;AAED,oGAAoG;AACpG,MAAM,UAAU,YAAY,CAAC,KAAc;IACzC,OAAO,MAAM,CAAC,KAAK,CAAC;SACjB,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC;SAC3B,IAAI,EAAE,CAAA;AACX,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,yBAAyB,CAAC,YAA0B,EAAE,QAAgB,EAAE,UAAkB;IACxG,MAAM,IAAI,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAA;IAClC,MAAM,oBAAoB,GAAG,YAAY,CAAC,uBAAuB,EAAE,CAAA;IACnE,MAAM,KAAK,GAAG,YAAY,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;IAErD,IAAI,KAAK,EAAE,QAAQ,EAAE,CAAC;QACpB,KAAK,MAAM,KAAK,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;YACnC,MAAM,MAAM,GAAG,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YACxC,MAAM,KAAK,GAAG,oBAAoB,CAAC,MAAM,CAAC,CAAA;YAC1C,IAAI,CAAC,KAAK,EAAE,CAAC;gBACX,SAAQ;YACV,CAAC;YACD,MAAM,SAAS,GAAG,aAAa,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;YAC3C,IAAI,SAAS,KAAK,IAAI,CAAC,IAAI,IAAI,SAAS,KAAK,aAAa,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACrE,OAAO,MAAM,CAAA;YACf,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI,CAAC,OAAO,GAAG,YAAY,CAAC,YAAY,EAAE,CAAA;IAC1C,YAAY,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAA;IAC/C,OAAO,IAAI,CAAC,OAAO,CAAA;AACrB,CAAC"}
@@ -1,43 +1,63 @@
1
+ import { ensureWidgetFileReference } from './fileReferences';
1
2
  const pbxFile = require('xcode/lib/pbxFile');
2
- /**
3
- * Adds a PBXGroup for the widget extension files.
4
- */
5
- export function addPbxGroup(xcodeProject, options) {
6
- const { targetName, widgetFiles } = options;
3
+ function collectGroupFiles(widgetFiles) {
7
4
  const { swiftFiles, intentFiles, assetDirectories, entitlementFiles, plistFiles, localizedStringResources } = widgetFiles;
8
- // Add PBX group with all widget files
9
- const { uuid: pbxGroupUuid } = xcodeProject.addPbxGroup([
5
+ return [
10
6
  ...swiftFiles,
11
7
  ...intentFiles,
12
8
  ...entitlementFiles,
13
9
  ...plistFiles,
14
10
  ...assetDirectories,
15
11
  ...localizedStringResources,
16
- ], targetName, targetName);
17
- // Add PBXGroup to top level group
12
+ ];
13
+ }
14
+ /**
15
+ * Adds a PBXGroup for the widget extension files.
16
+ *
17
+ * Constructs the PBXGroup and its PBXFileReference children by hand rather than delegating to
18
+ * `xcodeProject.addPbxGroup`, because that helper also creates a PBXBuildFile per file as a side
19
+ * effect. Those extra build files collide with the ones managed by the build-phase functions and
20
+ * produce the "no parent for object" consistency errors from issues #87/#32. File references are
21
+ * resolved through the widget-scoped {@link ensureWidgetFileReference} so they are shared with the
22
+ * build phases instead of duplicated.
23
+ *
24
+ * Internal create-only fallback for {@link ensurePbxGroup}; not part of the public pipeline.
25
+ */
26
+ function addPbxGroup(xcodeProject, options) {
27
+ const { targetName, widgetFiles } = options;
28
+ const allFiles = collectGroupFiles(widgetFiles);
29
+ const pbxGroupUuid = xcodeProject.generateUuid();
30
+ const pbxGroup = {
31
+ isa: 'PBXGroup',
32
+ children: [],
33
+ name: targetName,
34
+ path: targetName,
35
+ sourceTree: '"<group>"',
36
+ };
18
37
  const groups = xcodeProject.hash.project.objects['PBXGroup'];
19
- if (pbxGroupUuid) {
20
- Object.keys(groups).forEach(function (key) {
21
- if (groups[key].name === undefined && groups[key].path === undefined) {
22
- xcodeProject.addToPbxGroup(pbxGroupUuid, key);
23
- }
24
- });
38
+ groups[pbxGroupUuid] = pbxGroup;
39
+ groups[`${pbxGroupUuid}_comment`] = targetName;
40
+ for (const filePath of allFiles) {
41
+ const file = new pbxFile(filePath);
42
+ const fileRef = ensureWidgetFileReference(xcodeProject, filePath, targetName);
43
+ pbxGroup.children.push({ value: fileRef, comment: file.basename });
25
44
  }
45
+ // Attach the new group to the top-level (unnamed, path-less) group.
46
+ Object.keys(groups).forEach(function (key) {
47
+ if (/_comment$/.test(key)) {
48
+ return;
49
+ }
50
+ if (groups[key].name === undefined && groups[key].path === undefined) {
51
+ xcodeProject.addToPbxGroup(pbxGroupUuid, key);
52
+ }
53
+ });
26
54
  }
27
55
  /**
28
56
  * Ensures a PBXGroup exists for the widget extension files.
29
57
  */
30
58
  export function ensurePbxGroup(xcodeProject, options) {
31
59
  const { targetName, widgetFiles } = options;
32
- const { swiftFiles, intentFiles, assetDirectories, entitlementFiles, plistFiles, localizedStringResources } = widgetFiles;
33
- const allFiles = [
34
- ...swiftFiles,
35
- ...intentFiles,
36
- ...entitlementFiles,
37
- ...plistFiles,
38
- ...assetDirectories,
39
- ...localizedStringResources,
40
- ];
60
+ const allFiles = collectGroupFiles(widgetFiles);
41
61
  const existingGroup = xcodeProject.pbxGroupByName(targetName);
42
62
  if (!existingGroup) {
43
63
  addPbxGroup(xcodeProject, options);
@@ -48,28 +68,11 @@ export function ensurePbxGroup(xcodeProject, options) {
48
68
  }
49
69
  for (const filePath of allFiles) {
50
70
  const file = new pbxFile(filePath);
51
- const fileRef = ensureFileReference(xcodeProject, filePath);
71
+ const fileRef = ensureWidgetFileReference(xcodeProject, filePath, targetName);
52
72
  const alreadyInGroup = existingGroup.children.some((child) => child.value === fileRef || child.comment === file.basename);
53
73
  if (!alreadyInGroup) {
54
74
  existingGroup.children.push({ value: fileRef, comment: file.basename });
55
75
  }
56
76
  }
57
77
  }
58
- function ensureFileReference(xcodeProject, filePath) {
59
- const fileReferenceSection = xcodeProject.pbxFileReferenceSection();
60
- const file = new pbxFile(filePath);
61
- for (const key of Object.keys(fileReferenceSection)) {
62
- if (/_comment$/.test(key)) {
63
- continue;
64
- }
65
- const entry = fileReferenceSection[key];
66
- const entryPath = typeof entry?.path === 'string' ? entry.path.replace(/^"|"$/g, '') : '';
67
- if (entryPath === file.path || entryPath === filePath) {
68
- return key;
69
- }
70
- }
71
- file.fileRef = xcodeProject.generateUuid();
72
- xcodeProject.addToPbxFileReferenceSection(file);
73
- return file.fileRef;
74
- }
75
78
  //# sourceMappingURL=groups.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"groups.js","sourceRoot":"","sources":["../../../../src/ios-widget/xcode/groups.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,GAAG,OAAO,CAAC,m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EAAE,WAAW,EAAE,GAAG,OAAO,CAAA;IAC3C,MAAM,QAAQ,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAA;IAE/C,MAAM,aAAa,GAAG,YAAY,CAAC,cAAc,CAAC,UAAU,CAAC,CAAA;IAC7D,IAAI,CAAC,aAAa,EAAE,CAAC;QACnB,WAAW,CAAC,YAAY,EAAE,OAAO,CAAC,CAAA;QAClC,OAAM;IACR,CAAC;IAED,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC;QAC5B,aAAa,CAAC,QAAQ,GAAG,EAAE,CAAA;IAC7B,CAAC;IAED,KAAK,MAAM,QAAQ,IAAI,QAAQ,EAAE,CAAC;QAChC,MAAM,IAAI,GAAG,IAAI,OAAO,CAAC,QAAQ,CAAC,CAAA;QAClC,MAAM,OAAO,GAAG,yBAAyB,CAAC,YAAY,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAA;QAC7E,MAAM,cAAc,GAAG,aAAa,CAAC,QAAQ,CAAC,IAAI,CAChD,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,KAAK,KAAK,OAAO,IAAI,KAAK,CAAC,OAAO,KAAK,IAAI,CAAC,QAAQ,CAC3E,CAAA;QACD,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAA;QACzE,CAAC;IACH,CAAC;AACH,CAAC"}
@@ -2,12 +2,99 @@ import { withXcodeProject } from '@expo/config-plugins';
2
2
  import * as path from 'path';
3
3
  import { getIOSWidgetExtensionFiles } from '../../utils/fileDiscovery';
4
4
  import { detectClientRenderedWidgets } from '../clientRendered';
5
- import { addBuildPhases, ensureBuildPhases, ensureWidgetBundleScriptPhase } from './buildPhases';
6
- import { addXCConfigurationList, ensureXCConfigurationList } from './configurationList';
7
- import { addPbxGroup, ensurePbxGroup } from './groups';
5
+ import { ensureBuildPhases, ensureWidgetBundleScriptPhase } from './buildPhases';
6
+ import { ensureXCConfigurationList } from './configurationList';
7
+ import { ensurePbxGroup } from './groups';
8
8
  import { getMainAppTargetSettings } from './mainAppSettings';
9
- import { addProductFile, ensureProductFile } from './productFile';
10
- import { configureTarget, ensureTargetAttributes, ensureTargetDependency } from './target';
9
+ import { ensureProductFile } from './productFile';
10
+ import { createTargetSkeleton, ensureTargetAttributes, ensureTargetDependency } from './target';
11
+ /**
12
+ * Applies all widget-extension changes to an already-parsed Xcode project.
13
+ *
14
+ * This is the pure core of {@link configureXcodeProject}: it takes the parsed project, the plugin
15
+ * props, the discovered widget files, and whether any widget is client-rendered, then mutates the
16
+ * project in place. It performs no filesystem or `modRequest` access, which makes it directly
17
+ * testable against pbxproj fixtures.
18
+ *
19
+ * When the widget target does not exist yet, the minimal native-target skeleton is created first
20
+ * (targets cannot be "ensured" into existence); every other object is then reconciled by the same
21
+ * idempotent ensure pipeline that runs for an already-existing target.
22
+ */
23
+ export function applyXcodeChanges(xcodeProject, props, widgetFiles, hasClientRenderedWidgets = false) {
24
+ const { targetName, bundleIdentifier, deploymentTarget, version, buildNumber } = props;
25
+ const groupName = 'Embed Foundation Extensions';
26
+ const mainTargetUuid = xcodeProject.getFirstTarget().uuid;
27
+ // The catalog is compiled into the app even for a legacy-only configuration.
28
+ // Keep it in the extension group too so both targets share one PBX file reference.
29
+ const effectiveWidgetFiles = {
30
+ ...widgetFiles,
31
+ swiftFiles: Array.from(new Set([...widgetFiles.swiftFiles, 'VoltraDynamicLiveActivityTypes.swift'])),
32
+ };
33
+ // Read main app target settings to synchronize code signing (per configuration).
34
+ const mainAppSettings = getMainAppTargetSettings(xcodeProject);
35
+ // Use the deploymentTarget from plugin config (or default), ignore main app's deployment target.
36
+ // This allows the widget extension to have its own deployment target independent of the main app.
37
+ // Resolve (or create) the widget target. A target cannot be reconciled into existence, so the
38
+ // absent case creates the minimal skeleton; from here on both paths share one pipeline.
39
+ let targetUuid = xcodeProject.findTargetKey(targetName);
40
+ if (!targetUuid) {
41
+ targetUuid = xcodeProject.generateUuid();
42
+ createTargetSkeleton(xcodeProject, { targetName, targetUuid });
43
+ }
44
+ const target = xcodeProject.pbxNativeTargetSection()[targetUuid];
45
+ // Ensure the configuration list is present and its settings are in sync.
46
+ const xCConfigurationList = ensureXCConfigurationList(xcodeProject, {
47
+ targetName,
48
+ bundleIdentifier,
49
+ deploymentTarget,
50
+ version,
51
+ buildNumber,
52
+ mainAppSettings,
53
+ }, target.buildConfigurationList);
54
+ // Ensure the product file (.appex) exists.
55
+ const productFile = ensureProductFile(xcodeProject, {
56
+ targetName,
57
+ groupName,
58
+ });
59
+ // Point the target at the reconciled configuration list and product file.
60
+ target.productReference = productFile.fileRef;
61
+ target.buildConfigurationList = xCConfigurationList.uuid;
62
+ target.productType = `"com.apple.product-type.app-extension"`;
63
+ target.name = targetName;
64
+ target.productName = targetName;
65
+ if (!target.buildPhases) {
66
+ target.buildPhases = [];
67
+ }
68
+ // Ensure the group first so the widget's file references exist before the build phases
69
+ // reference them (the phases resolve files through the widget-scoped group).
70
+ ensurePbxGroup(xcodeProject, {
71
+ targetName,
72
+ widgetFiles: effectiveWidgetFiles,
73
+ });
74
+ // Ensure build phases and their files.
75
+ ensureBuildPhases(xcodeProject, {
76
+ targetUuid,
77
+ targetName,
78
+ groupName,
79
+ productFile,
80
+ widgetFiles: effectiveWidgetFiles,
81
+ mainTargetUuid: xcodeProject.getFirstTarget().uuid,
82
+ // The app-side lifecycle service always compiles against the generated catalog.
83
+ // An empty catalog keeps legacy-only apps source-compatible.
84
+ mainSwiftFiles: ['VoltraDynamicLiveActivityTypes.swift'],
85
+ });
86
+ if (hasClientRenderedWidgets || (props.liveActivities?.length ?? 0) > 0) {
87
+ ensureWidgetBundleScriptPhase(xcodeProject, targetUuid);
88
+ }
89
+ if ((props.liveActivities?.length ?? 0) > 0) {
90
+ // Local Dynamic Live Activity starts preflight the baked definition from
91
+ // the app process, while WidgetKit renders from the extension process.
92
+ // Bake the same manifest into both products.
93
+ ensureWidgetBundleScriptPhase(xcodeProject, mainTargetUuid, 'live-activities');
94
+ }
95
+ ensureTargetAttributes(xcodeProject, targetUuid);
96
+ ensureTargetDependency(xcodeProject, targetUuid);
97
+ }
11
98
  /**
12
99
  * Plugin step that configures the Xcode project for the widget extension.
13
100
  *
@@ -18,111 +105,25 @@ import { configureTarget, ensureTargetAttributes, ensureTargetDependency } from
18
105
  * - Adds build phases (Sources, CopyFiles, Frameworks, Resources)
19
106
  * - Adds PBXGroup for widget files
20
107
  *
21
- * This should run after generateWidgetExtensionFiles so the files exist.
108
+ * This should run after generateWidgetExtensionFiles so the files exist. The wrapper is kept thin:
109
+ * it discovers widget files and detects client-rendered widgets, then delegates the actual pbxproj
110
+ * mutation to {@link applyXcodeChanges}.
22
111
  */
23
112
  export const configureXcodeProject = (config, props) => {
24
- const { targetName, bundleIdentifier, deploymentTarget, widgets } = props;
113
+ const { targetName, widgets, liveActivities } = props;
25
114
  return withXcodeProject(config, (config) => {
26
115
  if (config.modRequest.introspect) {
27
116
  return config;
28
117
  }
29
118
  const xcodeProject = config.modResults;
30
- const groupName = 'Embed Foundation Extensions';
31
119
  // The release widget-bundling phase is only needed when a widget is a Dynamic Widget (server
32
120
  // widgets carry no JS bundle). Detect once so both the create and update paths agree.
33
121
  const hasClientRenderedWidgets = !!widgets &&
34
122
  detectClientRenderedWidgets(widgets, config.modRequest.projectRoot).some((widget) => widget.clientRendered);
35
- // Check if target already exists
36
- const nativeTargets = xcodeProject.pbxNativeTargetSection();
37
- const existingTargetKey = xcodeProject.findTargetKey(targetName);
38
- const existingTarget = existingTargetKey ? nativeTargets[existingTargetKey] : null;
39
123
  const { platformProjectRoot } = config.modRequest;
40
124
  const targetPath = path.join(platformProjectRoot, targetName);
41
125
  const widgetFiles = getIOSWidgetExtensionFiles(targetPath, targetName);
42
- // Read main app target settings to synchronize code signing
43
- const mainAppSettings = getMainAppTargetSettings(xcodeProject);
44
- // Use the deploymentTarget from plugin config (or default), ignore main app's deployment target
45
- // This allows the widget extension to have its own deployment target independent of the main app
46
- if (existingTarget && existingTargetKey) {
47
- // Ensure configuration list is up to date
48
- const xCConfigurationList = ensureXCConfigurationList(xcodeProject, {
49
- targetName,
50
- bundleIdentifier,
51
- deploymentTarget,
52
- codeSignStyle: mainAppSettings?.codeSignStyle,
53
- developmentTeam: mainAppSettings?.developmentTeam,
54
- provisioningProfileSpecifier: mainAppSettings?.provisioningProfileSpecifier,
55
- }, existingTarget.buildConfigurationList);
56
- // Ensure product file exists
57
- const productFile = ensureProductFile(xcodeProject, {
58
- targetName,
59
- groupName,
60
- });
61
- // Update target references
62
- existingTarget.productReference = productFile.fileRef;
63
- existingTarget.buildConfigurationList = xCConfigurationList.uuid;
64
- existingTarget.productType = `"com.apple.product-type.app-extension"`;
65
- existingTarget.name = targetName;
66
- existingTarget.productName = targetName;
67
- if (!existingTarget.buildPhases) {
68
- existingTarget.buildPhases = [];
69
- }
70
- // Ensure build phases and groups
71
- ensureBuildPhases(xcodeProject, {
72
- targetUuid: existingTargetKey,
73
- groupName,
74
- productFile,
75
- widgetFiles,
76
- mainTargetUuid: xcodeProject.getFirstTarget().uuid,
77
- });
78
- if (hasClientRenderedWidgets) {
79
- ensureWidgetBundleScriptPhase(xcodeProject, existingTargetKey);
80
- }
81
- ensurePbxGroup(xcodeProject, {
82
- targetName,
83
- widgetFiles,
84
- });
85
- ensureTargetAttributes(xcodeProject, existingTargetKey);
86
- ensureTargetDependency(xcodeProject, existingTargetKey);
87
- return config;
88
- }
89
- // Add configuration list
90
- const targetUuid = xcodeProject.generateUuid();
91
- const xCConfigurationList = addXCConfigurationList(xcodeProject, {
92
- targetName,
93
- bundleIdentifier,
94
- deploymentTarget,
95
- codeSignStyle: mainAppSettings?.codeSignStyle,
96
- developmentTeam: mainAppSettings?.developmentTeam,
97
- provisioningProfileSpecifier: mainAppSettings?.provisioningProfileSpecifier,
98
- });
99
- // Add product file
100
- const productFile = addProductFile(xcodeProject, {
101
- targetName,
102
- groupName,
103
- });
104
- // Configure target (native target, project section, dependency)
105
- configureTarget(xcodeProject, {
106
- targetName,
107
- targetUuid,
108
- productFile,
109
- xCConfigurationList,
110
- });
111
- // Add build phases
112
- addBuildPhases(xcodeProject, {
113
- targetUuid,
114
- groupName,
115
- productFile,
116
- widgetFiles,
117
- });
118
- if (hasClientRenderedWidgets) {
119
- ensureWidgetBundleScriptPhase(xcodeProject, targetUuid);
120
- }
121
- // Add PBX group
122
- addPbxGroup(xcodeProject, {
123
- targetName,
124
- widgetFiles,
125
- });
126
+ applyXcodeChanges(xcodeProject, props, widgetFiles, hasClientRenderedWidgets || (liveActivities?.length ?? 0) > 0);
126
127
  return config;
127
128
  });
128
129
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ios-widget/xcode/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAG5B,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAA;AACtE,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,6BAA6B,EAAE,MAAM,eAAe,CAAA;AAChG,OAAO,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA;AACvF,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACtD,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAS1F;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA6C,CAAC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O,MAAM,CAAA;IACf,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
@@ -1,8 +1,25 @@
1
+ /** Strips surrounding quotes from a raw build-setting value. */
2
+ function unquote(value) {
3
+ if (typeof value !== 'string') {
4
+ return undefined;
5
+ }
6
+ return value.replace(/^"|"$/g, '');
7
+ }
8
+ /** Reads the signing-related build settings from a single XCBuildConfiguration. */
9
+ function readSigningSettings(buildSettings) {
10
+ return {
11
+ codeSignStyle: unquote(buildSettings.CODE_SIGN_STYLE),
12
+ developmentTeam: unquote(buildSettings.DEVELOPMENT_TEAM),
13
+ provisioningProfileSpecifier: unquote(buildSettings.PROVISIONING_PROFILE_SPECIFIER),
14
+ };
15
+ }
1
16
  /**
2
- * Reads build settings from the main app target to synchronize code signing with the widget extension.
17
+ * Reads code-signing build settings from every build configuration of the main app target, so the
18
+ * widget extension can synchronize signing per configuration (Debug→Debug, Release→Release).
3
19
  *
4
20
  * @param xcodeProject The Xcode project instance
5
- * @returns The main app target's build settings, or null if not found
21
+ * @returns Signing settings keyed by configuration name plus a first-configuration fallback, or
22
+ * null when the main app target or its configurations cannot be resolved
6
23
  */
7
24
  export function getMainAppTargetSettings(xcodeProject) {
8
25
  try {
@@ -10,7 +27,6 @@ export function getMainAppTargetSettings(xcodeProject) {
10
27
  if (!mainAppTarget) {
11
28
  return null;
12
29
  }
13
- // Get the build configuration list for the main app target
14
30
  const buildConfigurationListId = mainAppTarget.buildConfigurationList;
15
31
  if (!buildConfigurationListId) {
16
32
  return null;
@@ -18,47 +34,33 @@ export function getMainAppTargetSettings(xcodeProject) {
18
34
  // Extract UUID from buildConfigurationListId (it might include a comment like "UUID /* comment */")
19
35
  const buildConfigurationListUuid = buildConfigurationListId.split(' ')[0];
20
36
  const buildConfigurationList = xcodeProject.hash.project.objects['XCConfigurationList']?.[buildConfigurationListUuid];
21
- if (!buildConfigurationList || !buildConfigurationList.buildConfigurations) {
22
- return null;
23
- }
24
- // Get the first build configuration (usually Debug) to read settings
25
- const firstConfigRef = buildConfigurationList.buildConfigurations[0];
26
- if (!firstConfigRef) {
27
- return null;
28
- }
29
- // Extract UUID from config reference (it might include a comment)
30
- const firstConfigUuid = typeof firstConfigRef === 'string' ? firstConfigRef.split(' ')[0] : firstConfigRef.value?.split(' ')[0];
31
- if (!firstConfigUuid) {
37
+ if (!buildConfigurationList?.buildConfigurations) {
32
38
  return null;
33
39
  }
34
- const buildConfiguration = xcodeProject.hash.project.objects['XCBuildConfiguration']?.[firstConfigUuid];
35
- if (!buildConfiguration || !buildConfiguration.buildSettings) {
36
- return null;
40
+ const buildConfigurationSection = xcodeProject.hash.project.objects['XCBuildConfiguration'] ?? {};
41
+ const byConfigurationName = {};
42
+ let fallback = null;
43
+ for (const configRef of buildConfigurationList.buildConfigurations) {
44
+ // Extract UUID from the config reference (it might include a comment)
45
+ const configUuid = typeof configRef === 'string' ? configRef.split(' ')[0] : configRef.value?.split(' ')[0];
46
+ if (!configUuid) {
47
+ continue;
48
+ }
49
+ const buildConfiguration = buildConfigurationSection[configUuid];
50
+ if (!buildConfiguration?.buildSettings) {
51
+ continue;
52
+ }
53
+ const settings = readSigningSettings(buildConfiguration.buildSettings);
54
+ const configName = unquote(buildConfiguration.name);
55
+ if (configName && !(configName in byConfigurationName)) {
56
+ byConfigurationName[configName] = settings;
57
+ }
58
+ fallback = fallback ?? settings;
37
59
  }
38
- const buildSettings = buildConfiguration.buildSettings;
39
- // Extract deployment target (remove quotes if present)
40
- const deploymentTarget = buildSettings.IPHONEOS_DEPLOYMENT_TARGET?.replace(/^"|"$/g, '') ||
41
- buildSettings['IPHONEOS_DEPLOYMENT_TARGET']?.replace(/^"|"$/g, '') ||
42
- null;
43
- // Extract code signing settings
44
- const codeSignStyle = buildSettings.CODE_SIGN_STYLE?.replace(/^"|"$/g, '') ||
45
- buildSettings['CODE_SIGN_STYLE']?.replace(/^"|"$/g, '') ||
46
- null;
47
- const developmentTeam = buildSettings.DEVELOPMENT_TEAM?.replace(/^"|"$/g, '') ||
48
- buildSettings['DEVELOPMENT_TEAM']?.replace(/^"|"$/g, '') ||
49
- null;
50
- const provisioningProfileSpecifier = buildSettings.PROVISIONING_PROFILE_SPECIFIER?.replace(/^"|"$/g, '') ||
51
- buildSettings['PROVISIONING_PROFILE_SPECIFIER']?.replace(/^"|"$/g, '') ||
52
- null;
53
- if (!deploymentTarget) {
60
+ if (!fallback) {
54
61
  return null;
55
62
  }
56
- return {
57
- deploymentTarget,
58
- codeSignStyle: codeSignStyle || undefined,
59
- developmentTeam: developmentTeam || undefined,
60
- provisioningProfileSpecifier: provisioningProfileSpecifier || undefined,
61
- };
63
+ return { byConfigurationName, fallback };
62
64
  }
63
65
  catch {
64
66
  // If we can't read the settings, return null and use fallback values
@@ -1 +1 @@
1
- {"version":3,"file":"mainAppSettings.js","sourceRoot":"","sources":["../../../../src/ios-widget/xcode/mainAppSettings.ts"],"names":[],"mappings":"AASA;;;;;GAKG;AACH,MAAM,UAAU,wBAAwB,CAAC,YAA0B;IACjE,IAAI,CAAC;QACH,MAAM,aAAa,GAAG,YAAY,CAAC,cAAc,EAAE,EAAE,WAAW,CAAA;QAEhE,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,OAAO,IAAI,CAAA;QACb,CAAC;QAED,2DAA2D;QAC3D,MAAM,wBAAwB,GAAG,aAAa,CAAC,sBAAsB,CAAA;QACrE,IAAI,CAAC,wBAAwB,EAAE,CAAC;YAC9B,OAAO,IAAI,CAAA;QACb,CAAC;QAED,oGAAoG;QACpG,MAAM,0BAA0B,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;QAEzE,MAAM,sBAAsB,GAC1B,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAAE,CAAC,0BAA0B,CAAC,CAAA;QACxF,IAAI,CAAC,sBAAsB,IAAI,CAAC,sBAAsB,CAAC,mBAAmB,EAAE,CAAC;YAC3E,OAAO,IAAI,CAA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AM,QAAQ,GAAG,mBAAmB,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAA;YACtE,MAAM,UAAU,GAAG,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAA;YACnD,IAAI,UAAU,IAAI,CAAC,CAAC,UAAU,IAAI,mBAAmB,CAAC,EAAE,CAAC;gBACvD,mBAAmB,CAAC,UAAU,CAAC,GAAG,QAAQ,CAAA;YAC5C,CAAC;YACD,QAAQ,GAAG,QAAQ,IAAI,QAAQ,CAAA;QACjC,CAAC;QAED,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,OAAO,IAAI,CAAA;QACb,CAAC;QAED,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,CAAA;IAC1C,CAAC;IAAC,MAAM,CAAC;QACP,qEAAqE;QACrE,OAAO,IAAI,CAAA;IACb,CAAC;AACH,CAAC"}
@@ -28,9 +28,10 @@ function findBuildFileForFileRef(xcodeProject, fileRef) {
28
28
  return null;
29
29
  }
30
30
  /**
31
- * Adds the product file (.appex) for the widget extension.
31
+ * Adds the product file (.appex) for the widget extension. Internal create-only fallback for
32
+ * {@link ensureProductFile}; not part of the public pipeline.
32
33
  */
33
- export function addProductFile(xcodeProject, options) {
34
+ function addProductFile(xcodeProject, options) {
34
35
  const { targetName, groupName } = options;
35
36
  const productFileOptions = {
36
37
  basename: `${targetName}.appex`,
@@ -1 +1 @@
1
- {"version":3,"file":"productFile.js","sourceRoot":"","sources":["../../../../src/ios-widget/xcode/productFile.ts"],"names":[],"mappings":"AAOA,SAAS,wBAAwB,CAAC,YAA0B,EAAE,UAAkB;IAC9E,MAAM,oBAAoB,GAAG,YAAY,CAAC,uBAAuB,EAAE,CAAA;IACnE,MAAM,iBAAiB,GAAG,GAAG,UAAU,QAAQ,CAAA;IAE/C,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC,EAAE,CAAC;QACpD,IAAI,WAAW,CAAC,IAAI,CAAC,GAAG,CA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