expo-targets 0.3.0 → 0.3.2

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 (355) hide show
  1. package/README.md +5 -4
  2. package/android/build.gradle +4 -0
  3. package/android/src/main/AndroidManifest.xml +11 -0
  4. package/android/src/main/java/expo/modules/targets/extension/ExpoTargetsActivityHolder.kt +37 -0
  5. package/android/src/main/java/expo/modules/targets/extension/ExpoTargetsExtensionModule.kt +59 -8
  6. package/android/src/main/java/expo/modules/targets/extension/ExpoTargetsHarnessActivity.kt +28 -0
  7. package/android/src/main/java/expo/modules/targets/extension/ExpoTargetsReactTargetActivity.kt +123 -0
  8. package/android/src/main/java/expo/modules/targets/extension/ExpoTargetsSharedIntent.kt +89 -0
  9. package/android/src/main/java/expo/modules/targets/extension/ExpoTargetsTargetActivity.kt +363 -0
  10. package/android/src/main/java/expo/modules/targets/liveActivity/ExpoTargetsLiveActivityModule.kt +153 -0
  11. package/android/src/main/java/expo/modules/targets/notification/ExpoTargetsNotificationModule.kt +134 -0
  12. package/android/src/main/java/expo/modules/targets/notification/ExpoTargetsNotificationRouter.kt +192 -0
  13. package/android/src/main/java/expo/modules/targets/notification/ExpoTargetsNotificationService.kt +92 -0
  14. package/android/src/main/java/expo/modules/targets/storage/ExpoTargetsStorageModule.kt +127 -42
  15. package/android/src/main/java/expo/modules/targets/system/ExpoTargetsAutofillService.kt +28 -0
  16. package/android/src/main/java/expo/modules/targets/system/ExpoTargetsCallScreeningService.kt +47 -0
  17. package/android/src/main/java/expo/modules/targets/system/ExpoTargetsDocumentsProvider.kt +148 -0
  18. package/android/src/main/java/expo/modules/targets/system/ExpoTargetsFileProviderUiActivity.kt +47 -0
  19. package/android/src/main/java/expo/modules/targets/system/ExpoTargetsInputMethodService.kt +41 -0
  20. package/android/src/main/java/expo/modules/targets/system/ExpoTargetsPrintService.kt +34 -0
  21. package/android/src/main/java/expo/modules/targets/system/ExpoTargetsVpnService.kt +32 -0
  22. package/android/src/main/res/layout/expo_targets_notification_content.xml +29 -0
  23. package/android/src/main/res/xml/expo_targets_autofill_service.xml +3 -0
  24. package/android/src/main/res/xml/expo_targets_method.xml +9 -0
  25. package/android/src/main/res/xml/expo_targets_print_service.xml +4 -0
  26. package/build/metro/src/withTargets.d.ts.map +1 -1
  27. package/build/metro/src/withTargets.js +37 -11
  28. package/build/metro/src/withTargets.js.map +1 -1
  29. package/build/plugin/src/android/activationMime.d.ts +12 -0
  30. package/build/plugin/src/android/activationMime.d.ts.map +1 -0
  31. package/build/plugin/src/android/activationMime.js +47 -0
  32. package/build/plugin/src/android/activationMime.js.map +1 -0
  33. package/build/plugin/src/android/resolveUserClass.d.ts +14 -0
  34. package/build/plugin/src/android/resolveUserClass.d.ts.map +1 -0
  35. package/build/plugin/src/android/resolveUserClass.js +48 -0
  36. package/build/plugin/src/android/resolveUserClass.js.map +1 -0
  37. package/build/plugin/src/android/targetSourceSets.d.ts +9 -0
  38. package/build/plugin/src/android/targetSourceSets.d.ts.map +1 -0
  39. package/build/plugin/src/android/targetSourceSets.js +90 -0
  40. package/build/plugin/src/android/targetSourceSets.js.map +1 -0
  41. package/build/plugin/src/android/withAndroidNotification.d.ts +12 -0
  42. package/build/plugin/src/android/withAndroidNotification.d.ts.map +1 -0
  43. package/build/plugin/src/android/withAndroidNotification.js +192 -0
  44. package/build/plugin/src/android/withAndroidNotification.js.map +1 -0
  45. package/build/plugin/src/android/withAndroidShareAction.d.ts +11 -0
  46. package/build/plugin/src/android/withAndroidShareAction.d.ts.map +1 -0
  47. package/build/plugin/src/android/withAndroidShareAction.js +172 -0
  48. package/build/plugin/src/android/withAndroidShareAction.js.map +1 -0
  49. package/build/plugin/src/android/withAndroidSystemService.d.ts +12 -0
  50. package/build/plugin/src/android/withAndroidSystemService.d.ts.map +1 -0
  51. package/build/plugin/src/android/withAndroidSystemService.js +332 -0
  52. package/build/plugin/src/android/withAndroidSystemService.js.map +1 -0
  53. package/build/plugin/src/android/withAndroidTarget.d.ts +2 -1
  54. package/build/plugin/src/android/withAndroidTarget.d.ts.map +1 -1
  55. package/build/plugin/src/android/withAndroidTarget.js +25 -3
  56. package/build/plugin/src/android/withAndroidTarget.js.map +1 -1
  57. package/build/plugin/src/android/withAndroidTargetsConfig.d.ts +9 -0
  58. package/build/plugin/src/android/withAndroidTargetsConfig.d.ts.map +1 -0
  59. package/build/plugin/src/android/withAndroidTargetsConfig.js +52 -0
  60. package/build/plugin/src/android/withAndroidTargetsConfig.js.map +1 -0
  61. package/build/plugin/src/codegen/collectRuntimeConfigs.d.ts +3 -0
  62. package/build/plugin/src/codegen/collectRuntimeConfigs.d.ts.map +1 -1
  63. package/build/plugin/src/codegen/collectRuntimeConfigs.js.map +1 -1
  64. package/build/plugin/src/codegen/index.d.ts +1 -1
  65. package/build/plugin/src/codegen/index.d.ts.map +1 -1
  66. package/build/plugin/src/codegen/index.js +2 -1
  67. package/build/plugin/src/codegen/index.js.map +1 -1
  68. package/build/plugin/src/codegen/typedTargets.d.ts +11 -1
  69. package/build/plugin/src/codegen/typedTargets.d.ts.map +1 -1
  70. package/build/plugin/src/codegen/typedTargets.js +102 -12
  71. package/build/plugin/src/codegen/typedTargets.js.map +1 -1
  72. package/build/plugin/src/config.d.ts +37 -6
  73. package/build/plugin/src/config.d.ts.map +1 -1
  74. package/build/plugin/src/config.js.map +1 -1
  75. package/build/plugin/src/domain/characteristics.d.ts +8 -0
  76. package/build/plugin/src/domain/characteristics.d.ts.map +1 -1
  77. package/build/plugin/src/domain/characteristics.js +81 -10
  78. package/build/plugin/src/domain/characteristics.js.map +1 -1
  79. package/build/plugin/src/domain/index.d.ts +1 -1
  80. package/build/plugin/src/domain/index.d.ts.map +1 -1
  81. package/build/plugin/src/domain/index.js.map +1 -1
  82. package/build/plugin/src/ios/apply/podfile/podfile.d.ts.map +1 -1
  83. package/build/plugin/src/ios/apply/podfile/podfile.js +21 -4
  84. package/build/plugin/src/ios/apply/podfile/podfile.js.map +1 -1
  85. package/build/plugin/src/ios/cng/appShortcutsCodegen.d.ts +1 -1
  86. package/build/plugin/src/ios/cng/appShortcutsCodegen.d.ts.map +1 -1
  87. package/build/plugin/src/ios/cng/appShortcutsCodegen.js +1 -1
  88. package/build/plugin/src/ios/cng/appShortcutsCodegen.js.map +1 -1
  89. package/build/plugin/src/ios/plan/swiftSources.d.ts.map +1 -1
  90. package/build/plugin/src/ios/plan/swiftSources.js +10 -0
  91. package/build/plugin/src/ios/plan/swiftSources.js.map +1 -1
  92. package/build/plugin/src/ios/plan/types.d.ts +6 -0
  93. package/build/plugin/src/ios/plan/types.d.ts.map +1 -1
  94. package/build/plugin/src/ios/utils/reactNativeSwift.d.ts +3 -0
  95. package/build/plugin/src/ios/utils/reactNativeSwift.d.ts.map +1 -1
  96. package/build/plugin/src/ios/utils/reactNativeSwift.js +3 -0
  97. package/build/plugin/src/ios/utils/reactNativeSwift.js.map +1 -1
  98. package/build/plugin/src/resolveExcludedPackages.d.ts +15 -0
  99. package/build/plugin/src/resolveExcludedPackages.d.ts.map +1 -0
  100. package/build/plugin/src/resolveExcludedPackages.js +30 -0
  101. package/build/plugin/src/resolveExcludedPackages.js.map +1 -0
  102. package/build/plugin/src/withTargetsDir.d.ts +5 -0
  103. package/build/plugin/src/withTargetsDir.d.ts.map +1 -1
  104. package/build/plugin/src/withTargetsDir.js +114 -47
  105. package/build/plugin/src/withTargetsDir.js.map +1 -1
  106. package/build/src/Target.d.ts +11 -6
  107. package/build/src/Target.d.ts.map +1 -1
  108. package/build/src/Target.js +4 -1
  109. package/build/src/Target.js.map +1 -1
  110. package/build/src/generatedNames.d.ts +23 -0
  111. package/build/src/generatedNames.d.ts.map +1 -0
  112. package/build/src/generatedNames.js +3 -0
  113. package/build/src/generatedNames.js.map +1 -0
  114. package/build/src/index.d.ts +8 -0
  115. package/build/src/index.d.ts.map +1 -1
  116. package/build/src/index.js +43 -17
  117. package/build/src/index.js.map +1 -1
  118. package/build/src/modules/extension/index.d.ts +1 -0
  119. package/build/src/modules/extension/index.d.ts.map +1 -1
  120. package/build/src/modules/extension/index.js +9 -5
  121. package/build/src/modules/extension/index.js.map +1 -1
  122. package/build/src/modules/extensionBundle/ExtensionUpdates.d.ts +72 -0
  123. package/build/src/modules/extensionBundle/ExtensionUpdates.d.ts.map +1 -0
  124. package/build/src/modules/extensionBundle/ExtensionUpdates.js +165 -0
  125. package/build/src/modules/extensionBundle/ExtensionUpdates.js.map +1 -0
  126. package/build/src/modules/extensionBundle/ExtensionUpdatesApi.d.ts +33 -0
  127. package/build/src/modules/extensionBundle/ExtensionUpdatesApi.d.ts.map +1 -0
  128. package/build/src/modules/extensionBundle/ExtensionUpdatesApi.js +87 -0
  129. package/build/src/modules/extensionBundle/ExtensionUpdatesApi.js.map +1 -0
  130. package/build/src/modules/extensionBundle/constants.d.ts +21 -0
  131. package/build/src/modules/extensionBundle/constants.d.ts.map +1 -0
  132. package/build/src/modules/extensionBundle/constants.js +30 -0
  133. package/build/src/modules/extensionBundle/constants.js.map +1 -0
  134. package/build/src/modules/extensionBundle/enableExtensionUpdates.d.ts +42 -0
  135. package/build/src/modules/extensionBundle/enableExtensionUpdates.d.ts.map +1 -0
  136. package/build/src/modules/extensionBundle/enableExtensionUpdates.js +114 -0
  137. package/build/src/modules/extensionBundle/enableExtensionUpdates.js.map +1 -0
  138. package/build/src/modules/extensionBundle/fsInstall.d.ts +50 -0
  139. package/build/src/modules/extensionBundle/fsInstall.d.ts.map +1 -0
  140. package/build/src/modules/extensionBundle/fsInstall.js +180 -0
  141. package/build/src/modules/extensionBundle/fsInstall.js.map +1 -0
  142. package/build/src/modules/extensionBundle/nativeInstall.d.ts +12 -0
  143. package/build/src/modules/extensionBundle/nativeInstall.d.ts.map +1 -0
  144. package/build/src/modules/extensionBundle/nativeInstall.js +33 -0
  145. package/build/src/modules/extensionBundle/nativeInstall.js.map +1 -0
  146. package/build/src/modules/liveActivity/index.d.ts +13 -6
  147. package/build/src/modules/liveActivity/index.d.ts.map +1 -1
  148. package/build/src/modules/liveActivity/index.js +2 -2
  149. package/build/src/modules/liveActivity/index.js.map +1 -1
  150. package/build/src/modules/notification/index.d.ts +21 -0
  151. package/build/src/modules/notification/index.d.ts.map +1 -0
  152. package/build/src/modules/notification/index.js +32 -0
  153. package/build/src/modules/notification/index.js.map +1 -0
  154. package/build/src/modules/storage/index.d.ts +2 -0
  155. package/build/src/modules/storage/index.d.ts.map +1 -1
  156. package/build/src/modules/storage/index.js +11 -1
  157. package/build/src/modules/storage/index.js.map +1 -1
  158. package/cli/build/checks/easCredentials.d.ts +5 -0
  159. package/cli/build/checks/easCredentials.d.ts.map +1 -0
  160. package/cli/build/checks/easCredentials.js +150 -0
  161. package/cli/build/checks/easCredentials.js.map +1 -0
  162. package/cli/build/checks/heavyExclusions.d.ts +5 -0
  163. package/cli/build/checks/heavyExclusions.d.ts.map +1 -0
  164. package/cli/build/checks/heavyExclusions.js +186 -0
  165. package/cli/build/checks/heavyExclusions.js.map +1 -0
  166. package/cli/build/checks/nameSync.d.ts.map +1 -1
  167. package/cli/build/checks/nameSync.js +31 -2
  168. package/cli/build/checks/nameSync.js.map +1 -1
  169. package/cli/build/checks/plugin.js +1 -1
  170. package/cli/build/checks/plugin.js.map +1 -1
  171. package/cli/build/checks/updateScript.d.ts +7 -0
  172. package/cli/build/checks/updateScript.d.ts.map +1 -0
  173. package/cli/build/checks/updateScript.js +91 -0
  174. package/cli/build/checks/updateScript.js.map +1 -0
  175. package/cli/build/doctor.d.ts.map +1 -1
  176. package/cli/build/doctor.js +11 -1
  177. package/cli/build/doctor.js.map +1 -1
  178. package/cli/build/exportExtensionBundles.d.ts +21 -0
  179. package/cli/build/exportExtensionBundles.d.ts.map +1 -0
  180. package/cli/build/exportExtensionBundles.js +193 -0
  181. package/cli/build/exportExtensionBundles.js.map +1 -0
  182. package/cli/build/extensionBundle/constants.d.ts +21 -0
  183. package/cli/build/extensionBundle/constants.d.ts.map +1 -0
  184. package/cli/build/extensionBundle/constants.js +30 -0
  185. package/cli/build/extensionBundle/constants.js.map +1 -0
  186. package/cli/build/extensionBundle/fsInstall.d.ts +50 -0
  187. package/cli/build/extensionBundle/fsInstall.d.ts.map +1 -0
  188. package/cli/build/extensionBundle/fsInstall.js +180 -0
  189. package/cli/build/extensionBundle/fsInstall.js.map +1 -0
  190. package/cli/build/extensionBundle/hermesExport.d.ts +37 -0
  191. package/cli/build/extensionBundle/hermesExport.d.ts.map +1 -0
  192. package/cli/build/extensionBundle/hermesExport.js +112 -0
  193. package/cli/build/extensionBundle/hermesExport.js.map +1 -0
  194. package/cli/build/generate.d.ts.map +1 -1
  195. package/cli/build/generate.js +7 -1
  196. package/cli/build/generate.js.map +1 -1
  197. package/cli/build/index.js +53 -3
  198. package/cli/build/index.js.map +1 -1
  199. package/cli/build/scaffold/copyTemplate.d.ts +15 -0
  200. package/cli/build/scaffold/copyTemplate.d.ts.map +1 -0
  201. package/cli/build/scaffold/copyTemplate.js +109 -0
  202. package/cli/build/scaffold/copyTemplate.js.map +1 -0
  203. package/cli/build/scaffold/expoConfigIO.d.ts +15 -0
  204. package/cli/build/scaffold/expoConfigIO.d.ts.map +1 -0
  205. package/cli/build/scaffold/expoConfigIO.js +104 -0
  206. package/cli/build/scaffold/expoConfigIO.js.map +1 -0
  207. package/cli/build/scaffold/generateConfig.d.ts +13 -0
  208. package/cli/build/scaffold/generateConfig.d.ts.map +1 -0
  209. package/cli/build/scaffold/generateConfig.js +169 -0
  210. package/cli/build/scaffold/generateConfig.js.map +1 -0
  211. package/cli/build/scaffold/index.d.ts +3 -0
  212. package/cli/build/scaffold/index.d.ts.map +1 -0
  213. package/cli/build/scaffold/index.js +8 -0
  214. package/cli/build/scaffold/index.js.map +1 -0
  215. package/cli/build/scaffold/prompts.d.ts +3 -0
  216. package/cli/build/scaffold/prompts.d.ts.map +1 -0
  217. package/cli/build/scaffold/prompts.js +92 -0
  218. package/cli/build/scaffold/prompts.js.map +1 -0
  219. package/cli/build/scaffold/reactNativeTemplate.d.ts +3 -0
  220. package/cli/build/scaffold/reactNativeTemplate.d.ts.map +1 -0
  221. package/cli/build/scaffold/reactNativeTemplate.js +56 -0
  222. package/cli/build/scaffold/reactNativeTemplate.js.map +1 -0
  223. package/cli/build/scaffold/resolveAndroidPackage.d.ts +5 -0
  224. package/cli/build/scaffold/resolveAndroidPackage.d.ts.map +1 -0
  225. package/cli/build/scaffold/resolveAndroidPackage.js +42 -0
  226. package/cli/build/scaffold/resolveAndroidPackage.js.map +1 -0
  227. package/cli/build/scaffold/resolveAppGroup.d.ts +6 -0
  228. package/cli/build/scaffold/resolveAppGroup.d.ts.map +1 -0
  229. package/cli/build/scaffold/resolveAppGroup.js +68 -0
  230. package/cli/build/scaffold/resolveAppGroup.js.map +1 -0
  231. package/cli/build/scaffold/scaffoldTarget.d.ts +14 -0
  232. package/cli/build/scaffold/scaffoldTarget.d.ts.map +1 -0
  233. package/cli/build/scaffold/scaffoldTarget.js +267 -0
  234. package/cli/build/scaffold/scaffoldTarget.js.map +1 -0
  235. package/cli/build/scaffold/templates/android.d.ts +33 -0
  236. package/cli/build/scaffold/templates/android.d.ts.map +1 -0
  237. package/cli/build/scaffold/templates/android.js +117 -0
  238. package/cli/build/scaffold/templates/android.js.map +1 -0
  239. package/cli/build/scaffold/templates/ios.d.ts +20 -0
  240. package/cli/build/scaffold/templates/ios.d.ts.map +1 -0
  241. package/cli/build/scaffold/templates/ios.js +505 -0
  242. package/cli/build/scaffold/templates/ios.js.map +1 -0
  243. package/cli/build/scaffold/templates/liveActivity.d.ts +11 -0
  244. package/cli/build/scaffold/templates/liveActivity.d.ts.map +1 -0
  245. package/cli/build/scaffold/templates/liveActivity.js +71 -0
  246. package/cli/build/scaffold/templates/liveActivity.js.map +1 -0
  247. package/cli/build/scaffold/utils.d.ts +3 -0
  248. package/cli/build/scaffold/utils.d.ts.map +1 -0
  249. package/cli/build/scaffold/utils.js +15 -0
  250. package/cli/build/scaffold/utils.js.map +1 -0
  251. package/cli/build/scaffold/wireExpoConfig.d.ts +12 -0
  252. package/cli/build/scaffold/wireExpoConfig.d.ts.map +1 -0
  253. package/cli/build/scaffold/wireExpoConfig.js +49 -0
  254. package/cli/build/scaffold/wireExpoConfig.js.map +1 -0
  255. package/cli/build/scaffold/wireHost.d.ts +21 -0
  256. package/cli/build/scaffold/wireHost.d.ts.map +1 -0
  257. package/cli/build/scaffold/wireHost.js +89 -0
  258. package/cli/build/scaffold/wireHost.js.map +1 -0
  259. package/cli/build/scaffold/wireMetro.d.ts +11 -0
  260. package/cli/build/scaffold/wireMetro.d.ts.map +1 -0
  261. package/cli/build/scaffold/wireMetro.js +64 -0
  262. package/cli/build/scaffold/wireMetro.js.map +1 -0
  263. package/cli/build/scaffold/wirePackageJson.d.ts +2 -0
  264. package/cli/build/scaffold/wirePackageJson.d.ts.map +1 -0
  265. package/cli/build/scaffold/wirePackageJson.js +24 -0
  266. package/cli/build/scaffold/wirePackageJson.js.map +1 -0
  267. package/cli/build/types.d.ts +1 -0
  268. package/cli/build/types.d.ts.map +1 -1
  269. package/expo-module.config.json +4 -1
  270. package/ios/ExpoTargetsExtensionBundleModule.swift +172 -0
  271. package/ios/ExpoTargetsMessagesModule.swift +4 -3
  272. package/ios/ExpoTargetsStorage.podspec +1 -0
  273. package/ios/ExpoTargetsStorageModule.swift +13 -0
  274. package/metro/build/withTargets.d.ts.map +1 -1
  275. package/metro/build/withTargets.js +37 -11
  276. package/metro/build/withTargets.js.map +1 -1
  277. package/package.json +5 -1
  278. package/plugin/build/android/activationMime.d.ts +12 -0
  279. package/plugin/build/android/activationMime.d.ts.map +1 -0
  280. package/plugin/build/android/activationMime.js +47 -0
  281. package/plugin/build/android/activationMime.js.map +1 -0
  282. package/plugin/build/android/resolveUserClass.d.ts +14 -0
  283. package/plugin/build/android/resolveUserClass.d.ts.map +1 -0
  284. package/plugin/build/android/resolveUserClass.js +48 -0
  285. package/plugin/build/android/resolveUserClass.js.map +1 -0
  286. package/plugin/build/android/targetSourceSets.d.ts +9 -0
  287. package/plugin/build/android/targetSourceSets.d.ts.map +1 -0
  288. package/plugin/build/android/targetSourceSets.js +90 -0
  289. package/plugin/build/android/targetSourceSets.js.map +1 -0
  290. package/plugin/build/android/withAndroidNotification.d.ts +12 -0
  291. package/plugin/build/android/withAndroidNotification.d.ts.map +1 -0
  292. package/plugin/build/android/withAndroidNotification.js +192 -0
  293. package/plugin/build/android/withAndroidNotification.js.map +1 -0
  294. package/plugin/build/android/withAndroidShareAction.d.ts +11 -0
  295. package/plugin/build/android/withAndroidShareAction.d.ts.map +1 -0
  296. package/plugin/build/android/withAndroidShareAction.js +172 -0
  297. package/plugin/build/android/withAndroidShareAction.js.map +1 -0
  298. package/plugin/build/android/withAndroidSystemService.d.ts +12 -0
  299. package/plugin/build/android/withAndroidSystemService.d.ts.map +1 -0
  300. package/plugin/build/android/withAndroidSystemService.js +332 -0
  301. package/plugin/build/android/withAndroidSystemService.js.map +1 -0
  302. package/plugin/build/android/withAndroidTarget.d.ts +2 -1
  303. package/plugin/build/android/withAndroidTarget.d.ts.map +1 -1
  304. package/plugin/build/android/withAndroidTarget.js +25 -3
  305. package/plugin/build/android/withAndroidTarget.js.map +1 -1
  306. package/plugin/build/android/withAndroidTargetsConfig.d.ts +9 -0
  307. package/plugin/build/android/withAndroidTargetsConfig.d.ts.map +1 -0
  308. package/plugin/build/android/withAndroidTargetsConfig.js +52 -0
  309. package/plugin/build/android/withAndroidTargetsConfig.js.map +1 -0
  310. package/plugin/build/codegen/collectRuntimeConfigs.d.ts +3 -0
  311. package/plugin/build/codegen/collectRuntimeConfigs.d.ts.map +1 -1
  312. package/plugin/build/codegen/collectRuntimeConfigs.js.map +1 -1
  313. package/plugin/build/codegen/index.d.ts +1 -1
  314. package/plugin/build/codegen/index.d.ts.map +1 -1
  315. package/plugin/build/codegen/index.js +2 -1
  316. package/plugin/build/codegen/index.js.map +1 -1
  317. package/plugin/build/codegen/typedTargets.d.ts +11 -1
  318. package/plugin/build/codegen/typedTargets.d.ts.map +1 -1
  319. package/plugin/build/codegen/typedTargets.js +102 -12
  320. package/plugin/build/codegen/typedTargets.js.map +1 -1
  321. package/plugin/build/config.d.ts +37 -6
  322. package/plugin/build/config.d.ts.map +1 -1
  323. package/plugin/build/config.js.map +1 -1
  324. package/plugin/build/domain/characteristics.d.ts +8 -0
  325. package/plugin/build/domain/characteristics.d.ts.map +1 -1
  326. package/plugin/build/domain/characteristics.js +81 -10
  327. package/plugin/build/domain/characteristics.js.map +1 -1
  328. package/plugin/build/domain/index.d.ts +1 -1
  329. package/plugin/build/domain/index.d.ts.map +1 -1
  330. package/plugin/build/domain/index.js.map +1 -1
  331. package/plugin/build/ios/apply/podfile/podfile.d.ts.map +1 -1
  332. package/plugin/build/ios/apply/podfile/podfile.js +21 -4
  333. package/plugin/build/ios/apply/podfile/podfile.js.map +1 -1
  334. package/plugin/build/ios/cng/appShortcutsCodegen.d.ts +1 -1
  335. package/plugin/build/ios/cng/appShortcutsCodegen.d.ts.map +1 -1
  336. package/plugin/build/ios/cng/appShortcutsCodegen.js +1 -1
  337. package/plugin/build/ios/cng/appShortcutsCodegen.js.map +1 -1
  338. package/plugin/build/ios/plan/swiftSources.d.ts.map +1 -1
  339. package/plugin/build/ios/plan/swiftSources.js +10 -0
  340. package/plugin/build/ios/plan/swiftSources.js.map +1 -1
  341. package/plugin/build/ios/plan/types.d.ts +6 -0
  342. package/plugin/build/ios/plan/types.d.ts.map +1 -1
  343. package/plugin/build/ios/templates/ReactNativeViewController.swift +45 -7
  344. package/plugin/build/ios/utils/reactNativeSwift.d.ts +3 -0
  345. package/plugin/build/ios/utils/reactNativeSwift.d.ts.map +1 -1
  346. package/plugin/build/ios/utils/reactNativeSwift.js +3 -0
  347. package/plugin/build/ios/utils/reactNativeSwift.js.map +1 -1
  348. package/plugin/build/resolveExcludedPackages.d.ts +15 -0
  349. package/plugin/build/resolveExcludedPackages.d.ts.map +1 -0
  350. package/plugin/build/resolveExcludedPackages.js +30 -0
  351. package/plugin/build/resolveExcludedPackages.js.map +1 -0
  352. package/plugin/build/withTargetsDir.d.ts +5 -0
  353. package/plugin/build/withTargetsDir.d.ts.map +1 -1
  354. package/plugin/build/withTargetsDir.js +114 -47
  355. package/plugin/build/withTargetsDir.js.map +1 -1
