native-update 2.0.0 → 3.1.1

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 (304) hide show
  1. package/Readme.md +28 -14
  2. package/android/manifest-additions.xml +28 -0
  3. package/android/src/main/AndroidManifest.xml +3 -7
  4. package/android/src/main/java/com/aoneahsan/nativeupdate/BackgroundNotificationManager.kt +21 -13
  5. package/android/src/main/java/com/aoneahsan/nativeupdate/LiveUpdatePlugin.kt +196 -29
  6. package/android/src/main/java/com/aoneahsan/nativeupdate/NativeUpdatePlugin.kt +21 -36
  7. package/cli/AGENTS.md +24 -1
  8. package/cli/CLAUDE.md +24 -1
  9. package/cli/commands/backend-create.js +56 -15
  10. package/cli/commands/bundle-create.js +39 -7
  11. package/cli/commands/monitor.js +72 -51
  12. package/cli/index.js +10 -24
  13. package/cli/package.json +11 -3
  14. package/dist/esm/app-review/app-review-manager.js +0 -1
  15. package/dist/esm/app-review/index.js +0 -1
  16. package/dist/esm/app-review/platform-review-handler.js +0 -1
  17. package/dist/esm/app-review/review-conditions-checker.js +0 -1
  18. package/dist/esm/app-review/review-rate-limiter.js +0 -1
  19. package/dist/esm/app-review/types.js +0 -1
  20. package/dist/esm/app-update/app-update-checker.d.ts +19 -0
  21. package/dist/esm/app-update/app-update-checker.js +19 -1
  22. package/dist/esm/app-update/app-update-installer.d.ts +1 -0
  23. package/dist/esm/app-update/app-update-installer.js +19 -8
  24. package/dist/esm/app-update/app-update-manager.js +0 -1
  25. package/dist/esm/app-update/app-update-notifier.js +0 -1
  26. package/dist/esm/app-update/index.js +0 -1
  27. package/dist/esm/app-update/platform-app-update.js +12 -3
  28. package/dist/esm/app-update/types.js +0 -1
  29. package/dist/esm/background-update/background-scheduler.d.ts +21 -0
  30. package/dist/esm/background-update/background-scheduler.js +47 -25
  31. package/dist/esm/background-update/index.js +0 -1
  32. package/dist/esm/background-update/notification-manager.js +0 -1
  33. package/dist/esm/config/support.js +0 -1
  34. package/dist/esm/core/analytics.d.ts +13 -0
  35. package/dist/esm/core/analytics.js +15 -1
  36. package/dist/esm/core/cache-manager.js +0 -1
  37. package/dist/esm/core/config.d.ts +0 -15
  38. package/dist/esm/core/config.js +0 -4
  39. package/dist/esm/core/errors.d.ts +1 -0
  40. package/dist/esm/core/errors.js +1 -1
  41. package/dist/esm/core/event-emitter.d.ts +0 -3
  42. package/dist/esm/core/event-emitter.js +8 -3
  43. package/dist/esm/core/logger.js +0 -1
  44. package/dist/esm/core/performance.js +0 -1
  45. package/dist/esm/core/plugin-manager.js +3 -1
  46. package/dist/esm/core/security.d.ts +11 -0
  47. package/dist/esm/core/security.js +27 -1
  48. package/dist/esm/core/update-check.d.ts +89 -0
  49. package/dist/esm/core/update-check.js +86 -0
  50. package/dist/esm/definitions.d.ts +11 -12
  51. package/dist/esm/definitions.js +0 -1
  52. package/dist/esm/index.d.ts +3 -2
  53. package/dist/esm/index.js +3 -1
  54. package/dist/esm/live-update/bundle-manager.d.ts +8 -0
  55. package/dist/esm/live-update/bundle-manager.js +20 -1
  56. package/dist/esm/live-update/certificate-pinning.js +0 -1
  57. package/dist/esm/live-update/delta-processor.d.ts +1 -1
  58. package/dist/esm/live-update/delta-processor.js +3 -1
  59. package/dist/esm/live-update/download-manager.js +9 -2
  60. package/dist/esm/live-update/rollout-checker.d.ts +1 -1
  61. package/dist/esm/live-update/rollout-checker.js +5 -6
  62. package/dist/esm/live-update/update-manager.js +0 -1
  63. package/dist/esm/live-update/version-manager.d.ts +0 -12
  64. package/dist/esm/live-update/version-manager.js +43 -95
  65. package/dist/esm/plugin.js +71 -51
  66. package/dist/esm/security/crypto.js +11 -7
  67. package/dist/esm/security/validator.js +0 -1
  68. package/dist/esm/types/rollout.d.ts +91 -0
  69. package/dist/esm/types/rollout.js +25 -0
  70. package/dist/esm/web.d.ts +8 -0
  71. package/dist/esm/web.js +148 -54
  72. package/dist/plugin.cjs.js +1 -2
  73. package/dist/plugin.esm.js +1 -2
  74. package/dist/plugin.js +2 -3
  75. package/docs/AGENTS.md +9 -0
  76. package/docs/CHANGELOG.md +140 -0
  77. package/docs/CLAUDE.md +10 -1
  78. package/docs/DEPLOY_NOTES.md +117 -0
  79. package/docs/MANUAL-TASKS.md +30 -0
  80. package/docs/MARKETING_WEBSITE_TRACKER.md +18 -2
  81. package/docs/MIGRATION.md +83 -0
  82. package/docs/PACKAGES.md +167 -0
  83. package/docs/PERFORMANCE.md +110 -0
  84. package/docs/PROJECT_COMPLETION_TRACKER.md +4 -35
  85. package/docs/README.md +0 -1
  86. package/docs/REMAINING_FEATURES.md +123 -76
  87. package/docs/ROADMAP.md +200 -120
  88. package/docs/SECURITY-IF-REPO-PUBLIC.md +232 -0
  89. package/docs/TESTING_REQUIREMENTS.md +1 -112
  90. package/docs/ai-knowledge-base/00-project-profile.md +38 -0
  91. package/docs/ai-knowledge-base/01-features.md +46 -0
  92. package/docs/ai-knowledge-base/02-routes.md +72 -0
  93. package/docs/ai-knowledge-base/03-tech-stack.md +57 -0
  94. package/docs/ai-knowledge-base/README.md +23 -0
  95. package/docs/analytics-tracking.md +37 -0
  96. package/docs/api/background-update-api.md +14 -1
  97. package/docs/capacitor-official-plugins.md +46 -0
  98. package/docs/capawesome-plugins.md +29 -0
  99. package/docs/deployment/HOSTINGER_DEPLOY.md +75 -34
  100. package/docs/deployment/PRODUCTION-DEPLOY-CHECKLIST.md +184 -0
  101. package/docs/docs-site/plan.md +201 -0
  102. package/docs/docs-site/scope.md +127 -0
  103. package/docs/docs-site/tracker.json +235 -0
  104. package/docs/error-handling-tracking.md +37 -0
  105. package/docs/features/e2e-full-verification/00-overview.md +99 -0
  106. package/docs/features/e2e-full-verification/00-tracker.json +284 -0
  107. package/docs/features/e2e-full-verification/phase01-backend-schema-fixes.md +183 -0
  108. package/docs/features/e2e-full-verification/phase02-test-auth.md +176 -0
  109. package/docs/features/e2e-full-verification/phase03-api-test-coverage.md +63 -0
  110. package/docs/features/e2e-full-verification/phase04-frontend-package-contract-audit.md +73 -0
  111. package/docs/features/e2e-full-verification/phase05-browser-e2e-matrix.md +69 -0
  112. package/docs/features/e2e-full-verification/phase06-deploy-prod-smoke.md +51 -0
  113. package/docs/features/e2e-full-verification/results/phase01-drift-report.md +50 -0
  114. package/docs/features/e2e-full-verification/results/phase03-coverage-matrix.md +215 -0
  115. package/docs/features/e2e-full-verification/results/phase04-frontend-contract.md +139 -0
  116. package/docs/features/e2e-full-verification/results/phase05-e2e-results.md +99 -0
  117. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-01-dashboard.png +0 -0
  118. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-02-signup.png +0 -0
  119. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-03-settings-persisted.png +0 -0
  120. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04a-app-created.png +0 -0
  121. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04b-duplicate-bundle-422.png +0 -0
  122. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-05-plan-limit-403.png +0 -0
  123. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08a-upload-graceful-fail.png +0 -0
  124. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08b-builds-list.png +0 -0
  125. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-10-rollout-25pct.png +0 -0
  126. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-11-analytics.png +0 -0
  127. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-12-drive-disconnected.png +0 -0
  128. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-13-pricing.png +0 -0
  129. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-14-isolation-403.png +0 -0
  130. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15a-admin-overview.png +0 -0
  131. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15b-regular-user-admin-redirect.png +0 -0
  132. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-16a-delete-dialog.png +0 -0
  133. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-17-mobile-375.png +0 -0
  134. package/docs/features/e2e-full-verification/results/route-list.json +1 -0
  135. package/docs/features/queues-and-emails/00-overview.md +41 -0
  136. package/docs/features/queues-and-emails/00-tracker.json +99 -0
  137. package/docs/features/queues-and-emails/phase01-foundation.md +15 -0
  138. package/docs/features/queues-and-emails/phase02-queued-jobs.md +19 -0
  139. package/docs/features/queues-and-emails/phase03-transactional-emails.md +16 -0
  140. package/docs/features/queues-and-emails/phase04-quota-ops.md +17 -0
  141. package/docs/features/queues-and-emails/phase05-async-build-processing-DECISION.md +16 -0
  142. package/docs/features/queues-and-emails/phase06-verify-deploy.md +17 -0
  143. package/docs/guides/testing-guide.md +15 -41
  144. package/docs/package-audit.md +41 -0
  145. package/docs/play-store/ASO-METADATA.md +5 -0
  146. package/docs/play-store/DATA-SAFETY.md +5 -0
  147. package/docs/play-store/DECLARATIONS.md +5 -0
  148. package/docs/play-store/README.md +27 -0
  149. package/docs/play-store/RELEASE-NOTES.md +99 -0
  150. package/docs/play-store/RELEASE-STEPS.md +6 -0
  151. package/docs/play-store/STORE-LISTING.md +7 -0
  152. package/docs/play-store/SUBMISSION-CHECKLIST.md +5 -0
  153. package/docs/production-readiness.md +1 -1
  154. package/docs/project-audit/2026-05-16/00-FINALIZATION-PLAN.md +123 -0
  155. package/docs/project-audit/2026-05-16/01-BATCH-PLAN.md +227 -0
  156. package/docs/project-audit/2026-05-16/02-AUDIT-FINDINGS.md +144 -0
  157. package/docs/project-audit/2026-05-16/sessions/batch-01.md +42 -0
  158. package/docs/project-audit/2026-05-16/sessions/batch-02.md +74 -0
  159. package/docs/project-audit/2026-05-16/sessions/batch-03.md +71 -0
  160. package/docs/project-audit/2026-05-16/sessions/batch-04.md +88 -0
  161. package/docs/project-audit/2026-05-16/sessions/batch-05.md +63 -0
  162. package/docs/project-audit/2026-05-16/sessions/batch-06.md +103 -0
  163. package/docs/project-audit/2026-05-16/sessions/batch-07.md +61 -0
  164. package/docs/project-audit/2026-05-16/sessions/batch-08.md +101 -0
  165. package/docs/project-audit/2026-05-16/sessions/batch-09.md +105 -0
  166. package/docs/project-audit/2026-05-16/sessions/batch-10.md +102 -0
  167. package/docs/project-audit/AUDIT-HISTORY.md +74 -0
  168. package/docs/project-audit/BATCH-PLAN.md +168 -0
  169. package/docs/project-audit/MARKETING-WEBSITE-FINDINGS-2026-05-11.md +73 -0
  170. package/docs/project-audit/PRODUCTION-READINESS-AUDIT-2026-05-08.md +275 -0
  171. package/docs/project-finalization/00-tracker.json +60 -0
  172. package/docs/project-knowledge-base/01-system-overview.md +39 -30
  173. package/docs/project-knowledge-base/02-routes-pages-forms-users.md +87 -81
  174. package/docs/project-knowledge-base/03-tech-stack-modules-services.md +140 -108
  175. package/docs/project-knowledge-base/04-data-models-integrations.md +191 -254
  176. package/docs/project-knowledge-base/05-docs-corpus-inventory.md +83 -20
  177. package/docs/project-knowledge-base/06-operations-testing-legal-content.md +67 -29
  178. package/docs/project-knowledge-base/README.md +27 -14
  179. package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-05-19.md +81 -0
  180. package/docs/rules-tracker.md +102 -0
  181. package/docs/security/PRE-LAUNCH-PENTEST-CHECKLIST.md +116 -0
  182. package/docs/server-requirements.md +41 -11
  183. package/docs/social-media-marketing/README.md +81 -0
  184. package/docs/social-media-marketing/posts-batch-01.md +613 -0
  185. package/docs/social-media-marketing/posts-batch-02.md +528 -0
  186. package/docs/social-media-marketing/whatsapp-messages-batch-01.md +458 -0
  187. package/docs/social-media-marketing/whatsapp-status-batch-01.md +355 -0
  188. package/docs/tracking/finalization-2026-05-16-tracker.json +346 -0
  189. package/docs/tracking/full-audit-tracker.json +121 -0
  190. package/docs/tracking/production-readiness-audit-tracker.json +429 -0
  191. package/ios/Plugin/BackgroundUpdate/BackgroundUpdatePlugin.swift +16 -3
  192. package/ios/Plugin/LiveUpdate/LiveUpdatePlugin.swift +71 -47
  193. package/ios/Plugin/NativeUpdatePlugin.swift +14 -9
  194. package/package.json +29 -29
  195. package/cli/node_modules/.yarn-integrity +0 -16
  196. package/cli/node_modules/commander/LICENSE +0 -22
  197. package/cli/node_modules/commander/Readme.md +0 -1148
  198. package/cli/node_modules/commander/esm.mjs +0 -16
  199. package/cli/node_modules/commander/index.js +0 -26
  200. package/cli/node_modules/commander/lib/argument.js +0 -145
  201. package/cli/node_modules/commander/lib/command.js +0 -2179
  202. package/cli/node_modules/commander/lib/error.js +0 -43
  203. package/cli/node_modules/commander/lib/help.js +0 -462
  204. package/cli/node_modules/commander/lib/option.js +0 -329
  205. package/cli/node_modules/commander/lib/suggestSimilar.js +0 -100
  206. package/cli/node_modules/commander/package-support.json +0 -16
  207. package/cli/node_modules/commander/package.json +0 -80
  208. package/cli/node_modules/commander/typings/esm.d.mts +0 -3
  209. package/cli/node_modules/commander/typings/index.d.ts +0 -884
  210. package/cli/yarn.lock +0 -8
  211. package/dist/esm/__tests__/bundle-manager.test.d.ts +0 -1
  212. package/dist/esm/__tests__/bundle-manager.test.js +0 -151
  213. package/dist/esm/__tests__/bundle-manager.test.js.map +0 -1
  214. package/dist/esm/__tests__/config.test.d.ts +0 -1
  215. package/dist/esm/__tests__/config.test.js +0 -70
  216. package/dist/esm/__tests__/config.test.js.map +0 -1
  217. package/dist/esm/__tests__/delta-processor.test.d.ts +0 -1
  218. package/dist/esm/__tests__/delta-processor.test.js +0 -77
  219. package/dist/esm/__tests__/delta-processor.test.js.map +0 -1
  220. package/dist/esm/__tests__/firestore-schema.test.d.ts +0 -1
  221. package/dist/esm/__tests__/firestore-schema.test.js +0 -74
  222. package/dist/esm/__tests__/firestore-schema.test.js.map +0 -1
  223. package/dist/esm/__tests__/integration.test.d.ts +0 -1
  224. package/dist/esm/__tests__/integration.test.js +0 -78
  225. package/dist/esm/__tests__/integration.test.js.map +0 -1
  226. package/dist/esm/__tests__/manifest-reader.test.d.ts +0 -1
  227. package/dist/esm/__tests__/manifest-reader.test.js +0 -271
  228. package/dist/esm/__tests__/manifest-reader.test.js.map +0 -1
  229. package/dist/esm/__tests__/rollout-checker.test.d.ts +0 -1
  230. package/dist/esm/__tests__/rollout-checker.test.js +0 -210
  231. package/dist/esm/__tests__/rollout-checker.test.js.map +0 -1
  232. package/dist/esm/__tests__/security-enforcement.test.d.ts +0 -1
  233. package/dist/esm/__tests__/security-enforcement.test.js +0 -95
  234. package/dist/esm/__tests__/security-enforcement.test.js.map +0 -1
  235. package/dist/esm/__tests__/security.test.d.ts +0 -1
  236. package/dist/esm/__tests__/security.test.js +0 -54
  237. package/dist/esm/__tests__/security.test.js.map +0 -1
  238. package/dist/esm/__tests__/version-manager.test.d.ts +0 -1
  239. package/dist/esm/__tests__/version-manager.test.js +0 -45
  240. package/dist/esm/__tests__/version-manager.test.js.map +0 -1
  241. package/dist/esm/app-review/app-review-manager.js.map +0 -1
  242. package/dist/esm/app-review/index.js.map +0 -1
  243. package/dist/esm/app-review/platform-review-handler.js.map +0 -1
  244. package/dist/esm/app-review/review-conditions-checker.js.map +0 -1
  245. package/dist/esm/app-review/review-rate-limiter.js.map +0 -1
  246. package/dist/esm/app-review/types.js.map +0 -1
  247. package/dist/esm/app-update/app-update-checker.js.map +0 -1
  248. package/dist/esm/app-update/app-update-installer.js.map +0 -1
  249. package/dist/esm/app-update/app-update-manager.js.map +0 -1
  250. package/dist/esm/app-update/app-update-notifier.js.map +0 -1
  251. package/dist/esm/app-update/index.js.map +0 -1
  252. package/dist/esm/app-update/platform-app-update.js.map +0 -1
  253. package/dist/esm/app-update/types.js.map +0 -1
  254. package/dist/esm/background-update/background-scheduler.js.map +0 -1
  255. package/dist/esm/background-update/index.js.map +0 -1
  256. package/dist/esm/background-update/notification-manager.js.map +0 -1
  257. package/dist/esm/config/support.js.map +0 -1
  258. package/dist/esm/core/analytics.js.map +0 -1
  259. package/dist/esm/core/cache-manager.js.map +0 -1
  260. package/dist/esm/core/config.js.map +0 -1
  261. package/dist/esm/core/errors.js.map +0 -1
  262. package/dist/esm/core/event-emitter.js.map +0 -1
  263. package/dist/esm/core/logger.js.map +0 -1
  264. package/dist/esm/core/performance.js.map +0 -1
  265. package/dist/esm/core/plugin-manager.js.map +0 -1
  266. package/dist/esm/core/security.js.map +0 -1
  267. package/dist/esm/definitions.js.map +0 -1
  268. package/dist/esm/firestore/firestore-client.d.ts +0 -109
  269. package/dist/esm/firestore/firestore-client.js +0 -264
  270. package/dist/esm/firestore/firestore-client.js.map +0 -1
  271. package/dist/esm/firestore/index.d.ts +0 -11
  272. package/dist/esm/firestore/index.js +0 -11
  273. package/dist/esm/firestore/index.js.map +0 -1
  274. package/dist/esm/firestore/manifest-reader.d.ts +0 -87
  275. package/dist/esm/firestore/manifest-reader.js +0 -294
  276. package/dist/esm/firestore/manifest-reader.js.map +0 -1
  277. package/dist/esm/firestore/schema.d.ts +0 -507
  278. package/dist/esm/firestore/schema.js +0 -73
  279. package/dist/esm/firestore/schema.js.map +0 -1
  280. package/dist/esm/index.js.map +0 -1
  281. package/dist/esm/live-update/bundle-manager.js.map +0 -1
  282. package/dist/esm/live-update/certificate-pinning.js.map +0 -1
  283. package/dist/esm/live-update/delta-processor.js.map +0 -1
  284. package/dist/esm/live-update/download-manager.js.map +0 -1
  285. package/dist/esm/live-update/rollout-checker.js.map +0 -1
  286. package/dist/esm/live-update/update-manager.js.map +0 -1
  287. package/dist/esm/live-update/version-manager.js.map +0 -1
  288. package/dist/esm/plugin.js.map +0 -1
  289. package/dist/esm/security/crypto.js.map +0 -1
  290. package/dist/esm/security/validator.js.map +0 -1
  291. package/dist/esm/web.js.map +0 -1
  292. package/dist/plugin.cjs.js.map +0 -1
  293. package/dist/plugin.esm.js.map +0 -1
  294. package/dist/plugin.js.map +0 -1
  295. package/docs/FIREBASE_INTEGRATION_TRACKER.md +0 -321
  296. package/docs/FIREBASE_QUERIES_AND_INDEXES_AUDIT.md +0 -221
  297. package/docs/examples/firebase-backend-example.md +0 -27
  298. package/docs/features/laravel-nova-backend/credentials.ignore.md +0 -34
  299. package/docs/guides/no-cost-backend-implementation-plan.md +0 -77
  300. package/docs/guides/no-cost-firestore-google-drive-backend.md +0 -60
  301. package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-03-16.md +0 -454
  302. package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-03-24.md +0 -66
  303. package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-03-25.md +0 -67
  304. /package/docs/{MARKETING_WEBSITE_PLAN.md → archive/MARKETING_WEBSITE_PLAN.md} +0 -0
