native-update 3.1.1 → 3.1.3

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 (203) hide show
  1. package/AI-INTEGRATION-GUIDE.md +98 -63
  2. package/Readme.md +89 -120
  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/package.json +2 -2
  6. package/dist/esm/definitions.d.ts +8 -0
  7. package/dist/esm/plugin.js +16 -2
  8. package/dist/plugin.cjs.js +1 -1
  9. package/dist/plugin.esm.js +1 -1
  10. package/dist/plugin.js +2 -2
  11. package/docs/CHANGELOG.md +108 -0
  12. package/docs/KNOWN_LIMITATIONS.md +2 -2
  13. package/docs/MIGRATION.md +1 -1
  14. package/ios/Plugin/LiveUpdate/LiveUpdatePlugin.swift +64 -8
  15. package/ios/Plugin/NativeUpdatePlugin.swift +39 -13
  16. package/package.json +8 -3
  17. package/docs/AGENTS.md +0 -47
  18. package/docs/APP_REVIEW_GUIDE.md +0 -768
  19. package/docs/BUNDLE_SIGNING.md +0 -277
  20. package/docs/CLAUDE.md +0 -110
  21. package/docs/COMPREHENSIVE_AUDIT_REPORT.md +0 -526
  22. package/docs/DEPLOY_NOTES.md +0 -117
  23. package/docs/EXAMPLE_APPS_SIMPLIFICATION_PLAN.md +0 -384
  24. package/docs/EXAMPLE_APPS_SIMPLIFICATION_TRACKER.md +0 -390
  25. package/docs/LIVE_UPDATES_GUIDE.md +0 -675
  26. package/docs/MANUAL-TASKS.md +0 -30
  27. package/docs/MARKETING_WEBSITE_TRACKER.md +0 -677
  28. package/docs/NATIVE_UPDATES_GUIDE.md +0 -695
  29. package/docs/PACKAGES.md +0 -167
  30. package/docs/PERFORMANCE.md +0 -110
  31. package/docs/PROJECT_COMPLETION_TRACKER.md +0 -411
  32. package/docs/QUICK_START.md +0 -595
  33. package/docs/README.md +0 -130
  34. package/docs/REMAINING_FEATURES.md +0 -192
  35. package/docs/ROADMAP.md +0 -295
  36. package/docs/SECURITY-IF-REPO-PUBLIC.md +0 -232
  37. package/docs/SECURITY.md +0 -356
  38. package/docs/TESTING_REQUIREMENTS.md +0 -201
  39. package/docs/ai-knowledge-base/00-project-profile.md +0 -38
  40. package/docs/ai-knowledge-base/01-features.md +0 -46
  41. package/docs/ai-knowledge-base/02-routes.md +0 -72
  42. package/docs/ai-knowledge-base/03-tech-stack.md +0 -57
  43. package/docs/ai-knowledge-base/README.md +0 -23
  44. package/docs/analytics-tracking.md +0 -37
  45. package/docs/api/API.md +0 -558
  46. package/docs/api/FEATURES.md +0 -414
  47. package/docs/api/app-review-api.md +0 -239
  48. package/docs/api/app-update-api.md +0 -154
  49. package/docs/api/background-update-api.md +0 -170
  50. package/docs/api/events-api.md +0 -323
  51. package/docs/api/live-update-api.md +0 -258
  52. package/docs/archive/MARKETING_WEBSITE_PLAN.md +0 -659
  53. package/docs/background-updates.md +0 -392
  54. package/docs/capacitor-official-plugins.md +0 -46
  55. package/docs/capawesome-plugins.md +0 -29
  56. package/docs/cli-reference.md +0 -321
  57. package/docs/deployment/HOSTINGER_DEPLOY.md +0 -370
  58. package/docs/deployment/PRODUCTION-DEPLOY-CHECKLIST.md +0 -184
  59. package/docs/docs-site/plan.md +0 -201
  60. package/docs/docs-site/scope.md +0 -127
  61. package/docs/docs-site/tracker.json +0 -235
  62. package/docs/error-handling-tracking.md +0 -37
  63. package/docs/examples/advanced-scenarios.md +0 -394
  64. package/docs/examples/android-manifest-example.xml +0 -77
  65. package/docs/examples/basic-usage.md +0 -206
  66. package/docs/examples/node-express-backend-example.md +0 -28
  67. package/docs/examples/react-capacitor-example.md +0 -29
  68. package/docs/features/app-reviews.md +0 -975
  69. package/docs/features/app-updates.md +0 -785
  70. package/docs/features/e2e-full-verification/00-overview.md +0 -99
  71. package/docs/features/e2e-full-verification/00-tracker.json +0 -284
  72. package/docs/features/e2e-full-verification/phase01-backend-schema-fixes.md +0 -183
  73. package/docs/features/e2e-full-verification/phase02-test-auth.md +0 -176
  74. package/docs/features/e2e-full-verification/phase03-api-test-coverage.md +0 -63
  75. package/docs/features/e2e-full-verification/phase04-frontend-package-contract-audit.md +0 -73
  76. package/docs/features/e2e-full-verification/phase05-browser-e2e-matrix.md +0 -69
  77. package/docs/features/e2e-full-verification/phase06-deploy-prod-smoke.md +0 -51
  78. package/docs/features/e2e-full-verification/results/phase01-drift-report.md +0 -50
  79. package/docs/features/e2e-full-verification/results/phase03-coverage-matrix.md +0 -215
  80. package/docs/features/e2e-full-verification/results/phase04-frontend-contract.md +0 -139
  81. package/docs/features/e2e-full-verification/results/phase05-e2e-results.md +0 -99
  82. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-01-dashboard.png +0 -0
  83. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-02-signup.png +0 -0
  84. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-03-settings-persisted.png +0 -0
  85. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04a-app-created.png +0 -0
  86. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04b-duplicate-bundle-422.png +0 -0
  87. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-05-plan-limit-403.png +0 -0
  88. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08a-upload-graceful-fail.png +0 -0
  89. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08b-builds-list.png +0 -0
  90. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-10-rollout-25pct.png +0 -0
  91. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-11-analytics.png +0 -0
  92. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-12-drive-disconnected.png +0 -0
  93. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-13-pricing.png +0 -0
  94. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-14-isolation-403.png +0 -0
  95. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15a-admin-overview.png +0 -0
  96. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15b-regular-user-admin-redirect.png +0 -0
  97. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-16a-delete-dialog.png +0 -0
  98. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-17-mobile-375.png +0 -0
  99. package/docs/features/e2e-full-verification/results/route-list.json +0 -1
  100. package/docs/features/laravel-nova-backend/ASSESSMENT-SUMMARY.md +0 -96
  101. package/docs/features/laravel-nova-backend/IMPLEMENTATION-PLAN.md +0 -504
  102. package/docs/features/laravel-nova-backend/progress-tracker.json +0 -184
  103. package/docs/features/live-updates.md +0 -642
  104. package/docs/features/queues-and-emails/00-overview.md +0 -41
  105. package/docs/features/queues-and-emails/00-tracker.json +0 -99
  106. package/docs/features/queues-and-emails/phase01-foundation.md +0 -15
  107. package/docs/features/queues-and-emails/phase02-queued-jobs.md +0 -19
  108. package/docs/features/queues-and-emails/phase03-transactional-emails.md +0 -16
  109. package/docs/features/queues-and-emails/phase04-quota-ops.md +0 -17
  110. package/docs/features/queues-and-emails/phase05-async-build-processing-DECISION.md +0 -16
  111. package/docs/features/queues-and-emails/phase06-verify-deploy.md +0 -17
  112. package/docs/getting-started/configuration.md +0 -469
  113. package/docs/getting-started/installation.md +0 -300
  114. package/docs/getting-started/quick-start.md +0 -430
  115. package/docs/guides/BACKEND_TEMPLATES_GUIDE.md +0 -183
  116. package/docs/guides/admin-panel.md +0 -268
  117. package/docs/guides/channel-management.md +0 -343
  118. package/docs/guides/dashboard-guide.md +0 -365
  119. package/docs/guides/deployment-guide.md +0 -335
  120. package/docs/guides/end-to-end-workflow.md +0 -491
  121. package/docs/guides/key-management.md +0 -284
  122. package/docs/guides/migration-from-codepush.md +0 -145
  123. package/docs/guides/security-best-practices.md +0 -1057
  124. package/docs/guides/testing-guide.md +0 -346
  125. package/docs/guides/troubleshooting.md +0 -482
  126. package/docs/package-audit.md +0 -41
  127. package/docs/plans/PLANNING_COMPLETE_SUMMARY.md +0 -361
  128. package/docs/plans/TASK_1_ANDROID_EXAMPLE_APP.md +0 -401
  129. package/docs/plans/TASK_2_API_ENDPOINTS.md +0 -856
  130. package/docs/plans/TASK_2_DASHBOARD_UI_UX.md +0 -820
  131. package/docs/plans/TASK_2_DATABASE_SCHEMA.md +0 -704
  132. package/docs/plans/TASK_2_GOOGLE_DRIVE_INTEGRATION.md +0 -646
  133. package/docs/plans/TASK_2_SAAS_ARCHITECTURE.md +0 -587
  134. package/docs/plans/TASK_2_USER_AUTHENTICATION.md +0 -600
  135. package/docs/play-store/ASO-METADATA.md +0 -5
  136. package/docs/play-store/DATA-SAFETY.md +0 -5
  137. package/docs/play-store/DECLARATIONS.md +0 -5
  138. package/docs/play-store/README.md +0 -27
  139. package/docs/play-store/RELEASE-NOTES.md +0 -99
  140. package/docs/play-store/RELEASE-STEPS.md +0 -6
  141. package/docs/play-store/STORE-LISTING.md +0 -7
  142. package/docs/play-store/SUBMISSION-CHECKLIST.md +0 -5
  143. package/docs/production-readiness.md +0 -475
  144. package/docs/project-audit/2026-05-16/00-FINALIZATION-PLAN.md +0 -123
  145. package/docs/project-audit/2026-05-16/01-BATCH-PLAN.md +0 -227
  146. package/docs/project-audit/2026-05-16/02-AUDIT-FINDINGS.md +0 -144
  147. package/docs/project-audit/2026-05-16/sessions/batch-01.md +0 -42
  148. package/docs/project-audit/2026-05-16/sessions/batch-02.md +0 -74
  149. package/docs/project-audit/2026-05-16/sessions/batch-03.md +0 -71
  150. package/docs/project-audit/2026-05-16/sessions/batch-04.md +0 -88
  151. package/docs/project-audit/2026-05-16/sessions/batch-05.md +0 -63
  152. package/docs/project-audit/2026-05-16/sessions/batch-06.md +0 -103
  153. package/docs/project-audit/2026-05-16/sessions/batch-07.md +0 -61
  154. package/docs/project-audit/2026-05-16/sessions/batch-08.md +0 -101
  155. package/docs/project-audit/2026-05-16/sessions/batch-09.md +0 -105
  156. package/docs/project-audit/2026-05-16/sessions/batch-10.md +0 -102
  157. package/docs/project-audit/AUDIT-HISTORY.md +0 -74
  158. package/docs/project-audit/BATCH-PLAN.md +0 -168
  159. package/docs/project-audit/MARKETING-WEBSITE-FINDINGS-2026-05-11.md +0 -73
  160. package/docs/project-audit/PRODUCTION-READINESS-AUDIT-2026-05-08.md +0 -275
  161. package/docs/project-finalization/00-tracker.json +0 -60
  162. package/docs/project-knowledge-base/01-system-overview.md +0 -227
  163. package/docs/project-knowledge-base/02-routes-pages-forms-users.md +0 -352
  164. package/docs/project-knowledge-base/03-tech-stack-modules-services.md +0 -379
  165. package/docs/project-knowledge-base/04-data-models-integrations.md +0 -244
  166. package/docs/project-knowledge-base/05-docs-corpus-inventory.md +0 -256
  167. package/docs/project-knowledge-base/06-operations-testing-legal-content.md +0 -208
  168. package/docs/project-knowledge-base/README.md +0 -103
  169. package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-05-19.md +0 -81
  170. package/docs/reports/AUDIT_SUMMARY_2025-12-26.md +0 -203
  171. package/docs/reports/CLAUDE-CODE-COMPLETION-PROMPT.md +0 -403
  172. package/docs/reports/CLAUDE_CODE_PROMPT.md +0 -29
  173. package/docs/reports/CODEBASE_STATUS_REPORT.md +0 -272
  174. package/docs/reports/COMPLETE_VERIFICATION.md +0 -106
  175. package/docs/reports/COMPREHENSIVE-PROJECT-AUDIT-2026-02-24.md +0 -747
  176. package/docs/reports/EVENT_FLOW_VERIFICATION.md +0 -80
  177. package/docs/reports/EXAMPLE_APPS_SIMPLIFICATION_COMPLETE.md +0 -369
  178. package/docs/reports/FINAL_STATUS.md +0 -122
  179. package/docs/reports/FINAL_VERIFICATION_CHECKLIST.md +0 -425
  180. package/docs/reports/MARKETING_WEBSITE_COMPLETE.md +0 -466
  181. package/docs/reports/PACKAGE_COMPLETENESS_REPORT.md +0 -130
  182. package/docs/reports/PRODUCTION_STATUS.md +0 -115
  183. package/docs/reports/PROJECT_RESTRUCTURE_2025-12-27.md +0 -287
  184. package/docs/reports/PROJECT_RESTRUCTURE_FINAL_SUMMARY.md +0 -464
  185. package/docs/reports/PUBLISHING_VERIFICATION.md +0 -144
  186. package/docs/reports/RELEASE_READY_SUMMARY.md +0 -99
  187. package/docs/reports/claude-completion.json +0 -241
  188. package/docs/rules-tracker.md +0 -102
  189. package/docs/security/PRE-LAUNCH-PENTEST-CHECKLIST.md +0 -116
  190. package/docs/security/certificate-pinning.md +0 -122
  191. package/docs/seo-aeo-rules.json +0 -3043
  192. package/docs/social-media-marketing/README.md +0 -81
  193. package/docs/social-media-marketing/posts-batch-01.md +0 -613
  194. package/docs/social-media-marketing/posts-batch-02.md +0 -528
  195. package/docs/social-media-marketing/whatsapp-messages-batch-01.md +0 -458
  196. package/docs/social-media-marketing/whatsapp-status-batch-01.md +0 -355
  197. package/docs/tracking/IMPLEMENTATION_TRACKER.md +0 -303
  198. package/docs/tracking/capacitor-rollout-note-2026-03-01.md +0 -21
  199. package/docs/tracking/completion-tracker-2026-02-24.json +0 -174
  200. package/docs/tracking/finalization-2026-05-16-tracker.json +0 -346
  201. package/docs/tracking/full-audit-tracker.json +0 -121
  202. package/docs/tracking/production-readiness-audit-tracker.json +0 -429
  203. package/docs/tracking/seo-checklist-tracker.json +0 -333
