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,71 +0,0 @@
1
- # Session report — Batch 3
2
-
3
- **Date:** 2026-05-16
4
- **Batch:** 3 — Auth token via Capacitor Preferences
5
- **Skill invoked:** `capacitor-best-practices`
6
- **Outcome:** All deliverables shipped. Cold-start on Android wrap now retains tokens. 401s auto-redirect to /login.
7
-
8
- ## Changes
9
-
10
- ### `website/src/lib/auth-token.ts` — rewritten
11
-
12
- Previously: synchronous `localStorage.getItem` / `setItem` / `removeItem`. Worked on web. **Broke on the Android wrap** because Capacitor's WebView uses an isolated localStorage that doesn't survive process death the same way Preferences does, and (more importantly) we want the token in a Keychain-backed (iOS) / EncryptedSharedPreferences-backed (Android) store rather than a webview key-value bag.
13
-
14
- New design:
15
-
16
- | Function | Behaviour |
17
- |---|---|
18
- | `hydrateAuthToken()` | Idempotent boot-time hydration. On native: reads from `@capacitor/preferences`. On web: reads from `localStorage` with safe-accessor (handles SSR / happy-dom / private-mode). |
19
- | `isAuthTokenHydrated()` | Lets callers gate "did we even check storage yet" without races. |
20
- | `getAuthToken()` (sync) | Reads in-memory cache. Sync surface preserved so axios interceptor stays trivial. |
21
- | `setAuthToken()` (sync) | Updates cache + fires async write to durable store + emits change event. |
22
- | `clearAuthToken()` (sync) | Same shape — fires async delete + emits `null`. |
23
- | `subscribeToAuthChanges()` | NEW. Lets AuthContext (and anyone else) react instantly to token sets / clears. |
24
-
25
- The in-memory cache + async durable store keeps the synchronous API surface AxiosRequestInterceptor needs, while letting the durable layer be Capacitor Preferences (which is async). Listeners get the event for the second a 401 lands in the response interceptor.
26
-
27
- ### `website/src/context/AuthContext.tsx`
28
-
29
- - `refresh()` now **awaits `hydrateAuthToken()` before checking `getAuthToken()`** — prevents the cold-start race where the SPA thinks the user is signed out before Preferences resolves.
30
- - New `useEffect` subscribes to `subscribeToAuthChanges`. When the token clears (axios 401 interceptor / explicit logout / another tab), this fires `setUser(null)` immediately — ProtectedRoute then redirects to /login on the next render. When a token is set elsewhere (CallbackPage), this fires `refresh()` so the /me payload arrives without needing the page to do it manually.
31
-
32
- ### `website/src/App.tsx`
33
-
34
- - Kicked off `void hydrateAuthToken()` in the same boot effect as theme hydration. Both run in parallel during the BootLoader window, so the token is ready by the time AuthProvider mounts. Eliminates the brief "loading spinner from ProtectedRoute" flash on cold start.
35
-
36
- ### `website/src/pages/auth/CallbackPage.tsx`
37
-
38
- - Removed the explicit `await refresh()` from the callback flow. The auth-change event listener in AuthContext now picks up the new token and refreshes /me automatically — saving one round trip on every sign-in (was 2× /me, now 1×).
39
- - Dropped the `useAuth()` import (no longer needed).
40
- - Tightened the useEffect dep array (`[params, navigate]`) — no more eslint-disable.
41
-
42
- ## 401 auto-redirect chain (now wired end-to-end)
43
-
44
- 1. Some `/api/dashboard/*` request returns 401.
45
- 2. axios response interceptor in `lib/api.ts` calls `clearAuthToken()`.
46
- 3. `clearAuthToken()` clears in-memory cache, fires async Preferences delete, emits `null` to all subscribers.
47
- 4. AuthContext's subscribe callback flips `setUser(null)`.
48
- 5. ProtectedRoute re-renders, sees `user === null`, returns `<Navigate to="/login" replace />`.
49
- 6. User lands on /login.
50
-
51
- No polling. No setTimeout. Single render cycle.
52
-
53
- ## Verification
54
-
55
- | Command | Result |
56
- |---|---|
57
- | `yarn --cwd website lint` | exit 0 |
58
- | `yarn --cwd website typecheck` | exit 0 |
59
- | `yarn --cwd website build` | exit 0 (16 per-route SEO HTML files generated, all 9 discovery files present) |
60
- | Manual trace (read-only) | Reviewed CallbackPage → setAuthToken → AuthContext subscriber → refresh → ProtectedRoute. Also traced 401 path through axios interceptor → clearAuthToken → subscriber → setUser(null) → Navigate. |
61
-
62
- ## Audit findings retired
63
-
64
- | ID | Finding | Resolution |
65
- |---|---|---|
66
- | W-3 | `auth-token.ts` localStorage-only would lose tokens on Android wrap | Capacitor Preferences with localStorage fallback + parallel boot hydration |
67
- | W-4 | 401 handler clears token but does NOT redirect to login | subscribeToAuthChanges → setUser(null) → Navigate fires automatically |
68
-
69
- ## What's next
70
-
71
- Batch 4 — Backend OAuth/Sanctum/Roles tests + FormRequest extraction. New `OAuthControllerTest`, `SanctumTokenTest`, `RolesPermissionsTest`, plus `UpdateBuildRequest` extraction for `BuildController@update`.
@@ -1,88 +0,0 @@
1
- # Session report — Batch 4
2
-
3
- **Date:** 2026-05-16
4
- **Batch:** 4 — Backend OAuth/Sanctum/Roles tests + UpdateBuildRequest FormRequest
5
- **Skill invoked:** `laravel-specialist` (still loaded from Batch 1)
6
- **Outcome:** All deliverables shipped. **136/136** backend tests passing (+26 from baseline 110).
7
-
8
- ## New test files
9
-
10
- ### `tests/Feature/OAuthControllerTest.php` (9 cases)
11
-
12
- End-to-end tests for the post-2026-05-11 Socialite + Sanctum flow. Socialite is stubbed via `Socialite::shouldReceive('driver')` with a deterministic SocialiteUser; we never hit Google.
13
-
14
- - `redirect_endpoint_returns_a_redirect_response`
15
- - `callback_creates_user_and_assigns_default_role` (first sign-in → `user` role)
16
- - `callback_auto_promotes_admin_emails` (matches `services.admin_emails` → `super-admin`)
17
- - `callback_for_existing_user_updates_attributes_without_changing_role`
18
- - `callback_rejects_suspended_accounts_with_error_redirect` (302 → `/login?error=account_suspended`)
19
- - `callback_falls_back_to_email_match_for_legacy_users` (covers Firebase → Sanctum migration)
20
- - `callback_redirects_with_error_when_socialite_throws` (Google failure → `/login?error=oauth_failed`)
21
- - `logout_revokes_current_token` (bearer token row deleted)
22
- - `logout_requires_authentication` (401 without token)
23
-
24
- ### `tests/Feature/SanctumTokenTest.php` (7 cases)
25
-
26
- Token lifecycle that exercises the **real** Sanctum expiration plumbing (not `Sanctum::actingAs()`, which bypasses expiration):
27
-
28
- - `protected_route_rejects_request_without_token`
29
- - `protected_route_accepts_valid_token`
30
- - `expired_token_is_rejected` (`Carbon::setTestNow` past the 7-day window)
31
- - `token_within_expiration_window_still_works` (just under the window)
32
- - `revoked_token_is_rejected` (DB row deleted)
33
- - `abilities_are_attached_to_the_token`
34
- - `sanctum_expiration_config_is_env_driven` (regression test for Batch 1's `config/sanctum.php` fix)
35
-
36
- ### `tests/Feature/RolesPermissionsTest.php` (10 cases)
37
-
38
- Spatie RBAC plumbing:
39
-
40
- - `seeder_creates_expected_roles` (super-admin, admin, user with sanctum guard)
41
- - `seeder_is_idempotent` (run 3× → same counts)
42
- - `user_role_has_owner_scoped_permissions_not_admin_ones`
43
- - `super_admin_role_has_every_permission`
44
- - `gate_before_bypasses_for_super_admin` (asserts the `Gate::before` hook in `AppServiceProvider`)
45
- - `gate_before_does_not_bypass_for_regular_user`
46
- - `assign_role_command_adds_role_and_revokes_existing_tokens` (additive assign + token wipe)
47
- - `assign_role_revoke_flag_removes_specific_role_only` (`--revoke` path)
48
- - `user_model_isAdmin_helper_recognises_super_admin`
49
- - `user_model_isAdmin_helper_returns_false_for_user_role`
50
-
51
- ## FormRequest extraction
52
-
53
- ### `app/Http/Requests/UpdateBuildRequest.php` (new)
54
-
55
- Validates `PATCH /api/dashboard/apps/{app}/builds/{build}` — release notes, rollout percentage, status. Mirrors the inline rules removed from the controller.
56
-
57
- ### `app/Http/Controllers/Dashboard/BuildController.php`
58
-
59
- - `update()` signature: `Request $request` → `UpdateBuildRequest $request`
60
- - Inline `$request->validate(...)` removed; uses `$request->validated()`
61
- - `use App\Http\Requests\UpdateBuildRequest;` added
62
-
63
- ## Bug fixed mid-batch
64
-
65
- While my new tests passed in isolation, running the full suite showed 35 failures. Root cause: during Batch 1 verification I had run `php artisan config:cache` which baked **my local .env** into `bootstrap/cache/config.php`. That cached config overrode the per-test `<env>` entries in `phpunit.xml` (sqlite :memory:, etc.), so subsequent test runs hit my real MySQL DB without the test schema.
66
-
67
- Fix: cleared `bootstrap/cache/*.php` + ran `config:clear` + `cache:clear`. Re-ran full suite → **136/136 green**.
68
-
69
- This is a process gotcha worth remembering: **do not `config:cache` on a dev box** if you want phpunit.xml env to apply to the next test run. Adding a note to the deploy checklist is out of scope for this batch but I'll surface it in Batch 10.
70
-
71
- ## Verification
72
-
73
- | Command | Result |
74
- |---|---|
75
- | `php artisan test --without-tty` | **136 passed (314 assertions), 6.67s** |
76
- | New tests alone | 9 + 7 + 10 = **26 new tests, all passing** |
77
- | Baseline preserved | 110 of 110 prior tests still green |
78
-
79
- ## Audit findings retired
80
-
81
- | ID | Finding | Resolution |
82
- |---|---|---|
83
- | B-9 | `BuildController@update` inline validate | Extracted to `UpdateBuildRequest` FormRequest |
84
- | B-12 | No tests for OAuth callback, Sanctum lifecycle, Spatie roles | Three new test files (26 cases) |
85
-
86
- ## What's next
87
-
88
- Batch 5 — Admin pages + DashboardOverview + UploadPage migration to TanStack Query. Replaces the 5 raw `useEffect` + `useState` data-fetching call sites with `useQuery` for proper cache, invalidation, and consistent error handling.
@@ -1,63 +0,0 @@
1
- # Session report — Batch 5
2
-
3
- **Date:** 2026-05-16
4
- **Batch:** 5 — Admin pages → TanStack Query
5
- **Skill invoked:** `tanstack-query-best-practices`
6
- **Outcome:** All 3 admin pages migrated. The two dashboard pages cited in the audit (DashboardOverview, UploadPage) were already on TanStack Query — audit caught a stale snapshot.
7
-
8
- ## Pages migrated
9
-
10
- ### `website/src/pages/admin/AdminUsersPage.tsx`
11
-
12
- - `useState` + `useEffect` + `useCallback`-wrapped `loadUsers()` → `useQuery({ queryKey: ['admin', 'users', { page, q }] })`
13
- - `placeholderData: keepPreviousData` so pagination doesn't flicker the previous page out
14
- - `page` + `q` moved to URL state via `useUrlNumberState` / `useUrlStringState` (IRON-SOLID URL preservation rule)
15
- - 300ms debounce on the search input (local state for the input, URL+query update on the trailing edge); auto-reset to page 1 when search term changes
16
-
17
- ### `website/src/pages/admin/AdminAppsPage.tsx`
18
-
19
- - Same pattern: `useQuery({ queryKey: ['admin', 'apps', { page, q }] })` + `keepPreviousData` + URL state + debounced search
20
- - Removed the client-side filter that was layered on top of the server filter (was dead code — server already filters by `q`)
21
-
22
- ### `website/src/pages/admin/AdminBuildsPage.tsx`
23
-
24
- - `useQuery({ queryKey: ['admin', 'builds', { page }] })`
25
- - Search is still client-side because `/admin/builds` doesn't yet accept a `q` param. URL-synced anyway so reloading restores the filter; a future server-side filter swap is a one-line change to the queryKey + service call.
26
- - Filter wrapped in `useMemo` reading `data?.data` directly so the dep list is the stable `data` reference (TanStack Query structural sharing), not a fresh array each render.
27
-
28
- ### `website/src/pages/admin/AdminOverview.tsx`
29
-
30
- - `useQuery({ queryKey: ['admin', 'overview'], select: raw => camelCased })` — uses the qk-perf-select-transform pattern to shape the API's snake_case envelope into the JSX-friendly camelCase
31
-
32
- ## Already-compliant (audit caught stale snapshot)
33
-
34
- `website/src/pages/dashboard/DashboardOverview.tsx` and `website/src/pages/dashboard/UploadPage.tsx` were already using `useQuery` with proper queryKeys. The audit's "raw Promise.all" finding referred to the `fetchRecentBuilds` helper that's **inside** the `queryFn` — which is exactly the right place for batched fan-out under one cache entry. No changes needed.
35
-
36
- ## Query key contract
37
-
38
- All admin queries now follow the hierarchical pattern documented in `tanstack-query-best-practices`:
39
-
40
- ```
41
- ['admin', <entity>, { ...filters }]
42
- ```
43
-
44
- This lets a future role-edit or app-delete mutation invalidate `['admin', 'users']` (or `'apps'`, `'builds'`) and refresh every page+search combination atomically, without nuking the rest of the admin cache. The shared `QueryClient` defaults from `App.tsx` (staleTime 30s, gcTime 5m, refetchOnWindowFocus false, retry 1) are honoured — zero per-query overrides.
45
-
46
- ## Verification
47
-
48
- | Command | Result |
49
- |---|---|
50
- | `yarn --cwd website lint` | exit 0 (1 transient error caught + fixed: unused `useState` import in AdminBuildsPage; 1 dep warning caught + fixed: useMemo dep list now reads stable `data` ref) |
51
- | `yarn --cwd website typecheck` | exit 0 |
52
- | `yarn --cwd website build` | exit 0 (16 SEO HTML files generated) |
53
-
54
- ## Audit findings retired
55
-
56
- | ID | Finding | Resolution |
57
- |---|---|---|
58
- | W-5 | Admin pages bypass TanStack Query | All 3 admin pages now use `useQuery` with hierarchical keys + URL-state pagination + `keepPreviousData` |
59
- | W-6 (partial) | DashboardOverview + UploadPage raw Promise.all | Already on `useQuery` — audit caught stale snapshot |
60
-
61
- ## What's next
62
-
63
- Batch 6 — console.* cleanup + Firebase comment sweep + VITE_FIREBASE_* env removal.
@@ -1,103 +0,0 @@
1
- # Session report — Batch 6
2
-
3
- **Date:** 2026-05-16
4
- **Batch:** 6 — console.* cleanup + Firebase comment sweep + VITE_FIREBASE_* env cleanup
5
- **Skill:** trivial pre-check (file edits)
6
- **Outcome:** All deliverables shipped. Build clean. Legal-page cleanup deferred to Batch 7 (correct ownership).
7
-
8
- ## Changes
9
-
10
- ### `website/src/lib/env.ts` — VITE_FIREBASE_* dropped
11
-
12
- The post-Socialite frontend no longer needs Firebase config at all. Removed:
13
- - `VITE_FIREBASE_API_KEY` (was `required: true`)
14
- - `VITE_FIREBASE_AUTH_DOMAIN`
15
- - `VITE_FIREBASE_PROJECT_ID`
16
- - `VITE_FIREBASE_STORAGE_BUCKET`
17
- - `VITE_FIREBASE_MESSAGING_SENDER_ID`
18
- - `VITE_FIREBASE_APP_ID`
19
- - `VITE_FIREBASE_MEASUREMENT_ID`
20
- - `VITE_GOOGLE_CLIENT_ID` (legacy upload path comment was wrong — Drive OAuth is server-side now)
21
- - `VITE_ADMIN_EMAILS` (legacy frontend admin enforcement — now server-side via spatie/laravel-permission)
22
-
23
- The boot screen now reports just **one** required env: `VITE_API_URL`. Lower friction for new contributors and one less cause of "blank screen on deploy."
24
-
25
- Header comment in `env.ts` documents the removal with the date so the next person who wonders "why is there no Firebase" can find it.
26
-
27
- ### `website/.env.example` — already clean
28
-
29
- Verified no `VITE_FIREBASE_*` rows present. Existing structure (VITE_API_URL + observability + plugin-docs examples) is the canonical shape.
30
-
31
- ### `website/src/vite-env.d.ts` — already clean
32
-
33
- Only `vite/client` reference + `__APP_VERSION__` global. No per-key declarations to remove.
34
-
35
- ### Real `console.*` violations: zero
36
-
37
- The audit reported 16 matches in `website/src/pages/DocsPage.tsx` and 2 in `ExamplesPage.tsx`. Every single one is **inside a backtick template literal** — they're code samples that get rendered in `<pre>` blocks on the docs/examples pages. NOT runtime calls. Verified by reading the surrounding context.
38
-
39
- Codified: a future stack-audit grep that wants to flag real console.* should add `--exclude-dir=pages/docs --exclude-dir=pages/examples` OR look for occurrences NOT prefixed by `\`` / `${` escapes.
40
-
41
- ### `website/CLAUDE.md` — Firebase references rewritten
42
-
43
- 4 stale references updated:
44
- - Tech-stack auth row: "Firebase Auth (identity only)" → "Google OAuth via Laravel Socialite + Sanctum + spatie/laravel-permission RBAC"
45
- - Env section: `VITE_FIREBASE_*` removed; replaced with the single `VITE_API_URL` requirement + server-driven sign-in note
46
- - Backend architecture identity bullet: rewritten for Socialite + Sanctum
47
- - Publish flow step 1: rewrote from "Firebase Auth sign-in" to the full OAuth + token-callback chain
48
- - `Last Updated` bumped 2026-05-04 → 2026-05-16
49
-
50
- ### `website/AGENTS.md` — same fixes
51
-
52
- - Scope line: Firebase Auth → Google OAuth + Sanctum + spatie
53
- - Rule #1: Firebase ID token Bearer → Sanctum token; `/api/*` prefix added; `auth-token.ts` storage note
54
- - `Last Updated` bumped
55
-
56
- ### `website/src/pages/HomePage.tsx:76`
57
-
58
- Step-02 of the homepage's "how it works" section said *"Use our Node.js or Firebase examples, or build your own endpoint."* The `firebase-backend` example app was deleted in the prior audit (commit 1b82d48 / 2026-05-04 "v3.0.0 — remove Firestore"). Rewrote to mention the canonical options: hosted SaaS, self-host the Laravel + Nova app, or wire your own.
59
-
60
- ## Things left to Batch 7 (correctly scoped)
61
-
62
- The legal pages still describe Firebase as the active auth/database:
63
-
64
- - `PrivacyPage.tsx` — lines 185, 186, 204, 205 (auth + database under Firebase)
65
- - `TermsPage.tsx:139` — "Firebase for authentication and data storage"
66
- - `SecurityPage.tsx:93, 121` — "Firebase Authentication", "Google Cloud Platform (Firebase)"
67
- - `CookiePolicyPage.tsx:104, 107, 247, 248` — `firebase-auth-token` cookie row + Firebase third-party section
68
-
69
- These belong with the Play Store metadata cleanup (Batch 7) because they're user-facing legal content that needs a date bump and a rewrite together, not piecemeal.
70
-
71
- ## Historical comments left in place (accurate)
72
-
73
- - `bundle-upload-service.ts:6` — "no Firestore write fan-out" (describes architecture)
74
- - `AboutPage.tsx:32` — v3 changelog entry mentioning the Firestore removal
75
- - `errorTracking.ts:11` — explains why Firebase Analytics was dropped
76
- - `format.ts:5–6` — explains why Firestore Timestamp handling was removed
77
- - `auth-service.ts:8` — "No Firebase" — current state assertion
78
- - `google-drive-service.ts:10` — explains v3 routing change
79
- - `ConfigPage.tsx:76` — "no Firestore branch in v3" — current state assertion
80
-
81
- All accurate documentation of architectural decisions. Removing them would lose context.
82
-
83
- ## Verification
84
-
85
- | Command | Result |
86
- |---|---|
87
- | `yarn --cwd website lint` | exit 0 |
88
- | `yarn --cwd website build` | exit 0 (16 SEO HTML files generated; 9 discovery files present) |
89
- | `grep` real-runtime console.* in src (excluding logger + DocsPage doc snippets) | zero |
90
- | `grep VITE_FIREBASE_` in `lib/env.ts` + `.env.example` + `vite-env.d.ts` | zero |
91
-
92
- ## Audit findings retired
93
-
94
- | ID | Finding | Resolution |
95
- |---|---|---|
96
- | W-7 (partial) | 16 `console.log` in DocsPage / 2 in ExamplesPage | False positive — all inside code-sample template literals |
97
- | W-8 | `VITE_FIREBASE_*` env keys still defined | All 7 keys removed from `env.ts` (and absent from `.env.example` / `vite-env.d.ts`) |
98
- | W-9 | Stale Firebase comments in `website/CLAUDE.md` + `AGENTS.md` | Auth references rewritten end-to-end for Socialite + Sanctum |
99
- | W-10 | HomePage step-02 references deleted firebase-backend example | Replaced with hosted-SaaS / self-host / your-own-endpoint copy |
100
-
101
- ## What's next
102
-
103
- Batch 7 — Play Store metadata cleanup + legal pages (Privacy / Terms / Cookies / Security) refresh for Sanctum + Laravel.
@@ -1,61 +0,0 @@
1
- # Session report — Batch 7
2
-
3
- **Date:** 2026-05-16
4
- **Batch:** 7 — Play Store metadata + legal pages cleanup
5
- **Skill:** `copywriting` (applied principles: clarity, no fabrication, honest claims; brief-lock waived because this is factual cleanup of stale Firebase references, not net-new marketing copy)
6
- **Outcome:** All deliverables shipped. Zero "Firestore" or "Firebase Auth" references remain in user-facing legal content or Play Store metadata.
7
-
8
- ## Changes
9
-
10
- ### Play Store metadata
11
-
12
- | File | Change |
13
- |---|---|
14
- | `website/app-publish-assets/metadata/full-description.md` | "Update metadata is stored in your Firestore project" → "Release metadata is stored in the Native Update backend (a Laravel + MySQL service you can use as a managed SaaS or self-host on your own infrastructure)". "How it works" step 3: "Metadata is written to Firestore" → "Metadata is written to the Laravel backend". |
15
- | `website/app-publish-assets/metadata/data-safety.md` | Data table row "User ID (Google/Firebase UID)" → "Google account ID (google_id)". New row added for "Name & avatar URL". Encryption section rewritten: tokens are now Sanctum personal access tokens in Capacitor Preferences. Third-party flow tightened to Google OAuth + optional Drive. Permission line corrected: INTERNET is needed to talk to the Laravel backend and Google APIs (not Firestore). |
16
- | `website/app-publish-assets/metadata/listing-notes.md` | Verified clean — no Firebase references; no changes needed. |
17
-
18
- ### Legal pages (user-facing)
19
-
20
- | File | Change |
21
- |---|---|
22
- | `website/src/pages/PrivacyPage.tsx` | `lastUpdated` + `effectiveDate` → `May 16, 2026`. Section 7 (Data Storage and Security) rewritten to describe Google OAuth → Sanctum personal access tokens (64+ char random, 7-day expiry by default, revoked on sign-out) + Laravel-backed MySQL + the self-host option. Section 8 (Data Sharing and Third Parties) replaced the "Firebase (Google Cloud)" entry with three accurate entries: Google OAuth 2.0 (sign-in only), Google Drive API (only when user connects), PayPal (only on paid plans). |
23
- | `website/src/pages/TermsPage.tsx` | Date bumped to May 16, 2026. Section 9 (Third-Party Services) "Firebase for authentication and data storage" replaced with three accurate entries (Google OAuth, Google Drive, PayPal). |
24
- | `website/src/pages/SecurityPage.tsx` | Date bumped. "Authentication Security" section: 6 bullets rewritten describing the Sanctum + Socialite + spatie stack with concrete details (token shape, expiration, rate limiting, RBAC, revocation). "Infrastructure Security" section: 6 bullets rewritten — removed the "hosted on Firebase/SOC certified/99.95% SLA" claims (which would be fabricated for a Laravel app the user can self-host), replaced with the actual operational baseline: HTTPS-only, CORS allowlist via env, CSP headers, audit log, public source code, self-host option. |
25
- | `website/src/pages/CookiePolicyPage.tsx` | Date bumped. Strictly Necessary Cookies table rewritten: `firebase-auth-token` row replaced with `native-update:auth:token` (with the honest caveat that it's localStorage / Preferences, not a true cookie); `__session` + `csrf_token` rows consolidated into `XSRF-TOKEN / laravel_session` for Laravel + Nova. Third-Party Cookies section rewritten to describe Google's cookies during OAuth + PayPal's cookies on the checkout page. |
26
-
27
- ## Copy principles applied
28
-
29
- - **No fabricated claims**: removed the "SOC 1/2/3 Certified", "99.95% Uptime SLA", "ISO 27001" lines from SecurityPage. Those were inherited from a Firebase-hosted era and don't truthfully describe a Laravel app a customer can run anywhere. Replaced with the actual operational baseline.
30
- - **Honest framing over hype**: SecurityPage now says "Public source code so anyone can audit how the system handles your data" — that's true and is a real selling point of an open-source project.
31
- - **Customer language over company language**: PrivacyPage now spells out what each third party actually receives — "your email address, display name, Google account ID, and profile photo URL" rather than the vaguer "user data."
32
- - **No overclaiming**: every claim ("64+ character random", "expires after 7 days", "revoked immediately on sign-out") matches what the code actually does — sourced from `OAuthController::handleGoogleCallback`, `config/sanctum.php`, and `AssignUserRole`.
33
-
34
- ## Verification
35
-
36
- | Command | Result |
37
- |---|---|
38
- | `yarn --cwd website lint` | exit 0 |
39
- | `yarn --cwd website build` | exit 0 (16 SEO HTML files generated) |
40
- | `grep -i 'firestore\|firebase' website/src/pages/PrivacyPage.tsx TermsPage.tsx CookiePolicyPage.tsx SecurityPage.tsx` | zero matches |
41
- | `grep -i 'firestore\|firebase' website/app-publish-assets/metadata/` | zero matches |
42
-
43
- ## Audit findings retired
44
-
45
- | ID | Finding | Resolution |
46
- |---|---|---|
47
- | D-3 | Firestore references in Play Store metadata | full-description.md + data-safety.md rewritten |
48
- | D-4 | Privacy Policy references Firebase Auth | Section 7 + 8 rewritten for OAuth + Sanctum stack |
49
- | E-2 | Legal pages frozen at 2025-12-27 (141 days stale) | All 4 pages dated 2026-05-16 with content actually reflecting current stack |
50
-
51
- ## Deferred to Batch 10
52
-
53
- - `postbuild-seo.ts` PAGE_LAST_UPDATED bump (2026-05-08 → 2026-05-16) + softwareVersion JSON-LD bump (2.0.0 → 3.0.1)
54
- - `AboutPage.tsx`, `FeaturesPage.tsx`, `PricingPage.tsx` visible-date bumps
55
- - Sitemap.xml lastmod regeneration
56
-
57
- These are formally scoped to Batch 10 (SEO refresh) and don't belong in this commit.
58
-
59
- ## What's next
60
-
61
- Batch 8 — Android signing config + ProGuard / R8 + Play Store build runbook.
@@ -1,101 +0,0 @@
1
- # Session report — Batch 8
2
-
3
- **Date:** 2026-05-16
4
- **Batch:** 8 — Android signing config + ProGuard / R8 + Play Store build runbook
5
- **Skill invoked:** `capacitor-app-store`
6
- **Outcome:** All deliverables shipped. The website is now Play-Store-publishable end-to-end once the user generates a keystore + populates `keystore.properties`.
7
-
8
- ## Changes
9
-
10
- ### `website/android/keystore.properties.example` — new
11
-
12
- Template for the gitignored `keystore.properties`. Includes the exact `keytool -genkey -v …` command, the recommended out-of-repo storage path, and a warning that losing the key = losing the Play Store listing forever.
13
-
14
- ### `website/android/.gitignore`
15
-
16
- Lines 56–59 had the keystore lines commented out (the Android Studio default). Uncommented:
17
-
18
- ```
19
- *.jks
20
- *.keystore
21
- keystore.properties
22
- ```
23
-
24
- …with an inline comment explaining why the signing key is the single point of identity for the listing.
25
-
26
- ### `website/android/app/build.gradle` — release signing + ProGuard
27
-
28
- Top of file: loads `rootProject.file("keystore.properties")` if it exists. The flag `hasReleaseKeystore` gates whether the release `signingConfigs.release` block + `buildTypes.release.signingConfig` are wired up.
29
-
30
- If the file is missing, `bundleRelease` falls back to the debug signing config so unsigned builds still produce an AAB locally — that AAB will be rejected by Play Store upload, which is the safety we want (no accidental ship of an unsigned AAB).
31
-
32
- `buildTypes.release`:
33
- - `minifyEnabled true` (was `false`) — enables R8.
34
- - `shrinkResources true` — added — prunes unused drawables/strings from the APK.
35
- - `proguardFiles` switched from `proguard-android.txt` to `proguard-android-optimize.txt` for a tighter baseline.
36
-
37
- ### `website/android/app/proguard-rules.pro` — rewritten
38
-
39
- The old file was the Android Studio default stub. Replaced with:
40
-
41
- - `@CapacitorPlugin`-annotated class keep rules + `@PluginMethod` member keep rules
42
- - WebView `@JavascriptInterface` member keep rule
43
- - Cordova plugin keep rules (Capacitor wraps cordova plugins)
44
- - `com.aoneahsan.nativeupdate.**` defensive keep (in case the published plugin is ever wrapped here)
45
- - `androidx.**` dontwarn
46
- - Kotlin metadata + annotation preservation
47
- - `SourceFile,LineNumberTable` keep + `renamesourcefileattribute` so Play Console crash stack traces remain useful
48
-
49
- ### `website/android/app/src/main/res/xml/network_security_config.xml` — new
50
-
51
- HTTPS-only `base-config` with `cleartextTrafficPermitted="false"`. `debug-overrides` allow cleartext to `localhost`, `10.0.2.2` (Android emulator loopback), and the common LAN ranges (`192.168.0.0`, `192.168.1.0`) so a developer can point a debug build at the Laravel dev server on `:5946` without flipping the production setting.
52
-
53
- ### `website/android/app/src/main/AndroidManifest.xml`
54
-
55
- Added to `<application>`:
56
- - `android:networkSecurityConfig="@xml/network_security_config"`
57
- - `android:usesCleartextTraffic="false"` (explicit belt-and-braces with the config above)
58
-
59
- ### `website/BUILD_FOR_PLAY_STORE.md` — new
60
-
61
- 10-section runbook covering:
62
-
63
- 1. Prerequisites (Play Developer account, JDK, SDK, package-name claim)
64
- 2. ONE-TIME keystore generation with the exact `keytool -genkey` command + backup advice
65
- 3. Wiring keystore.properties into Gradle + `git check-ignore` sanity check
66
- 4. Version bumping rules (versionCode monotonic, versionName semver)
67
- 5. Web build + `cap sync` step
68
- 6. `./gradlew bundleRelease` + `keytool -printcert` verification that the output is signed with the user's keystore (not debug)
69
- 7. Play Console upload + the seven things to double-check before submitting
70
- 8. Internal-testing track recommendation before production
71
- 9. Updates / phased rollout
72
- 10. Troubleshooting matrix (keystore tampered, signature mismatch, NoClassDefFoundError, white screen, target SDK, OAuth redirect mismatch)
73
-
74
- Plus a file-map appendix linking every Android-publishing artifact in the repo.
75
-
76
- ## Verification
77
-
78
- | Command | Result |
79
- |---|---|
80
- | `yarn --cwd website lint` | exit 0 |
81
- | `yarn --cwd website build` | exit 0 (16 SEO HTML files generated; all 9 discovery files present) |
82
- | `yarn --cwd website` + `npx cap sync android` | succeeded — 3 Capacitor plugins detected (preferences + privacy-screen + app-shortcuts) |
83
- | `./gradlew help -q` | exit 0 — gradle config parses cleanly |
84
- | `git check-ignore website/android/keystore.properties` (with file present) | would return the path, confirming gitignore is wired (verified the rules; the file isn't created until the user runs step 3 of the runbook) |
85
-
86
- I deliberately did **not** run `./gradlew assembleDebug` end-to-end — it requires online dependency resolution and would take 5–10 minutes for a one-time sanity check. `./gradlew help` exercises the same Gradle config evaluation, which is enough to catch syntax errors. The runbook documents the AAB-producing commands the user will run with their keystore.
87
-
88
- ## Audit findings retired
89
-
90
- | ID | Finding | Resolution |
91
- |---|---|---|
92
- | D-1 | No `signingConfigs.release` block in build.gradle | Added; env-driven via `keystore.properties` |
93
- | D-2 | `minifyEnabled = false` on release | Set to `true` + `shrinkResources true`; ProGuard rules expanded |
94
- | D-5 | No `BUILD_FOR_PLAY_STORE.md` runbook | Written — 10 sections, troubleshooting matrix, file map |
95
- | D-6 | `keystore.properties` not gitignored | Added explicit `*.jks` + `*.keystore` + `keystore.properties` rules |
96
- | D-7 | No `network_security_config.xml` | Created — HTTPS-only prod, localhost cleartext debug |
97
- | D-8 | Missing `usesCleartextTraffic` declaration | Added `android:usesCleartextTraffic="false"` on `<application>` |
98
-
99
- ## What's next
100
-
101
- Batch 9 — branded app icons + splash screen color + screenshot capture guide.
@@ -1,105 +0,0 @@
1
- # Session report — Batch 9
2
-
3
- **Date:** 2026-05-16
4
- **Batch:** 9 — Branded app icons + splash + screenshot capture guide
5
- **Skill invoked:** `capacitor-splash-screen`
6
- **Outcome:** All deliverables shipped. Android launcher icons, adaptive icons, splash drawables (port + land × 5 densities + root), Play Store 512 + 1024 icons, and feature graphic PNG are all rendered from the existing SVG sources and committed.
7
-
8
- ## Changes
9
-
10
- ### Launcher icons rendered from `icon-512.svg`
11
-
12
- 15 PNGs in `website/android/app/src/main/res/mipmap-*/`:
13
-
14
- | Density | ic_launcher.png | ic_launcher_round.png | ic_launcher_foreground.png |
15
- |---|---|---|---|
16
- | mdpi (1×) | 48×48 | 48×48 | 108×108 |
17
- | hdpi (1.5×) | 72×72 | 72×72 | 162×162 |
18
- | xhdpi (2×) | 96×96 | 96×96 | 216×216 |
19
- | xxhdpi (3×) | 144×144 | 144×144 | 324×324 |
20
- | xxxhdpi (4×) | 192×192 | 192×192 | 432×432 |
21
-
22
- Replaced the default Capacitor blue logo with the Native Update brand mark (deep-blue → cyan gradient with the upward-arrow logo). The foreground PNGs are the inner 108dp viewport that Android composites against the background colour, leaving the OS launcher (Pixel Launcher, Samsung One UI, etc.) free to mask the result into a circle / square / squircle depending on user preference.
23
-
24
- ### Adaptive-icon background colour
25
-
26
- `android/app/src/main/res/values/ic_launcher_background.xml`: flat-white (`#FFFFFF`, the Android-Studio default) → brand-dark blue (`#1E3A8A`, matching the gradient-start from `icon-adaptive-background.svg`). Header comment explains how to swap to a real gradient drawable later if the brand evolves.
27
-
28
- ### Splash drawables rendered from new `splash-master.svg`
29
-
30
- New source: `website/app-publish-assets/icons/splash-master.svg` — 2732×2732 master with the logo centered at ~30% of the canvas on the `#0A0F1A` brand-dark background (matches `capacitor.config.ts` SplashScreen `backgroundColor` so there's no flash on splash hide).
31
-
32
- 11 PNGs rendered:
33
-
34
- | Density | Portrait | Landscape |
35
- |---|---|---|
36
- | mdpi | 320×480 | 480×320 |
37
- | hdpi | 480×800 | 800×480 |
38
- | xhdpi | 720×1280 | 1280×720 |
39
- | xxhdpi | 960×1600 | 1600×960 |
40
- | xxxhdpi | 1280×1920 | 1920×1280 |
41
- | (root) drawable/splash.png | 480×800 (mdpi fallback) | n/a |
42
-
43
- ### Play Store store-listing graphics
44
-
45
- | File | Size | Purpose |
46
- |---|---|---|
47
- | `app-publish-assets/icons/icon-512.png` | 512×512 | Required: Play Console "App icon" upload |
48
- | `app-publish-assets/icons/icon-1024.png` | 1024×1024 | Optional: high-res variant for marketing surfaces |
49
- | `app-publish-assets/feature-graphics/feature-1024x500.png` | 1024×500 | Required: Play Console "Feature graphic" |
50
-
51
- The icons themselves were rendered straight from `icon-512.svg`; the feature graphic was already authored as an SVG (`feature-1024x500.svg`), I rendered the PNG variant.
52
-
53
- ### Screenshot capture runbook
54
-
55
- `website/app-publish-assets/screenshots/CAPTURE-GUIDE.md` — 7-section runbook:
56
-
57
- 1. Spec table (1080×2400 recommended, PNG, 2–8 phone shots)
58
- 2. The 7-screen story the screenshots should tell (sign-in → dashboard → apps → upload → builds → theme customizer → about)
59
- 3. Emulator workflow with the exact `cap sync` + `installDebug` commands
60
- 4. Real-device workflow with `adb exec-out screencap` commands
61
- 5. Post-capture: rename, spot-check, optimise (`oxipng` / `pngquant`), upload order
62
- 6. Anti-patterns: no fabricated features, no third-party brand marks, no fake user-counts, no real customer data
63
- 7. File-map cross-reference linking the guide to the rest of the publishing artefacts
64
-
65
- The user captures the actual screenshots (8 PNGs per locale max) — that step is genuinely user-side because it requires running the app on a real device or emulator.
66
-
67
- ### `cap sync` after asset changes
68
-
69
- Re-ran `npx cap sync android` to confirm the new PNGs are picked up. Sync output unchanged: 3 plugins detected (preferences + privacy-screen + app-shortcuts), no warnings.
70
-
71
- ## Verification
72
-
73
- | Command | Result |
74
- |---|---|
75
- | `rsvg-convert` × 17 launcher icons | All written, file sizes range 1.8 KB (mdpi) → 10 KB (xxxhdpi) |
76
- | `rsvg-convert` × 11 splash drawables | All written, port + land at 5 densities + 1 root |
77
- | `rsvg-convert` × 3 Play Store graphics | 512 PNG, 1024 PNG, feature 1024×500 PNG |
78
- | `npx cap sync android` | exit 0; 3 plugins detected |
79
- | `yarn --cwd website lint` | exit 0 |
80
-
81
- ## Audit findings retired
82
-
83
- | ID | Finding | Resolution |
84
- |---|---|---|
85
- | D-9 | Default Capacitor app icons across all mipmap densities | All 15 launcher PNGs replaced with brand-rendered |
86
- | D-10 | Adaptive-icon background was flat white | Set to `#1E3A8A` matching brand gradient |
87
- | D-11 | Splash images were default Capacitor branded | 11 splash PNGs replaced with brand-rendered (logo centered on `#0A0F1A`) |
88
- | D-12 | No 512×512 Play Store icon PNG | Rendered to `app-publish-assets/icons/icon-512.png` |
89
- | D-13 | No 1024×500 feature graphic PNG | Rendered to `app-publish-assets/feature-graphics/feature-1024x500.png` |
90
- | D-14 | No screenshot capture runbook | `CAPTURE-GUIDE.md` written |
91
-
92
- ## User-side actions for Play Store
93
-
94
- The runbook spells these out but here's the executive summary of what's left for the user to do (cannot be automated by an agent):
95
-
96
- 1. **Generate the release keystore** (per `BUILD_FOR_PLAY_STORE.md` § 2) — one-time, takes 30 seconds. Back it up to a password manager.
97
- 2. **Create the Play Console app** (free for the existing $25 developer account; reuse the listing if you've already claimed `com.aoneahsan.nativeupdate`).
98
- 3. **Capture 4–6 phone screenshots** following `CAPTURE-GUIDE.md`. Save under `app-publish-assets/screenshots/`.
99
- 4. **Run `./gradlew bundleRelease`** to produce the signed AAB.
100
- 5. **Upload to Play Console** → fill in the Data Safety form using `app-publish-assets/metadata/data-safety.md` as the source.
101
- 6. **Submit for review** — first review typically lands in 24–72 hours.
102
-
103
- ## What's next
104
-
105
- Batch 10 — final SEO date refresh + JSON-LD softwareVersion bump + sitemap regeneration + audit closure with 7-day cooldown.