@@ -0,0 +1,99 @@
1
+ {
2
+ "$schema": "queues-and-emails-tracker",
3
+ "description": "Resumable tracker for queue adoption + transactional email across the Laravel backend. The first phase/sub-task with status 'pending' or 'in_progress' is the next thing to work on.",
4
+ "module": "queues-and-emails",
5
+ "createdAt": "2026-07-13",
6
+ "lastUpdated": "2026-07-13",
7
+ "planFile": "/Users/pc/.claude/plans/queues-and-emails-native-update.md",
8
+ "overview": "docs/features/queues-and-emails/00-overview.md",
9
+ "modelWorkflow": "Fable 5 planned AND implemented (owner switched back to Fable and asked for everything now, 2026-07-13). Local implementation is COMPLETE; only the server deploy (phase06.5) remains.",
10
+ "userDecisions": {
11
+ "workerModel": "Scheduler-driven `queue:work --stop-when-empty --max-time=50` every minute via routes/console.php (withoutOverlapping(10) + runInBackground). SUPERSEDES the 2026-07-12 server-session advice to add a second cron — the queue:work hPanel cron must be DELETED; schedule:run is the only cron.",
12
+ "queueCount": "ONE queue (default). No named queues.",
13
+ "mailTransport": "FilesHub email API (owner directive 2026-07-13: FilesHub for email sending + file storage globally, unless another tool is named). Custom transport app/Mail/Transport/FilesHubTransport.php → POST /api/v1/emails/send, reusing FILESHUB_* keys; the API key needs the `email` permission (docs/MANUAL-TASKS.md row 10). MAIL_MAILER=log locally; array in tests. Prod stays on `log` (safe) until the key has the email permission. SUPERSEDES the earlier Hostinger-SMTP decision — no SMTP anywhere.",
14
+ "updateCheckAnalytics": "STAYS dispatch()->afterResponse() — deliberately NOT moved to the queue (would add a jobs-table INSERT+DELETE per update check on the hottest path).",
15
+ "asyncBuildProcessing": "IMPLEMENTED env-gated (owner asked for the plan 'as complete as possible' + all backend work done now): NATIVE_UPDATE_ASYNC_BUILD_PROCESSING, default FALSE (kill-switch). Sync path unchanged when off. Before enabling in prod: dashboard builds page should poll/refresh 'processing' status (it already displays + filters the status).",
16
+ "tests": "No new test files (owner global rule). One existing test legitimately flipped: MeControllerTest's finding-#7 gap-pin now asserts the FIXED behavior (account deletion queues FilesHub cleanup for 'drive'-labeled rows)."
17
+ },
18
+ "knownRisks": [
19
+ "Email quota: FilesHub allows ~450 mails/day per sending account (429 → queued retry with backoff); deliverability is FilesHub's concern (its own sending accounts), not this app's.",
20
+ "PayPal is now ACK'd 200 immediately after signature verify — retries are ours (3 tries + backoff); queue:alert-failed daily mail is the safety net for exhausted retries.",
21
+ "Zero-copy promotions share fileshub_public_id across build rows; deletion previously could destroy a shared object — Build::queueStoredFileDeletion now guards (latent prod bug, fixed in passing).",
22
+ "withoutOverlapping uses the cache store for its mutex — prod CACHE_STORE=database (verified present).",
23
+ "The scheduler cron on prod is still broken (hPanel arg-parsing, MANUAL-TASKS row 8) — until the owner fixes it, NOTHING scheduled runs on prod, including the queue worker."
24
+ ],
25
+ "phases": [
26
+ {
27
+ "id": "phase01",
28
+ "title": "Queue + mail foundation (env contract, scheduler worker, BaseQueuedNotification)",
29
+ "status": "complete",
30
+ "completedAt": "2026-07-13",
31
+ "subTasks": [
32
+ { "id": "phase01.1", "title": "MAIL_* + mau_warning_ratio + async-flag env/config contract in .env + .env.example + config/native_update.php", "status": "complete", "awaitingUser": false },
33
+ { "id": "phase01.2", "title": "Scheduler-driven queue worker + queue:prune-failed weekly + sanctum:prune-expired daily in routes/console.php", "status": "complete", "awaitingUser": false },
34
+ { "id": "phase01.3", "title": "app/Notifications/BaseQueuedNotification.php abstract", "status": "complete", "awaitingUser": false }
35
+ ]
36
+ },
37
+ {
38
+ "id": "phase02",
39
+ "title": "Queued jobs: PayPal webhook processing + FilesHub cleanup (incl. shared-object guard bugfix)",
40
+ "status": "complete",
41
+ "completedAt": "2026-07-13",
42
+ "subTasks": [
43
+ { "id": "phase02.1", "title": "ProcessPayPalWebhookJob (ShouldBeUnique on event id; handlers moved verbatim; ACTIVATED-unknown now throws to retry) + controller slims to verify→dispatch→200", "status": "complete", "awaitingUser": false },
44
+ { "id": "phase02.2", "title": "DeleteFilesHubObjectsJob + Build::queueStoredFileDeletion() guard + User::deleteAllFiles() id-sweep dispatch + drop BuildController::destroy inline delete", "status": "complete", "awaitingUser": false }
45
+ ]
46
+ },
47
+ {
48
+ "id": "phase03",
49
+ "title": "Transactional emails: welcome, admin new-user, subscription lifecycle, account suspension",
50
+ "status": "complete",
51
+ "completedAt": "2026-07-13",
52
+ "subTasks": [
53
+ { "id": "phase03.1", "title": "WelcomeNotification + AdminNewUserNotification wired on wasRecentlyCreated in OAuthController", "status": "complete", "awaitingUser": false },
54
+ { "id": "phase03.2", "title": "SubscriptionEventNotification (single parameterized class) wired into all 5 webhook-job handlers", "status": "complete", "awaitingUser": false },
55
+ { "id": "phase03.3", "title": "AccountSuspendedNotification via User::suspend() + AdminController false→true transition guard (copy verified honest: only dashboard sign-in is blocked while suspended)", "status": "complete", "awaitingUser": false }
56
+ ]
57
+ },
58
+ {
59
+ "id": "phase04",
60
+ "title": "Quota monitoring + ops alerts",
61
+ "status": "complete",
62
+ "completedAt": "2026-07-13",
63
+ "subTasks": [
64
+ { "id": "phase04.1", "title": "users migration: mau_warning_notified_at + mau_exceeded_notified_at (nullable timestamps; verified on local MySQL 8.x strict) + casts", "status": "complete", "awaitingUser": false },
65
+ { "id": "phase04.2", "title": "MauQuotaNotification + quota:check-mau command (chunkById, once-per-calendar-month per level, honest no-cutoff copy) + daily schedule", "status": "complete", "awaitingUser": false },
66
+ { "id": "phase04.3", "title": "AdminFailedJobsNotification (deliberately NOT queued) + queue:alert-failed command + daily schedule", "status": "complete", "awaitingUser": false }
67
+ ]
68
+ },
69
+ {
70
+ "id": "phase05",
71
+ "title": "Async build upload processing (env-gated, default OFF)",
72
+ "status": "complete",
73
+ "completedAt": "2026-07-13",
74
+ "subTasks": [
75
+ { "id": "phase05.1", "title": "Implemented per owner's 'as complete as possible' directive: BuildController::storeAsync (checksum in-request, bundle → storage/app/pending-builds, row status='processing', 202) + ProcessBuildUploadJob (sign → FilesHub upload → 'active'; failed() → status 'failed' + BuildProcessingFailedNotification + temp cleanup). Gate: NATIVE_UPDATE_ASYNC_BUILD_PROCESSING=false (kill-switch, sync path unchanged).", "status": "complete", "awaitingUser": false },
76
+ { "id": "phase05.2", "title": "OWNER (later, optional): before flipping the flag ON in prod, add 'processing'-status polling/refresh to the website builds page", "status": "blocked", "awaitingUser": true }
77
+ ]
78
+ },
79
+ {
80
+ "id": "phase06",
81
+ "title": "Verification, docs, deploy handoff",
82
+ "status": "in_progress",
83
+ "completedAt": null,
84
+ "subTasks": [
85
+ { "id": "phase06.1", "title": "Full gates: pint clean; php artisan test 248/248 green (sqlite); migration + both new commands verified on local MySQL 8.x; schedule:list shows 6 custom entries; end-to-end database-queue smoke (dispatch → jobs row → worker drain → mail in log, 0 failed)", "status": "complete", "awaitingUser": false },
86
+ { "id": "phase06.2", "title": "docs/DEPLOY_NOTES.md: new 2026-07-13 pending item + 2026-07-10 cron item narrowed to ONE cron (queue:work cron DELETED)", "status": "complete", "awaitingUser": false },
87
+ { "id": "phase06.3", "title": "docs/MANUAL-TASKS.md: row 8 updated (single cron) + row 10 added (create Hostinger mailbox, password → ~/.secrets, SPF/DKIM, confirm test mail)", "status": "complete", "awaitingUser": false },
88
+ { "id": "phase06.4", "title": "Docs sync: backend/CLAUDE.md + backend/AGENTS.md 'Queues + outbound email' block, root CLAUDE.md/AGENTS.md pointer, tracker + memory updates, ONE commit + push", "status": "complete", "awaitingUser": false },
89
+ { "id": "phase06.5", "title": "Server deploy + prod verification (server agent per DEPLOY_NOTES 2026-07-13 item; SMTP mailbox env is owner-provided — until then prod mail stays on the log driver)", "status": "blocked", "awaitingUser": true }
90
+ ]
91
+ }
92
+ ],
93
+ "runHistory": [
94
+ { "date": "2026-07-13", "phase": "planning", "summary": "Fable 5: explored backend (no mail infra existed; webhook sync; FilesHub deletes fire-and-forget; afterResponse analytics kept), wrote full plan with code to ~/.claude/plans/queues-and-emails-native-update.md, scaffolded this tracker.", "commit": "47c20f8" },
95
+ { "date": "2026-07-13", "phase": "phase01-phase06 (implementation)", "summary": "Fable 5 (owner directive: everything now): implemented all phases incl. env-gated async build processing. 2 jobs + 1 async-build job, 7 notification classes, 2 commands, 1 migration, 6 schedule entries. Gates: pint clean, 248/248 tests, MySQL parity, live database-queue smoke drained to the log mailer. Deploy handoff written; server deploy (06.5) remains.", "commit": "1938111" },
96
+ { "date": "2026-07-13", "phase": "mail-transport swap", "summary": "Owner set the global FilesHub email+storage rule → replaced the Hostinger-SMTP plan with a custom FilesHubTransport (Mail::extend 'fileshub', POST /api/v1/emails/send, FILESHUB_* keys, email permission). SMTP env keys deleted; DEPLOY_NOTES/MANUAL-TASKS/docs updated; global rule recorded in ~/.claude/CLAUDE.md + AGENTS.md + rules/services-integrations.md.", "commit": "pending" }
97
+ ],
98
+ "resumeInstructions": "Local work COMPLETE. Remaining: (a) phase06.5 server deploy — server agent follows the 2026-07-13 item in docs/DEPLOY_NOTES.md; (b) owner creates the SMTP mailbox (docs/MANUAL-TASKS.md row 10) and fixes the hPanel cron (row 8); (c) optional phase05.2 dashboard polling before enabling async build processing."
99
+ }
@@ -0,0 +1,15 @@
1
+ # Phase 01 — Queue + mail foundation
2
+
3
+ **Plan sections:** Tasks 1–3 in `/Users/pc/.claude/plans/queues-and-emails-native-update.md` (complete code there).
4
+
5
+ Deliverables: MAIL_* + `mau_warning_ratio` env/config contract (`.env`, `.env.example`,
6
+ `config/native_update.php`; local `.env` → `MAIL_MAILER=log` + `QUEUE_CONNECTION=sync`);
7
+ scheduler-driven worker + `queue:prune-failed` weekly + `sanctum:prune-expired` daily in
8
+ `routes/console.php`; `app/Notifications/BaseQueuedNotification.php`.
9
+
10
+ **Gate:** `vendor/bin/pint --dirty` clean · `php artisan test` green · `php artisan schedule:list`
11
+ shows the 3 new entries.
12
+
13
+ | Date | Result | Notes |
14
+ |---|---|---|
15
+ | 2026-07-13 | ✅ complete | Implemented in main-context Fable session; gates green (pint, 248/248 tests) |
@@ -0,0 +1,19 @@
1
+ # Phase 02 — Queued jobs: PayPal webhook + FilesHub cleanup
2
+
3
+ **Plan sections:** Tasks 4–5 in `/Users/pc/.claude/plans/queues-and-emails-native-update.md` (complete code there).
4
+
5
+ Deliverables: `app/Jobs/ProcessPayPalWebhookJob.php` (handlers moved verbatim from the controller;
6
+ `ShouldBeUnique` on PayPal event id; ACTIVATED-unknown-subscription throws to retry — it races
7
+ `SubscriptionController::activate()`); controller = verify sync → dispatch → 200.
8
+ `app/Jobs/DeleteFilesHubObjectsJob.php` (5 tries, long backoff, 404=success);
9
+ `Build::queueStoredFileDeletion()` with the shared-`fileshub_public_id` guard (fixes the latent
10
+ promoted-build double-delete bug; keys on public-id presence, not the legacy `storage_provider`
11
+ label); `User::deleteAllFiles()` → id sweep + chunked dispatch; `BuildController::destroy()` inline
12
+ delete block removed.
13
+
14
+ **Gate:** pint clean · `php artisan test` green (adapt PayPalWebhookTest/BuildControllerTest/
15
+ MeControllerTest only where behavior legitimately changed — sync queue runs jobs inline).
16
+
17
+ | Date | Result | Notes |
18
+ |---|---|---|
19
+ | 2026-07-13 | ✅ complete | Implemented in main-context Fable session; gates green (pint, 248/248 tests) |
@@ -0,0 +1,16 @@
1
+ # Phase 03 — Transactional emails
2
+
3
+ **Plan sections:** Tasks 6–8 in `/Users/pc/.claude/plans/queues-and-emails-native-update.md` (complete code + copy there).
4
+
5
+ Deliverables: `WelcomeNotification` + `Admin/AdminNewUserNotification` on `wasRecentlyCreated` in
6
+ `OAuthController` (TestAuthController untouched — E2E logins never mail);
7
+ `SubscriptionEventNotification` (ONE parameterized class) wired into all 5 webhook-job handlers;
8
+ `AccountSuspendedNotification` via `User::suspend()` + `AdminController` false→true suspension
9
+ transition guard. Copy: short, kind, factual, no banned words; actions built from
10
+ `config('native_update.frontend_url')`.
11
+
12
+ **Gate:** pint clean · `php artisan test` green (mail runs on the `array` transport in tests).
13
+
14
+ | Date | Result | Notes |
15
+ |---|---|---|
16
+ | 2026-07-13 | ✅ complete | Implemented in main-context Fable session; gates green (pint, 248/248 tests) |
@@ -0,0 +1,17 @@
1
+ # Phase 04 — Quota monitoring + ops alerts
2
+
3
+ **Plan sections:** Tasks 9–11 in `/Users/pc/.claude/plans/queues-and-emails-native-update.md` (complete code there).
4
+
5
+ Deliverables: users migration `mau_warning_notified_at` + `mau_exceeded_notified_at` (nullable
6
+ timestamps, casts added, NOT fillable, MySQL-strict safe); `MauQuotaNotification` +
7
+ `quota:check-mau` command (chunkById(100), per-app `DeviceActivity::getMAU`, warn ≥80% / exceeded
8
+ ≥100%, once per calendar month per level, honest no-cutoff copy) scheduled daily 06:00;
9
+ `Admin/AdminFailedJobsNotification` (deliberately NOT queued) + `queue:alert-failed` command
10
+ (notifyNow to ADMIN_EMAILS when failed_jobs > 0) scheduled daily 07:00.
11
+
12
+ **Gate:** pint clean · `php artisan test` green · migration verified on local MySQL if available ·
13
+ `php artisan schedule:list` shows 6 custom entries.
14
+
15
+ | Date | Result | Notes |
16
+ |---|---|---|
17
+ | 2026-07-13 | ✅ complete | Implemented in main-context Fable session; gates green (pint, 248/248 tests) |
@@ -0,0 +1,16 @@
1
+ # Phase 05 — OPTIONAL: async build upload processing (BLOCKED — owner decision)
2
+
3
+ **Status: awaiting owner decision. Recommendation: SKIP until a real upload timeout is observed.**
4
+
5
+ Today `BuildController::store()` hashes + signs + re-uploads to FilesHub in-request; it works in
6
+ production. Risk it would address: PHP max_execution_time on very large bundles (shared hosting).
7
+ The `builds.status` enum already has `uploading`/`processing`, so the async shape is known (see
8
+ plan Phase 05): temp-store upload → row `status='processing'` → `ProcessBuildUploadJob` → active/
9
+ failed + owner failure notification; website dashboard would need `processing`-status polling.
10
+
11
+ If approved: Fable extends the plan FIRST (full task code), then Opus implements env-gated
12
+ (`NATIVE_UPDATE_ASYNC_BUILD_PROCESSING`, default `false`). Do not start from this stub alone.
13
+
14
+ | Date | Result | Notes |
15
+ |---|---|---|
16
+ | 2026-07-13 | ✅ implemented (env-gated, default OFF) | Owner directed full completion; flag stays false until dashboard adds processing-status polling (phase05.2, owner) |
@@ -0,0 +1,17 @@
1
+ # Phase 06 — Verification, docs, deploy handoff
2
+
3
+ **Plan section:** Task 12 in `/Users/pc/.claude/plans/queues-and-emails-native-update.md` (exact deploy-note text + verification commands there).
4
+
5
+ Deliverables: full gates (pint, `php artisan test` sqlite + MySQL parity if available,
6
+ `schedule:list`); `docs/DEPLOY_NOTES.md` pending item (migrate --force, MAIL_* server env +
7
+ config:cache + FPM restart, **do NOT add the previously-suggested queue:work cron** — scheduler
8
+ drives the worker, verify jobs table drains + one raw SMTP test mail); `docs/MANUAL-TASKS.md` rows
9
+ (create Hostinger mailbox, password → `~/.secrets/native-update/` + INDEX, SPF/DKIM, confirm
10
+ mail receipt); compact backend/root CLAUDE+AGENTS sync; tracker update; ONE commit + push.
11
+
12
+ phase06.5 (server deploy + prod verification) is server-agent/owner-side — local agent marks it
13
+ `awaitingUser` and stops there.
14
+
15
+ | Date | Result | Notes |
16
+ |---|---|---|
17
+ | 2026-07-13 | ✅ local complete | Gates + queue smoke green; DEPLOY_NOTES + MANUAL-TASKS written; server deploy (06.5) pending |
@@ -1,36 +1,10 @@
1
1
  # Comprehensive Testing Guide