@@ -0,0 +1,505 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TEMPLATE_FILENAMES = exports.IOS_TEMPLATES = exports.INTENT_UI_TEMPLATE = exports.INTENT_TEMPLATE = exports.WALLET_UI_TEMPLATE = exports.WALLET_TEMPLATE = exports.ACTION_TEMPLATE = exports.SHARE_TEMPLATE = exports.MESSAGES_TEMPLATE = exports.IMESSAGE_TEMPLATE = exports.CLIP_TEMPLATE = exports.getWidgetTemplate = void 0;
4
+ function getStaticWidgetTemplate(name, appGroup, mainAttr) {
5
+ return `import WidgetKit
6
+ import SwiftUI
7
+
8
+ struct SimpleEntry: TimelineEntry {
9
+ let date: Date
10
+ let message: String
11
+ }
12
+
13
+ struct Provider: TimelineProvider {
14
+ let appGroup = "${appGroup}"
15
+
16
+ func placeholder(in context: Context) -> SimpleEntry {
17
+ SimpleEntry(date: Date(), message: "Placeholder")
18
+ }
19
+
20
+ func getSnapshot(in context: Context, completion: @escaping (SimpleEntry) -> ()) {
21
+ let entry = SimpleEntry(date: Date(), message: loadMessage())
22
+ completion(entry)
23
+ }
24
+
25
+ func getTimeline(in context: Context, completion: @escaping (Timeline<SimpleEntry>) -> ()) {
26
+ let entry = SimpleEntry(date: Date(), message: loadMessage())
27
+ let nextUpdate = Calendar.current.date(byAdding: .minute, value: 15, to: Date())!
28
+ let timeline = Timeline(entries: [entry], policy: .after(nextUpdate))
29
+ completion(timeline)
30
+ }
31
+
32
+ private func loadMessage() -> String {
33
+ let defaults = UserDefaults(suiteName: appGroup)
34
+ return defaults?.string(forKey: "message") ?? "No message yet"
35
+ }
36
+ }
37
+
38
+ struct WidgetView: View {
39
+ var entry: Provider.Entry
40
+
41
+ var body: some View {
42
+ VStack {
43
+ Text("Widget")
44
+ .font(.headline)
45
+ Text(entry.message)
46
+ .font(.caption)
47
+ }
48
+ }
49
+ }
50
+
51
+ ${mainAttr}struct ${name}: Widget {
52
+ // ⚠️ IMPORTANT: This "kind" must match the "name" field in expo-target.config.json exactly
53
+ let kind: String = "${name}"
54
+
55
+ var body: some WidgetConfiguration {
56
+ StaticConfiguration(kind: kind, provider: Provider()) { entry in
57
+ WidgetView(entry: entry)
58
+ }
59
+ .configurationDisplayName("${name}")
60
+ .description("A simple widget")
61
+ .supportedFamilies([.systemSmall, .systemMedium])
62
+ }
63
+ }`;
64
+ }
65
+ function getConfigurableWidgetTemplate(name, appGroup, mainAttr) {
66
+ const intentName = `${name}ConfigurationIntent`;
67
+ return `import AppIntents
68
+ import SwiftUI
69
+ import WidgetKit
70
+
71
+ /// Edit Widget intent — customize parameters in the widget gallery (iOS 17+).
72
+ struct ${intentName}: WidgetConfigurationIntent {
73
+ static var title: LocalizedStringResource = "Display"
74
+ static var description = IntentDescription("Choose what the widget shows.")
75
+
76
+ @Parameter(title: "List")
77
+ var listId: String?
78
+ }
79
+
80
+ struct SimpleEntry: TimelineEntry {
81
+ let date: Date
82
+ let listId: String
83
+ let message: String
84
+ }
85
+
86
+ struct Provider: AppIntentTimelineProvider {
87
+ typealias Intent = ${intentName}
88
+ typealias Entry = SimpleEntry
89
+
90
+ let appGroup = "${appGroup}"
91
+ private let storageKey = "listId"
92
+
93
+ func placeholder(in context: Context) -> SimpleEntry {
94
+ SimpleEntry(date: Date(), listId: "default", message: "Placeholder")
95
+ }
96
+
97
+ func snapshot(for configuration: ${intentName}, in context: Context) async -> SimpleEntry {
98
+ let listId = resolvedListId(from: configuration)
99
+ return SimpleEntry(date: Date(), listId: listId, message: displayMessage(for: listId))
100
+ }
101
+
102
+ func timeline(for configuration: ${intentName}, in context: Context) async -> Timeline<SimpleEntry> {
103
+ let listId = resolvedListId(from: configuration)
104
+ let entry = SimpleEntry(
105
+ date: Date(),
106
+ listId: listId,
107
+ message: displayMessage(for: listId)
108
+ )
109
+ let nextUpdate = Calendar.current.date(byAdding: .minute, value: 15, to: Date())!
110
+ return Timeline(entries: [entry], policy: .after(nextUpdate))
111
+ }
112
+
113
+ private func resolvedListId(from configuration: ${intentName}) -> String {
114
+ if let intentListId = configuration.listId, !intentListId.isEmpty {
115
+ persistSelection(intentListId)
116
+ return intentListId
117
+ }
118
+ return loadPersistedListId()
119
+ }
120
+
121
+ private func persistSelection(_ listId: String) {
122
+ UserDefaults(suiteName: appGroup)?.set(listId, forKey: storageKey)
123
+ }
124
+
125
+ private func loadPersistedListId() -> String {
126
+ UserDefaults(suiteName: appGroup)?.string(forKey: storageKey) ?? "default"
127
+ }
128
+
129
+ private func displayMessage(for listId: String) -> String {
130
+ "List: \\(listId)"
131
+ }
132
+ }
133
+
134
+ struct WidgetView: View {
135
+ var entry: Provider.Entry
136
+
137
+ var body: some View {
138
+ VStack {
139
+ Text("Widget")
140
+ .font(.headline)
141
+ Text(entry.message)
142
+ .font(.caption)
143
+ }
144
+ }
145
+ }
146
+
147
+ ${mainAttr}struct ${name}: Widget {
148
+ // ⚠️ IMPORTANT: This "kind" must match the "name" field in expo-target.config.json exactly
149
+ let kind: String = "${name}"
150
+
151
+ var body: some WidgetConfiguration {
152
+ AppIntentConfiguration(kind: kind, intent: ${intentName}.self, provider: Provider()) { entry in
153
+ WidgetView(entry: entry)
154
+ }
155
+ .configurationDisplayName("${name}")
156
+ .description("A configurable widget")
157
+ .supportedFamilies([.systemSmall, .systemMedium])
158
+ }
159
+ }`;
160
+ }
161
+ function getWidgetTemplate(name, options) {
162
+ const appGroup = options?.appGroup ?? 'group.com.example.app';
163
+ const mainAttr = options?.useBundle ? '' : '@main\n';
164
+ if (options?.configurable) {
165
+ return getConfigurableWidgetTemplate(name, appGroup, mainAttr);
166
+ }
167
+ return getStaticWidgetTemplate(name, appGroup, mainAttr);
168
+ }
169
+ exports.getWidgetTemplate = getWidgetTemplate;
170
+ exports.CLIP_TEMPLATE = `import SwiftUI
171
+
172
+ @main
173
+ struct AppClipApp: App {
174
+ var body: some Scene {
175
+ WindowGroup {
176
+ ContentView()
177
+ }
178
+ }
179
+ }
180
+
181
+ struct ContentView: View {
182
+ var body: some View {
183
+ VStack {
184
+ Text("App Clip")
185
+ .font(.largeTitle)
186
+ Text("Welcome to App Clip")
187
+ .font(.body)
188
+ }
189
+ .padding()
190
+ }
191
+ }`;
192
+ exports.IMESSAGE_TEMPLATE = `// iMessage sticker pack
193
+ // Add sticker images to Stickers.xcstickers folder`;
194
+ exports.MESSAGES_TEMPLATE = `import UIKit
195
+ import Messages
196
+
197
+ class MessagesViewController: MSMessagesAppViewController {
198
+ override func viewDidLoad() {
199
+ super.viewDidLoad()
200
+
201
+ setupUI()
202
+ }
203
+
204
+ private func setupUI() {
205
+ view.backgroundColor = .systemBackground
206
+
207
+ let titleLabel = UILabel()
208
+ titleLabel.text = "iMessage App"
209
+ titleLabel.font = .boldSystemFont(ofSize: 24)
210
+ titleLabel.textAlignment = .center
211
+ titleLabel.translatesAutoresizingMaskIntoConstraints = false
212
+
213
+ let subtitleLabel = UILabel()
214
+ subtitleLabel.text = "Your interactive iMessage app"
215
+ subtitleLabel.font = .systemFont(ofSize: 16)
216
+ subtitleLabel.textColor = .secondaryLabel
217
+ subtitleLabel.textAlignment = .center
218
+ subtitleLabel.translatesAutoresizingMaskIntoConstraints = false
219
+
220
+ view.addSubview(titleLabel)
221
+ view.addSubview(subtitleLabel)
222
+
223
+ NSLayoutConstraint.activate([
224
+ titleLabel.centerXAnchor.constraint(equalTo: view.centerXAnchor),
225
+ titleLabel.centerYAnchor.constraint(equalTo: view.centerYAnchor, constant: -20),
226
+ subtitleLabel.topAnchor.constraint(equalTo: titleLabel.bottomAnchor, constant: 8),
227
+ subtitleLabel.centerXAnchor.constraint(equalTo: view.centerXAnchor)
228
+ ])
229
+ }
230
+
231
+ // MARK: - Conversation Handling
232
+
233
+ override func didBecomeActive(with conversation: MSConversation) {
234
+ super.didBecomeActive(with: conversation)
235
+
236
+ // Called when the extension is about to move from the inactive to active state.
237
+ // Use this method to configure your extension and restore previously stored state.
238
+
239
+ if let selectedMessage = conversation.selectedMessage {
240
+ // Handle a selected message
241
+ print("Selected message: \\(selectedMessage)")
242
+ }
243
+ }
244
+
245
+ override func willResignActive(with conversation: MSConversation) {
246
+ super.willResignActive(with: conversation)
247
+
248
+ // Called when the extension is about to move from the active to inactive state.
249
+ // This will happen when the user dismisses the extension, changes to a different
250
+ // conversation or selects a different input method.
251
+ }
252
+
253
+ override func didReceive(_ message: MSMessage, conversation: MSConversation) {
254
+ super.didReceive(message, conversation: conversation)
255
+
256
+ // Called when a message arrives that was generated by another instance of this
257
+ // extension on a remote device.
258
+ }
259
+
260
+ override func didStartSending(_ message: MSMessage, conversation: MSConversation) {
261
+ super.didStartSending(message, conversation: conversation)
262
+
263
+ // Called when the user taps the send button.
264
+ }
265
+
266
+ override func didCancelSending(_ message: MSMessage, conversation: MSConversation) {
267
+ super.didCancelSending(message, conversation: conversation)
268
+
269
+ // Called when the user deletes the message without sending it.
270
+ }
271
+
272
+ override func willTransition(to presentationStyle: MSMessagesAppPresentationStyle) {
273
+ super.willTransition(to: presentationStyle)
274
+
275
+ // Called before the extension transitions to a new presentation style.
276
+ // Use this method to prepare for the change in presentation style.
277
+ }
278
+
279
+ override func didTransition(to presentationStyle: MSMessagesAppPresentationStyle) {
280
+ super.didTransition(to: presentationStyle)
281
+
282
+ // Called after the extension transitions to a new presentation style.
283
+ // Use this method to finalize any behaviors associated with the change in presentation style.
284
+ }
285
+ }`;
286
+ exports.SHARE_TEMPLATE = `import UIKit
287
+ import Social
288
+
289
+ class ShareViewController: UIViewController {
290
+ override func viewDidLoad() {
291
+ super.viewDidLoad()
292
+
293
+ let label = UILabel()
294
+ label.text = "Share Extension"
295
+ label.textAlignment = .center
296
+ label.translatesAutoresizingMaskIntoConstraints = false
297
+
298
+ view.addSubview(label)
299
+
300
+ NSLayoutConstraint.activate([
301
+ label.centerXAnchor.constraint(equalTo: view.centerXAnchor),
302
+ label.centerYAnchor.constraint(equalTo: view.centerYAnchor)
303
+ ])
304
+ }
305
+ }`;
306
+ exports.ACTION_TEMPLATE = `import UIKit
307
+
308
+ class ActionViewController: UIViewController {
309
+ override func viewDidLoad() {
310
+ super.viewDidLoad()
311
+
312
+ let label = UILabel()
313
+ label.text = "Action Extension"
314
+ label.textAlignment = .center
315
+ label.translatesAutoresizingMaskIntoConstraints = false
316
+
317
+ view.addSubview(label)
318
+
319
+ NSLayoutConstraint.activate([
320
+ label.centerXAnchor.constraint(equalTo: view.centerXAnchor),
321
+ label.centerYAnchor.constraint(equalTo: view.centerYAnchor)
322
+ ])
323
+ }
324
+ }`;
325
+ exports.WALLET_TEMPLATE = `import PassKit
326
+ import UIKit
327
+
328
+ class PassProvider: PKIssuerProvisioningExtensionHandler {
329
+
330
+ override func status() async -> PKIssuerProvisioningExtensionStatus {
331
+ let status = PKIssuerProvisioningExtensionStatus()
332
+ status.requiresAuthentication = true
333
+ status.passEntriesAvailable = true
334
+ status.remotePassEntriesAvailable = true
335
+ return status
336
+ }
337
+
338
+ override func passEntries() async -> [PKIssuerProvisioningExtensionPassEntry] {
339
+ guard let cardArt = UIImage(named: "CardArt")?.cgImage,
340
+ let config = createAddRequestConfiguration() else {
341
+ return []
342
+ }
343
+
344
+ guard let entry = PKIssuerProvisioningExtensionPaymentPassEntry(
345
+ identifier: "your-card-identifier",
346
+ title: "Your Card",
347
+ art: cardArt,
348
+ addRequestConfiguration: config
349
+ ) else {
350
+ return []
351
+ }
352
+
353
+ return [entry]
354
+ }
355
+
356
+ override func remotePassEntries() async -> [PKIssuerProvisioningExtensionPassEntry] {
357
+ return await passEntries()
358
+ }
359
+
360
+ override func generateAddPaymentPassRequestForPassEntryWithIdentifier(
361
+ _ identifier: String,
362
+ configuration: PKAddPaymentPassRequestConfiguration,
363
+ certificateChain certificates: [Data],
364
+ nonce: Data,
365
+ nonceSignature: Data
366
+ ) async -> PKAddPaymentPassRequest? {
367
+ // In production: send certificates/nonce to server, get encrypted pass data back
368
+ let request = PKAddPaymentPassRequest()
369
+ // request.encryptedPassData = dataFromServer
370
+ // request.activationData = activationDataFromServer
371
+ return request
372
+ }
373
+
374
+ private func createAddRequestConfiguration() -> PKAddPaymentPassRequestConfiguration? {
375
+ guard let config = PKAddPaymentPassRequestConfiguration(encryptionScheme: .ECC_V2) else {
376
+ return nil
377
+ }
378
+ config.cardholderName = "Cardholder Name"
379
+ config.primaryAccountSuffix = "1234"
380
+ config.localizedDescription = "Your Card Description"
381
+ config.primaryAccountIdentifier = ""
382
+ config.paymentNetwork = .visa
383
+ return config
384
+ }
385
+ }`;
386
+ exports.WALLET_UI_TEMPLATE = `import UIKit
387
+ import PassKit
388
+
389
+ class AuthorizationViewController: UIViewController, PKIssuerProvisioningExtensionAuthorizationProviding {
390
+
391
+ var completionHandler: ((PKIssuerProvisioningExtensionAuthorizationResult) -> Void)?
392
+
393
+ override func viewDidLoad() {
394
+ super.viewDidLoad()
395
+ setupUI()
396
+ }
397
+
398
+ private func setupUI() {
399
+ view.backgroundColor = .systemBackground
400
+
401
+ let titleLabel = UILabel()
402
+ titleLabel.text = "Authenticate"
403
+ titleLabel.font = .boldSystemFont(ofSize: 24)
404
+ titleLabel.textAlignment = .center
405
+ titleLabel.translatesAutoresizingMaskIntoConstraints = false
406
+
407
+ let subtitleLabel = UILabel()
408
+ subtitleLabel.text = "Verify your identity to add this card"
409
+ subtitleLabel.font = .systemFont(ofSize: 16)
410
+ subtitleLabel.textColor = .secondaryLabel
411
+ subtitleLabel.textAlignment = .center
412
+ subtitleLabel.translatesAutoresizingMaskIntoConstraints = false
413
+
414
+ let authenticateButton = UIButton(type: .system)
415
+ authenticateButton.setTitle("Authenticate", for: .normal)
416
+ authenticateButton.titleLabel?.font = .boldSystemFont(ofSize: 18)
417
+ authenticateButton.addTarget(self, action: #selector(authenticateTapped), for: .touchUpInside)
418
+ authenticateButton.translatesAutoresizingMaskIntoConstraints = false
419
+
420
+ let cancelButton = UIButton(type: .system)
421
+ cancelButton.setTitle("Cancel", for: .normal)
422
+ cancelButton.addTarget(self, action: #selector(cancelTapped), for: .touchUpInside)
423
+ cancelButton.translatesAutoresizingMaskIntoConstraints = false
424
+
425
+ view.addSubview(titleLabel)
426
+ view.addSubview(subtitleLabel)
427
+ view.addSubview(authenticateButton)
428
+ view.addSubview(cancelButton)
429
+
430
+ NSLayoutConstraint.activate([
431
+ titleLabel.centerXAnchor.constraint(equalTo: view.centerXAnchor),
432
+ titleLabel.centerYAnchor.constraint(equalTo: view.centerYAnchor, constant: -60),
433
+ subtitleLabel.topAnchor.constraint(equalTo: titleLabel.bottomAnchor, constant: 8),
434
+ subtitleLabel.centerXAnchor.constraint(equalTo: view.centerXAnchor),
435
+ authenticateButton.topAnchor.constraint(equalTo: subtitleLabel.bottomAnchor, constant: 32),
436
+ authenticateButton.centerXAnchor.constraint(equalTo: view.centerXAnchor),
437
+ cancelButton.topAnchor.constraint(equalTo: authenticateButton.bottomAnchor, constant: 16),
438
+ cancelButton.centerXAnchor.constraint(equalTo: view.centerXAnchor)
439
+ ])
440
+ }
441
+
442
+ @objc private func authenticateTapped() {
443
+ completionHandler?(.authorized)
444
+ }
445
+
446
+ @objc private func cancelTapped() {
447
+ completionHandler?(.canceled)
448
+ }
449
+ }`;
450
+ exports.INTENT_TEMPLATE = `import Intents
451
+
452
+ class IntentHandler: INExtension {
453
+
454
+ override func handler(for intent: INIntent) -> Any {
455
+ // Return self or specific handler based on intent type
456
+ return self
457
+ }
458
+ }
459
+
460
+ // MARK: - Example Intent Handling
461
+ // Uncomment and customize for your specific intents
462
+
463
+ // extension IntentHandler: INStartWorkoutIntentHandling {
464
+ // func handle(intent: INStartWorkoutIntent, completion: @escaping (INStartWorkoutIntentResponse) -> Void) {
465
+ // let response = INStartWorkoutIntentResponse(code: .continueInApp, userActivity: nil)
466
+ // completion(response)
467
+ // }
468
+ // }`;
469
+ exports.INTENT_UI_TEMPLATE = `import IntentsUI
470
+
471
+ class IntentViewController: UIViewController, INUIHostedViewControlling {
472
+
473
+ override func viewDidLoad() {
474
+ super.viewDidLoad()
475
+ }
476
+
477
+ func configureView(
478
+ for parameters: Set<INParameter>,
479
+ of interaction: INInteraction,
480
+ interactiveBehavior: INUIInteractiveBehavior,
481
+ context: INUIHostedViewContext,
482
+ completion: @escaping (Bool, Set<INParameter>, CGSize) -> Void
483
+ ) {
484
+ // Customize the UI based on the intent
485
+ let desiredSize = CGSize(width: view.bounds.width, height: 100)
486
+ completion(true, parameters, desiredSize)
487
+ }
488
+ }`;
489
+ exports.IOS_TEMPLATES = {
490
+ widget: getWidgetTemplate,
491
+ clip: exports.CLIP_TEMPLATE,
492
+ imessage: exports.IMESSAGE_TEMPLATE,
493
+ messages: exports.MESSAGES_TEMPLATE,
494
+ share: exports.SHARE_TEMPLATE,
495
+ action: exports.ACTION_TEMPLATE,
496
+ wallet: exports.WALLET_TEMPLATE,
497
+ intent: exports.INTENT_TEMPLATE,
498
+ };
499
+ exports.TEMPLATE_FILENAMES = {
500
+ widget: 'Widget.swift',
501
+ messages: 'MessagesViewController.swift',
502
+ wallet: 'PassProvider.swift',
503
+ intent: 'IntentHandler.swift',
504
+ };
505
+ //# sourceMappingURL=ios.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ios.js","sourceRoot":"","sources":["../../../src/scaffold/templates/ios.ts"],"names":[],"mappings":";;;AAQA,SAAS,uBAAuB,CAC9B,IAAY,EACZ,QAAgB,EAChB,QAAgB;IAEhB,OAAO;;;;;;;;;sBASa,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqC5B,QAAQ,UAAU,IAAI;;0BAEE,IAAI;;;;;;qCAMO,IAAI;;;;EAIvC,CAAC;AACH,CAAC;AAED,SAAS,6BAA6B,CACpC,IAAY,EACZ,QAAgB,EAChB,QAAgB;IAEhB,MAAM,UAAU,GAAG,GAAG,IAAI,qBAAqB,CAAC;IAChD,OAAO;;;;;SAKA,UAAU;;;;;;;;;;;;;;;yBAeM,UAAU;;;sBAGb,QAAQ;;;;;;;uCAOS,UAAU;;;;;uCAKV,UAAU;;;;;;;;;;;sDAWK,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkC9D,QAAQ,UAAU,IAAI;;0BAEE,IAAI;;;qDAGuB,UAAU;;;qCAG1B,IAAI;;;;EAIvC,CAAC;AACH,CAAC;AAED,SAAgB,iBAAiB,CAC/B,IAAY,EACZ,OAA+B;IAE/B,MAAM,QAAQ,GAAG,OAAO,EAAE,QAAQ,IAAI,uBAAuB,CAAC;IAC9D,MAAM,QAAQ,GAAG,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IACrD,IAAI,OAAO,EAAE,YAAY,EAAE,CAAC;QAC1B,OAAO,6BAA6B,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACjE,CAAC;IACD,OAAO,uBAAuB,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAC3D,CAAC;AAVD,8CAUC;AAEY,QAAA,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;EAqB3B,CAAC;AAEU,QAAA,iBAAiB,GAAG;oDACmB,CAAC;AAExC,QAAA,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2F/B,CAAC;AAEU,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;EAmB5B,CAAC;AAEU,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;EAkB7B,CAAC;AAEU,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4D7B,CAAC;AAEU,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+DhC,CAAC;AAEU,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;KAkB1B,CAAC;AAEO,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;EAmBhC,CAAC;AAEU,QAAA,aAAa,GAGtB;IACF,MAAM,EAAE,iBAAiB;IACzB,IAAI,EAAE,qBAAa;IACnB,QAAQ,EAAE,yBAAiB;IAC3B,QAAQ,EAAE,yBAAiB;IAC3B,KAAK,EAAE,sBAAc;IACrB,MAAM,EAAE,uBAAe;IACvB,MAAM,EAAE,uBAAe;IACvB,MAAM,EAAE,uBAAe;CACxB,CAAC;AAEW,QAAA,kBAAkB,GAA2B;IACxD,MAAM,EAAE,cAAc;IACtB,QAAQ,EAAE,8BAA8B;IACxC,MAAM,EAAE,oBAAoB;IAC5B,MAAM,EAAE,qBAAqB;CAC9B,CAAC"}
@@ -0,0 +1,11 @@
1
+ /** One-shot Live Activity UI bootstrap (user-owned under targets/<name>/ios/). */
2
+ export declare function getLiveActivityUiTemplate(options: {
3
+ attributesName: string;
4
+ widgetName: string;
5
+ }): string;
6
+ export declare function getWidgetBundleTemplate(options: {
7
+ pascalName: string;
8
+ includeLiveActivity: boolean;
9
+ }): string;
10
+ export declare function getPerformHookStub(hookName: string, intentTitle: string, appGroup: string): string;
11
+ //# sourceMappingURL=liveActivity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"liveActivity.d.ts","sourceRoot":"","sources":["../../../src/scaffold/templates/liveActivity.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,wBAAgB,yBAAyB,CAAC,OAAO,EAAE;IACjD,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,MAAM,CAkCT;AAED,wBAAgB,uBAAuB,CAAC,OAAO,EAAE;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,mBAAmB,EAAE,OAAO,CAAC;CAC9B,GAAG,MAAM,CAaT;AAED,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,MAAM,GACf,MAAM,CAaR"}
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getPerformHookStub = exports.getWidgetBundleTemplate = exports.getLiveActivityUiTemplate = void 0;
4
+ /** One-shot Live Activity UI bootstrap (user-owned under targets/<name>/ios/). */
5
+ function getLiveActivityUiTemplate(options) {
6
+ const { attributesName, widgetName } = options;
7
+ return `import ActivityKit
8
+ import SwiftUI
9
+ import WidgetKit
10
+
11
+ /// User-owned Live Activity UI — safe to edit; prebuild will not overwrite.
12
+ /// Attributes type \`${attributesName}\` is CNG-generated into ios/*/ExpoTargetsGenerated/.
13
+ struct ${widgetName}LiveActivity: Widget {
14
+ var body: some WidgetConfiguration {
15
+ ActivityConfiguration(for: ${attributesName}.self) { context in
16
+ VStack(alignment: .leading, spacing: 4) {
17
+ Text("Live Activity")
18
+ .font(.headline)
19
+ // Customize with context.attributes / context.state fields from config
20
+ }
21
+ .padding()
22
+ } dynamicIsland: { context in
23
+ DynamicIsland {
24
+ DynamicIslandExpandedRegion(.center) {
25
+ Text("Live Activity")
26
+ }
27
+ } compactLeading: {
28
+ Image(systemName: "circle.fill")
29
+ } compactTrailing: {
30
+ Text("…")
31
+ .font(.caption2)
32
+ } minimal: {
33
+ Image(systemName: "circle.fill")
34
+ }
35
+ }
36
+ }
37
+ }
38
+ `;
39
+ }
40
+ exports.getLiveActivityUiTemplate = getLiveActivityUiTemplate;
41
+ function getWidgetBundleTemplate(options) {
42
+ const { pascalName, includeLiveActivity } = options;
43
+ const liveLine = includeLiveActivity
44
+ ? `\n ${pascalName}LiveActivity()`
45
+ : '';
46
+ return `
47
+ @main
48
+ struct ${pascalName}Bundle: WidgetBundle {
49
+ var body: some Widget {
50
+ ${pascalName}()${liveLine}
51
+ }
52
+ }
53
+ `;
54
+ }
55
+ exports.getWidgetBundleTemplate = getWidgetBundleTemplate;
56
+ function getPerformHookStub(hookName, intentTitle, appGroup) {
57
+ return `import Foundation
58
+
59
+ /// User-owned App Intent perform hook — safe to edit; prebuild will not overwrite.
60
+ enum ${hookName} {
61
+ private static let appGroupId = "${appGroup}"
62
+
63
+ static func perform() async throws {
64
+ // TODO: implement "${intentTitle}"
65
+ _ = UserDefaults(suiteName: appGroupId)
66
+ }
67
+ }
68
+ `;
69
+ }
70
+ exports.getPerformHookStub = getPerformHookStub;
71
+ //# sourceMappingURL=liveActivity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"liveActivity.js","sourceRoot":"","sources":["../../../src/scaffold/templates/liveActivity.ts"],"names":[],"mappings":";;;AAAA,kFAAkF;AAClF,SAAgB,yBAAyB,CAAC,OAGzC;IACC,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IAC/C,OAAO;;;;;wBAKe,cAAc;SAC7B,UAAU;;iCAEc,cAAc;;;;;;;;;;;;;;;;;;;;;;;CAuB9C,CAAC;AACF,CAAC;AArCD,8DAqCC;AAED,SAAgB,uBAAuB,CAAC,OAGvC;IACC,MAAM,EAAE,UAAU,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC;IACpD,MAAM,QAAQ,GAAG,mBAAmB;QAClC,CAAC,CAAC,SAAS,UAAU,gBAAgB;QACrC,CAAC,CAAC,EAAE,CAAC;IACP,OAAO;;SAEA,UAAU;;MAEb,UAAU,KAAK,QAAQ;;;CAG5B,CAAC;AACF,CAAC;AAhBD,0DAgBC;AAED,SAAgB,kBAAkB,CAChC,QAAgB,EAChB,WAAmB,EACnB,QAAgB;IAEhB,OAAO;;;OAGF,QAAQ;qCACsB,QAAQ;;;0BAGnB,WAAW;;;;CAIpC,CAAC;AACF,CAAC;AAjBD,gDAiBC"}
@@ -0,0 +1,3 @@
1
+ export declare function kebabToPascal(kebab: string): string;
2
+ export declare function pascalToCamel(pascal: string): string;
3
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/scaffold/utils.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKnD;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEpD"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.pascalToCamel = exports.kebabToPascal = void 0;
4
+ function kebabToPascal(kebab) {
5
+ return kebab
6
+ .split('-')
7
+ .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
8
+ .join('');
9
+ }
10
+ exports.kebabToPascal = kebabToPascal;
11
+ function pascalToCamel(pascal) {
12
+ return pascal.charAt(0).toLowerCase() + pascal.slice(1);
13
+ }
14
+ exports.pascalToCamel = pascalToCamel;
15
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/scaffold/utils.ts"],"names":[],"mappings":";;;AAAA,SAAgB,aAAa,CAAC,KAAa;IACzC,OAAO,KAAK;SACT,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SAC3D,IAAI,CAAC,EAAE,CAAC,CAAC;AACd,CAAC;AALD,sCAKC;AAED,SAAgB,aAAa,CAAC,MAAc;IAC1C,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AAC1D,CAAC;AAFD,sCAEC"}
@@ -0,0 +1,12 @@
1
+ export type ExpoWireResult = {
2
+ ok: true;
3
+ pluginAdded?: boolean;
4
+ appGroupAdded?: boolean;
5
+ } | {
6
+ ok: false;
7
+ reason: 'js-config';
8
+ snippet: string;
9
+ };
10
+ export declare function wireExpoConfig(projectRoot: string): ExpoWireResult;
11
+ export declare function formatAppGroupSnippet(bundleId: string): string;
12
+ //# sourceMappingURL=wireExpoConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wireExpoConfig.d.ts","sourceRoot":"","sources":["../../src/scaffold/wireExpoConfig.ts"],"names":[],"mappings":"AAoBA,MAAM,MAAM,cAAc,GACtB;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAAC,aAAa,CAAC,EAAE,OAAO,CAAA;CAAE,GAC5D;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,WAAW,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAMxD,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CAgClE;AAED,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE9D"}