native-update 3.1.2 → 3.1.4

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 (206) hide show
  1. package/AI-INTEGRATION-GUIDE.md +15 -10
  2. package/Readme.md +35 -35
  3. package/android/src/main/java/com/aoneahsan/nativeupdate/LiveUpdatePlugin.kt +88 -12
  4. package/android/src/main/java/com/aoneahsan/nativeupdate/NativeUpdatePlugin.kt +45 -18
  5. package/cli/AGENTS.md +1 -1
  6. package/cli/CLAUDE.md +1 -1
  7. package/cli/commands/bundle-create.js +2 -2
  8. package/cli/index.js +11 -0
  9. package/dist/esm/definitions.d.ts +8 -0
  10. package/dist/esm/plugin.js +16 -2
  11. package/dist/plugin.cjs.js +1 -1
  12. package/dist/plugin.esm.js +1 -1
  13. package/dist/plugin.js +2 -2
  14. package/docs/CHANGELOG.md +90 -0
  15. package/docs/KNOWN_LIMITATIONS.md +2 -2
  16. package/docs/MIGRATION.md +1 -1
  17. package/ios/Plugin/LiveUpdate/LiveUpdatePlugin.swift +64 -8
  18. package/ios/Plugin/NativeUpdatePlugin.swift +39 -13
  19. package/package.json +8 -3
  20. package/docs/AGENTS.md +0 -47
  21. package/docs/APP_REVIEW_GUIDE.md +0 -768
  22. package/docs/BUNDLE_SIGNING.md +0 -277
  23. package/docs/CLAUDE.md +0 -110
  24. package/docs/COMPREHENSIVE_AUDIT_REPORT.md +0 -526
  25. package/docs/DEPLOY_NOTES.md +0 -116
  26. package/docs/EXAMPLE_APPS_SIMPLIFICATION_PLAN.md +0 -384
  27. package/docs/EXAMPLE_APPS_SIMPLIFICATION_TRACKER.md +0 -390
  28. package/docs/LIVE_UPDATES_GUIDE.md +0 -675
  29. package/docs/MANUAL-TASKS.md +0 -30
  30. package/docs/MARKETING_WEBSITE_TRACKER.md +0 -677
  31. package/docs/NATIVE_UPDATES_GUIDE.md +0 -695
  32. package/docs/PACKAGES.md +0 -167
  33. package/docs/PERFORMANCE.md +0 -110
  34. package/docs/PROJECT_COMPLETION_TRACKER.md +0 -411
  35. package/docs/QUICK_START.md +0 -595
  36. package/docs/README.md +0 -130
  37. package/docs/REMAINING_FEATURES.md +0 -192
  38. package/docs/ROADMAP.md +0 -295
  39. package/docs/SECURITY-IF-REPO-PUBLIC.md +0 -232
  40. package/docs/SECURITY.md +0 -356
  41. package/docs/TESTING_REQUIREMENTS.md +0 -201
  42. package/docs/ai-knowledge-base/00-project-profile.md +0 -38
  43. package/docs/ai-knowledge-base/01-features.md +0 -46
  44. package/docs/ai-knowledge-base/02-routes.md +0 -72
  45. package/docs/ai-knowledge-base/03-tech-stack.md +0 -57
  46. package/docs/ai-knowledge-base/README.md +0 -23
  47. package/docs/analytics-tracking.md +0 -37
  48. package/docs/api/API.md +0 -558
  49. package/docs/api/FEATURES.md +0 -414
  50. package/docs/api/app-review-api.md +0 -239
  51. package/docs/api/app-update-api.md +0 -154
  52. package/docs/api/background-update-api.md +0 -170
  53. package/docs/api/events-api.md +0 -323
  54. package/docs/api/live-update-api.md +0 -258
  55. package/docs/archive/MARKETING_WEBSITE_PLAN.md +0 -659
  56. package/docs/background-updates.md +0 -392
  57. package/docs/capacitor-official-plugins.md +0 -46
  58. package/docs/capawesome-plugins.md +0 -29
  59. package/docs/cli-reference.md +0 -321
  60. package/docs/deployment/HOSTINGER_DEPLOY.md +0 -370
  61. package/docs/deployment/PRODUCTION-DEPLOY-CHECKLIST.md +0 -184
  62. package/docs/docs-site/plan.md +0 -201
  63. package/docs/docs-site/scope.md +0 -127
  64. package/docs/docs-site/tracker.json +0 -235
  65. package/docs/error-handling-tracking.md +0 -37
  66. package/docs/examples/advanced-scenarios.md +0 -394
  67. package/docs/examples/android-manifest-example.xml +0 -77
  68. package/docs/examples/basic-usage.md +0 -206
  69. package/docs/examples/node-express-backend-example.md +0 -28
  70. package/docs/examples/react-capacitor-example.md +0 -29
  71. package/docs/features/app-reviews.md +0 -975
  72. package/docs/features/app-updates.md +0 -785
  73. package/docs/features/e2e-full-verification/00-overview.md +0 -99
  74. package/docs/features/e2e-full-verification/00-tracker.json +0 -284
  75. package/docs/features/e2e-full-verification/phase01-backend-schema-fixes.md +0 -183
  76. package/docs/features/e2e-full-verification/phase02-test-auth.md +0 -176
  77. package/docs/features/e2e-full-verification/phase03-api-test-coverage.md +0 -63
  78. package/docs/features/e2e-full-verification/phase04-frontend-package-contract-audit.md +0 -73
  79. package/docs/features/e2e-full-verification/phase05-browser-e2e-matrix.md +0 -69
  80. package/docs/features/e2e-full-verification/phase06-deploy-prod-smoke.md +0 -51
  81. package/docs/features/e2e-full-verification/results/phase01-drift-report.md +0 -50
  82. package/docs/features/e2e-full-verification/results/phase03-coverage-matrix.md +0 -215
  83. package/docs/features/e2e-full-verification/results/phase04-frontend-contract.md +0 -139
  84. package/docs/features/e2e-full-verification/results/phase05-e2e-results.md +0 -99
  85. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-01-dashboard.png +0 -0
  86. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-02-signup.png +0 -0
  87. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-03-settings-persisted.png +0 -0
  88. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04a-app-created.png +0 -0
  89. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04b-duplicate-bundle-422.png +0 -0
  90. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-05-plan-limit-403.png +0 -0
  91. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08a-upload-graceful-fail.png +0 -0
  92. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08b-builds-list.png +0 -0
  93. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-10-rollout-25pct.png +0 -0
  94. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-11-analytics.png +0 -0
  95. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-12-drive-disconnected.png +0 -0
  96. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-13-pricing.png +0 -0
  97. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-14-isolation-403.png +0 -0
  98. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15a-admin-overview.png +0 -0
  99. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15b-regular-user-admin-redirect.png +0 -0
  100. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-16a-delete-dialog.png +0 -0
  101. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-17-mobile-375.png +0 -0
  102. package/docs/features/e2e-full-verification/results/route-list.json +0 -1
  103. package/docs/features/laravel-nova-backend/ASSESSMENT-SUMMARY.md +0 -96
  104. package/docs/features/laravel-nova-backend/IMPLEMENTATION-PLAN.md +0 -504
  105. package/docs/features/laravel-nova-backend/progress-tracker.json +0 -184
  106. package/docs/features/live-updates.md +0 -642
  107. package/docs/features/queues-and-emails/00-overview.md +0 -41
  108. package/docs/features/queues-and-emails/00-tracker.json +0 -99
  109. package/docs/features/queues-and-emails/phase01-foundation.md +0 -15
  110. package/docs/features/queues-and-emails/phase02-queued-jobs.md +0 -19
  111. package/docs/features/queues-and-emails/phase03-transactional-emails.md +0 -16
  112. package/docs/features/queues-and-emails/phase04-quota-ops.md +0 -17
  113. package/docs/features/queues-and-emails/phase05-async-build-processing-DECISION.md +0 -16
  114. package/docs/features/queues-and-emails/phase06-verify-deploy.md +0 -17
  115. package/docs/getting-started/configuration.md +0 -469
  116. package/docs/getting-started/installation.md +0 -300
  117. package/docs/getting-started/quick-start.md +0 -430
  118. package/docs/guides/BACKEND_TEMPLATES_GUIDE.md +0 -183
  119. package/docs/guides/admin-panel.md +0 -268
  120. package/docs/guides/channel-management.md +0 -343
  121. package/docs/guides/dashboard-guide.md +0 -365
  122. package/docs/guides/deployment-guide.md +0 -335
  123. package/docs/guides/end-to-end-workflow.md +0 -491
  124. package/docs/guides/key-management.md +0 -284
  125. package/docs/guides/migration-from-codepush.md +0 -145
  126. package/docs/guides/security-best-practices.md +0 -1057
  127. package/docs/guides/testing-guide.md +0 -346
  128. package/docs/guides/troubleshooting.md +0 -482
  129. package/docs/package-audit.md +0 -41
  130. package/docs/plans/PLANNING_COMPLETE_SUMMARY.md +0 -361
  131. package/docs/plans/TASK_1_ANDROID_EXAMPLE_APP.md +0 -401
  132. package/docs/plans/TASK_2_API_ENDPOINTS.md +0 -856
  133. package/docs/plans/TASK_2_DASHBOARD_UI_UX.md +0 -820
  134. package/docs/plans/TASK_2_DATABASE_SCHEMA.md +0 -704
  135. package/docs/plans/TASK_2_GOOGLE_DRIVE_INTEGRATION.md +0 -646
  136. package/docs/plans/TASK_2_SAAS_ARCHITECTURE.md +0 -587
  137. package/docs/plans/TASK_2_USER_AUTHENTICATION.md +0 -600
  138. package/docs/play-store/ASO-METADATA.md +0 -5
  139. package/docs/play-store/DATA-SAFETY.md +0 -5
  140. package/docs/play-store/DECLARATIONS.md +0 -5
  141. package/docs/play-store/README.md +0 -27
  142. package/docs/play-store/RELEASE-NOTES.md +0 -99
  143. package/docs/play-store/RELEASE-STEPS.md +0 -6
  144. package/docs/play-store/STORE-LISTING.md +0 -7
  145. package/docs/play-store/SUBMISSION-CHECKLIST.md +0 -5
  146. package/docs/production-readiness.md +0 -475
  147. package/docs/project-audit/2026-05-16/00-FINALIZATION-PLAN.md +0 -123
  148. package/docs/project-audit/2026-05-16/01-BATCH-PLAN.md +0 -227
  149. package/docs/project-audit/2026-05-16/02-AUDIT-FINDINGS.md +0 -144
  150. package/docs/project-audit/2026-05-16/sessions/batch-01.md +0 -42
  151. package/docs/project-audit/2026-05-16/sessions/batch-02.md +0 -74
  152. package/docs/project-audit/2026-05-16/sessions/batch-03.md +0 -71
  153. package/docs/project-audit/2026-05-16/sessions/batch-04.md +0 -88
  154. package/docs/project-audit/2026-05-16/sessions/batch-05.md +0 -63
  155. package/docs/project-audit/2026-05-16/sessions/batch-06.md +0 -103
  156. package/docs/project-audit/2026-05-16/sessions/batch-07.md +0 -61
  157. package/docs/project-audit/2026-05-16/sessions/batch-08.md +0 -101
  158. package/docs/project-audit/2026-05-16/sessions/batch-09.md +0 -105
  159. package/docs/project-audit/2026-05-16/sessions/batch-10.md +0 -102
  160. package/docs/project-audit/AUDIT-HISTORY.md +0 -74
  161. package/docs/project-audit/BATCH-PLAN.md +0 -168
  162. package/docs/project-audit/MARKETING-WEBSITE-FINDINGS-2026-05-11.md +0 -73
  163. package/docs/project-audit/PRODUCTION-READINESS-AUDIT-2026-05-08.md +0 -275
  164. package/docs/project-finalization/00-tracker.json +0 -60
  165. package/docs/project-knowledge-base/01-system-overview.md +0 -227
  166. package/docs/project-knowledge-base/02-routes-pages-forms-users.md +0 -352
  167. package/docs/project-knowledge-base/03-tech-stack-modules-services.md +0 -379
  168. package/docs/project-knowledge-base/04-data-models-integrations.md +0 -244
  169. package/docs/project-knowledge-base/05-docs-corpus-inventory.md +0 -256
  170. package/docs/project-knowledge-base/06-operations-testing-legal-content.md +0 -208
  171. package/docs/project-knowledge-base/README.md +0 -103
  172. package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-05-19.md +0 -81
  173. package/docs/reports/AUDIT_SUMMARY_2025-12-26.md +0 -203
  174. package/docs/reports/CLAUDE-CODE-COMPLETION-PROMPT.md +0 -403
  175. package/docs/reports/CLAUDE_CODE_PROMPT.md +0 -29
  176. package/docs/reports/CODEBASE_STATUS_REPORT.md +0 -272
  177. package/docs/reports/COMPLETE_VERIFICATION.md +0 -106
  178. package/docs/reports/COMPREHENSIVE-PROJECT-AUDIT-2026-02-24.md +0 -747
  179. package/docs/reports/EVENT_FLOW_VERIFICATION.md +0 -80
  180. package/docs/reports/EXAMPLE_APPS_SIMPLIFICATION_COMPLETE.md +0 -369
  181. package/docs/reports/FINAL_STATUS.md +0 -122
  182. package/docs/reports/FINAL_VERIFICATION_CHECKLIST.md +0 -425
  183. package/docs/reports/MARKETING_WEBSITE_COMPLETE.md +0 -466
  184. package/docs/reports/PACKAGE_COMPLETENESS_REPORT.md +0 -130
  185. package/docs/reports/PRODUCTION_STATUS.md +0 -115
  186. package/docs/reports/PROJECT_RESTRUCTURE_2025-12-27.md +0 -287
  187. package/docs/reports/PROJECT_RESTRUCTURE_FINAL_SUMMARY.md +0 -464
  188. package/docs/reports/PUBLISHING_VERIFICATION.md +0 -144
  189. package/docs/reports/RELEASE_READY_SUMMARY.md +0 -99
  190. package/docs/reports/claude-completion.json +0 -241
  191. package/docs/rules-tracker.md +0 -102
  192. package/docs/security/PRE-LAUNCH-PENTEST-CHECKLIST.md +0 -116
  193. package/docs/security/certificate-pinning.md +0 -122
  194. package/docs/seo-aeo-rules.json +0 -3043
  195. package/docs/social-media-marketing/README.md +0 -81
  196. package/docs/social-media-marketing/posts-batch-01.md +0 -613
  197. package/docs/social-media-marketing/posts-batch-02.md +0 -528
  198. package/docs/social-media-marketing/whatsapp-messages-batch-01.md +0 -458
  199. package/docs/social-media-marketing/whatsapp-status-batch-01.md +0 -355
  200. package/docs/tracking/IMPLEMENTATION_TRACKER.md +0 -303
  201. package/docs/tracking/capacitor-rollout-note-2026-03-01.md +0 -21
  202. package/docs/tracking/completion-tracker-2026-02-24.json +0 -174
  203. package/docs/tracking/finalization-2026-05-16-tracker.json +0 -346
  204. package/docs/tracking/full-audit-tracker.json +0 -121
  205. package/docs/tracking/production-readiness-audit-tracker.json +0 -429
  206. package/docs/tracking/seo-checklist-tracker.json +0 -333