package/docs/PACKAGES.md DELETED
@@ -1,167 +0,0 @@
1
- # Packages — Native Update
2
-
3
- > Inventory of every package this project depends on and where it's used.
4
- > Fixed path (all projects): docs/PACKAGES.md. Update on EVERY add/remove/upgrade.
5
- > Last updated: 2026-06-19 | Fleet pass: 2026-06-19 (absolute-latest + Node ≥24.16.0; cooldown OFF)
6
-
7
- ## package.json / composer.json units (in scope)
8
-
9
- - `package.json` (root) — Published Capacitor plugin (`native-update`) + bundled CLI. Build: `tsc` → Rollup.
10
- - `website/package.json` — React 19 + Vite 8 + Tailwind v4 + Radix marketing site + dashboard.
11
- - `cli/package.json` (`native-update-cli`) — CLI shipped via the root `bin`; deps also resolve from root when published.
12
- - `backend/package.json` — Laravel Vite asset build (JS tooling). `backend/composer.json` — Laravel 13 + Nova 5 (PHP).
13
-
14
- **Out of scope:** `example-apps/**` (demo apps — fleet rule: skip), `backend/vendor/**` (Composer vendor).
15
-
16
- **Engines:** every unit pins `node >=24.16.0` (user directive 2026-06-19). The published plugin therefore requires Node ≥24.16 in consumer toolchains. PHP floor raised to `^8.3` (Laravel 13).
17
-
18
- ---
19
-
20
- ## Root plugin (`native-update`)
21
-
22
- ### Production deps — the bundled CLI's runtime deps (root `bin: cli/index.js`)
23
- | Package | Version | Used where | Notes |
24
- |---|---|---|---|
25
- | archiver | ^8.0.0 | `cli/commands/bundle-create.js` | ZIP bundle creation |
26
- | chalk | ^5.6.2 | `cli/index.js`, all `cli/commands/*.js` | Colored output |
27
- | commander | ^15.0.0 | `cli/index.js` | CLI arg parsing (14→15; needs Node ≥22.12, OK under ≥24.16) |
28
- | express | ^5.2.1 | `cli/commands/server-start.js` | Local test/manifest server |
29
- | ora | ^9.4.0 | `cli/commands/{backend-create,monitor}.js` | Spinners |
30
- | prompts | ^2.4.2 | `cli/commands/init.js` | Interactive init |
31
-
32
- > Plugin TS (`src/**`) imports only `@capacitor/core`, `@capacitor/filesystem`, `@capacitor/preferences` — all Rollup `external`; core is the lone peer. Not bundled.
33
-
34
- ### Dev deps
35
- | Package | Version | Notes |
36
- |---|---|---|
37
- | @capacitor/app | ^8.1.0 | Capacitor 8 lockstep (referenced in src/build context) |
38
- | @capacitor/core | ^8.4.1 | `src/**` peer + type-check |
39
- | @capacitor/device | ^8.0.2 | Capacitor 8 lockstep |
40
- | @capacitor/filesystem | ^8.1.2 | `src/**` (external) |
41
- | @capacitor/preferences | ^8.0.1 | `src/**` (external) |
42
- | @rollup/plugin-node-resolve | ^16.0.3 | `rollup.config.js` |
43
- | @rollup/plugin-terser | ^1.0.0 | `rollup.config.js` |
44
- | @types/node | ^26.0.0 | tsconfig node typings |
45
- | @typescript-eslint/eslint-plugin · parser | ^8.61.1 | `eslint.config.js` |
46
- | eslint | ^10.5.0 | `yarn lint` |
47
- | prettier | ^3.8.4 | `yarn prettier` |
48
- | rimraf | ^6.1.3 | `build`/`clean` scripts |
49
- | rollup | ^4.62.0 | `build` |
50
- | typescript | ^6.0.3 | `build`/`tsc` |
51
-
52
- ### Peer deps
53
- | Package | Version | Notes |
54
- |---|---|---|
55
- | @capacitor/core | ^8.0.1 | Provided by the consumer app |
56
-
57
- ---
58
-
59
- ## website/ (React 19 + Vite 8 + Tailwind v4)
60
-
61
- ### Production deps
62
- | Package | Version | Used where |
63
- |---|---|---|
64
- | @amplitude/analytics-browser | ^2.44.1 | `src/lib/analytics.ts` |
65
- | @capacitor/android · cli · core · ios | ^8.4.1 | native build / `cap:sync` |
66
- | @capacitor/motion | ^8.0.0 | `src/services/capacitor/motion.service.ts` |
67
- | @capacitor/preferences | ^8.0.1 | token/theme storage |
68
- | @capacitor/privacy-screen | ^2.0.1 | `src/services/capacitor/privacy-screen.service.ts` |
69
- | @capacitor/share | ^8.0.1 | `src/services/capacitor/share.service.ts` |
70
- | @capawesome/capacitor-app-shortcuts | ^8.0.1 | `src/services/capacitor/app-shortcuts.service.ts` |
71
- | @hookform/resolvers | ^5.4.0 | RHF + Zod (UploadPage) |
72
- | @microsoft/clarity | ^1.0.2 | `src/lib/errorTracking.ts` |
73
- | @radix-ui/react-{dialog,icons,select,slider,slot,switch} | various | UI components |
74
- | @sentry/react | ^10.58.0 | `src/lib/errorTracking.ts` |
75
- | @tanstack/react-query | ^5.101.0 | `src/App.tsx` + hooks |
76
- | @types/d3 | ^7.4.3 | type-only for `d3` (kept; see ambiguous) |
77
- | axios | ^1.18.0 | `src/lib/api.ts` |
78
- | class-variance-authority / clsx / tailwind-merge | — | UI utils |
79
- | d3 | ^7.9.0 | `src/pages/ExamplesPage.tsx` |
80
- | framer-motion | 12.40.0 | **PINNED exact** (see pins) |
81
- | jszip | ^3.10.1 | `src/services/manifest-generator.ts` |
82
- | lucide-react | ^1.21.0 | icons |
83
- | react / react-dom | ^19.2.7 | app-wide |
84
- | react-hook-form | ^7.79.0 | UploadPage |
85
- | react-markdown / remark-gfm | — | DocsMarkdownPage |
86
- | react-router-dom | ^7.18.0 | `src/router.tsx` |
87
- | zod | ^4.4.3 | validation |
88
- | zustand | ^5.0.14 | `src/stores/themeStore.ts` |
89
-
90
- ### Dev deps
91
- | Package | Version | Notes |
92
- |---|---|---|
93
- | @tailwindcss/vite | ^4.3.1 | `vite.config.ts` — the ONLY Tailwind path now |
94
- | @trapezedev/configure | ^7.1.4 | `sync:apps-config` |
95
- | @types/node | ^26.0.0 | `tsconfig.node.json` |
96
- | @types/react · @types/react-dom | ^19.2.x | typings |
97
- | @vitejs/plugin-react | ^6.0.2 | `vite.config.ts` |
98
- | eslint + eslint-plugin-react-hooks + eslint-plugin-react-refresh + typescript-eslint + globals | — | lint |
99
- | tailwindcss | ^4.3.1 | resolves `@import "tailwindcss"` |
100
- | tsx | ^4.22.4 | runs `postbuild-seo.ts` (added so build doesn't `npx`-fetch) |
101
- | typescript | ~6.0.3 | `tsc -b` (typecheck gate) |
102
- | vite | ^8.0.16 | build/dev |
103
-
104
- ---
105
-
106
- ## cli/ (`native-update-cli`)
107
- Now self-contained (previously declared only `commander`, but imports more):
108
- | Package | Version | Used where |
109
- |---|---|---|
110
- | archiver ^8.0.0 · chalk ^5.6.2 · commander ^15.0.0 · express ^5.2.1 · ora ^9.4.0 · prompts ^2.4.2 | — | `cli/index.js` + `cli/commands/*.js` |
111
-
112
- ---
113
-
114
- ## backend/ — Composer (PHP, Laravel 13 + Nova 5)
115
- | Package | Version | Notes |
116
- |---|---|---|
117
- | php | ^8.3 | raised from ^8.2 for Laravel 13 |
118
- | laravel/framework | ^13.0 (13.16.1) | 11→13; fixes 3 security advisories (CRLF email / signed-URL) |
119
- | laravel/nova | ^5.8 | supports Laravel 13 |
120
- | laravel/sanctum | ^4.3 | dashboard bearer tokens |
121
- | laravel/socialite | ^5.27 | Google OAuth |
122
- | laravel/tinker | ^3.0 | 2→3 (needed for L13) |
123
- | spatie/laravel-permission | ^8.0 | 6→8 — **RBAC: re-run migrations + Pest before deploy** |
124
- | srmklive/paypal | ^3.1 | unlocked by L13 (was stuck at 3.0.40) |
125
- | google/apiclient | ^2.15 | Drive API |
126
- | phpunit/phpunit (dev) | ^12.0 | 11→12 |
127
-
128
- ## backend/ — npm (Vite asset build)
129
- | Package | Version | Notes |
130
- |---|---|---|
131
- | @tailwindcss/postcss + postcss | ^4.3.1 / ^8.5.15 | backend uses the postcss Tailwind path (no @tailwindcss/vite here) — KEPT |
132
- | tailwindcss | ^4.3.1 | `tailwind.config.js` |
133
- | axios | ^1.18.0 | `resources/js/bootstrap.js` |
134
- | concurrently | ^10.0.3 | composer `dev` script — KEPT |
135
- | laravel-vite-plugin | ^3.1.0 | `vite.config.js` |
136
- | vite | ^8.0.16 | build/dev |
137
-
138
- ---
139
-
140
- ## Intentional pins / floors
141
- | Item | Value | Reason |
142
- |---|---|---|
143
- | framer-motion | 12.40.0 exact (website) | Pre-existing exact pin; held to avoid animation-runtime regressions. |
144
- | @capacitor/* | ^8.x (all units) | Capacitor major lockstep. |
145
- | node engine | >=24.16.0 (all units) | User directive 2026-06-19 — unblocks commander@15 + latest majors. |
146
- | php | ^8.3 (backend) | Laravel 13 minimum. |
147
-
148
- ## Removed in cleanup
149
- | Date | Package | unit | Why |
150
- |---|---|---|---|
151
- | 2026-06-19 | @capacitor/android, @capacitor/ios | root dev | A plugin's TS never imports native runtime packages (only core/filesystem/preferences); confirmed unused. |
152
- | 2026-06-19 | @tailwindcss/postcss, postcss (+ `postcss.config.js`) | website dev | Redundant — Tailwind already runs via `@tailwindcss/vite`; the postcss path double-processed it. |
153
- | 2026-06-18 | @rollup/plugin-json | root dev | Not used by `rollup.config.js`. |
154
- | 2026-06-18 | 8× unused `@radix-ui/react-*` | website prod | No imports in `src/` (accordion, dropdown-menu, label, navigation-menu, scroll-area, separator, tabs, tooltip). |
155
- | 2026-06-18 | autoprefixer | backend dev | Tailwind v4 handles prefixing. |
156
-
157
- ## Ambiguous / kept
158
- | Package | Why |
159
- |---|---|
160
- | @types/d3 (website) | Type-only; consumed implicitly for `d3`. Kept (lives in deps; left as-is). |
161
-
162
- ## Build (re-measured 2026-06-19 — all <60s; outputs preserved)
163
- The website's `tsc -b` was moved **out of `build`** into the `typecheck` gate (was the ~80s bottleneck), so the three checks are now independent and each green:
164
- - **Root**: `yarn build` (rimraf + tsc + rollup) **~4s** · lint 0. Outputs: `dist/esm/**` + `plugin.{js,cjs.js,esm.js}` + `.d.ts` + sourcemaps.
165
- - **website**: `yarn build` (sitemap + `vite build` + `tsx postbuild-seo`) **~4s** · `yarn typecheck` (`tsc -b`) **~10s** · lint 0. Outputs: 122 dist files, 17 HTML, 9 discovery files, sitemap/feed — preserved. (Removing the double-Tailwind processing also trimmed the vite step.)
166
- - **cli**: no build step; verified `node cli/index.js --help` runs under commander@15.
167
- - **backend**: `npx vite build` **~2s**; PHP boot verified (`route:list` 161 routes, `config:cache`/`view:cache` OK, Nova assets publish, `composer audit` clean).
@@ -1,110 +0,0 @@
1
- # Performance
2
-
3
- This document captures the SDK's performance characteristics — what's measured,
4
- what the targets are, and where the hot paths live. It is the entry point for
5
- anyone investigating a perf regression or considering an optimisation patch.
6
-
7
- Real-device perf testing is out of scope here — that needs a separate
8
- Maestro / XCTest harness and is on the roadmap.
9
-
10
- Maintained by Ahsan Mahmood. Last review: 2026-05-11.
11
-
12
- ## What dominates real-world OTA performance
13
-
14
- For most apps, the user-visible latency between "release pushed" and "device
15
- running the new code" is dominated by three things, in order:
16
-
17
- 1. **Bundle download time** — completely network-bound. A 5 MB bundle on a
18
- typical mobile connection takes ~10-30 seconds. The SDK's job here is to
19
- not make it worse with extra round-trips or stalled retries.
20
- 2. **The wait for the user's next app launch** — depending on the update
21
- strategy, this is hours or days for `on-app-start`, minutes for
22
- `on-app-resume`, and immediate for `immediate`. See [Update strategies
23
- compared](https://docs.nativeupdate.aoneahsan.com/concepts/update-strategies-compared).
24
- 3. **Server-side check latency** — typically ~50-200 ms when the backend is
25
- warm. Cold-start backends (Firebase Functions, Cloud Run) can push this to
26
- 2-5 seconds on the first request.
27
-
28
- The SDK's compute work — checksum, signature verify, ZIP extraction, atomic
29
- swap — is comparatively cheap. SHA-256 over 5 MB takes ~12 ms; RSA-SHA256
30
- verify takes ~2 ms with RSA-2048; ZIP extraction is dominated by I/O. None
31
- of these is the bottleneck unless something has gone wrong.
32
-
33
- That priority ordering also dictates where optimisation effort pays off:
34
- network-aware retry backoff > update-strategy selection > server warm-up >
35
- compute path optimisation.
36
-
37
- ## Microbenchmark targets
38
-
39
- The compute-bound paths have the following calibration targets (MacBook M2,
40
- Node 20.10, single-threaded):
41
-
42
- | Operation | p50 target | p95 target | Notes |
43
- |---|---|---|---|
44
- | SHA-256 over 1 MB | ~2.5 ms | ~4 ms | Linear in bundle size. |
45
- | SHA-256 over 5 MB | ~12 ms | ~18 ms | The common case for Capacitor bundles. |
46
- | SHA-256 over 20 MB | ~50 ms | ~70 ms | Large bundles; consider asset CDN offload. |
47
- | RSA-SHA256 verify (2048-bit, 5 MB) | ~2 ms | ~4 ms | Dominated by the SHA, not the asymmetric op. |
48
- | RSA-SHA256 verify (4096-bit, 5 MB) | ~6 ms | ~10 ms | ~3x slower than 2048-bit verify. |
49
-
50
- Real Android / iOS devices are typically 2-5x slower than the dev machine.
51
- Tail devices (iOS 14-era, Android API 22-26) can be 8-10x slower. Plan
52
- backend timeouts and SDK retry policies accordingly.
53
-
54
- ## Regression workflow
55
-
56
- If the compute paths show numbers >2x the calibration target on equivalent
57
- hardware:
58
-
59
- 1. **Re-measure on a quiet machine** to confirm the regression is real and not
60
- noise from a busy machine.
61
- 2. **Profile with `clinic.js`** against a small harness exercising the hot path.
62
- The flame graph usually points at the regression directly.
63
- 3. **Common culprits**:
64
- - Streaming hash with too-small chunk sizes (each `update()` has overhead)
65
- - PEM parsing in the verify hot loop instead of pre-parsing the key
66
- - Allocations inside the loop (`Buffer.alloc()` per iteration)
67
- - Crypto algorithm fallback to a slow polyfill
68
- 4. **Fix** with the smallest possible patch. Re-run bench to confirm. PR
69
- should include before/after numbers.
70
-
71
- ## Hot paths in the SDK
72
-
73
- For anyone optimising the plugin internals, here's the runtime map of where
74
- CPU goes during a typical OTA update:
75
-
76
- ```
77
- sync() ← orchestration, no hot work
78
- ├── checkForUpdate() ← one HTTP call, ~100 ms wall
79
- ├── downloadUpdate()
80
- │ ├── fetch(downloadUrl) ← network I/O, ~10-30 s
81
- │ ├── SecurityValidator.verifyChecksum() ← ~12 ms for 5 MB
82
- │ ├── SecurityValidator.verifySignature() ← ~2 ms for RSA-2048
83
- │ └── ZIP extraction ← I/O dominated, ~100-500 ms
84
- └── notifyAppReady() (later, next launch) ← O(1)
85
- ```
86
-
87
- The two checksum/signature steps run sequentially after the bundle hits
88
- disk. They are the only places where compute time is measurable. ZIP
89
- extraction is platform-native (java.util.zip on Android, NSFileManager
90
- on iOS) and not exposed to optimisation from the TypeScript side.
91
-
92
- ## What's NOT covered here
93
-
94
- Real-device benchmarks (Android API ladder, iOS device matrix). The
95
- microbenches measure Node performance, which differs from on-device
96
- JavaScript engines (Hermes on Android, JavaScriptCore on iOS). Real-device
97
- perf testing is a separate roadmap item.
98
-
99
- Web-platform performance. The plugin's web target uses `SubtleCrypto` for
100
- hashing and verification, which has its own perf profile. No web benches
101
- exist today.
102
-
103
- Memory profiling. The benches measure CPU time only. Memory pressure is
104
- typically not an issue for the SDK (the largest allocation is the bundle
105
- buffer during streaming), but a memory bench would be welcome — file an
106
- issue if you want to contribute one.
107
-
108
- ## Authored by
109
-
110
- [Ahsan Mahmood](https://aoneahsan.com) — author and maintainer of `native-update`.
@@ -1,411 +0,0 @@
1
- # Project Completion Tracker
2
-
3
- **Last Updated:** 2026-01-16
4
- **Project:** native-update (Capacitor OTA Update Plugin)
5
- **Version:** 1.3.3
6
- **Status:** PRODUCTION READY
7
-
8
- This document provides a comprehensive tracking of all project components, their completion status, and verification details.
9
-
10
- ---
11
-
12
- ## Executive Summary
13
-
14
- | Category | Status | Progress |
15
- |----------|--------|----------|
16
- | Plugin Core (TypeScript) | ✅ Complete | 100% |
17
- | iOS Native Implementation | ✅ Complete | 100% |
18
- | Android Native Implementation | ✅ Complete | 100% |
19
- | CLI Tools | ✅ Complete | 100% |
20
- | Marketing Website | ✅ Complete | 100% |
21
- | Example Applications | ✅ Complete | 100% |
22
- | Documentation | ✅ Complete | 100% |
23
- | Firebase Integration | ✅ Complete | 100% |
24
- | iOS Native Tests (XCTest) | ✅ Complete | 100% |
25
- | Android Native Tests (JUnit) | ✅ Complete | 100% |
26
-
27
- **Overall:** Production ready with comprehensive test coverage.
28
-
29
- ---
30
-
31
- ## 1. Plugin Core Implementation
32
-
33
- ### 1.1 TypeScript Source Files (`/src/`)
34
-
35
- | Module | Files | Status | Last Verified |
36
- |--------|-------|--------|---------------|
37
- | Core Definitions | `definitions.ts`, `index.ts`, `plugin.ts`, `web.ts` | ✅ Complete | 2026-01-16 |
38
- | Live Update | 7 files in `/src/live-update/` | ✅ Complete | 2026-01-16 |
39
- | App Update | 6 files in `/src/app-update/` | ✅ Complete | 2026-01-16 |
40
- | App Review | 5 files in `/src/app-review/` | ✅ Complete | 2026-01-16 |
41
- | Background Update | 3 files in `/src/background-update/` | ✅ Complete | 2026-01-16 |
42
- | Core Infrastructure | 9 files in `/src/core/` | ✅ Complete | 2026-01-16 |
43
- | Security | 2 files in `/src/security/` | ✅ Complete | 2026-01-16 |
44
- | Firestore Integration | 4 files in `/src/firestore/` | ✅ Complete | 2026-01-16 |
45
-
46
- ### 1.2 Build Verification
47
-
48
- | Check | Result | Date |
49
- |-------|--------|------|
50
- | `yarn lint` | ✅ 0 warnings | 2026-01-16 |
51
- | `yarn build` | ✅ 0 errors | 2026-01-16 |
52
- | TypeScript compilation | ✅ Pass | 2026-01-16 |
53
- | Rollup bundling | ✅ ESM, CJS, UMD generated | 2026-01-16 |
54
-
55
- ---
56
-
57
- ## 2. Native Implementations
58
-
59
- ### 2.1 iOS (`/ios/Plugin/`)
60
-
61
- | File | Purpose | Status |
62
- |------|---------|--------|
63
- | `NativeUpdatePlugin.swift` | Main plugin bridge | ✅ Complete |
64
- | `NativeUpdatePlugin.m` | Objective-C bridge | ✅ Complete |
65
- | `LiveUpdate/LiveUpdatePlugin.swift` | OTA updates | ✅ Complete |
66
- | `LiveUpdate/WebViewConfiguration.swift` | WebView setup | ✅ Complete |
67
- | `AppUpdate/AppUpdatePlugin.swift` | App Store updates | ✅ Complete |
68
- | `AppReview/AppReviewPlugin.swift` | StoreKit reviews | ✅ Complete |
69
- | `BackgroundUpdate/BackgroundUpdatePlugin.swift` | Background checking | ✅ Complete |
70
- | `BackgroundUpdate/BackgroundNotificationManager.swift` | Notifications | ✅ Complete |
71
- | `Security/SecurityManager.swift` | Crypto operations | ✅ Complete |
72
-
73
- ### 2.2 Android (`/android/`)
74
-
75
- | Component | Status |
76
- |-----------|--------|
77
- | Gradle build configuration | ✅ Complete |
78
- | NativeUpdatePlugin.kt | ✅ Complete |
79
- | LiveUpdatePlugin.kt | ✅ Complete |
80
- | AppUpdatePlugin.kt (Play Core) | ✅ Complete |
81
- | AppReviewPlugin.kt | ✅ Complete |
82
- | BackgroundUpdatePlugin.kt | ✅ Complete |
83
- | SecurityManager.kt | ✅ Complete |
84
-
85
- ---
86
-
87
- ## 3. CLI Tools (`/cli/`)
88
-
89
- | Command | File | Status | Verified |
90
- |---------|------|--------|----------|
91
- | `init` | `commands/init.js` | ✅ Complete | 2026-01-16 |
92
- | `bundle create` | `commands/bundle-create.js` | ✅ Complete | 2026-01-16 |
93
- | `bundle sign` | `commands/bundle-sign.js` | ✅ Complete | 2026-01-16 |
94
- | `bundle verify` | `commands/bundle-verify.js` | ✅ Complete | 2026-01-16 |
95
- | `keys generate` | `commands/keys-generate.js` | ✅ Complete | 2026-01-16 |
96
- | `backend create` | `commands/backend-create.js` | ✅ Complete | 2026-01-16 |
97
- | `server start` | `commands/server-start.js` | ✅ Complete | 2026-01-16 |
98
- | `monitor` | `commands/monitor.js` | ✅ Complete | 2026-01-16 |
99
-
100
- **CLI Help Verification:** `node cli/index.js --help` ✅ All 8 commands listed
101
-
102
- **Note:** TODOs in `backend-create.js` are intentional template placeholders for user customization. See `/docs/guides/BACKEND_TEMPLATES_GUIDE.md`.
103
-
104
- ---
105
-
106
- ## 4. Marketing Website (`/website/`)
107
-
108
- ### 4.1 Pages
109
-
110
- | Category | Pages | Status |
111
- |----------|-------|--------|
112
- | Marketing | Home, Features, Pricing, Examples, Docs | ✅ Complete |
113
- | Legal | Privacy, Terms, Security, Cookies, Data Deletion | ✅ Complete |
114
- | Info | About, Contact | ✅ Complete |
115
- | Dashboard | Overview, Apps, Builds, Rollouts, Upload, Analytics, Settings, Config, GoogleDrive, AppDetail | ✅ Complete |
116
-
117
- ### 4.2 Build Verification
118
-
119
- | Check | Result | Date |
120
- |-------|--------|------|
121
- | `yarn lint` | ✅ 0 warnings | 2026-01-16 |
122
- | `yarn build` | ✅ 0 errors | 2026-01-16 |
123
- | Vite logLevel | ✅ Set to 'info' | 2026-01-16 |
124
-
125
- ### 4.3 Firebase Configuration
126
-
127
- | File | Status | Last Updated |
128
- |------|--------|--------------|
129
- | `firestore.rules` | ✅ Complete | 2026-01-16 |
130
- | `firestore.indexes.json` | ✅ Complete | 2026-01-16 |
131
-
132
- ---
133
-
134
- ## 5. Firebase Rules & Indexes
135
-
136
- ### 5.1 Website Firestore Indexes (`/website/firestore.indexes.json`)
137
-
138
- | Collection | Query Pattern | Index Status |
139
- |------------|---------------|--------------|
140
- | `apps` | userId + createdAt DESC | ✅ Defined |
141
- | `builds` | userId + uploadedAt DESC | ✅ Defined |
142
- | `builds` | userId + appId + uploadedAt DESC | ✅ Defined |
143
- | `builds` | userId + channel + uploadedAt DESC | ✅ Defined |
144
- | `builds` | userId + status + uploadedAt DESC | ✅ Defined |
145
- | `builds` | userId + platform + uploadedAt DESC | ✅ Defined |
146
- | `builds` | appId + channel + status + uploadedAt DESC | ✅ Defined |
147
- | `analytics_batch` | appId + windowStart ASC | ✅ Defined |
148
-
149
- ### 5.2 Plugin Firestore Indexes (`/src/firestore/firestore.indexes.json`)
150
-
151
- | Collection | Query Pattern | Index Status |
152
- |------------|---------------|--------------|
153
- | `manifests` | appId + channel | ✅ Defined |
154
- | `builds` | appId + channel + uploadedAt DESC | ✅ Defined |
155
- | `builds` | userId + uploadedAt DESC | ✅ Defined |
156
- | `builds` | appId + version DESC | ✅ Defined |
157
- | `deltas` | appId + toVersion | ✅ Defined |
158
- | `deltas` | appId + fromVersion + toVersion | ✅ Defined |
159
- | `analytics_batch` | appId + windowStart DESC | ✅ Defined |
160
- | `analytics_batch` | appId + channel + windowStart DESC | ✅ Defined |
161
- | `apps` | userId + createdAt DESC | ✅ Defined |
162
-
163
- ### 5.3 Firebase Rules Coverage
164
-
165
- | Collection | Rules Location | Permissions |
166
- |------------|----------------|-------------|
167
- | `apps` | Website + Plugin | Owner read/write |
168
- | `builds` | Website + Plugin | Owner read/write |
169
- | `manifests` | Plugin | Public read, Owner write |
170
- | `deltas` | Plugin | Public read, Owner write |
171
- | `users` | Website + Plugin | Owner only |
172
- | `drive_tokens` | Website + Plugin | Owner only |
173
- | `analytics` | Website | Write only |
174
- | `analytics_batch` | Plugin | Public write, Admin read |
175
-
176
- ---
177
-
178
- ## 6. Example Applications
179
-
180
- ### 6.1 React + Capacitor (`/example-apps/react-capacitor/`)
181
-
182
- | Check | Result | Date |
183
- |-------|--------|------|
184
- | `yarn build` | ✅ 0 errors | 2026-01-16 |
185
- | Vite logLevel | ✅ Set to 'info' | 2026-01-16 |
186
- | Port configuration | ✅ 5944 (unique) | 2026-01-16 |
187
-
188
- ### 6.2 Firebase Backend (`/example-apps/firebase-backend/`)
189
-
190
- | Component | Status |
191
- |-----------|--------|
192
- | Cloud Functions | ✅ Complete |
193
- | Firestore rules | ✅ Complete |
194
- | Firestore indexes | ✅ Complete |
195
- | README | ✅ Complete |
196
-
197
- ### 6.3 Node.js + Express (`/example-apps/node-express/`)
198
-
199
- | Component | Status |
200
- |-----------|--------|
201
- | Express server | ✅ Complete |
202
- | SQLite database | ✅ Complete |
203
- | README | ✅ Complete |
204
-
205
- ---
206
-
207
- ## 7. Documentation (`/docs/`)
208
-
209
- | Category | Files | Status |
210
- |----------|-------|--------|
211
- | API Reference | 7 files in `/docs/api/` | ✅ Complete |
212
- | Getting Started | 3 files in `/docs/getting-started/` | ✅ Complete |
213
- | Features | 3 files in `/docs/features/` | ✅ Complete |
214
- | Guides | 6 files in `/docs/guides/` | ✅ Complete |
215
- | Examples | 2 files in `/docs/examples/` | ✅ Complete |
216
- | Security | 3 files in `/docs/security/` | ✅ Complete |
217
- | Reports | Multiple files in `/docs/reports/` | ✅ Complete |
218
- | Plans | Multiple files in `/docs/plans/` | ✅ Complete |
219
-
220
- ### Key Documentation Files
221
-
222
- | File | Purpose | Status |
223
- |------|---------|--------|
224
- | `ROADMAP.md` | Development roadmap | ✅ Updated 2026-01-16 |
225
- | `TESTING_REQUIREMENTS.md` | Testing guide | ✅ Created 2026-01-16 |
226
- | `BACKEND_TEMPLATES_GUIDE.md` | Template customization | ✅ Created 2026-01-16 |
227
- | `PROJECT_COMPLETION_TRACKER.md` | This file | ✅ Updated 2026-01-16 |
228
-
229
- ---
230
-
231
- ## 8. Assets & SVG Verification
232
-
233
- | Location | Asset Type | Format | Status |
234
- |----------|------------|--------|--------|
235
- | `/website/public/favicon.svg` | Favicon | SVG | ✅ |
236
- | `/website/public/apple-touch-icon.svg` | iOS icon | SVG | ✅ |
237
- | `/website/public/og-image.svg` | Social share | SVG | ✅ |
238
- | `/website/public/vite.svg` | Vite logo | SVG | ✅ |
239
- | `/example-apps/react-capacitor/android/` | App icons | PNG | ✅ (Android requires PNG) |
240
-
241
- **Note:** Android app icons must be PNG format - this is a platform requirement, not a deviation from SVG policy.
242
-
243
- ---
244
-
245
- ## 9. Configuration Files
246
-
247
- ### 9.1 Vite Configuration
248
-
249
- | Project | logLevel | Port | strictPort | Status |
250
- |---------|----------|------|------------|--------|
251
- | Website | `'info'` | 5942 | true | ✅ Correct |
252
- | React-Capacitor Example | `'info'` | 5944 | true | ✅ Correct |
253
-
254
- ### 9.2 ESLint Configuration
255
-
256
- | Project | @eslint/js usage | TypeScript ESLint | Status |
257
- |---------|-----------------|-------------------|--------|
258
- | Main plugin | ❌ Not used | ✅ Used | ✅ Correct |
259
- | Website | ❌ Not used | ✅ Used | ✅ Correct |
260
-
261
- ### 9.3 Package Manager
262
-
263
- | Project | Package Manager | Lockfile | Status |
264
- |---------|-----------------|----------|--------|
265
- | Root | yarn@1.22.22 | yarn.lock | ✅ |
266
- | Website | yarn | yarn.lock | ✅ |
267
- | CLI | yarn | - | ✅ |
268
- | Examples | yarn | - | ✅ |
269
-
270
- ---
271
-
272
- ## 10. Testing ✅ COMPLETE
273
-
274
- ### 10.1 iOS Native Tests (XCTest) ✅ IMPLEMENTED
275
-
276
- | Test File | Tests | Status |
277
- |-----------|-------|--------|
278
- | `SecurityManagerTests.swift` | 6 | ✅ Complete |
279
- | `LiveUpdateTests.swift` | 10 | ✅ Complete |
280
- | `AppUpdateTests.swift` | 5 | ✅ Complete |
281
- | `AppReviewTests.swift` | 5 | ✅ Complete |
282
- | `BackgroundUpdateTests.swift` | 6 | ✅ Complete |
283
- | **Total** | **32 tests** | ✅ |
284
-
285
- **Location:** `/ios/Tests/NativeUpdateTests/`
286
-
287
- ### 10.2 Android Native Tests (JUnit/Kotlin) ✅ IMPLEMENTED
288
-
289
- | Test File | Tests | Status |
290
- |-----------|-------|--------|
291
- | `SecurityManagerTest.kt` | 10 | ✅ Complete |
292
- | `LiveUpdatePluginTest.kt` | 10 | ✅ Complete |
293
- | `AppUpdatePluginTest.kt` | 5 | ✅ Complete |
294
- | `AppReviewPluginTest.kt` | 5 | ✅ Complete |
295
- | `BackgroundUpdateWorkerTest.kt` | 5 | ✅ Complete |
296
- | `BackgroundNotificationManagerTest.kt` | 5 | ✅ Complete |
297
- | **Total** | **40 tests** | ✅ |
298
-
299
- **Location:** `/android/src/test/java/com/aoneahsan/nativeupdate/`
300
-
301
- ### 10.3 Test Summary
302
-
303
- | Category | Files | Tests | Status |
304
- |----------|-------|-------|--------|
305
- | iOS Native Tests | 5 | 32 | ✅ Complete |
306
- | Android Native Tests | 6 | 40 | ✅ Complete |
307
- | **Total** | **11** | **72** | ✅ |
308
-
309
- ---
310
-
311
- ## 11. Known Items & Notes
312
-
313
- ### 11.1 Backend Template TODOs (Intentional)
314
-
315
- The TODOs in `/cli/commands/backend-create.js` are **intentional** - they are inside template strings that get written to user-generated backend files. These are documented customization points.
316
-
317
- **Documentation:** `/docs/guides/BACKEND_TEMPLATES_GUIDE.md`
318
-
319
- ### 11.2 Delta Processor WASM (By Design)
320
-
321
- The delta processor (`/src/live-update/delta-processor.ts`) has a WASM placeholder with proper fallback to JavaScript implementation. This is by design for future optimization.
322
-
323
- ### 11.3 Native Tests ✅ IMPLEMENTED
324
-
325
- Native platform tests are fully implemented:
326
- - **iOS XCTest:** 5 test files with 32 tests in `/ios/Tests/NativeUpdateTests/`
327
- - **Android JUnit/Kotlin:** 6 test files with 40 tests in `/android/src/test/`
328
-
329
- See `/docs/TESTING_REQUIREMENTS.md` for detailed test documentation.
330
-
331
- ---
332
-
333
- ## 12. Deployment Readiness Checklist
334
-
335
- - [x] All source files pass lint (0 warnings)
336
- - [x] All builds pass (0 errors)
337
- - [x] Firebase rules defined for all collections
338
- - [x] Firebase indexes match all Firestore queries
339
- - [x] All Vite configs use logLevel: 'info'
340
- - [x] All web assets are SVG format
341
- - [x] Documentation complete and up-to-date
342
- - [x] Example apps functional and build successfully
343
- - [x] CLI tools operational (8 commands)
344
- - [x] No hardcoded secrets in codebase
345
- - [x] Environment variables documented
346
- - [x] CLAUDE.md updated with testing policy
347
- - [x] Unique dev server ports configured
348
-
349
- ---
350
-
351
- ## 13. Future Enhancements (Optional)
352
-
353
- Documented in `/docs/ROADMAP.md` as optional future phases:
354
-
355
- ### ~~Phase 1: Advanced Testing~~ ✅ COMPLETE
356
- - ✅ iOS XCTest implementation - 5 files, 32 tests
357
- - ✅ Android JUnit tests - 6 files, 40 tests
358
- - ✅ E2E test suite with Detox - 4 specs, 19 tests
359
-
360
- ### Phase 2: Enterprise Features
361
- - Delta updates WASM optimization
362
- - Multi-tenant SaaS platform
363
- - Enterprise SSO integration
364
- - Advanced rollout strategies
365
-
366
- ### Phase 3: Community Features
367
- - Video tutorials
368
- - Additional framework examples (Vue, Angular)
369
- - CI/CD integration templates
370
-
371
- ---
372
-
373
- ## 14. Verification Commands
374
-
375
- ```bash
376
- # Main plugin
377
- cd /home/ahsan/Documents/01-code/01-packages/native-update
378
- yarn lint # Should show 0 warnings
379
- yarn build # Should show 0 errors
380
-
381
- # Website
382
- cd website
383
- yarn lint # Should show 0 warnings
384
- yarn build # Should show 0 errors
385
-
386
- # React-Capacitor Example
387
- cd example-apps/react-capacitor
388
- yarn build # Should show 0 errors
389
-
390
- # CLI
391
- node cli/index.js --help # Should show all 8 commands
392
-
393
- # Firebase indexes deployment
394
- firebase deploy --only firestore:indexes
395
- ```
396
-
397
- ---
398
-
399
- ## 15. Contact & Support
400
-
401
- **Developer:** Ahsan Mahmood
402
- **Email:** aoneahsan@gmail.com
403
- **Website:** https://nativeupdate.aoneahsan.com
404
- **NPM:** https://www.npmjs.com/package/native-update
405
- **GitHub:** https://github.com/aoneahsan
406
-
407
- ---
408
-
409
- **Document maintained by:** Development Team
410
- **Review frequency:** Before each release
411
- **Last comprehensive review:** 2026-01-16