native-update 3.1.2 → 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 (202) 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/dist/esm/definitions.d.ts +8 -0
  6. package/dist/esm/plugin.js +16 -2
  7. package/dist/plugin.cjs.js +1 -1
  8. package/dist/plugin.esm.js +1 -1
  9. package/dist/plugin.js +2 -2
  10. package/docs/CHANGELOG.md +73 -0
  11. package/docs/KNOWN_LIMITATIONS.md +2 -2
  12. package/docs/MIGRATION.md +1 -1
  13. package/ios/Plugin/LiveUpdate/LiveUpdatePlugin.swift +64 -8
  14. package/ios/Plugin/NativeUpdatePlugin.swift +39 -13
  15. package/package.json +8 -3
  16. package/docs/AGENTS.md +0 -47
  17. package/docs/APP_REVIEW_GUIDE.md +0 -768
  18. package/docs/BUNDLE_SIGNING.md +0 -277
  19. package/docs/CLAUDE.md +0 -110
  20. package/docs/COMPREHENSIVE_AUDIT_REPORT.md +0 -526
  21. package/docs/DEPLOY_NOTES.md +0 -116
  22. package/docs/EXAMPLE_APPS_SIMPLIFICATION_PLAN.md +0 -384
  23. package/docs/EXAMPLE_APPS_SIMPLIFICATION_TRACKER.md +0 -390
  24. package/docs/LIVE_UPDATES_GUIDE.md +0 -675
  25. package/docs/MANUAL-TASKS.md +0 -30
  26. package/docs/MARKETING_WEBSITE_TRACKER.md +0 -677
  27. package/docs/NATIVE_UPDATES_GUIDE.md +0 -695
  28. package/docs/PACKAGES.md +0 -167
  29. package/docs/PERFORMANCE.md +0 -110
  30. package/docs/PROJECT_COMPLETION_TRACKER.md +0 -411
  31. package/docs/QUICK_START.md +0 -595
  32. package/docs/README.md +0 -130
  33. package/docs/REMAINING_FEATURES.md +0 -192
  34. package/docs/ROADMAP.md +0 -295
  35. package/docs/SECURITY-IF-REPO-PUBLIC.md +0 -232
  36. package/docs/SECURITY.md +0 -356
  37. package/docs/TESTING_REQUIREMENTS.md +0 -201
  38. package/docs/ai-knowledge-base/00-project-profile.md +0 -38
  39. package/docs/ai-knowledge-base/01-features.md +0 -46
  40. package/docs/ai-knowledge-base/02-routes.md +0 -72
  41. package/docs/ai-knowledge-base/03-tech-stack.md +0 -57
  42. package/docs/ai-knowledge-base/README.md +0 -23
  43. package/docs/analytics-tracking.md +0 -37
  44. package/docs/api/API.md +0 -558
  45. package/docs/api/FEATURES.md +0 -414
  46. package/docs/api/app-review-api.md +0 -239
  47. package/docs/api/app-update-api.md +0 -154
  48. package/docs/api/background-update-api.md +0 -170
  49. package/docs/api/events-api.md +0 -323
  50. package/docs/api/live-update-api.md +0 -258
  51. package/docs/archive/MARKETING_WEBSITE_PLAN.md +0 -659
  52. package/docs/background-updates.md +0 -392
  53. package/docs/capacitor-official-plugins.md +0 -46
  54. package/docs/capawesome-plugins.md +0 -29
  55. package/docs/cli-reference.md +0 -321
  56. package/docs/deployment/HOSTINGER_DEPLOY.md +0 -370
  57. package/docs/deployment/PRODUCTION-DEPLOY-CHECKLIST.md +0 -184
  58. package/docs/docs-site/plan.md +0 -201
  59. package/docs/docs-site/scope.md +0 -127
  60. package/docs/docs-site/tracker.json +0 -235
  61. package/docs/error-handling-tracking.md +0 -37
  62. package/docs/examples/advanced-scenarios.md +0 -394
  63. package/docs/examples/android-manifest-example.xml +0 -77
  64. package/docs/examples/basic-usage.md +0 -206
  65. package/docs/examples/node-express-backend-example.md +0 -28
  66. package/docs/examples/react-capacitor-example.md +0 -29
  67. package/docs/features/app-reviews.md +0 -975
  68. package/docs/features/app-updates.md +0 -785
  69. package/docs/features/e2e-full-verification/00-overview.md +0 -99
  70. package/docs/features/e2e-full-verification/00-tracker.json +0 -284
  71. package/docs/features/e2e-full-verification/phase01-backend-schema-fixes.md +0 -183
  72. package/docs/features/e2e-full-verification/phase02-test-auth.md +0 -176
  73. package/docs/features/e2e-full-verification/phase03-api-test-coverage.md +0 -63
  74. package/docs/features/e2e-full-verification/phase04-frontend-package-contract-audit.md +0 -73
  75. package/docs/features/e2e-full-verification/phase05-browser-e2e-matrix.md +0 -69
  76. package/docs/features/e2e-full-verification/phase06-deploy-prod-smoke.md +0 -51
  77. package/docs/features/e2e-full-verification/results/phase01-drift-report.md +0 -50
  78. package/docs/features/e2e-full-verification/results/phase03-coverage-matrix.md +0 -215
  79. package/docs/features/e2e-full-verification/results/phase04-frontend-contract.md +0 -139
  80. package/docs/features/e2e-full-verification/results/phase05-e2e-results.md +0 -99
  81. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-01-dashboard.png +0 -0
  82. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-02-signup.png +0 -0
  83. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-03-settings-persisted.png +0 -0
  84. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04a-app-created.png +0 -0
  85. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-04b-duplicate-bundle-422.png +0 -0
  86. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-05-plan-limit-403.png +0 -0
  87. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08a-upload-graceful-fail.png +0 -0
  88. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-08b-builds-list.png +0 -0
  89. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-10-rollout-25pct.png +0 -0
  90. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-11-analytics.png +0 -0
  91. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-12-drive-disconnected.png +0 -0
  92. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-13-pricing.png +0 -0
  93. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-14-isolation-403.png +0 -0
  94. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15a-admin-overview.png +0 -0
  95. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-15b-regular-user-admin-redirect.png +0 -0
  96. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-16a-delete-dialog.png +0 -0
  97. package/docs/features/e2e-full-verification/results/phase05-evidence/e2e-17-mobile-375.png +0 -0
  98. package/docs/features/e2e-full-verification/results/route-list.json +0 -1
  99. package/docs/features/laravel-nova-backend/ASSESSMENT-SUMMARY.md +0 -96
  100. package/docs/features/laravel-nova-backend/IMPLEMENTATION-PLAN.md +0 -504
  101. package/docs/features/laravel-nova-backend/progress-tracker.json +0 -184
  102. package/docs/features/live-updates.md +0 -642
  103. package/docs/features/queues-and-emails/00-overview.md +0 -41
  104. package/docs/features/queues-and-emails/00-tracker.json +0 -99
  105. package/docs/features/queues-and-emails/phase01-foundation.md +0 -15
  106. package/docs/features/queues-and-emails/phase02-queued-jobs.md +0 -19
  107. package/docs/features/queues-and-emails/phase03-transactional-emails.md +0 -16
  108. package/docs/features/queues-and-emails/phase04-quota-ops.md +0 -17
  109. package/docs/features/queues-and-emails/phase05-async-build-processing-DECISION.md +0 -16
  110. package/docs/features/queues-and-emails/phase06-verify-deploy.md +0 -17
  111. package/docs/getting-started/configuration.md +0 -469
  112. package/docs/getting-started/installation.md +0 -300
  113. package/docs/getting-started/quick-start.md +0 -430
  114. package/docs/guides/BACKEND_TEMPLATES_GUIDE.md +0 -183
  115. package/docs/guides/admin-panel.md +0 -268
  116. package/docs/guides/channel-management.md +0 -343
  117. package/docs/guides/dashboard-guide.md +0 -365
  118. package/docs/guides/deployment-guide.md +0 -335
  119. package/docs/guides/end-to-end-workflow.md +0 -491
  120. package/docs/guides/key-management.md +0 -284
  121. package/docs/guides/migration-from-codepush.md +0 -145
  122. package/docs/guides/security-best-practices.md +0 -1057
  123. package/docs/guides/testing-guide.md +0 -346
  124. package/docs/guides/troubleshooting.md +0 -482
  125. package/docs/package-audit.md +0 -41
  126. package/docs/plans/PLANNING_COMPLETE_SUMMARY.md +0 -361
  127. package/docs/plans/TASK_1_ANDROID_EXAMPLE_APP.md +0 -401
  128. package/docs/plans/TASK_2_API_ENDPOINTS.md +0 -856
  129. package/docs/plans/TASK_2_DASHBOARD_UI_UX.md +0 -820
  130. package/docs/plans/TASK_2_DATABASE_SCHEMA.md +0 -704
  131. package/docs/plans/TASK_2_GOOGLE_DRIVE_INTEGRATION.md +0 -646
  132. package/docs/plans/TASK_2_SAAS_ARCHITECTURE.md +0 -587
  133. package/docs/plans/TASK_2_USER_AUTHENTICATION.md +0 -600
  134. package/docs/play-store/ASO-METADATA.md +0 -5
  135. package/docs/play-store/DATA-SAFETY.md +0 -5
  136. package/docs/play-store/DECLARATIONS.md +0 -5
  137. package/docs/play-store/README.md +0 -27
  138. package/docs/play-store/RELEASE-NOTES.md +0 -99
  139. package/docs/play-store/RELEASE-STEPS.md +0 -6
  140. package/docs/play-store/STORE-LISTING.md +0 -7
  141. package/docs/play-store/SUBMISSION-CHECKLIST.md +0 -5
  142. package/docs/production-readiness.md +0 -475
  143. package/docs/project-audit/2026-05-16/00-FINALIZATION-PLAN.md +0 -123
  144. package/docs/project-audit/2026-05-16/01-BATCH-PLAN.md +0 -227
  145. package/docs/project-audit/2026-05-16/02-AUDIT-FINDINGS.md +0 -144
  146. package/docs/project-audit/2026-05-16/sessions/batch-01.md +0 -42
  147. package/docs/project-audit/2026-05-16/sessions/batch-02.md +0 -74
  148. package/docs/project-audit/2026-05-16/sessions/batch-03.md +0 -71
  149. package/docs/project-audit/2026-05-16/sessions/batch-04.md +0 -88
  150. package/docs/project-audit/2026-05-16/sessions/batch-05.md +0 -63
  151. package/docs/project-audit/2026-05-16/sessions/batch-06.md +0 -103
  152. package/docs/project-audit/2026-05-16/sessions/batch-07.md +0 -61
  153. package/docs/project-audit/2026-05-16/sessions/batch-08.md +0 -101
  154. package/docs/project-audit/2026-05-16/sessions/batch-09.md +0 -105
  155. package/docs/project-audit/2026-05-16/sessions/batch-10.md +0 -102
  156. package/docs/project-audit/AUDIT-HISTORY.md +0 -74
  157. package/docs/project-audit/BATCH-PLAN.md +0 -168
  158. package/docs/project-audit/MARKETING-WEBSITE-FINDINGS-2026-05-11.md +0 -73
  159. package/docs/project-audit/PRODUCTION-READINESS-AUDIT-2026-05-08.md +0 -275
  160. package/docs/project-finalization/00-tracker.json +0 -60
  161. package/docs/project-knowledge-base/01-system-overview.md +0 -227
  162. package/docs/project-knowledge-base/02-routes-pages-forms-users.md +0 -352
  163. package/docs/project-knowledge-base/03-tech-stack-modules-services.md +0 -379
  164. package/docs/project-knowledge-base/04-data-models-integrations.md +0 -244
  165. package/docs/project-knowledge-base/05-docs-corpus-inventory.md +0 -256
  166. package/docs/project-knowledge-base/06-operations-testing-legal-content.md +0 -208
  167. package/docs/project-knowledge-base/README.md +0 -103
  168. package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-05-19.md +0 -81
  169. package/docs/reports/AUDIT_SUMMARY_2025-12-26.md +0 -203
  170. package/docs/reports/CLAUDE-CODE-COMPLETION-PROMPT.md +0 -403
  171. package/docs/reports/CLAUDE_CODE_PROMPT.md +0 -29
  172. package/docs/reports/CODEBASE_STATUS_REPORT.md +0 -272
  173. package/docs/reports/COMPLETE_VERIFICATION.md +0 -106
  174. package/docs/reports/COMPREHENSIVE-PROJECT-AUDIT-2026-02-24.md +0 -747
  175. package/docs/reports/EVENT_FLOW_VERIFICATION.md +0 -80
  176. package/docs/reports/EXAMPLE_APPS_SIMPLIFICATION_COMPLETE.md +0 -369
  177. package/docs/reports/FINAL_STATUS.md +0 -122
  178. package/docs/reports/FINAL_VERIFICATION_CHECKLIST.md +0 -425
  179. package/docs/reports/MARKETING_WEBSITE_COMPLETE.md +0 -466
  180. package/docs/reports/PACKAGE_COMPLETENESS_REPORT.md +0 -130
  181. package/docs/reports/PRODUCTION_STATUS.md +0 -115
  182. package/docs/reports/PROJECT_RESTRUCTURE_2025-12-27.md +0 -287
  183. package/docs/reports/PROJECT_RESTRUCTURE_FINAL_SUMMARY.md +0 -464
  184. package/docs/reports/PUBLISHING_VERIFICATION.md +0 -144
  185. package/docs/reports/RELEASE_READY_SUMMARY.md +0 -99
  186. package/docs/reports/claude-completion.json +0 -241
  187. package/docs/rules-tracker.md +0 -102
  188. package/docs/security/PRE-LAUNCH-PENTEST-CHECKLIST.md +0 -116
  189. package/docs/security/certificate-pinning.md +0 -122
  190. package/docs/seo-aeo-rules.json +0 -3043
  191. package/docs/social-media-marketing/README.md +0 -81
  192. package/docs/social-media-marketing/posts-batch-01.md +0 -613
  193. package/docs/social-media-marketing/posts-batch-02.md +0 -528
  194. package/docs/social-media-marketing/whatsapp-messages-batch-01.md +0 -458
  195. package/docs/social-media-marketing/whatsapp-status-batch-01.md +0 -355
  196. package/docs/tracking/IMPLEMENTATION_TRACKER.md +0 -303
  197. package/docs/tracking/capacitor-rollout-note-2026-03-01.md +0 -21
  198. package/docs/tracking/completion-tracker-2026-02-24.json +0 -174
  199. package/docs/tracking/finalization-2026-05-16-tracker.json +0 -346
  200. package/docs/tracking/full-audit-tracker.json +0 -121
  201. package/docs/tracking/production-readiness-audit-tracker.json +0 -429
  202. package/docs/tracking/seo-checklist-tracker.json +0 -333