2
2
 
3
- This guide covers all testing approaches for the Capacitor Native Update plugin.
3
+ This guide covers the manual and on-device testing approaches for the Capacitor Native Update plugin. Verification is done in actual/live apps using the plugin rather than an automated JS test runner.
4
4
 
5
5
  ## Testing Levels
6
6
 
7
- ### 1. Unit Testing
8
-
9
- The plugin includes unit tests for core functionality:
10
-
11
- ```bash
12
- # Run all tests
13
- yarn test
14
-
15
- # Run with coverage
16
- yarn test:coverage
17
-
18
- # Watch mode for development
19
- yarn test:watch
20
- ```
21
-
22
- #### Test Structure
23
-
24
- ```
25
- src/__tests__/
26
- ├── security.test.ts # Security validation tests
27
- ├── version-manager.test.ts # Version comparison tests
28
- ├── bundle-manager.test.ts # Bundle management tests
29
- ├── config.test.ts # Configuration tests
30
- └── integration.test.ts # Integration tests
31
- ```
32
-
33
- ### 2. Integration Testing
7
+ ### 1. Integration Testing
34
8
 
35
9
  #### Web Platform Testing
36
10
 
@@ -103,7 +77,7 @@ src/__tests__/
103
77
  - In-app update UI
104
78
  - Rollback functionality
