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