@@ -1,235 +0,0 @@
1
- {
2
- "$schema": "docs-site-tracker-v1",
3
- "description": "Resumable tracker for the native-update Docusaurus documentation site project. Read first on every re-run of the docs-site prompt; honours the 7-day cooldown after full completion.",
4
- "project": "native-update",
5
- "docs_repo_path": "/home/ahsan/Documents/01-code/projects/native-update-docs/",
6
- "docs_repo_remote": "TBD — created in Batch 10 (will be a public GitHub repo)",
7
- "hosting": {
8
- "platform": "Firebase Hosting (dedicated project)",
9
- "firebase_project_id": "TBD — created in Batch 10",
10
- "live_url": "TBD"
11
- },
12
- "scope_doc": "docs/docs-site/scope.md",
13
- "plan_doc": "docs/docs-site/plan.md",
14
- "total_batches": 10,
15
- "current_batch": 10,
16
- "progress_pct": 100,
17
- "last_run": {
18
- "started_at": "2026-05-10",
19
- "status": "complete",
20
- "completed_at": "2026-05-11",
21
- "next_allowed_run_after": "2026-05-18",
22
- "cooldown_days": 7,
23
- "notes": "All 10 batches complete. Docs site is feature-complete with 58 pages plus deploy-ready discovery + SEO infrastructure. The Firebase Hosting deploy and the public GitHub repo creation are documented in native-update-docs/DEPLOY.md as user-actions — they require `firebase login` and `gh auth` against the user's accounts and cannot be automated from CI/agent context. Cooldown: 7-day soft gate before re-running this prompt. Override conditions: broken yarn build in sibling, published page 404/5xx, Lighthouse SEO drops below 95, production incident."
24
- },
25
- "batches": [
26
- {
27
- "id": 1,
28
- "title": "Foundation & first pages",
29
- "status": "completed",
30
- "started_at": "2026-05-10",
31
- "completed_at": "2026-05-10",
32
- "skills_invoked": ["documentation-writer", "ai-seo", "copywriting"],
33
- "deliverables": [
34
- "native-update: docs/docs-site/scope.md",
35
- "native-update: docs/docs-site/plan.md",
36
- "native-update: docs/docs-site/tracker.json (this file)",
37
- "native-update: root CLAUDE.md + AGENTS.md docs-site record",
38
- "native-update-docs: package.json, tsconfig.json, docusaurus.config.ts, sidebars.ts, .gitignore, .editorconfig",
39
- "native-update-docs: src/css/custom.css (brand palette + dark mode)",
40
- "native-update-docs: src/pages/index.tsx (homepage)",
41
- "native-update-docs: static/img/logo.svg, favicon.svg, social-card.svg",
42
- "native-update-docs: static/robots.txt (skeleton)",
43
- "native-update-docs: docs/intro.md, docs/getting-started/installation.md, docs/getting-started/quick-start.md",
44
- "native-update-docs: docs/about-the-author.md",
45
- "native-update-docs: README.md, CLAUDE.md, AGENTS.md",
46
- "native-update-docs: git init + first commit",
47
- "~/.dev-ports.json: register port 5960"
48
- ],
49
- "verification": "yarn build in sibling exits 0; folder structure matches sidebars.ts; homepage renders Ahsan author block",
50
- "commit_native_update": "TBD",
51
- "commit_docs_repo": "TBD"
52
- },
53
- {
54
- "id": 2,
55
- "title": "SDK Reference: Live Update (OTA)",
56
- "status": "completed",
57
- "started_at": "2026-05-10",
58
- "completed_at": "2026-05-10",
59
- "skills_invoked": ["documentation-writer", "ai-seo"],
60
- "deliverables": [
61
- "native-update-docs: docs/reference/sdk/live-update/overview.md (~1100 words, mental model, FAQ, mermaid state diagram)",
62
- "native-update-docs: docs/reference/sdk/live-update/methods.md (~2500 words, all 20 methods grouped: sync/check, download, apply/rollback, inspect, configure, maintenance; signatures verbatim from src/definitions.ts)",
63
- "native-update-docs: docs/reference/sdk/live-update/types.md (10 types: SyncOptions, SyncResult, DownloadOptions, DownloadUpdateOptions, BundleInfo, DeleteOptions, LatestVersion, CheckForUpdateResult, ValidateOptions, ValidationResult)",
64
- "native-update-docs: docs/reference/sdk/live-update/enums.md (UpdateStrategy, UpdateMode, ChecksumAlgorithm, SyncStatus, BundleStatus + Live-Update subset of UpdateErrorCode)",
65
- "native-update-docs: docs/reference/sdk/live-update/events.md (downloadProgress + updateStateChanged with cleanup pattern)",
66
- "native-update-docs: docs/reference/sdk/live-update/config.md (LiveUpdateConfig field-by-field + recommended prod/dev examples)",
67
- "native-update-docs: sidebars.ts — SDK Reference > Live Update (OTA) category active"
68
- ],
69
- "verification": "yarn build clean (no broken anchors after 2 explicit-id fixes); 6 pages reachable at /reference/sdk/live-update/*; explicit anchor IDs added for setChannel, setUpdateUrl, UpdateErrorCode to make slugs stable"
70
- },
71
- {
72
- "id": 3,
73
- "title": "SDK Reference: App Update + App Review",
74
- "status": "completed",
75
- "started_at": "2026-05-10",
76
- "completed_at": "2026-05-10",
77
- "skills_invoked": ["documentation-writer", "ai-seo"],
78
- "deliverables": [
79
- "native-update-docs: docs/reference/sdk/app-update/overview.md (mental model, when-to-use matrix, platform behaviour matrix Android/iOS/Web, Play priority 0-5 table, mermaid sequence diagram, 6-entry FAQ block)",
80
- "native-update-docs: docs/reference/sdk/app-update/methods.md (all 5 methods: getAppUpdateInfo, performImmediateUpdate, startFlexibleUpdate, completeFlexibleUpdate, openAppStore — with platform notes, throws, examples)",
81
- "native-update-docs: docs/reference/sdk/app-update/types.md (AppUpdateInfo with 10 fields + decision-matrix code; OpenAppStoreOptions)",
82
- "native-update-docs: docs/reference/sdk/app-update/events.md (7 events: appUpdateStateChanged + appUpdateProgress + appUpdateAvailable + appUpdateReady + appUpdateFailed + appUpdateNotificationClicked + appUpdateInstallClicked; embeds InstallStatus enum reference)",
83
- "native-update-docs: docs/reference/sdk/app-update/config.md (AppUpdateConfig field-by-field with prod recipe)",
84
- "native-update-docs: docs/reference/sdk/app-review/overview.md (Apple 3-per-365 rule explained, default throttling table, mental model, 6-entry FAQ block)",
85
- "native-update-docs: docs/reference/sdk/app-review/methods.md (canRequestReview + requestReview with the recommended call-site pattern; ReviewResult + CanRequestReviewResult inline)",
86
- "native-update-docs: docs/reference/sdk/app-review/config.md (AppReviewConfig field-by-field; prod + dev recipes; Apple-throttle warning admonition)",
87
- "native-update-docs: sidebars.ts — App Update + App Review categories activated under SDK Reference"
88
- ],
89
- "verification": "yarn build clean (one broken-link to Batch 4 background-update/overview was fixed by converting to italic placeholder); 8 new pages reachable at /reference/sdk/app-update/* and /reference/sdk/app-review/*"
90
- },
91
- {
92
- "id": 4,
93
- "title": "SDK Reference: Background Updates + Security + Core",
94
- "status": "completed",
95
- "started_at": "2026-05-11",
96
- "completed_at": "2026-05-11",
97
- "skills_invoked": ["documentation-writer", "ai-seo"],
98
- "deliverables": [
99
- "native-update-docs: docs/reference/sdk/background-update/overview.md (mental model, when-to-use matrix, platform behaviour matrix Android WorkManager / iOS BGTaskScheduler / Web, mermaid flowchart of OS-fired task gates, sample wiring, 6-entry FAQ explaining 'how often does this actually run')",
100
- "native-update-docs: docs/reference/sdk/background-update/methods.md (all 8 methods: enableBackgroundUpdates, disableBackgroundUpdates, getBackgroundUpdateStatus, scheduleBackgroundCheck, triggerBackgroundCheck, setNotificationPreferences, getNotificationPermissions, requestNotificationPermissions; embedded BackgroundUpdateStatus + BackgroundCheckResult + NotificationPermissionStatus type tables)",
101
- "native-update-docs: docs/reference/sdk/background-update/config.md (BackgroundUpdateConfig 12 fields + NotificationPreferences 10 fields + BackgroundUpdateType + NotificationPriority enums; production recipe; iOS Info.plist BGTaskSchedulerPermittedIdentifiers note)",
102
- "native-update-docs: docs/reference/sdk/background-update/events.md (backgroundUpdateProgress + backgroundUpdateNotification with payloads, lifecycle, action flow; 'apply update on tap' example)",
103
- "native-update-docs: docs/reference/sdk/security/overview.md (3-layer security model table, getSecurityInfo + SecurityInfo type, SecurityConfig field-by-field with deprecated secureStorage call-out, threat-model coverage table, 6-entry FAQ on key rotation + clock skew + at-rest encryption)",
104
- "native-update-docs: docs/reference/sdk/security/error-codes.md (full UpdateErrorCode catalogue grouped by domain: network, download, security, install, permission, app-update, app-review, config; mapping to typed Error classes for instanceof checks)",
105
- "native-update-docs: docs/reference/sdk/security/certificate-pinning.md (CertificatePinning + CertificatePin types, working OpenSSL recipe to extract SHA-256 SPKI pins, operational checklist with the two-pin rule, when-NOT-to-use guidance, 5-entry FAQ on Let's Encrypt + HPKP + captive portals)",
106
- "native-update-docs: docs/reference/sdk/core/lifecycle.md (initialize, isInitialized, configure, reset, cleanup with mermaid state diagram of allowed transitions; clarification of the dual-meaning reset())",
107
- "native-update-docs: docs/reference/sdk/core/config.md (PluginInitConfig — 24 fields grouped: server, live-update shorthand, download tuning, security, filesystem injection, native app-update/review, logging; ms-vs-seconds units gotcha highlighted; production recipe)",
108
- "native-update-docs: sidebars.ts — Background Update + Security + Core categories activated under SDK Reference (SDK Reference section now complete)",
109
- "native-update-docs: app-update/events.md — restored real link to background-update/overview (was Batch-3 italic placeholder)"
110
- ],
111
- "verification": "yarn build clean; 9 new pages render at /reference/sdk/background-update/* and /reference/sdk/security/* and /reference/sdk/core/*; total docs site now 27 pages; SDK Reference section feature-complete"
112
- },
113
- {
114
- "id": 5,
115
- "title": "CLI Reference",
116
- "status": "completed",
117
- "started_at": "2026-05-11",
118
- "completed_at": "2026-05-11",
119
- "skills_invoked": ["documentation-writer", "ai-seo"],
120
- "deliverables": [
121
- "native-update-docs: docs/reference/cli/overview.md (~1100 words — when-to-use matrix, install, quick-start workflow, exit codes, output conventions, default-artifact-locations table, what-the-CLI-does-NOT-do, FAQ)",
122
- "native-update-docs: docs/reference/cli/init.md (interactive 4-prompt walkthrough, --example + --backend flags, generated config shape, common errors, limitations)",
123
- "native-update-docs: docs/reference/cli/keys-generate.md (RSA 2048/4096 + EC P-256/P-384 matrix, output filenames + chmod 600, algorithm-choice guidance, rotation policy, install-public-key recipe)",
124
- "native-update-docs: docs/reference/cli/bundle-create.md (flags table, examples, what-the-bundle-contains, safety refused-bundle list (node_modules/.git/.env*), reproducibility note, success output sample)",
125
- "native-update-docs: docs/reference/cli/bundle-sign.md (RSA-SHA256, .sig sidecar JSON shape, signing in CI, common PEM errors, why backend must serve the sidecar)",
126
- "native-update-docs: docs/reference/cli/bundle-verify.md (sidecar lookup convention, valid vs invalid output, CI release-gate pattern, how-verification-works step-by-step, limitations)",
127
- "native-update-docs: docs/reference/cli/server-start.md (4 endpoints documented: /api/latest, /api/bundles, /bundles/<file>, /health; localhost-vs-LAN caveat; what-it-does-NOT-do block; stopping convention)",
128
- "native-update-docs: docs/reference/cli/monitor.md (dashboard preview, expected /api/stats response shape, 5s polling + 5-failure bailout, SIGINT/SIGTERM handling, headless-mode limitation)",
129
- "native-update-docs: docs/reference/cli/backend-create.md (express/firebase/vercel, SCAFFOLD_BANNER explained, TODO[SCAFFOLD-IMPLEMENT-BEFORE-DEPLOY] grep workflow, when-NOT-to-use guidance steering to example-apps/node-express + backend/)",
130
- "native-update-docs: sidebars.ts — CLI Reference category active under SDK Reference; removed commented-out Batch-5 placeholder block"
131
- ],
132
- "verification": "yarn build clean (no broken-link errors after build); 9 new pages reachable at /reference/cli/*; build output verified via ls of build/reference/cli/ — all 9 .html files present"
133
- },
134
- {
135
- "id": 6,
136
- "title": "Backend setup guides",
137
- "status": "completed",
138
- "started_at": "2026-05-11",
139
- "completed_at": "2026-05-11",
140
- "skills_invoked": ["documentation-writer", "technical-writing"],
141
- "deliverables": [
142
- "native-update-docs: docs/backend/overview.md (~1300 words — what-the-backend-does endpoint table, three options matrix (Hosted SaaS / Self-host Laravel / Roll your own), how-to-choose chooser table, what-stays-the-same regardless of backend invariants block, next-steps fork)",
143
- "native-update-docs: docs/backend/laravel-nova-self-host.md (~2400 words — what-you're-deploying overview, prerequisites (PHP 8.2+, MySQL/Postgres, Redis, supervisor), clone+install+build, env walk-through (APP_KEY / CORS / FIREBASE / NATIVE_UPDATE_FIREBASE_AUTO_CREATE / PAYPAL / ADMIN_EMAILS), schema notes (~14 tables — users/apps/builds/api_keys/signing_keys/analytics), four storage backends (FilesHub default, Drive, S3/R2, local), queue worker with sample systemd unit, optimize-cache sequence, Firebase token verification + clock-skew warning, Nova license auth.json, sample nginx vhost, smoke-test commands)",
144
- "native-update-docs: docs/backend/node-express-minimal.md (~1700 words — what-it-implements vs what-it-doesn't (skips analytics), running locally, contract mapping endpoint-by-endpoint with code snippets pulled from the actual repo, what production needs vs what the example has (signing URLs, checksums, signatures, rate limiting), framework-translation guidance for Hono/Fastify/etc., when-to-graduate-from-this-example triggers)",
145
- "native-update-docs: docs/backend/api-contract.md (~2100 words — full wire spec for 6 endpoints (health, /updates/check, /bundles/{id}/download, /analytics/mau, /analytics/download, /analytics/install), auth schemes table (API-key vs signed URL vs Firebase token), header tables, response shapes with field semantics, error envelope convention, field-naming-reminder block listing the 11 canonical fields that custom backends must NOT rename)",
146
- "native-update-docs: docs/backend/nova-admin-overview.md (~1700 words — group structure (Content vs Security), tour of 5 resources (User/App/Build/ApiKey/SigningKey) with fields + relationships + actions + when-to-come-here use-cases, 10 Nova Actions reference table, AuthServiceProvider + admin-bypass `before` hooks pattern documented, what-Nova-is-NOT-for boundary block)",
147
- "native-update-docs: sidebars.ts — Backend category activated; commented Batch-6 placeholder removed"
148
- ],
149
- "verification": "yarn build clean (no broken-link errors); 5 new pages reachable at /backend/*; ls of build/backend/ confirms api-contract.html + laravel-nova-self-host.html + node-express-minimal.html + nova-admin-overview.html + overview.html all generated"
150
- },
151
- {
152
- "id": 7,
153
- "title": "Platform guides (Android, iOS, Web)",
154
- "status": "completed",
155
- "started_at": "2026-05-11",
156
- "completed_at": "2026-05-11",
157
- "skills_invoked": ["documentation-writer", "technical-writing", "capacitor-best-practices"],
158
- "deliverables": [
159
- "native-update-docs: docs/platforms/android.md (~2100 words — Capacitor + gradle versions, 6 required permissions with sensitive vs non-sensitive breakdown and tools:node='remove' opt-out for non-background-update apps, manifest-additions <service> + <receiver> with explanation of tools:node='merge' and exported=false, WorkManager constraints (NetworkType.UNMETERED / setRequiresBatteryNotLow / setRequiresCharging) with Doze + App Standby caveats, Play Core 2.1.0 + Play Review 2.0.1 with internal-testing-track gotcha, network security config for cleartext localhost, ProGuard rules + likely failure modes, signing setup, Play Console rejection rules (merged-manifest sensitive permissions + foreground service notification requirement), edge-to-edge note, smoke-test commands with adb logcat filters)",
160
- "native-update-docs: docs/platforms/ios.md (~2400 words — deployment target iOS 14, SPM vs CocoaPods, BGTaskSchedulerPermittedIdentifiers with two identifiers, UIBackgroundModes for background-app-refresh + background-processing, NSAppTransportSecurity with localhost exception pattern, PrivacyInfo.xcprivacy template covering UserDefaults CA92.1 + FileTimestamp C617.1, SKStoreReviewController throttling (Apple 3/365 + plugin's launches/days/lastPrompt knobs), App Store Review Guideline 2.5.2 compliance with rejection-reason examples and how the OTA flow stays inside the JS-in-WKWebView carve-out, Keychain accessibility level explanation, TestFlight + Xcode debugging tips with BGTaskScheduler LLDB simulate command, what-the-plugin-does-NOT-do block (no APNs, no force-update on iOS, no Watch/tvOS), smoke-test commands)",
161
- "native-update-docs: docs/platforms/web.md (~1500 words — when web target activates, what-works method-by-method (configure/getSecurityInfo/current/list/delete/notifyAppReady/reload/setChannel/getLatest/openAppStore/requestReview), what's-stubbed throwing PLATFORM_NOT_SUPPORTED, service-worker update path with full register+message-passing code, three legitimate use cases (dev fallback, PWA deployment, E2E tests), three when-NOT-to-use callouts, configuration that affects web vs ignored fields, browser support matrix, smoke-test snippet)",
162
- "native-update-docs: sidebars.ts — Platforms category activated; commented Batch-7 placeholder removed"
163
- ],
164
- "verification": "yarn build clean (no broken-link errors); 3 new pages reachable at /platforms/*; ls of build/platforms/ confirms android.html + ios.html + web.html generated; total docs site now 44 pages."
165
- },
166
- {
167
- "id": 8,
168
- "title": "Tutorials & how-to guides",
169
- "status": "completed",
170
- "started_at": "2026-05-11",
171
- "completed_at": "2026-05-11",
172
- "skills_invoked": ["documentation-writer", "ai-seo", "copywriting"],
173
- "deliverables": [
174
- "native-update-docs: docs/tutorials/first-ota-update.md (~1900 words — 10-step happy-path walkthrough: install plugin → keys generate → scaffold config → wire SDK into boot code → sign up on SaaS + create app + paste API key + register public key → bundle → sign → upload → device install + verify → ship a real visible-change update; explicit what-you-did-not-do block calling out channels/rollouts/CI/key-rotation/rollback as separate how-tos)",
175
- "native-update-docs: docs/tutorials/backend-first-walkthrough.md (~1900 words — 13-step self-hosted Laravel + Nova walkthrough: clone+install → DB setup → .env walk-through → migrate → optimise+serve → Nova login with tinker-seed-admin-user pattern → first App + ApiKey + SigningKey → wire app to LAN → bundle/sign/upload → verify device trace through Laravel log; covers 10.0.2.2 vs localhost vs LAN-IP nuances)",
176
- "native-update-docs: docs/how-to/manage-channels.md (~1100 words — channel model with production/staging/beta/canary table, declare channels on App, tag bundles at build time with --channel, switch device at runtime via setChannel(), build channel UI for internal users, promote-between-channels via re-upload vs re-tag, common pitfalls including reset()-after-setChannel and case-sensitive matching)",
177
- "native-update-docs: docs/how-to/rotate-signing-keys.md (~1700 words — scheduled-rotation vs emergency-revoke split with how-the-installed-binary-pins-the-trusted-key explanation; 7-step multi-key transition with publicKey-as-array approach + 95%-app-store-adoption gate; 5-step emergency-revoke path with App Store / Play Store expedited-review note; three how-NOT-to-rotate anti-patterns)",
178
- "native-update-docs: docs/how-to/roll-back-bundle.md (~1300 words — 3-layer strategy: automatic crash-rollback via notifyAppReady() 60s window, cohort-wide rollback via Rollout%=0 or Is_Active=false or downgrade-as-latest, explicit per-device NativeUpdate.rollback() with code; what gets recorded in the Build counters; what rollback does NOT do — native code, offline devices, downstream data)",
179
- "native-update-docs: docs/how-to/migrate-from-codepush.md (~1700 words — App Center retirement context, concept-mapping table (deployment→channel, deployment-key→api-key, mandatoryInstallMode→bundle.mandatory etc.), 6-step migration with side-by-side phase, sync-option mapping table, common gotchas (mandatory updates work differently, no bundle diffs, signing now mandatory))",
180
- "native-update-docs: docs/how-to/ci-cd-github-actions.md (~1600 words — production GitHub Actions workflow: secrets setup, full .github/workflows/ota-release.yml with concurrency block + umask + verify-as-release-gate + cleanup-always + workflow_dispatch channel chooser; manual-approval pattern via GitHub Environments; cache wisdom + gotchas; what's-not-included block — tests, versioning, notifications, rollback automation)",
181
- "native-update-docs: docs/how-to/test-bundles-locally.md (~1500 words — three local-test loops in increasing fidelity: bundle-verify smoke test → native-update server start dev server → full LAN test with real backend; per-loop what-catches vs what-skips matrix; LAN setup with macOS+Linux IP discovery, Android cleartext config, iOS NSAllowsLocalNetworking; iteration-speed tips including version-badge component)",
182
- "native-update-docs: sidebars.ts — Tutorials + How-to guides categories activated; commented Batch-8 placeholder removed"
183
- ],
184
- "verification": "yarn build clean (no broken-link errors); 8 new pages reachable at /tutorials/* + /how-to/*; ls of build/tutorials/ + build/how-to/ confirms all 8 .html files generated; total docs site now 52 pages."
185
- },
186
- {
187
- "id": 9,
188
- "title": "Concepts & explanations",
189
- "status": "completed",
190
- "started_at": "2026-05-11",
191
- "completed_at": "2026-05-11",
192
- "skills_invoked": ["documentation-writer", "ai-seo"],
193
- "deliverables": [
194
- "native-update-docs: docs/concepts/how-ota-updates-work.md (~2200 words — five-moving-parts framing, 11-step lifecycle from package→sign→upload→sync→server-decision→download→checksum→signature-verify→stage→atomic-swap→verify-or-rollback, why-this-design-not-simpler covering integrity+atomicity+reversibility constraints, what-OTA-gives-you-over-web-deployment)",
195
- "native-update-docs: docs/concepts/bundle-integrity-and-signing.md (~1900 words — envelope-and-bag metaphor for two-layer model, what SHA-256 alone catches (bitflips, CDN swaps, server confusion), what SHA-256 does NOT (server-attested-checksum-attack), what signing adds, five-entity trust chain breakdown, what signing does NOT protect (private-key compromise, buggy bundles, replay, native code, leaked-but-unrevoked key, side channels), algorithm-choice rationale (RSA universal+deterministic+small-overhead))",
196
- "native-update-docs: docs/concepts/update-strategies-compared.md (~1900 words — four-strategy comparison table with one-line decision tree, immediate/on-app-start/on-app-resume/manual deep-dives with user-experience consequences and three-legitimate-use-cases per strategy, background-updates-orthogonal-to-strategies explanation, what's-not-in-the-model (no minimum-age-before-apply, no must-apply-by deadline))",
197
- "native-update-docs: docs/concepts/architecture.md (~2200 words — five-component overview (CLI, backend, object store, device SDK, dashboard), three mermaid diagrams (build-time flowchart, deploy-time sequence, runtime sequence), trust-boundaries diagram with four-zone breakdown (your-control / semi-exposed / device / hostile), how-the-pieces-version-together explaining SDK-via-app-store vs backend-via-redeploy intersection rule)",
198
- "native-update-docs: docs/concepts/security-model.md (~2000 words — three-class threat model (passive observer / active MITM / compromised infrastructure), three-layer defense (transport HTTPS+pinning / content checksum+signature / runtime crash-rollback), explicit what's-in-scope vs what's-out-of-scope (private key compromise, dashboard auth compromise, malicious-but-signed bundles, supply-chain via deps, jailbroken devices, side channels, DoS), six operational assumptions the model depends on, regulated-industries note on FIPS+SOC2+air-gapped)",
199
- "native-update-docs: docs/concepts/error-handling-philosophy.md (~1800 words — fail-closed-on-correctness vs fail-open-on-availability framing, list of what-fails-closed (signature, checksum, HTTPS-in-prod, plugin-not-initialised, required-fields) vs what-fails-open (analytics writes, background scheduling, notification rendering, optional callbacks), typed-error-codes-everywhere with switch-on-code example, host-app-must-keep-running rule with safeBootstrapOta pattern, calibration rationale for 60s notifyAppReady window + 30min signed-URL TTL)",
200
- "native-update-docs: sidebars.ts — Concepts category activated; commented Batch-9 placeholder removed"
201
- ],
202
- "verification": "yarn build clean (no broken-link errors); 6 new pages reachable at /concepts/*; ls of build/concepts/ confirms architecture.html + bundle-integrity-and-signing.html + error-handling-philosophy.html + how-ota-updates-work.html + security-model.html + update-strategies-compared.html generated; mermaid diagrams rendered (theme already enabled in docusaurus.config.ts); total docs site now 58 pages."
203
- },
204
- {
205
- "id": 10,
206
- "title": "SEO + Firebase deploy + GitHub publish",
207
- "status": "completed",
208
- "started_at": "2026-05-11",
209
- "completed_at": "2026-05-11",
210
- "skills_invoked": ["ai-seo", "firebase-hosting-basics"],
211
- "deliverables": [
212
- "native-update-docs: static/robots.txt — 30+ AI-bot allow list (Googlebot, Bingbot, DuckDuckBot, Applebot, YandexBot, Baiduspider, Slurp, GPTBot, ChatGPT-User, OAI-SearchBot, ClaudeBot, anthropic-ai, Claude-Web, PerplexityBot, Perplexity-User, Google-Extended, Applebot-Extended, YouBot, CCBot, Diffbot, cohere-ai/cohere-training-data-crawler, Meta-ExternalAgent, FacebookBot, Amazonbot, MistralAI-User) + 8-bot block list (Ahrefs/Semrush/MJ12/Dot/BLEX/Petal/serpstat/SiteAudit) + Sitemap directive",
213
- "native-update-docs: static/llms.txt (9.6 KB) — llmstxt.org-format structured index covering all 58 pages grouped by Diátaxis quadrant (Tutorials, How-to, SDK Reference subsections, CLI Reference, Backend, Platforms, Concepts), with absolute URLs ready for LLM consumption",
214
- "native-update-docs: static/llms-full.txt (15.4 KB) — single-document long-form summary covering project facts, four feature areas, 11-step OTA lifecycle, wire contract, CLI commands, three backend options, platform requirements per Android/iOS/Web, security model, update strategies, error handling philosophy, performance defaults, CodePush migration mapping, author contact",
215
- "native-update-docs: static/humans.txt — team/thanks/site credits per humanstxt.org convention",
216
- "native-update-docs: static/.well-known/security.txt (RFC 9116) — Contact / Expires (2027-05-11) / Preferred-Languages / Canonical / Policy fields plus inline responsible-disclosure policy",
217
- "native-update-docs: static/sitemap-index.json — machine-readable section index complementing sitemap.xml; lists 8 content hubs with page counts and Diátaxis-type tags; discovery file URLs for sitemap/robots/llms/humans/security",
218
- "native-update-docs: docusaurus.config.ts — headTags array with canonical link, RSS alternate, theme-color, application-name + 3 application/ld+json blocks (WebSite with publisher Person, SoftwareApplication with offers + softwareVersion 3.0.0 + license, Organization with sameAs network); themeConfig.metadata extended with description fallback, expanded keywords (15 terms), max-image-preview:large robots meta, twitter:site, og:locale, og:image:width/height, article:author",
219
- "native-update-docs: firebase.json — public=build, cleanUrls, SPA-style 404 rewrite, Cache-Control immutable for assets (jpg|png|svg|js|css|woff2 = 1 year), HTML 5min, robots/sitemap/llms.txt 1hr, security headers (X-Content-Type-Options nosniff, Referrer-Policy strict-origin-when-cross-origin, Permissions-Policy, Strict-Transport-Security HSTS 1yr+preload)",
220
- "native-update-docs: .firebaserc — default project 'native-update-docs'",
221
- "native-update-docs: package.json — added firebase:emulate / firebase:deploy / firebase:deploy:preview yarn scripts (use npx -y firebase-tools@latest per global CLAUDE.md Firebase rule); removed default docusaurus deploy script (Firebase replaces GitHub Pages)",
222
- "native-update-docs: DEPLOY.md — 6-section deploy runbook covering prerequisites, one-time GitHub publish via gh CLI, one-time Firebase project create + custom domain DNS, recurring deploy workflow with preview channels, post-deploy Google Search Console + Bing Webmaster Tools submission, healthcheck curl commands, freshness cycle, troubleshooting for 5 common failure modes"
223
- ],
224
- "verification": "yarn typecheck clean; yarn build clean — 6 discovery files materialised in build/ (robots.txt 2.6KB, llms.txt 9.7KB, llms-full.txt 15.4KB, humans.txt 0.9KB, sitemap.xml 10.6KB, sitemap-index.json 2.9KB) plus build/.well-known/security.txt; build/index.html contains 3 application/ld+json blocks (WebSite + SoftwareApplication + Organization) + canonical link + new robots/theme-color/twitter:site meta tags verified by grep. Firebase deploy + GitHub publish are user-actions documented in DEPLOY.md (require user-account auth)."
225
- }
226
- ],
227
- "resume_protocol": "On every re-run of the docs-site prompt: read this file FIRST. If last_run.status=='complete' AND today<next_allowed_run_after, skip and tell the user the date. If 'in_progress', find lowest-indexed batch with status!='completed' and resume there. After Batch 10, set status='complete', completed_at=today, next_allowed_run_after=today+7d.",
228
- "override_conditions": [
229
- "Explicit user bypass",
230
- "yarn build broken in sibling repo",
231
- "Published page returns 404 or 5xx",
232
- "Lighthouse SEO drops below 95",
233
- "Production incident affecting users"
234
- ]
235
- }
@@ -1,37 +0,0 @@
1
- # Error Handling Tracking (R-023)
2
-
3
- This registry lists every component, page, hook, or service that wires errors into the centralised `trackError` (`website/src/lib/errorTracking.ts`). Every new feature added MUST add itself here.
4
-
5
- **Service:** `website/src/lib/errorTracking.ts`
6
- **Destinations:** Firebase Analytics (always on if Firebase keys present) + Sentry / Microsoft Clarity / Amplitude (off until their env keys are set)
7
-
8
- **Last audited:** 2026-04-25
9
-
10
- | Path | Type | Wired? | Notes |
11
- |---|---|---|---|
12
- | `src/components/ErrorBoundary.tsx` | Component | Pending | Top-level error boundary should call `trackError` in `componentDidCatch` — incremental migration. |
13
- | `src/services/auth-service.ts` | Service | Pending | Wrap Firebase auth errors. |
14
- | `src/services/google-drive-service.ts` | Service | Pending | OAuth + Drive API errors. |
15
- | `src/services/bundle-upload-service.ts` | Service | Pending | Upload failures, integrity verification failures. |
16
- | `src/services/manifest-generator.ts` | Service | Pending | Manifest assembly errors. |
17
- | `src/lib/analytics.ts` | Service | N/A | Analytics; uses its own internal logger swallow. |
18
- | `src/lib/firebase.ts` | Service | N/A | Init-time only — failure here is rendered by the app shell. |
19
-
20
- ## How to wire a new module
21
-
22
- ```ts
23
- import { trackError } from '@/lib/errorTracking';
24
-
25
- try {
26
- await doRiskyThing();
27
- } catch (err) {
28
- trackError(err, { surface: 'upload', step: 'verify_checksum' });
29
- throw err; // rethrow so callers see the failure too
30
- }
31
- ```
32
-
33
- ## Env keys
34
-
35
- - `VITE_SENTRY_DSN` — when set + `@sentry/browser` installed, errors flow to Sentry
36
- - `VITE_CLARITY_PROJECT_ID` — when set + Clarity script loaded, last error pinned to session
37
- - `VITE_AMPLITUDE_API_KEY` — when set + Amplitude script loaded, errors emitted as `app_error` events