105
79
 
106
- ### 3. Security Testing
80
+ ### 2. Security Testing
107
81
 
108
82
  #### Certificate Validation
109
83
  ```typescript
@@ -130,7 +104,7 @@ const isValid = await NativeUpdate.validateUpdate({
130
104
  });
131
105
  ```
132
106
 
133
- ### 4. Performance Testing
107
+ ### 3. Performance Testing
134
108
 
135
109
  #### Download Performance
136
110
  ```typescript
@@ -146,7 +120,7 @@ NativeUpdate.addListener('downloadProgress', (progress) => {
146
120
  - Test with large bundles (50MB+)
147
121
  - Verify cleanup of old bundles
148
122
 
149
- ### 5. End-to-End Testing
123
+ ### 4. End-to-End Testing
150
124
 
151
125
  #### Complete Update Cycle
152
126
 
@@ -189,7 +163,7 @@ NativeUpdate.addListener('downloadProgress', (progress) => {
189
163
  }
190
164
  ```
191
165
 
192
- ### 6. Error Handling Testing
166
+ ### 5. Error Handling Testing
193
167
 
194
168
  #### Network Failures
195
169
  ```typescript
@@ -211,7 +185,7 @@ await NativeUpdate.download({
211
185
  });
212
186
  ```
213
187
 