@@ -1,192 +0,0 @@
1
- # Remaining Features for Production Readiness
2
-
3
- **Last Updated:** 2026-06-22
4
- **Status:** ✅ Production Ready — Play-Store-publishable end-to-end as of 2026-05-16. Core features complete. Optional enhancements listed below. Finalization re-verified 2026-06-22 (plugin + website + docs-site builds all green; no automatable gaps remain).
5
-
6
- This document tracks remaining optional work and future enhancements. It is refreshed alongside major releases; for the authoritative "what shipped when" timeline see the root `CLAUDE.md` Audit Record + `docs/CHANGELOG.md`.
7
-
8
- ---
9
-
10
- ## ✅ COMPLETED Features (as of 2026-05-18)
11
-
12
- ### Backend Infrastructure ✅
13
-
14
- - [x] Laravel 13 + Nova 5 SaaS backend (`backend/`) — the only backend after v3.0.0
15
- - [x] MySQL persistence (single source of truth)
16
- - [x] Google Drive bundle storage (server-side OAuth; encrypted tokens at rest)
17
- - [x] Identity via Laravel Socialite (Google OAuth)
18
- - [x] Sanctum personal access tokens for dashboard auth
19
- - [x] `spatie/laravel-permission` RBAC (`super-admin`, `admin`, `user` roles + per-route `can:` middleware + `Gate::before` super-admin bypass)
20
- - [x] Mobile API plane (`/api/v1/*`) with per-app `ValidateApiKey` middleware
21
- - [x] Analytics endpoints
22
- - [x] PayPal webhook + Stripe subscription model
23
- - [x] FormRequest validators (UpdateBuildRequest + Create/Update FormRequests for App, ApiKey, SigningKey)
24
- - [x] Backend policies + Nova canSee guards
25
- - [x] env-driven CORS allowlist (`backend/config/cors.php`)
26
-
27
- ### Native Platform Implementation ✅
28
-
29
- - [x] Complete iOS implementation (Swift)
30
- - [x] Complete Android implementation (Kotlin; Play Core update + Play Review + WorkManager background)
31
- - [x] Platform-specific error handling
32
- - [x] Background update services (BGTaskScheduler / WorkManager)
33
- - [x] App store integration (Play Core, StoreKit `SKStoreReviewController`)
34
-
35
- ### Testing Suite ✅
36
-
37
- - [x] Backend Pest/PHPUnit tests covering OAuth + Sanctum + Spatie + UpdateBuildRequest + PayPal webhook + BundleUpload + UserLicense (**134/134 passing**)
38
- - [x] Unit tests for iOS native code (XCTest)
39
- - [x] Unit tests for Android native code (JUnit/Kotlin)
40
-
41
- ### Security Implementation ✅
42
-
43
- - [x] Client-side signature verification (RSA-SHA256)
44
- - [x] Certificate pinning architecture
45
- - [x] SHA-256 checksum verification
46
- - [x] RSA-2048 / RSA-4096 / EC P-256 / EC P-384 signature support
47
- - [x] HTTPS enforcement
48
- - [x] Bundle signing service (CLI tools)
49
- - [x] Public/private key generation
50
- - [x] Pre-launch DIY pentest checklist (`docs/security/PRE-LAUNCH-PENTEST-CHECKLIST.md`) covering 10 sections + 9 specific attack paths
51
- - [x] Encrypted Drive OAuth token storage (Laravel encrypter)
52
- - [x] Hashed-at-rest Sanctum tokens
53
-
54
- ### Developer Tools ✅
55
-
56
- - [x] Complete CLI package (8 commands: `init`, `bundle-create`, `bundle-sign`, `bundle-verify`, `keys-generate`, `backend-create`, `server-start`, `monitor`)
57
- - [x] Version management system
58
- - [x] Bundle creation and signing
59
- - [x] Local testing server
60
- - [x] Monitor utility (interval+spinner cleanup, signal handlers, failure bail)
61
-
62
- ### Documentation ✅
63
-
64
- - [x] Complete API reference (`docs/api/`)
65
- - [x] Platform-specific guides
66
- - [x] Security implementation guide + pentest checklist
67
- - [x] Migration guide (incl. v2 → v3.0.0 + 2026-05-11 auth-swap notes)
68
- - [x] Getting started guides
69
- - [x] Public Docusaurus docs site (`native-update-docs/` sibling repo on Firebase Hosting — 58 pages, ~76k words, full Diátaxis coverage; 7-day refresh cooldown)
70
-
71
- ### Example Implementations ✅
72
-
73
- - [x] React + Capacitor example app (with capability cards for app-update / app-review / background-update)
74
- - [x] Node.js + Express backend example
75
-
76
- ### CI/CD ✅
77
-
78
- - [x] `.github/workflows/ci.yml` — yarn-based CI on every PR
79
- - [x] `.github/workflows/release.yml` — tag-driven npm publish (with provenance) + GitHub Release
80
- - [x] `.github/workflows/example-bundle.yml` — release+manual+weekly-cron — build example app, sign, attach signed zip + .sig + metadata to GitHub Release
81
-
82
- ### Marketing Website + Dashboard ✅
83
-
84
- - [x] React 19 + Vite 7 + Tailwind v4 + TanStack Query + Radix primitives
85
- - [x] Capacitor-wrapped for Play Store distribution
86
- - [x] All legal pages (Privacy, Terms, Security, Cookies, Data Deletion) rewritten for the Sanctum stack
87
- - [x] SEO/AEO: per-route static HTML prerender; 30+ AI-bot allow list in robots.txt; llms.txt / llms-full.txt / ai.txt / humans.txt / security.txt / machine-readable pricing.md
88
- - [x] Per-route JSON-LD (WebSite + Organization + SoftwareApplication + FAQPage + HowTo + Article + Product)
89
- - [x] Observability: Sentry + Microsoft Clarity + Amplitude (page-view auto-track; silently skip when env keys absent)
90
-
91
- ### Android Release Readiness ✅ (2026-05-16)
92
-
93
- - [x] `signingConfigs.release` wired (keystore path, store password, key alias, key password from env)
94
- - [x] ProGuard/R8 enabled with sensible Capacitor-aware rules
95
- - [x] `network_security_config.xml` (HTTPS-only outside debug; localhost cleartext exception for emulator/device dev)
96
- - [x] Branded launcher icons (15 PNGs across all densities + adaptive)
97
- - [x] Branded splash assets (11 PNGs)
98
- - [x] 3 Play Store graphics (feature graphic, promo graphic, TV banner) rendered from SVG via rsvg-convert
99
- - [x] 10-section BUILD_FOR_PLAY_STORE.md runbook
100
- - [x] screenshots/CAPTURE-GUIDE.md
101
- - [x] Play Store full-description.md + data-safety.md written for the Sanctum stack
102
-
103
- ---
104
-
105
- ## 🟡 Optional Enhancement Features
106
-
107
- ### 1. Advanced Update Features (Optional)
108
-
109
- - [ ] Delta updates WASM optimization (placeholder exists; not yet wired)
110
- - [ ] A/B testing support
111
- - [ ] Update scheduling (calendar-based)
112
- - [ ] Geographic targeting
113
-
114
- (Note: percentage rollouts + pause/resume + targetSegments JSON column are already shipped on the `builds` table.)
115
-
116
- ### 2. Enterprise Features (Optional)
117
-
118
- - [ ] Multi-tenant SaaS hardening beyond current single-user model (sub-team / org-account / shared ownership)
119
- - [ ] Enterprise SSO integration (SAML / OIDC providers beyond Google)
120
- - [ ] Advanced audit logging UI (raw events already persist via `analytics_events` + Nova; UI surfaces TBD)
121
- - [ ] Custom branding options for white-label SaaS
122
- - [ ] SLA monitoring + uptime page
123
-
124
- ### 3. Additional Framework Support (Optional)
125
-
126
- - [ ] Vue example app
127
- - [ ] Angular example app
128
- - [ ] Svelte example app
129
- - [ ] Python backend example
130
- - [ ] Java backend example
131
-
132
- ### 4. Community / Content (Optional)
133
-
134
- - [ ] Video tutorials
135
- - [ ] Wikipedia mention (highest-leverage AI-citation source per Princeton GEO study)
136
- - [ ] Reddit / Product Hunt / AlternativeTo / G2 / Capterra presence
137
- - [ ] Community plugins directory
138
-
139
- ### 5. Refactors (Optional, deferred)
140
-
141
- - [x] `website/src/pages/DocsPage.tsx` — DONE. Refactored from 1,406 lines into a 166-line shell + `website/src/pages/docs-page/sections/` (per-feature section components). (Verified 2026-06-22.)
142
- - [ ] Three page components sit marginally over the 500-line soft guideline — `FeaturesPage.tsx` (578), `ExamplesPage.tsx` (523), `dashboard/AnalyticsPage.tsx` (519). Cohesive content-heavy pages that build clean; split only if they grow further.
143
-
144
- ---
145
-
146
- ## 📊 Completion Summary
147
-
148
- | Category | Status | Notes |
149
- |----------|--------|-------|
150
- | Core Plugin | ✅ 100% | TypeScript + Capacitor 8 SDK |
151
- | Native iOS | ✅ 100% | Swift |
152
- | Native Android | ✅ 100% | Kotlin |
153
- | Backend | ✅ 100% | Laravel 13 + Nova 5 + MySQL + Socialite + Sanctum + Spatie RBAC |
154
- | Example Backends | ✅ 100% | Node.js + Express (Firebase example removed in v3.0.0) |
155
- | CLI Tools | ✅ 100% | 8 commands |
156
- | Documentation | ✅ 100% | Repo `/docs/` + public Docusaurus site (58 pages) |
157
- | Marketing Website + Dashboard | ✅ 100% | React 19 + Vite 7; Capacitor-wrapped for Play Store |
158
- | Backend Tests | ✅ 100% | 134/134 PHPUnit passing |
159
- | Native Tests | ✅ 100% | iOS XCTest + Android JUnit |
160
- | CI/CD | ✅ 100% | 3 GitHub Actions workflows |
161
- | Android Release Readiness | ✅ 100% | signingConfigs + ProGuard + branded assets + Data Safety + Play Store runbook |
162
- | Enterprise Features | ⏳ 0% | Future roadmap |
163
-
164
- ---
165
-
166
- ## 🎯 Priority for Future Development
167
-
168
- ### Medium Priority
169
-
170
- 1. Delta updates WASM optimization (working JS-level patching ships today → optional WASM bsdiff/bspatch)
171
- 2. Additional framework examples (Vue / Angular / Svelte / Python / Java)
172
- 3. Wikipedia / Reddit / Product Hunt presence for AI-citation reach
173
-
174
- ### Low Priority
175
-
176
- 1. Enterprise tenant model (sub-team / org accounts)
177
- 2. Enterprise SSO (SAML / OIDC beyond Google)
178
- 3. Custom branding for white-label SaaS
179
- 4. Audit-logging UI in the dashboard
180
-
181
- ---
182
-
183
- ## 📝 Notes
184
-
185
- - Core functionality is complete and production-ready; v3.1.0 is on NPM.
186
- - All builds pass with zero errors (`yarn build` root + website + Docusaurus).
187
- - All lint checks pass with zero warnings (`yarn lint` root + website).
188
- - Backend tests pass cleanly (`php artisan test` 134/134).
189
- - The plugin is ready for production use and the dashboard is Play-Store-publishable end-to-end (2026-05-16 finalization audit closed).
190
- - Optional features can be added based on user demand.
191
- - Firestore-backed code paths were intentionally removed in v3.0.0; this is permanent.
192
- - Firebase Hosting is still the deploy target for the marketing site + Docusaurus docs, but no Firestore / Firebase Auth / Firebase Functions are used.
package/docs/ROADMAP.md DELETED
@@ -1,295 +0,0 @@
1
- # Capacitor Native Update — Development Roadmap
2
-
3
- **Last Updated:** 2026-05-18
4
- **Status:** ✅ Production Ready — Play-Store-publishable end-to-end (finalization audit closed 2026-05-16; cooldown until 2026-05-23)
5
-
6
- This document outlines the development phases and their completion status. For the authoritative timeline of who-shipped-what-when, see the root `CLAUDE.md` Audit Record + `docs/CHANGELOG.md`.
7
-
8
- ---
9
-
10
- ## ✅ Current Status: Production Ready
11
-
12
- The plugin provides complete OTA update functionality with native implementations for iOS and Android, a Laravel 13 + Nova 5 SaaS backend with Sanctum-token auth + Spatie RBAC, comprehensive documentation (including a public Docusaurus docs site with 58 pages), example applications, CLI release-management tooling, and a Capacitor-wrapped React dashboard that is Play-Store-publishable end-to-end.
13
-
14
- ---
15
-
16
- ## 📋 Implementation Status
17
-
18
- ### 1. Backend Infrastructure ✅ COMPLETE
19
-
20
- #### Update Server
21
-
22
- - [x] Laravel 13 + Nova 5 SaaS backend (`backend/` — the only backend after v3.0.0)
23
- - [x] REST API endpoints for update management (`/api/dashboard/*` for the dashboard, `/api/v1/*` for the mobile plane)
24
- - [x] Version management system
25
- - [x] Bundle storage and retrieval (Google Drive via server-side OAuth)
26
- - [x] Update manifest generation
27
- - [x] Channel management (production, staging, development)
28
- - [x] Analytics endpoints
29
- - [x] Rollout config (percentage + pause/resume + targetSegments JSON) on the `builds` table
30
- - [x] FormRequest validators on every mutating endpoint
31
- - [x] env-driven CORS allowlist
32
- - [x] PayPal webhook + Stripe subscription model
33
-
34
- #### Auth + Identity
35
-
36
- - [x] Laravel Socialite (Google OAuth) — only sign-in method
37
- - [x] Sanctum personal access tokens (default 7-day TTL; configurable via `SANCTUM_TOKEN_EXPIRATION`)
38
- - [x] `spatie/laravel-permission` RBAC with `super-admin`, `admin`, `user` roles
39
- - [x] Per-route `can:<permission>` middleware on every dashboard/admin endpoint
40
- - [x] `Gate::before` super-admin bypass
41
- - [x] `php artisan native-update:role-assign <email> <role>` command for ops-driven role changes
42
- - [x] Per-app `ValidateApiKey` middleware for the mobile `/api/v1/*` plane (separate from Sanctum)
43
-
44
- #### Security Infrastructure
45
-
46
- - [x] Bundle signing service (CLI tools)
47
- - [x] Public/private key generation (RSA-2048 / RSA-4096 / EC P-256 / EC P-384)
48
- - [x] Checksum generation (SHA-256)
49
- - [x] Signature verification (RSA-SHA256 / ECDSA)
50
- - [x] Encrypted Drive OAuth token storage (Laravel encrypter)
51
- - [x] Hashed-at-rest Sanctum tokens
52
-
53
- #### Example Backends
54
-
55
- - [x] Node.js + Express example (`example-apps/node-express/`)
56
- - [x] Google Drive integration for storage
57
-
58
- (Note: `example-apps/firebase-backend/` was removed in v3.0.0; the project no longer carries a Firebase backend example.)
59
-
60
- ### 2. Native Platform Implementation ✅ COMPLETE
61
-
62
- #### iOS (Swift)
63
-
64
- - [x] NativeUpdatePlugin.swift — Main plugin
65
- - [x] LiveUpdatePlugin.swift — OTA updates
66
- - [x] BundleManager (bundle handling)
67
- - [x] AppUpdatePlugin.swift — App store updates
68
- - [x] AppReviewPlugin.swift — In-app reviews (`SKStoreReviewController`)
69
- - [x] BackgroundUpdatePlugin.swift — Background updates (BGTaskScheduler)
70
- - [x] SecurityManager.swift — Security utilities
71
-
72
- #### Android (Kotlin)
73
-
74
- - [x] NativeUpdatePlugin.kt — Main plugin
75
- - [x] LiveUpdatePlugin.kt — OTA updates
76
- - [x] BundleManager (bundle handling)
77
- - [x] AppUpdatePlugin.kt — Play Store updates (Play Core Library)
78
- - [x] AppReviewPlugin.kt — In-app reviews (Play Review)
79
- - [x] BackgroundUpdatePlugin.kt — Background updates (WorkManager)
80
- - [x] SecurityManager.kt — Security utilities
81
-
82
- ### 3. TypeScript Implementation ✅ COMPLETE
83
-
84
- - [x] Plugin definitions and interfaces
85
- - [x] Web implementation
86
- - [x] Live update module
87
- - [x] App update module
88
- - [x] App review module
89
- - [x] Background update module
90
- - [x] Core infrastructure (analytics, cache, config, errors, event-emitter, logger, performance, plugin-manager, security)
91
- - [x] Security module (crypto, validator)
92
-
93
- (Note: `src/firestore/` was removed in v3.0.0. The plugin no longer carries any Firestore code; manifest reads happen over plain HTTPS against any user-controlled endpoint.)
94
-
95
- ### 4. Testing Suite ✅ COMPLETE
96
-
97
- #### Backend Tests (Laravel)
98
-
99
- - [x] OAuth + Socialite flow
100
- - [x] Sanctum token issuance + middleware
101
- - [x] Spatie permission seeder + role assignment
102
- - [x] UpdateBuildRequest FormRequest validation
103
- - [x] PayPal webhook (4 cases)
104
- - [x] BundleUploadTest (7 cases)
105
- - [x] UserLicenseTest (5 cases)
106
- - **Total: 136/136 passing** (Pest/PHPUnit)
107
-
108
- #### iOS Native Tests (XCTest) ✅
109
-
110
- - [x] SecurityManagerTests.swift
111
- - [x] LiveUpdateTests.swift
112
- - [x] AppUpdateTests.swift
113
- - [x] AppReviewTests.swift
114
- - [x] BackgroundUpdateTests.swift
115
-
116
- #### Android Native Tests (JUnit/Kotlin) ✅
117
-
118
- - [x] SecurityManagerTest.kt
119
- - [x] LiveUpdatePluginTest.kt
120
- - [x] AppUpdatePluginTest.kt
121
- - [x] AppReviewPluginTest.kt
122
- - [x] BackgroundUpdateWorkerTest.kt
123
- - [x] BackgroundNotificationManagerTest.kt
124
-
125
- ### 5. Tooling and Utilities ✅ COMPLETE
126
-
127
- #### CLI Package (8 Commands)
128
-
129
- - [x] `init` — Initialize a new project
130
- - [x] `bundle-create` — Create update bundles
131
- - [x] `bundle-sign` — Sign bundles cryptographically
132
- - [x] `bundle-verify` — Verify bundle signatures
133
- - [x] `keys-generate` — Generate RSA / ECDSA keypairs
134
- - [x] `backend-create` — Scaffold backend server (with `TODO[SCAFFOLD-IMPLEMENT-BEFORE-DEPLOY]` markers)
135
- - [x] `server-start` — Run local update server
136
- - [x] `monitor` — Monitor update deployments (interval+spinner cleanup, signal handlers, failure bail)
137
-
138
- #### Developer Tools
139
-
140
- - [x] Local testing server
141
- - [x] Bundle creator utility
142
- - [x] Bundle signer utility
143
-
144
- ### 6. Documentation ✅ COMPLETE
145
-
146
- - [x] API documentation (`docs/api/`)
147
- - [x] Feature guides (`docs/features/`)
148
- - [x] Getting started guides (`docs/getting-started/`)
149
- - [x] Developer guides (`docs/guides/`)
150
- - [x] Examples (`docs/examples/`)
151
- - [x] Security documentation + PRE-LAUNCH-PENTEST-CHECKLIST
152
- - [x] Migration guide (v2 → v3.0.0 + 2026-05-11 auth-swap notes)
153
- - [x] Changelog
154
- - [x] Known limitations
155
- - [x] **Public Docusaurus docs site** (sibling repo `native-update-docs`, Firebase Hosting, 58 Diátaxis-organized pages, ~76k words, 30+ AI-bot allowlist + llms.txt + JSON-LD)
156
-
157
- ### 7. Marketing Website + Dashboard ✅ COMPLETE
158
-
159
- - [x] React 19 + Vite 7 + Tailwind v4 + TanStack Query + Radix primitives
160
- - [x] Public marketing pages (Home, Features 1956 words, Pricing 1897 words, About 1913 words, Docs, Examples, Contact)
161
- - [x] Authenticated dashboard (Apps, Builds, Upload, Drive, Config, Settings, Rollouts, Analytics)
162
- - [x] Admin pages (Overview, Users, Apps, Builds) with Spatie permission gates
163
- - [x] User authentication via Laravel Socialite + Sanctum (Firebase Auth removed 2026-05-11)
164
- - [x] Build upload and management (multipart → Laravel → Drive)
165
- - [x] Google Drive connect/disconnect (server-side OAuth)
166
- - [x] Analytics visualization (D3-based; pulls aggregates from `/api/dashboard/analytics`)
167
- - [x] Configuration generator
168
- - [x] All legal pages (Privacy, Terms, Security, Cookies, Data Deletion) rewritten for the Sanctum stack
169
- - [x] SEO/AEO discovery files: robots.txt with 30+ AI bots, sitemap.xml, sitemap-index.json, feed.xml, llms.txt, llms-full.txt, ai.txt, humans.txt, security.txt, machine-readable pricing.md
170
- - [x] Per-route static HTML prerender + per-route JSON-LD
171
- - [x] Capacitor-wrapped for Play Store distribution (Android release readiness closed 2026-05-16)
172
-
173
- ### 8. Example Applications ✅ COMPLETE
174
-
175
- - [x] React + Capacitor frontend (`example-apps/react-capacitor/`) — with capability cards for app-update / app-review / background-update; React 18 (stable downstream target)
176
- - [x] Node.js + Express backend (`example-apps/node-express/`) — minimal manifest-endpoint reference
177
-
178
- ### 9. CI/CD ✅ COMPLETE
179
-
180
- - [x] `.github/workflows/ci.yml` — yarn-based CI on PRs (corepack + node 20 + yarn 4)
181
- - [x] `.github/workflows/release.yml` — tag-driven npm publish (with provenance) + GitHub Release
182
- - [x] `.github/workflows/example-bundle.yml` — release+manual+weekly-cron build of the example app, signed, attached to GitHub Release (ephemeral-key fallback when secret absent)
183
-
184
- ### 10. Android Release Readiness ✅ COMPLETE (2026-05-16)
185
-
186
- - [x] `signingConfigs.release` wired from env vars
187
- - [x] ProGuard / R8 enabled with Capacitor-aware rules
188
- - [x] `network_security_config.xml` (HTTPS-only outside debug; localhost cleartext exception for dev)
189
- - [x] Branded launcher icons (15 PNGs across all densities + adaptive icons)
190
- - [x] Branded splash assets (11 PNGs)
191
- - [x] 3 Play Store graphics (feature graphic, promo graphic, TV banner) rendered from SVG via rsvg-convert
192
- - [x] 10-section `docs/deployment/BUILD_FOR_PLAY_STORE.md` runbook
193
- - [x] `screenshots/CAPTURE-GUIDE.md`
194
- - [x] Play Store `full-description.md` + `data-safety.md` rewritten for the Sanctum stack
195
- - [x] Unverifiable SOC / ISO / SLA claims removed from SecurityPage
196
-
197
- ---
198
-
199
- ## 🎯 Future Enhancement Phases
200
-
201
- ### ~~Phase 1: Advanced Testing~~ ✅ COMPLETE (2026-01-16 → 2026-05-11)
202
-
203
- - [x] iOS XCTest implementation
204
- - [x] Android JUnit tests
205
- - [x] E2E test suite with Detox
206
- - [x] Backend Pest/PHPUnit test suite (added 2026-05-08 → 2026-05-11)
207
- - [x] Microbenchmark scaffold for security hot paths (added 2026-05-11)
208
-
209
- ### ~~Phase 2: CI/CD~~ ✅ COMPLETE (2026-05-08 → 2026-05-11)
210
-
211
- - [x] GitHub Actions CI (`.github/workflows/ci.yml`)
212
- - [x] GitHub Actions release pipeline (`.github/workflows/release.yml`)
213
- - [x] GitHub Actions example-bundle pipeline (`.github/workflows/example-bundle.yml`)
214
-
215
- ### ~~Phase 3: Public Docs Site~~ ✅ COMPLETE (2026-05-11)
216
-
217
- - [x] Docusaurus public docs site at sibling repo `native-update-docs`
218
- - [x] 58 Diátaxis-organized pages, ~76k words
219
- - [x] Firebase Hosting deployed (custom domain ready)
220
- - [x] 7 discovery files (robots / llms / llms-full / humans / security / sitemap-index / sitemap)
221
- - [x] 3 JSON-LD blocks per page
222
-
223
- ### ~~Phase 4: Android Play Store Readiness~~ ✅ COMPLETE (2026-05-16)
224
-
225
- (See "Android Release Readiness" section above.)
226
-
227
- ### Phase 5: Enterprise Features (Optional, future)
228
-
229
- - [ ] Delta updates WASM optimization (placeholder exists)
230
- - [ ] A/B testing support
231
- - [ ] Multi-tenant SaaS hardening (sub-team / org accounts / shared ownership)
232
- - [ ] Enterprise SSO integration (SAML / OIDC beyond Google)
233
- - [ ] Custom branding for white-label SaaS
234
- - [ ] SLA monitoring + uptime page
235
- - [ ] Audit-logging UI surfaces on top of existing `analytics_events` data
236
-
237
- ### Phase 6: Community / Ecosystem (Optional, future)
238
-
239
- - [ ] Video tutorials
240
- - [ ] Wikipedia / Reddit / Product Hunt / AlternativeTo / G2 / Capterra presence (AI-citation reach)
241
- - [ ] Additional framework examples (Vue, Angular, Svelte)
242
- - [ ] Additional backend examples (Python, Java)
243
- - [ ] Community plugins directory
244
-
245
- ### Phase 7: Internal Refactors (Optional, future)
246
-
247
- - [ ] `website/src/pages/DocsPage.tsx` — 1,406-line file (workspace 500-line max). Multi-session refactor into per-feature sub-components.
248
-
249
- ---
250
-
251
- ## 📊 Completion Summary
252
-
253
- | Category | Status | Progress |
254
- |----------|--------|----------|
255
- | Backend Infrastructure (Laravel + Nova + Sanctum + Spatie) | ✅ Complete | 100% |
256
- | iOS Native Implementation | ✅ Complete | 100% |
257
- | Android Native Implementation | ✅ Complete | 100% |
258
- | TypeScript Implementation | ✅ Complete | 100% |
259
- | CLI Tools | ✅ Complete | 100% |
260
- | Documentation (repo + public Docusaurus) | ✅ Complete | 100% |
261
- | Marketing Website + Dashboard | ✅ Complete | 100% |
262
- | Example Applications | ✅ Complete | 100% |
263
- | Backend Pest Tests | ✅ Complete | 100% (136/136) |
264
- | iOS Native Tests (XCTest) | ✅ Complete | 100% |
265
- | Android Native Tests (JUnit) | ✅ Complete | 100% |
266
- | CI/CD | ✅ Complete | 100% |
267
- | Android Release Readiness | ✅ Complete | 100% |
268
- | Enterprise Features (Phase 5) | ⏳ Optional | 0% |
269
- | Community / Ecosystem (Phase 6) | ⏳ Optional | 0% |
270
-
271
- **Overall Status:** Production Ready, Play-Store-publishable end-to-end, with backend Pest + iOS XCTest + Android JUnit test layers passing.
272
-
273
- ---
274
-
275
- ## 📝 Notes
276
-
277
- - v3.0.0 (2026-05-04) removed Firestore from the plugin SDK + website; Laravel HTTP is the only backend.
278
- - 2026-05-11 swapped Firebase Auth for Laravel Socialite + Sanctum + Spatie RBAC.
279
- - 2026-05-16 closed the finalization audit (10 batches) making the Capacitor-wrapped dashboard Play-Store-publishable end-to-end.
280
- - All builds pass with zero errors (`yarn build` root + website + Docusaurus).
281
- - All lint checks pass with zero warnings.
282
- - Audit cooldown until 2026-05-23 (7-day cooldown after finalization audit closure).
283
-
284
- ---
285
-
286
- ## 🤝 Contributing
287
-
288
- Contributions welcome. Focus areas:
289
-
290
- - Delta updates WASM optimization (Phase 5)
291
- - Additional backend examples in other languages (Phase 6)
292
- - Framework-specific adapters (Vue / Angular / Svelte — Phase 6)
293
- - AI-citation reach: Wikipedia mention, Reddit / Product Hunt presence (Phase 6)
294
-
295
- See [CONTRIBUTING.md](../CONTRIBUTING.md) for guidelines.