214
- ### 7. Rollback Testing
188
+ ### 6. Rollback Testing
215
189
 
216
190
  ```typescript
217
191
  // Test rollback mechanism
@@ -228,7 +202,7 @@ async function testRollback() {
228
202
  }
229
203
  ```
230
204
 
231
- ### 8. Platform-Specific Testing
205
+ ### 7. Platform-Specific Testing
232
206
 
233
207
  #### iOS Specific
234
208
  - Test with different iOS versions (13+)
@@ -242,26 +216,26 @@ async function testRollback() {
242
216
  - Test notification permissions
243
217
  - Check WorkManager scheduling
244
218
 
245
- ### 9. Automated Testing
219
+ ### 8. Automated Verification
246
220
 
247
221
  #### CI/CD Integration
248
222
  ```yaml
249
- # .github/workflows/test.yml
250
- name: Test
223
+ # .github/workflows/ci.yml
224
+ name: CI
251
225
  on: [push, pull_request]
252
226
 
253
227
  jobs:
254
- test:
228
+ build:
255
229
  runs-on: ubuntu-latest
256
230
  steps:
257
231
  - uses: actions/checkout@v2
258
232
  - uses: actions/setup-node@v2
259
233
  - run: yarn install
260
- - run: yarn test
261
- - run: yarn test:e2e
234
+ - run: yarn lint
235
+ - run: yarn build
262
236
  ```
263
237
 
264
- ### 10. Manual Testing Checklist
238
+ ### 9. Manual Testing Checklist
265
239
 
266
240
  - [ ] **Configuration**
267
241
  - [ ] Valid HTTPS URL required
@@ -0,0 +1,41 @@
1
+ # Package Audit
2
+
3
+ Per R-010 (Clean package.json). Records unused dependencies removed and the reason.
4
+
5
+ **Last audited:** 2026-04-25
6
+
7
+ ## Root (`package.json`)
8
+
9
+ All listed dependencies and devDependencies are imported somewhere in the build pipeline (Rollup, TypeScript, ESLint). No removals.
10
+
11
+ ## Website (`website/package.json`)
12
+
13
+ | Package | Version | Action | Reason |
14
+ |---|---|---|---|
15
+ | `react-syntax-highlighter` | ^16.1.1 | **Removed** | Not imported anywhere in `website/src/`. The docs markdown page uses `react-markdown` + `remark-gfm` for rendering. Code highlighting is not currently a feature. Re-add when needed for code-fenced content. |
16
+ | `@types/react-syntax-highlighter` | ^15.5.13 | **Removed** | Unused (paired with the package above). |
17
+
18
+ After removal, run `yarn install` in `website/` to update `yarn.lock`. Until then, the lockfile keeps the (no-longer-listed) entries — harmless but tidy with the next install.
19
+
20
+ All other website deps verified imported:
21
+ - Capacitor + Capawesome plugins → used by mobile build flow
22
+ - Radix UI primitives → used in `src/components/ui/*` and across pages
23
+ - `framer-motion` → used in 11 files
24
+ - `lucide-react` → used in 32 files
25
+ - `jszip` → used by bundle upload service
26
+ - `d3` + `@types/d3` → present for chart rendering (admin/dashboard analytics)
27
+ - `firebase`, `react-hook-form`, `zod`, `@hookform/resolvers`, `react-router-dom`, `react-markdown`, `remark-gfm`, `tailwind-merge`, `class-variance-authority`, `clsx`, `zustand` → all imported
28
+
29
+ ## CLI (`cli/package.json`)
30
+
31
+ All deps are CLI-essential (`commander`, `chalk`, `ora`, `axios`, `archiver`, etc.). No removals.
32
+
33
+ ## Backend (`backend/package.json`)
34
+
35
+ Tiny dev-only package.json (Vite + Tailwind + Laravel Vite plugin). No removals. Note: `package-lock.json` removed in this run per yarn-only policy. Run `yarn install` in `backend/` to generate `yarn.lock` if backend is actively developed.
36
+
37
+ ## Example apps
38
+
39
+ - `react-capacitor`: Capacitor + React deps. Verified.
40
+ - `node-express`: Express + dotenv. Verified.
41
+ - `firebase-backend`: Firebase Admin + Express. Verified.
@@ -0,0 +1,5 @@
1
+ # ASO Metadata — Native Update (Internal Reference)
2
+
3
+ Populate via `~/.claude/rules/play-store-submission.md` (Phase 3) when preparing a release.
4
+
5
+ Internal brand/ASO reference — keywords, competitor analysis, category strategy. Not store-facing copy.
@@ -0,0 +1,5 @@
1
+ # Data Safety — Native Update
2
+
3
+ Populate via `~/.claude/rules/play-store-submission.md` (Phase 2) when preparing a release.
4
+
5
+ Full Data Safety form answers: data types collected, required/optional, shared/not shared, purposes, encryption-in-transit, deletion URL.
@@ -0,0 +1,5 @@
1
+ # Play App-Content Declarations — Native Update
2
+
3
+ Populate via `~/.claude/rules/play-store-submission.md` (Phase 2) when preparing a release.
4
+
5
+ All 10 declarations must be answered from the real Phase-0 code audit before any Play Console submission.
@@ -0,0 +1,27 @@
1
+ # Play Store Docs — Native Update
2
+
3
+ Start here. Every Play Store submission file is linked below.
4
+
5
+ **App:** Native Update · `com.aoneahsan.nativeupdate` · v3.0.1
6
+ **Play Store:** https://play.google.com/store/apps/details?id=com.aoneahsan.nativeupdate
7
+ **Full spec:** `~/.claude/rules/play-store-submission.md`
8
+
9
+ ---
10
+
11
+ ## Files in this folder
12
+
13
+ | File | Purpose |
14
+ |------|---------|
15
+ | [RELEASE-NOTES.md](./RELEASE-NOTES.md) | **Play Store "What's New" — open this first.** Per-version release notes, latest-first. Copy the latest entry into Play Console. |
16
+ | [STORE-LISTING.md](./STORE-LISTING.md) | App title, short description, full description. |
17
+ | [DECLARATIONS.md](./DECLARATIONS.md) | All 10 Play "App content" declarations (answer key). |
18
+ | [DATA-SAFETY.md](./DATA-SAFETY.md) | Data Safety form answers. |
19
+ | [RELEASE-STEPS.md](./RELEASE-STEPS.md) | User-only build + Play Console upload steps. |
20
+ | [SUBMISSION-CHECKLIST.md](./SUBMISSION-CHECKLIST.md) | Pre-upload checklist. |
21
+ | [ASO-METADATA.md](./ASO-METADATA.md) | Internal brand/ASO reference (not store-facing). |
22
+
23
+ ## Related
24
+
25
+ - **Raw image assets:** `app-publish-assets/` (icons, feature graphics, screenshots) — _not yet created; see `~/.claude/rules/play-store-submission.md` Phase 5._
26
+ - **Resumable tracker:** `docs/features/play-store-submission/00-tracker.json` — _not yet created._
27
+ - **Developer changelog:** [docs/CHANGELOG.md](../CHANGELOG.md)
@@ -0,0 +1,99 @@
1
+ # Release Notes — Native Update (Play Store "What's New")
2
+
3
+ Per-version Play Store release notes, latest-first.
4
+ Single source of truth — copy the latest entry into the Play Console "What's New" field (≤500 chars).
5
+
6
+ Related: developer changelog at [docs/CHANGELOG.md](../CHANGELOG.md).
7
+
8
+ ---
9
+
10
+ ## v3.1.0 — July 2026
11
+
12
+ - Faster update checks: server hot path optimized (deferred analytics writes, cached build lookup, covering index).
13
+ - Web platform no longer re-downloads a bundle to validate it after download.
14
+ - Modern package exports map — cleaner imports in every bundler, deep imports still work.
15
+ - Faster website landing page (animation engine now loads in the background).
16
+ - Maintenance: analytics data pruning, dependency/config cleanup, documentation fixes.
17
+
18
+ ---
19
+
20
+ ## v3.0.1 — May 2026
21
+
22
+ - New public documentation site at docs.nativeupdate.aoneahsan.com (58 pages: SDK reference, CLI, backend, tutorials).
23
+ - Security checklist and performance benchmark docs added.
24
+ - CI workflow now builds, signs, and publishes an example OTA bundle on every GitHub Release.
25
+ - Example app demonstrates App Update, App Review, and Background Update features.
26
+ - Minor website fix: removed a stale example card that linked to a deleted directory.
27
+
28
+ ---
29
+
30
+ ## v3.0.0 — May 2026
31
+
32
+ - Backend simplified: Firestore backend removed. Plugin now speaks HTTP to a single backend (serverUrl + apiKey).
33
+ - Breaking: apps using the Firestore branch must migrate to serverUrl — see MIGRATION.md.
34
+ - Website dashboard auth migrated to Laravel Socialite (Google OAuth) + Sanctum bearer tokens.
35
+
36
+ ---
37
+
38
+ ## v2.0.0 — April 2026
39
+
40
+ - Boot-time bundle re-verification: on every cold start the plugin re-hashes the active OTA bundle. Mismatch triggers automatic rollback.
41
+ - Channel-based encryption removed; signature + checksum verification is the integrity model.
42
+ - setUpdateUrl() deprecated (no-op); pass serverUrl to initialize() instead.
43
+
44
+ ---
45
+
46
+ ## v1.4.9 — March 2026
47
+
48
+ - Firestore-backed manifest reads via backendType: 'firestore'.
49
+ - Secure manifest lookup via apiKeys/{apiKey}/manifests/{channel}.
50
+ - No-cost backend guide: website + Firestore + Google Drive.
51
+
52
+ ---
53
+
54
+ ## v1.4.5 — February 2026
55
+
56
+ - All dependencies updated to latest versions.
57
+ - Full verification suite passing (81 tests, 0 lint warnings).
58
+ - Android Gradle build verified. Release-ready state confirmed.
59
+
60
+ ---
61
+
62
+ ## v1.0.7 — January 2025
63
+
64
+ - Fixed critical Android build issues: Google Play app-update library version pinned to 2.1.0.
65
+ - Resolved kotlinVersion resolution errors.
66
+ - All Google Play Services dependencies now use explicit versions.
67
+
68
+ ---
69
+
70
+ ## v1.0.6 — January 2025
71
+
72
+ - Android build fixes: corrected Play app-update library version, fixed kotlinVersion MissingPropertyException.
73
+ - Documentation corrections: API method signatures, event names, and broken links fixed.
74
+
75
+ ---
76
+
77
+ ## v1.4.0 — January 2025
78
+
79
+ - Complete TypeScript rewrite with strict typing and modular architecture.
80
+ - Comprehensive error handling, security validation framework, and bundle management.
81
+ - Background update support. Plugin initialization system.
82
+
83
+ ---
84
+
85
+ ## v0.0.2 — December 2024
86
+
87
+ - Bundle signing and security utilities.
88
+ - CI/CD pipeline with GitHub Actions.
89
+ - Example update-server implementation. TypeScript strict mode. ESLint v9 flat config.
90
+
91
+ ---
92
+
93
+ ## v0.0.1 — January 2024
94
+
95
+ - Initial release.
96
+ - Live/OTA update: download, bundle management, update strategies (immediate, background, manual), delta updates, automatic rollback, update channels, end-to-end encryption, SHA-256/512 checksums.
97
+ - Native app update: Play Store version checking, immediate and flexible update flows, direct app store navigation.
98
+ - In-app review: native review prompts with smart triggering and rate limiting.
99
+ - iOS (Swift) and Android (Kotlin) implementations. Web fallback.
@@ -0,0 +1,6 @@
1
+ # Release Steps — Native Update (User-Only)
2
+
3
+ Populate via `~/.claude/rules/play-store-submission.md` (Phase 6) when preparing a release.
4
+
5
+ This file lists user-only build + Play Console upload steps (commands and clicks, not release-note text).
6
+ The agent prepares all data, copy, and assets; the user performs the signed AAB build + Play Console upload.
@@ -0,0 +1,7 @@
1
+ # Store Listing — Native Update
2
+
3
+ Populate via `~/.claude/rules/play-store-submission.md` (Phase 3) when preparing a release.
4
+
5
+ Includes: app name (≤30 chars), short description (≤80 chars), full description, and a link to RELEASE-NOTES.md for "What's New".
6
+
7
+ See [RELEASE-NOTES.md](./RELEASE-NOTES.md) for the latest "What's New" entry.
@@ -0,0 +1,5 @@
1
+ # Submission Checklist — Native Update
2
+
3
+ Populate via `~/.claude/rules/play-store-submission.md` (Phase 7) when preparing a release.
4
+
5
+ Pre-upload checklist covering: permissions, store listing, declarations, assets, legal pages, and release build.
@@ -29,7 +29,7 @@
29
29
  > - Private key management (for bundle signing)
30
30
  > - Encryption key management (for encrypted bundles)
31
31
  >
32
- > **GETTING STARTED**: See the example backends in `/example-apps/node-express` and `/example-apps/firebase-backend` for reference implementations.
32
+ > **GETTING STARTED**: For reference implementations see [`/example-apps/node-express`](../example-apps/node-express) (lean Node.js / Express reference) and [`/backend`](../backend) (Laravel 13 + Nova canonical SaaS backend powering the hosted Native Update service — usable as managed or self-hosted).
33
33
 
34
34
  This comprehensive checklist ensures your Capacitor Native Update implementation is ready for production deployment. Follow these guidelines to deliver a secure, reliable, and performant update system.
35
35