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.
- package/AI-INTEGRATION-GUIDE.md +15 -10
- package/Readme.md +35 -35
- package/android/src/main/java/com/aoneahsan/nativeupdate/LiveUpdatePlugin.kt +88 -12
- package/android/src/main/java/com/aoneahsan/nativeupdate/NativeUpdatePlugin.kt +45 -18
- package/dist/esm/definitions.d.ts +8 -0
- package/dist/esm/plugin.js +16 -2
- package/dist/plugin.cjs.js +1 -1
- package/dist/plugin.esm.js +1 -1
- package/dist/plugin.js +2 -2
- package/docs/CHANGELOG.md +73 -0
- package/docs/KNOWN_LIMITATIONS.md +2 -2
- package/docs/MIGRATION.md +1 -1
- package/ios/Plugin/LiveUpdate/LiveUpdatePlugin.swift +64 -8
- package/ios/Plugin/NativeUpdatePlugin.swift +39 -13
- package/package.json +8 -3
- package/docs/AGENTS.md +0 -47
- package/docs/APP_REVIEW_GUIDE.md +0 -768
- package/docs/BUNDLE_SIGNING.md +0 -277
- package/docs/CLAUDE.md +0 -110
- package/docs/COMPREHENSIVE_AUDIT_REPORT.md +0 -526
- package/docs/DEPLOY_NOTES.md +0 -116
- package/docs/EXAMPLE_APPS_SIMPLIFICATION_PLAN.md +0 -384
- package/docs/EXAMPLE_APPS_SIMPLIFICATION_TRACKER.md +0 -390
- package/docs/LIVE_UPDATES_GUIDE.md +0 -675
- package/docs/MANUAL-TASKS.md +0 -30
- package/docs/MARKETING_WEBSITE_TRACKER.md +0 -677
- package/docs/NATIVE_UPDATES_GUIDE.md +0 -695
- package/docs/PACKAGES.md +0 -167
- package/docs/PERFORMANCE.md +0 -110
- package/docs/PROJECT_COMPLETION_TRACKER.md +0 -411
- package/docs/QUICK_START.md +0 -595
- package/docs/README.md +0 -130
- package/docs/REMAINING_FEATURES.md +0 -192
- package/docs/ROADMAP.md +0 -295
- package/docs/SECURITY-IF-REPO-PUBLIC.md +0 -232
- package/docs/SECURITY.md +0 -356
- package/docs/TESTING_REQUIREMENTS.md +0 -201
- package/docs/ai-knowledge-base/00-project-profile.md +0 -38
- package/docs/ai-knowledge-base/01-features.md +0 -46
- package/docs/ai-knowledge-base/02-routes.md +0 -72
- package/docs/ai-knowledge-base/03-tech-stack.md +0 -57
- package/docs/ai-knowledge-base/README.md +0 -23
- package/docs/analytics-tracking.md +0 -37
- package/docs/api/API.md +0 -558
- package/docs/api/FEATURES.md +0 -414
- package/docs/api/app-review-api.md +0 -239
- package/docs/api/app-update-api.md +0 -154
- package/docs/api/background-update-api.md +0 -170
- package/docs/api/events-api.md +0 -323
- package/docs/api/live-update-api.md +0 -258
- package/docs/archive/MARKETING_WEBSITE_PLAN.md +0 -659
- package/docs/background-updates.md +0 -392
- package/docs/capacitor-official-plugins.md +0 -46
- package/docs/capawesome-plugins.md +0 -29
- package/docs/cli-reference.md +0 -321
- package/docs/deployment/HOSTINGER_DEPLOY.md +0 -370
- package/docs/deployment/PRODUCTION-DEPLOY-CHECKLIST.md +0 -184
- package/docs/docs-site/plan.md +0 -201
- package/docs/docs-site/scope.md +0 -127
- package/docs/docs-site/tracker.json +0 -235
- package/docs/error-handling-tracking.md +0 -37
- package/docs/examples/advanced-scenarios.md +0 -394
- package/docs/examples/android-manifest-example.xml +0 -77
- package/docs/examples/basic-usage.md +0 -206
- package/docs/examples/node-express-backend-example.md +0 -28
- package/docs/examples/react-capacitor-example.md +0 -29
- package/docs/features/app-reviews.md +0 -975
- package/docs/features/app-updates.md +0 -785
- package/docs/features/e2e-full-verification/00-overview.md +0 -99
- package/docs/features/e2e-full-verification/00-tracker.json +0 -284
- package/docs/features/e2e-full-verification/phase01-backend-schema-fixes.md +0 -183
- package/docs/features/e2e-full-verification/phase02-test-auth.md +0 -176
- package/docs/features/e2e-full-verification/phase03-api-test-coverage.md +0 -63
- package/docs/features/e2e-full-verification/phase04-frontend-package-contract-audit.md +0 -73
- package/docs/features/e2e-full-verification/phase05-browser-e2e-matrix.md +0 -69
- package/docs/features/e2e-full-verification/phase06-deploy-prod-smoke.md +0 -51
- package/docs/features/e2e-full-verification/results/phase01-drift-report.md +0 -50
- package/docs/features/e2e-full-verification/results/phase03-coverage-matrix.md +0 -215
- package/docs/features/e2e-full-verification/results/phase04-frontend-contract.md +0 -139
- package/docs/features/e2e-full-verification/results/phase05-e2e-results.md +0 -99
- 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 +0 -1
- package/docs/features/laravel-nova-backend/ASSESSMENT-SUMMARY.md +0 -96
- package/docs/features/laravel-nova-backend/IMPLEMENTATION-PLAN.md +0 -504
- package/docs/features/laravel-nova-backend/progress-tracker.json +0 -184
- package/docs/features/live-updates.md +0 -642
- package/docs/features/queues-and-emails/00-overview.md +0 -41
- package/docs/features/queues-and-emails/00-tracker.json +0 -99
- package/docs/features/queues-and-emails/phase01-foundation.md +0 -15
- package/docs/features/queues-and-emails/phase02-queued-jobs.md +0 -19
- package/docs/features/queues-and-emails/phase03-transactional-emails.md +0 -16
- package/docs/features/queues-and-emails/phase04-quota-ops.md +0 -17
- package/docs/features/queues-and-emails/phase05-async-build-processing-DECISION.md +0 -16
- package/docs/features/queues-and-emails/phase06-verify-deploy.md +0 -17
- package/docs/getting-started/configuration.md +0 -469
- package/docs/getting-started/installation.md +0 -300
- package/docs/getting-started/quick-start.md +0 -430
- package/docs/guides/BACKEND_TEMPLATES_GUIDE.md +0 -183
- package/docs/guides/admin-panel.md +0 -268
- package/docs/guides/channel-management.md +0 -343
- package/docs/guides/dashboard-guide.md +0 -365
- package/docs/guides/deployment-guide.md +0 -335
- package/docs/guides/end-to-end-workflow.md +0 -491
- package/docs/guides/key-management.md +0 -284
- package/docs/guides/migration-from-codepush.md +0 -145
- package/docs/guides/security-best-practices.md +0 -1057
- package/docs/guides/testing-guide.md +0 -346
- package/docs/guides/troubleshooting.md +0 -482
- package/docs/package-audit.md +0 -41
- package/docs/plans/PLANNING_COMPLETE_SUMMARY.md +0 -361
- package/docs/plans/TASK_1_ANDROID_EXAMPLE_APP.md +0 -401
- package/docs/plans/TASK_2_API_ENDPOINTS.md +0 -856
- package/docs/plans/TASK_2_DASHBOARD_UI_UX.md +0 -820
- package/docs/plans/TASK_2_DATABASE_SCHEMA.md +0 -704
- package/docs/plans/TASK_2_GOOGLE_DRIVE_INTEGRATION.md +0 -646
- package/docs/plans/TASK_2_SAAS_ARCHITECTURE.md +0 -587
- package/docs/plans/TASK_2_USER_AUTHENTICATION.md +0 -600
- package/docs/play-store/ASO-METADATA.md +0 -5
- package/docs/play-store/DATA-SAFETY.md +0 -5
- package/docs/play-store/DECLARATIONS.md +0 -5
- package/docs/play-store/README.md +0 -27
- package/docs/play-store/RELEASE-NOTES.md +0 -99
- package/docs/play-store/RELEASE-STEPS.md +0 -6
- package/docs/play-store/STORE-LISTING.md +0 -7
- package/docs/play-store/SUBMISSION-CHECKLIST.md +0 -5
- package/docs/production-readiness.md +0 -475
- package/docs/project-audit/2026-05-16/00-FINALIZATION-PLAN.md +0 -123
- package/docs/project-audit/2026-05-16/01-BATCH-PLAN.md +0 -227
- package/docs/project-audit/2026-05-16/02-AUDIT-FINDINGS.md +0 -144
- package/docs/project-audit/2026-05-16/sessions/batch-01.md +0 -42
- package/docs/project-audit/2026-05-16/sessions/batch-02.md +0 -74
- package/docs/project-audit/2026-05-16/sessions/batch-03.md +0 -71
- package/docs/project-audit/2026-05-16/sessions/batch-04.md +0 -88
- package/docs/project-audit/2026-05-16/sessions/batch-05.md +0 -63
- package/docs/project-audit/2026-05-16/sessions/batch-06.md +0 -103
- package/docs/project-audit/2026-05-16/sessions/batch-07.md +0 -61
- package/docs/project-audit/2026-05-16/sessions/batch-08.md +0 -101
- package/docs/project-audit/2026-05-16/sessions/batch-09.md +0 -105
- package/docs/project-audit/2026-05-16/sessions/batch-10.md +0 -102
- package/docs/project-audit/AUDIT-HISTORY.md +0 -74
- package/docs/project-audit/BATCH-PLAN.md +0 -168
- package/docs/project-audit/MARKETING-WEBSITE-FINDINGS-2026-05-11.md +0 -73
- package/docs/project-audit/PRODUCTION-READINESS-AUDIT-2026-05-08.md +0 -275
- package/docs/project-finalization/00-tracker.json +0 -60
- package/docs/project-knowledge-base/01-system-overview.md +0 -227
- package/docs/project-knowledge-base/02-routes-pages-forms-users.md +0 -352
- package/docs/project-knowledge-base/03-tech-stack-modules-services.md +0 -379
- package/docs/project-knowledge-base/04-data-models-integrations.md +0 -244
- package/docs/project-knowledge-base/05-docs-corpus-inventory.md +0 -256
- package/docs/project-knowledge-base/06-operations-testing-legal-content.md +0 -208
- package/docs/project-knowledge-base/README.md +0 -103
- package/docs/project-profiles/native-update-capacitor-update-platform-project-profile-last-updated-2026-05-19.md +0 -81
- package/docs/reports/AUDIT_SUMMARY_2025-12-26.md +0 -203
- package/docs/reports/CLAUDE-CODE-COMPLETION-PROMPT.md +0 -403
- package/docs/reports/CLAUDE_CODE_PROMPT.md +0 -29
- package/docs/reports/CODEBASE_STATUS_REPORT.md +0 -272
- package/docs/reports/COMPLETE_VERIFICATION.md +0 -106
- package/docs/reports/COMPREHENSIVE-PROJECT-AUDIT-2026-02-24.md +0 -747
- package/docs/reports/EVENT_FLOW_VERIFICATION.md +0 -80
- package/docs/reports/EXAMPLE_APPS_SIMPLIFICATION_COMPLETE.md +0 -369
- package/docs/reports/FINAL_STATUS.md +0 -122
- package/docs/reports/FINAL_VERIFICATION_CHECKLIST.md +0 -425
- package/docs/reports/MARKETING_WEBSITE_COMPLETE.md +0 -466
- package/docs/reports/PACKAGE_COMPLETENESS_REPORT.md +0 -130
- package/docs/reports/PRODUCTION_STATUS.md +0 -115
- package/docs/reports/PROJECT_RESTRUCTURE_2025-12-27.md +0 -287
- package/docs/reports/PROJECT_RESTRUCTURE_FINAL_SUMMARY.md +0 -464
- package/docs/reports/PUBLISHING_VERIFICATION.md +0 -144
- package/docs/reports/RELEASE_READY_SUMMARY.md +0 -99
- package/docs/reports/claude-completion.json +0 -241
- package/docs/rules-tracker.md +0 -102
- package/docs/security/PRE-LAUNCH-PENTEST-CHECKLIST.md +0 -116
- package/docs/security/certificate-pinning.md +0 -122
- package/docs/seo-aeo-rules.json +0 -3043
- package/docs/social-media-marketing/README.md +0 -81
- package/docs/social-media-marketing/posts-batch-01.md +0 -613
- package/docs/social-media-marketing/posts-batch-02.md +0 -528
- package/docs/social-media-marketing/whatsapp-messages-batch-01.md +0 -458
- package/docs/social-media-marketing/whatsapp-status-batch-01.md +0 -355
- package/docs/tracking/IMPLEMENTATION_TRACKER.md +0 -303
- package/docs/tracking/capacitor-rollout-note-2026-03-01.md +0 -21
- package/docs/tracking/completion-tracker-2026-02-24.json +0 -174
- package/docs/tracking/finalization-2026-05-16-tracker.json +0 -346
- package/docs/tracking/full-audit-tracker.json +0 -121
- package/docs/tracking/production-readiness-audit-tracker.json +0 -429
- package/docs/tracking/seo-checklist-tracker.json +0 -333
package/AI-INTEGRATION-GUIDE.md
CHANGED
|
@@ -27,9 +27,13 @@ import { NativeUpdate } from 'native-update';
|
|
|
27
27
|
// Configure the plugin (nested UpdateConfig — one section per feature)
|
|
28
28
|
await NativeUpdate.configure({
|
|
29
29
|
liveUpdate: {
|
|
30
|
-
appId: 'your
|
|
31
|
-
//
|
|
32
|
-
|
|
30
|
+
appId: 'com.your.app',
|
|
31
|
+
// Canonical rule: serverUrl is the backend base; the plugin appends
|
|
32
|
+
// /v1/updates/check. Hosted backend: https://nativeupdatebe.aoneahsan.com/api
|
|
33
|
+
serverUrl: 'https://nativeupdatebe.aoneahsan.com/api',
|
|
34
|
+
// Sent as X-API-Key on every check. Mint/copy in the dashboard
|
|
35
|
+
// (Apps → your app → API Keys). Supported here since v3.1.3.
|
|
36
|
+
apiKey: 'nu_app_…',
|
|
33
37
|
channel: 'production', // e.g. 'development' | 'staging' | 'production'
|
|
34
38
|
autoUpdate: true,
|
|
35
39
|
updateStrategy: 'background', // 'immediate' | 'background' | 'manual'
|
|
@@ -150,6 +154,7 @@ interface UpdateConfig {
|
|
|
150
154
|
interface LiveUpdateConfig {
|
|
151
155
|
appId: string; // Your app identifier (required)
|
|
152
156
|
serverUrl?: string; // Backend base URL; checks hit {serverUrl}/v1/updates/check (HTTPS required in production)
|
|
157
|
+
apiKey?: string; // Sent as X-API-Key on every check (dashboard: Apps → your app → API Keys). Since v3.1.3
|
|
153
158
|
channel?: string; // Update channel (default: 'production')
|
|
154
159
|
autoUpdate?: boolean; // Auto-check + apply updates
|
|
155
160
|
updateStrategy?: 'immediate' | 'background' | 'manual';
|
|
@@ -161,7 +166,7 @@ interface LiveUpdateConfig {
|
|
|
161
166
|
```
|
|
162
167
|
|
|
163
168
|
See the full field list for every section in `src/definitions.ts` or the
|
|
164
|
-
[Configuration Guide](https://nativeupdate.aoneahsan.com/
|
|
169
|
+
[Configuration Guide](https://nativeupdate-docs.aoneahsan.com/reference/sdk/core/config).
|
|
165
170
|
|
|
166
171
|
## Event Listeners
|
|
167
172
|
|
|
@@ -204,7 +209,7 @@ const stateListener = await NativeUpdate.addListener('updateStateChanged', (even
|
|
|
204
209
|
Easiest path: use the hosted backend at [nativeupdate.aoneahsan.com](https://nativeupdate.aoneahsan.com)
|
|
205
210
|
(free dashboard — register the app, upload bundles, get the `serverUrl` + API key).
|
|
206
211
|
Self-hosting instead? Your server must implement this contract
|
|
207
|
-
(full spec: [server requirements](https://nativeupdate.aoneahsan.com/
|
|
212
|
+
(full spec: [server requirements](https://nativeupdate-docs.aoneahsan.com/backend/overview)):
|
|
208
213
|
|
|
209
214
|
### GET {serverUrl}/v1/updates/check?channel={channel}
|
|
210
215
|
|
|
@@ -313,8 +318,8 @@ async function handlePurchaseComplete() {
|
|
|
313
318
|
|
|
314
319
|
## Links
|
|
315
320
|
|
|
316
|
-
- [Full Documentation](https://nativeupdate.aoneahsan.com/
|
|
317
|
-
- [API Reference](https://nativeupdate.aoneahsan.com/
|
|
318
|
-
- [Example Apps](https://nativeupdate.aoneahsan.com/
|
|
319
|
-
- [CLI Reference](https://nativeupdate.aoneahsan.com/
|
|
320
|
-
- [Security Guide](https://nativeupdate.aoneahsan.com/
|
|
321
|
+
- [Full Documentation](https://nativeupdate-docs.aoneahsan.com/)
|
|
322
|
+
- [API Reference](https://nativeupdate-docs.aoneahsan.com/reference/sdk/live-update/methods)
|
|
323
|
+
- [Example Apps](https://nativeupdate-docs.aoneahsan.com/tutorials/first-ota-update)
|
|
324
|
+
- [CLI Reference](https://nativeupdate-docs.aoneahsan.com/reference/cli/overview)
|
|
325
|
+
- [Security Guide](https://nativeupdate-docs.aoneahsan.com/concepts/security-model)
|
package/Readme.md
CHANGED
|
@@ -24,49 +24,49 @@
|
|
|
24
24
|
|
|
25
25
|
## 📚 Documentation
|
|
26
26
|
|
|
27
|
-
- **[AI Integration Guide](https://nativeupdate.aoneahsan.com/
|
|
27
|
+
- **[AI Integration Guide](https://nativeupdate-docs.aoneahsan.com/ai-integration)** - Quick reference for AI development agents (Claude, Cursor, Copilot)
|
|
28
28
|
|
|
29
29
|
### Getting Started
|
|
30
30
|
|
|
31
|
-
- **[Installation Guide](https://nativeupdate.aoneahsan.com/
|
|
32
|
-
- **[Quick Start Guide](https://nativeupdate.aoneahsan.com/
|
|
33
|
-
- **[Configuration Guide](https://nativeupdate.aoneahsan.com/
|
|
34
|
-
- **[End-to-End Workflow](https://nativeupdate.aoneahsan.com/
|
|
31
|
+
- **[Installation Guide](https://nativeupdate-docs.aoneahsan.com/getting-started/installation)** - Step-by-step installation instructions
|
|
32
|
+
- **[Quick Start Guide](https://nativeupdate-docs.aoneahsan.com/getting-started/quick-start)** - Get up and running in minutes
|
|
33
|
+
- **[Configuration Guide](https://nativeupdate-docs.aoneahsan.com/reference/sdk/core/config)** - Detailed configuration options
|
|
34
|
+
- **[End-to-End Workflow](https://nativeupdate-docs.aoneahsan.com/tutorials/backend-first-walkthrough)** - Complete setup to production guide
|
|
35
35
|
|
|
36
36
|
### Dashboard & Management
|
|
37
37
|
|
|
38
|
-
- **[Dashboard Guide](https://nativeupdate.aoneahsan.com/
|
|
39
|
-
- **[Channel Management](https://nativeupdate.aoneahsan.com/
|
|
40
|
-
- **[Admin Panel](https://nativeupdate.aoneahsan.com/
|
|
38
|
+
- **[Dashboard Guide](https://nativeupdate-docs.aoneahsan.com/backend/nova-admin-overview)** - Complete dashboard user guide
|
|
39
|
+
- **[Channel Management](https://nativeupdate-docs.aoneahsan.com/how-to/manage-channels)** - Dev/staging/production channels
|
|
40
|
+
- **[Admin Panel](https://nativeupdate-docs.aoneahsan.com/backend/nova-admin-overview)** - Super-admin documentation
|
|
41
41
|
|
|
42
42
|
### Features Documentation
|
|
43
43
|
|
|
44
|
-
- **[Live Updates (OTA)](https://nativeupdate.aoneahsan.com/
|
|
45
|
-
- **[App Updates](https://nativeupdate.aoneahsan.com/
|
|
46
|
-
- **[App Reviews](https://nativeupdate.aoneahsan.com/
|
|
47
|
-
- **[Background Updates](https://nativeupdate.aoneahsan.com/
|
|
44
|
+
- **[Live Updates (OTA)](https://nativeupdate-docs.aoneahsan.com/reference/sdk/live-update/overview)** - Deploy web updates instantly
|
|
45
|
+
- **[App Updates](https://nativeupdate-docs.aoneahsan.com/reference/sdk/app-update/overview)** - Native app store update management
|
|
46
|
+
- **[App Reviews](https://nativeupdate-docs.aoneahsan.com/reference/sdk/app-review/overview)** - In-app review integration
|
|
47
|
+
- **[Background Updates](https://nativeupdate-docs.aoneahsan.com/reference/sdk/background-update/overview)** - Background update management
|
|
48
48
|
|
|
49
49
|
### Guides & Best Practices
|
|
50
50
|
|
|
51
|
-
- **[Security Best Practices](https://nativeupdate.aoneahsan.com/
|
|
52
|
-
- **[Deployment Guide](https://nativeupdate.aoneahsan.com/
|
|
53
|
-
- **[Migration Guide](https://nativeupdate.aoneahsan.com/
|
|
54
|
-
- **[Production Readiness](https://nativeupdate.aoneahsan.com/
|
|
55
|
-
- **[Bundle Signing](https://nativeupdate.aoneahsan.com/
|
|
56
|
-
- **[Troubleshooting](https://nativeupdate.aoneahsan.com/
|
|
51
|
+
- **[Security Best Practices](https://nativeupdate-docs.aoneahsan.com/concepts/security-model)** - Implement secure updates
|
|
52
|
+
- **[Deployment Guide](https://nativeupdate-docs.aoneahsan.com/how-to/ci-cd-github-actions)** - Deployment procedures
|
|
53
|
+
- **[Migration Guide](https://nativeupdate-docs.aoneahsan.com/how-to/migrate-from-codepush)** - Migrate from other solutions
|
|
54
|
+
- **[Production Readiness](https://nativeupdate-docs.aoneahsan.com/concepts/security-model)** - Production deployment checklist
|
|
55
|
+
- **[Bundle Signing](https://nativeupdate-docs.aoneahsan.com/concepts/bundle-integrity-and-signing)** - Cryptographic signing guide
|
|
56
|
+
- **[Troubleshooting](https://nativeupdate-docs.aoneahsan.com/how-to/troubleshooting)** - Common issues and solutions
|
|
57
57
|
|
|
58
58
|
### API Reference
|
|
59
59
|
|
|
60
|
-
- **[Live Update API](https://nativeupdate.aoneahsan.com/
|
|
61
|
-
- **[App Update API](https://nativeupdate.aoneahsan.com/
|
|
62
|
-
- **[App Review API](https://nativeupdate.aoneahsan.com/
|
|
63
|
-
- **[Events API](https://nativeupdate.aoneahsan.com/
|
|
64
|
-
- **[CLI Reference](https://nativeupdate.aoneahsan.com/
|
|
60
|
+
- **[Live Update API](https://nativeupdate-docs.aoneahsan.com/reference/sdk/live-update/methods)** - Complete API for OTA updates
|
|
61
|
+
- **[App Update API](https://nativeupdate-docs.aoneahsan.com/reference/sdk/app-update/methods)** - Native app update methods
|
|
62
|
+
- **[App Review API](https://nativeupdate-docs.aoneahsan.com/reference/sdk/app-review/methods)** - Review request methods
|
|
63
|
+
- **[Events API](https://nativeupdate-docs.aoneahsan.com/reference/sdk/live-update/events)** - Event listeners and handlers
|
|
64
|
+
- **[CLI Reference](https://nativeupdate-docs.aoneahsan.com/reference/cli/overview)** - Command-line tools documentation
|
|
65
65
|
|
|
66
66
|
### Examples
|
|
67
67
|
|
|
68
|
-
- **[Basic Usage](https://nativeupdate.aoneahsan.com/
|
|
69
|
-
- **[Advanced Scenarios](https://nativeupdate.aoneahsan.com/
|
|
68
|
+
- **[Basic Usage](https://nativeupdate-docs.aoneahsan.com/tutorials/first-ota-update)** - Simple implementation examples
|
|
69
|
+
- **[Advanced Scenarios](https://nativeupdate-docs.aoneahsan.com/tutorials/backend-first-walkthrough)** - Complex use cases
|
|
70
70
|
|
|
71
71
|
---
|
|
72
72
|
|
|
@@ -98,7 +98,7 @@ Native Update supports three deployment channels:
|
|
|
98
98
|
| **Staging** | QA/Beta testing | Configurable | 1 hour |
|
|
99
99
|
| **Production** | Live users | No (consent) | Daily |
|
|
100
100
|
|
|
101
|
-
See [Channel Management Guide](https://nativeupdate.aoneahsan.com/
|
|
101
|
+
See [Channel Management Guide](https://nativeupdate-docs.aoneahsan.com/how-to/manage-channels) for detailed configuration.
|
|
102
102
|
|
|
103
103
|
---
|
|
104
104
|
|
|
@@ -354,7 +354,7 @@ The example app references the local plugin via yarn's `portal:` protocol - no n
|
|
|
354
354
|
|
|
355
355
|
### Frontend Example: React + Capacitor
|
|
356
356
|
|
|
357
|
-
**[React + Capacitor Example](https://nativeupdate.aoneahsan.com/
|
|
357
|
+
**[React + Capacitor Example](https://nativeupdate-docs.aoneahsan.com/tutorials/first-ota-update)**
|
|
358
358
|
|
|
359
359
|
- ✅ Simple, focused demonstration of OTA updates
|
|
360
360
|
- ✅ Single-page app with "change this text and deploy" example
|
|
@@ -366,7 +366,7 @@ The example app references the local plugin via yarn's `portal:` protocol - no n
|
|
|
366
366
|
|
|
367
367
|
#### 1. Node.js + Express Backend
|
|
368
368
|
|
|
369
|
-
**[Node.js + Express Backend Example](https://nativeupdate.aoneahsan.com/
|
|
369
|
+
**[Node.js + Express Backend Example](https://nativeupdate-docs.aoneahsan.com/backend/node-express-minimal)**
|
|
370
370
|
|
|
371
371
|
- ✅ Production-ready update server
|
|
372
372
|
- ✅ Bundle management API
|
|
@@ -418,7 +418,7 @@ npx native-update backend create express --with-admin
|
|
|
418
418
|
- Generate keys: `npx native-update keys generate --type rsa --size 4096`
|
|
419
419
|
- Supports RSA (2048/4096) and EC (256/384) keys
|
|
420
420
|
- Creates timestamped key pairs with proper permissions
|
|
421
|
-
- See [Key Management Guide](https://nativeupdate.aoneahsan.com/
|
|
421
|
+
- See [Key Management Guide](https://nativeupdate-docs.aoneahsan.com/how-to/rotate-signing-keys) for detailed instructions
|
|
422
422
|
|
|
423
423
|
✅ **Backend Templates**
|
|
424
424
|
- Express.js: `npx native-update backend create express --with-admin`
|
|
@@ -433,7 +433,7 @@ npx native-update backend create express --with-admin
|
|
|
433
433
|
✅ **Migration Tools**
|
|
434
434
|
- From CodePush: `npx native-update migrate --from codepush`
|
|
435
435
|
|
|
436
|
-
See [CLI Reference](https://nativeupdate.aoneahsan.com/
|
|
436
|
+
See [CLI Reference](https://nativeupdate-docs.aoneahsan.com/reference/cli/overview) for complete documentation.
|
|
437
437
|
|
|
438
438
|
## 🏗️ What Ships in This Package
|
|
439
439
|
|
|
@@ -448,7 +448,7 @@ See [CLI Reference](https://nativeupdate.aoneahsan.com/docs/cli-reference) for c
|
|
|
448
448
|
|
|
449
449
|
✅ **Backend options**
|
|
450
450
|
- Hosted dashboard at [nativeupdate.aoneahsan.com](https://nativeupdate.aoneahsan.com) (Laravel 13 + Nova 5, source in `backend/`, self-hostable)
|
|
451
|
-
- Documented HTTP contract for fully custom servers ([server requirements](https://nativeupdate.aoneahsan.com/
|
|
451
|
+
- Documented HTTP contract for fully custom servers ([server requirements](https://nativeupdate-docs.aoneahsan.com/backend/overview))
|
|
452
452
|
|
|
453
453
|
### What You Still Own as an Integrator
|
|
454
454
|
|
|
@@ -458,8 +458,8 @@ See [CLI Reference](https://nativeupdate.aoneahsan.com/docs/cli-reference) for c
|
|
|
458
458
|
|
|
459
459
|
## 🚀 Getting Started
|
|
460
460
|
|
|
461
|
-
1. **Install and configure** — follow the [Quick Start](https://nativeupdate.aoneahsan.com/
|
|
462
|
-
2. **Pick a backend** — hosted dashboard or self-hosted (see [server requirements](https://nativeupdate.aoneahsan.com/
|
|
461
|
+
1. **Install and configure** — follow the [Quick Start](https://nativeupdate-docs.aoneahsan.com/getting-started/quick-start)
|
|
462
|
+
2. **Pick a backend** — hosted dashboard or self-hosted (see [server requirements](https://nativeupdate-docs.aoneahsan.com/backend/overview))
|
|
463
463
|
3. **Create signing keys and a first bundle** — `npx native-update keys generate`, then `npx native-update bundle create ./dist`
|
|
464
464
|
4. **Verify the full cycle on a device** — deploy, update, and roll back through channels before going live
|
|
465
465
|
|
|
@@ -479,8 +479,8 @@ This package is **open-source** and created by **Ahsan Mahmood** for the develop
|
|
|
479
479
|
|
|
480
480
|
- **[NPM Package](https://www.npmjs.com/package/native-update)** - Package and versions
|
|
481
481
|
- **[Website](https://nativeupdate.aoneahsan.com)** - Official website and dashboard
|
|
482
|
-
- **[Documentation](https://nativeupdate.aoneahsan.com/
|
|
483
|
-
- **[Examples](https://nativeupdate.aoneahsan.com/
|
|
482
|
+
- **[Documentation](https://nativeupdate-docs.aoneahsan.com/)** - Comprehensive documentation
|
|
483
|
+
- **[Examples](https://nativeupdate-docs.aoneahsan.com/tutorials/first-ota-update)** - Real-world usage examples
|
|
484
484
|
|
|
485
485
|
### Professional Support
|
|
486
486
|
|
|
@@ -125,7 +125,9 @@ class LiveUpdatePlugin(
|
|
|
125
125
|
val result = JSObject()
|
|
126
126
|
result.put("status", "UPDATE_AVAILABLE")
|
|
127
127
|
result.put("version", latestVersion.getString("version"))
|
|
128
|
-
|
|
128
|
+
// v3 wire contract field (was the legacy "description")
|
|
129
|
+
result.put("description", latestVersion.getString("releaseNotes"))
|
|
130
|
+
result.put("mandatory", latestVersion.optBoolean("mandatory", false))
|
|
129
131
|
call.resolve(result)
|
|
130
132
|
} else {
|
|
131
133
|
val result = JSObject()
|
|
@@ -349,8 +351,12 @@ class LiveUpdatePlugin(
|
|
|
349
351
|
val result = JSObject()
|
|
350
352
|
result.put("available", true)
|
|
351
353
|
result.put("version", latestVersion.getString("version"))
|
|
352
|
-
|
|
353
|
-
result.put("
|
|
354
|
+
// v3 wire contract fields (legacy shape was url/notes)
|
|
355
|
+
result.put("url", latestVersion.getString("downloadUrl"))
|
|
356
|
+
result.put("notes", latestVersion.getString("releaseNotes"))
|
|
357
|
+
result.put("checksum", latestVersion.getString("checksum"))
|
|
358
|
+
result.put("size", latestVersion.optLong("size", 0))
|
|
359
|
+
result.put("mandatory", latestVersion.optBoolean("mandatory", false))
|
|
354
360
|
call.resolve(result)
|
|
355
361
|
} else {
|
|
356
362
|
val result = JSObject()
|
|
@@ -420,19 +426,48 @@ class LiveUpdatePlugin(
|
|
|
420
426
|
|
|
421
427
|
// Private helper methods
|
|
422
428
|
|
|
429
|
+
/**
|
|
430
|
+
* v3 wire contract (mirrors src/core/update-check.ts):
|
|
431
|
+
* GET {serverUrl}/v1/updates/check?channel={channel}
|
|
432
|
+
* Headers: X-API-Key, X-Device-ID, X-Current-Version, X-Platform
|
|
433
|
+
* (+ X-App-Version when the binary version is known)
|
|
434
|
+
* Returns the parsed response when a newer bundle is AVAILABLE, else
|
|
435
|
+
* null (covers "up to date", auth failures, and network errors —
|
|
436
|
+
* matching the TS helper's non-2xx => no-update behavior).
|
|
437
|
+
* Response fields consumed by callers: version, downloadUrl, checksum,
|
|
438
|
+
* signature, size, mandatory, releaseNotes.
|
|
439
|
+
*/
|
|
423
440
|
private suspend fun checkForUpdates(serverUrl: String, channel: String): JSObject? {
|
|
424
441
|
return withContext(Dispatchers.IO) {
|
|
425
442
|
try {
|
|
426
|
-
val
|
|
427
|
-
|
|
428
|
-
.
|
|
429
|
-
|
|
430
|
-
|
|
443
|
+
val apiKey = config?.getString("apiKey")
|
|
444
|
+
if (apiKey.isNullOrEmpty()) {
|
|
445
|
+
android.util.Log.w(
|
|
446
|
+
"NativeUpdate",
|
|
447
|
+
"Update check skipped: no apiKey configured (pass it via initialize({ apiKey }) or configure({ liveUpdate: { apiKey } }))"
|
|
448
|
+
)
|
|
449
|
+
return@withContext null
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
val encodedChannel = java.net.URLEncoder.encode(channel, "UTF-8")
|
|
453
|
+
val requestBuilder = Request.Builder()
|
|
454
|
+
.url("${serverUrl.trimEnd('/')}/v1/updates/check?channel=$encodedChannel")
|
|
455
|
+
.header("X-API-Key", apiKey)
|
|
456
|
+
.header("X-Device-ID", getOrCreateDeviceId())
|
|
457
|
+
.header("X-Current-Version", getCurrentVersion())
|
|
458
|
+
.header("X-Platform", "android")
|
|
459
|
+
getBinaryVersion()?.let { requestBuilder.header("X-App-Version", it) }
|
|
460
|
+
|
|
461
|
+
val response = okHttpClient.newCall(requestBuilder.build()).execute()
|
|
431
462
|
if (response.isSuccessful) {
|
|
432
463
|
val body = response.body?.string()
|
|
433
|
-
|
|
434
|
-
|
|
464
|
+
val json = body?.let { JSObject(it) }
|
|
465
|
+
if (json != null && json.optBoolean("available", false)) json else null
|
|
435
466
|
} else {
|
|
467
|
+
android.util.Log.w(
|
|
468
|
+
"NativeUpdate",
|
|
469
|
+
"Update check returned HTTP ${response.code} — treating as no update"
|
|
470
|
+
)
|
|
436
471
|
null
|
|
437
472
|
}
|
|
438
473
|
} catch (e: Exception) {
|
|
@@ -573,9 +608,50 @@ class LiveUpdatePlugin(
|
|
|
573
608
|
return calculatedChecksum == expectedChecksum
|
|
574
609
|
}
|
|
575
610
|
|
|
611
|
+
/**
|
|
612
|
+
* The version sent as X-Current-Version: the ACTIVE OTA bundle's
|
|
613
|
+
* version when one is applied, else the binary app version, else a
|
|
614
|
+
* conservative "1.0.0" (was previously hardcoded to "1.0.0" always).
|
|
615
|
+
*/
|
|
576
616
|
private fun getCurrentVersion(): String {
|
|
577
|
-
|
|
578
|
-
|
|
617
|
+
try {
|
|
618
|
+
val activeId = context.getSharedPreferences(PREF_FILE, Context.MODE_PRIVATE)
|
|
619
|
+
.getString(ACTIVE_BUNDLE_KEY, null)
|
|
620
|
+
if (activeId != null) {
|
|
621
|
+
val bundleJson = context.getSharedPreferences("native_update_bundles", Context.MODE_PRIVATE)
|
|
622
|
+
.getString(activeId, null)
|
|
623
|
+
val version = bundleJson?.let { JSObject(it).getString("version") }
|
|
624
|
+
if (!version.isNullOrEmpty()) {
|
|
625
|
+
return version
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
} catch (e: Exception) {
|
|
629
|
+
// fall through to the binary version
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
return getBinaryVersion() ?: "1.0.0"
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
/** Native binary versionName (sent as X-App-Version). */
|
|
636
|
+
private fun getBinaryVersion(): String? {
|
|
637
|
+
return try {
|
|
638
|
+
context.packageManager.getPackageInfo(context.packageName, 0).versionName
|
|
639
|
+
} catch (e: Exception) {
|
|
640
|
+
null
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Stable per-install device id (sent as X-Device-ID; the backend uses
|
|
646
|
+
* it for rollout bucketing). Minted once and persisted.
|
|
647
|
+
*/
|
|
648
|
+
private fun getOrCreateDeviceId(): String {
|
|
649
|
+
val prefs = context.getSharedPreferences(PREF_FILE, Context.MODE_PRIVATE)
|
|
650
|
+
prefs.getString("device_id", null)?.let { return it }
|
|
651
|
+
|
|
652
|
+
val deviceId = java.util.UUID.randomUUID().toString()
|
|
653
|
+
prefs.edit().putString("device_id", deviceId).apply()
|
|
654
|
+
return deviceId
|
|
579
655
|
}
|
|
580
656
|
|
|
581
657
|
private fun saveBundleInfo(bundleInfo: JSObject) {
|
|
@@ -76,19 +76,16 @@ class NativeUpdatePlugin : Plugin() {
|
|
|
76
76
|
|
|
77
77
|
@PluginMethod
|
|
78
78
|
fun initialize(call: PluginCall) {
|
|
79
|
-
val config = call.getObject("config")
|
|
80
|
-
if (config == null) {
|
|
81
|
-
call.reject("Configuration object is required")
|
|
82
|
-
return
|
|
83
|
-
}
|
|
84
|
-
|
|
85
79
|
try {
|
|
86
80
|
// Initialize with filesystem and preferences if provided
|
|
87
81
|
// In Android, we typically don't need these as we use native APIs
|
|
88
|
-
|
|
89
|
-
// Apply configuration
|
|
82
|
+
|
|
83
|
+
// Apply configuration. Both the wrapped ({ config: {...} }) and
|
|
84
|
+
// the flat PluginInitConfig shapes are accepted — configure()
|
|
85
|
+
// normalizes them (v3.1.3: the flat initialize() used to be
|
|
86
|
+
// rejected here, so native never received serverUrl/apiKey).
|
|
90
87
|
configure(call)
|
|
91
|
-
|
|
88
|
+
|
|
92
89
|
isInitialized = true
|
|
93
90
|
call.resolve()
|
|
94
91
|
} catch (e: Exception) {
|
|
@@ -115,40 +112,70 @@ class NativeUpdatePlugin : Plugin() {
|
|
|
115
112
|
|
|
116
113
|
@PluginMethod
|
|
117
114
|
fun configure(call: PluginCall) {
|
|
118
|
-
|
|
119
|
-
|
|
115
|
+
// Accept BOTH documented shapes (v3.1.3):
|
|
116
|
+
// configure({ config: PluginInitConfig }) — wrapped
|
|
117
|
+
// initialize(PluginInitConfig) — flat (top-level keys)
|
|
118
|
+
// configure(UpdateConfig) — nested sections
|
|
119
|
+
// Before this fix, only the wrapped shape reached native, so the
|
|
120
|
+
// flat initialize() every consumer uses configured NOTHING here.
|
|
121
|
+
val config = call.getObject("config") ?: call.data
|
|
122
|
+
|
|
120
123
|
if (config == null) {
|
|
121
124
|
call.reject("Configuration object is required")
|
|
122
125
|
return
|
|
123
126
|
}
|
|
124
|
-
|
|
127
|
+
|
|
125
128
|
try {
|
|
126
129
|
// Validate security settings
|
|
127
130
|
val securityConfig = config.getJSObject("security")
|
|
128
131
|
if (securityConfig != null) {
|
|
129
132
|
securityManager.configure(securityConfig)
|
|
130
133
|
}
|
|
131
|
-
|
|
134
|
+
|
|
132
135
|
// Configure sub-plugins
|
|
133
|
-
config.getJSObject("liveUpdate")
|
|
136
|
+
val liveUpdateConfig = config.getJSObject("liveUpdate") ?: buildFlatLiveUpdateConfig(config)
|
|
137
|
+
liveUpdateConfig?.let {
|
|
134
138
|
liveUpdatePlugin.configure(it)
|
|
135
139
|
}
|
|
136
|
-
|
|
140
|
+
|
|
137
141
|
config.getJSObject("appUpdate")?.let {
|
|
138
142
|
appUpdatePlugin.configure(it)
|
|
139
143
|
}
|
|
140
|
-
|
|
144
|
+
|
|
141
145
|
config.getJSObject("appReview")?.let {
|
|
142
146
|
appReviewPlugin.configure(it)
|
|
143
147
|
}
|
|
144
|
-
|
|
148
|
+
|
|
145
149
|
// Background update configuration is handled separately via enableBackgroundUpdates
|
|
146
|
-
|
|
150
|
+
|
|
147
151
|
call.resolve()
|
|
148
152
|
} catch (e: Exception) {
|
|
149
153
|
call.reject("Configuration failed", e)
|
|
150
154
|
}
|
|
151
155
|
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Normalize a flat PluginInitConfig (serverUrl/baseUrl, apiKey, appId,
|
|
159
|
+
* channel, publicKey at the top level) into the liveUpdate config shape
|
|
160
|
+
* the sub-plugin reads. Returns null when the payload carries no
|
|
161
|
+
* live-update fields at all.
|
|
162
|
+
*/
|
|
163
|
+
private fun buildFlatLiveUpdateConfig(config: JSObject): JSObject? {
|
|
164
|
+
val serverUrl = config.getString("serverUrl") ?: config.getString("baseUrl")
|
|
165
|
+
val apiKey = config.getString("apiKey")
|
|
166
|
+
if (serverUrl == null && apiKey == null) {
|
|
167
|
+
return null
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
val liveUpdate = JSObject()
|
|
171
|
+
serverUrl?.let { liveUpdate.put("serverUrl", it) }
|
|
172
|
+
apiKey?.let { liveUpdate.put("apiKey", it) }
|
|
173
|
+
config.getString("appId")?.let { liveUpdate.put("appId", it) }
|
|
174
|
+
config.getString("channel")?.let { liveUpdate.put("channel", it) }
|
|
175
|
+
config.getString("publicKey")?.let { liveUpdate.put("publicKey", it) }
|
|
176
|
+
config.getJSObject("security")?.let { liveUpdate.put("security", it) }
|
|
177
|
+
return liveUpdate
|
|
178
|
+
}
|
|
152
179
|
|
|
153
180
|
@PluginMethod
|
|
154
181
|
fun getSecurityInfo(call: PluginCall) {
|
|
@@ -201,9 +201,17 @@ export interface LiveUpdateConfig {
|
|
|
201
201
|
* Base URL of the Native Update backend. OTA update checks are issued as
|
|
202
202
|
* `GET {serverUrl}/v1/updates/check` (API-key auth via `X-API-Key`); the
|
|
203
203
|
* self-host contract for that endpoint is in `docs/server-requirements.md`.
|
|
204
|
+
* Hosted backend value: `https://nativeupdatebe.aoneahsan.com/api`.
|
|
204
205
|
* Must be HTTPS in production (the plugin rejects non-HTTPS base URLs).
|
|
205
206
|
*/
|
|
206
207
|
serverUrl?: string;
|
|
208
|
+
/**
|
|
209
|
+
* App API key for the Native Update backend, sent as the `X-API-Key`
|
|
210
|
+
* header on every update check. Mint/rotate/copy keys in the dashboard
|
|
211
|
+
* (Apps → your app → API Keys). Added in v3.1.3 — earlier versions only
|
|
212
|
+
* accepted the key via the flat `initialize({ apiKey })` form.
|
|
213
|
+
*/
|
|
214
|
+
apiKey?: string;
|
|
207
215
|
channel?: string;
|
|
208
216
|
autoUpdate?: boolean;
|
|
209
217
|
updateStrategy?: UpdateStrategy;
|
package/dist/esm/plugin.js
CHANGED
|
@@ -45,6 +45,7 @@ class NativeUpdatePluginWeb {
|
|
|
45
45
|
appId: liveUpdate === null || liveUpdate === void 0 ? void 0 : liveUpdate.appId,
|
|
46
46
|
baseUrl: liveUpdate === null || liveUpdate === void 0 ? void 0 : liveUpdate.serverUrl,
|
|
47
47
|
serverUrl: liveUpdate === null || liveUpdate === void 0 ? void 0 : liveUpdate.serverUrl,
|
|
48
|
+
apiKey: liveUpdate === null || liveUpdate === void 0 ? void 0 : liveUpdate.apiKey,
|
|
48
49
|
channel: liveUpdate === null || liveUpdate === void 0 ? void 0 : liveUpdate.channel,
|
|
49
50
|
autoCheck: liveUpdate === null || liveUpdate === void 0 ? void 0 : liveUpdate.autoUpdate,
|
|
50
51
|
autoUpdate: liveUpdate === null || liveUpdate === void 0 ? void 0 : liveUpdate.autoUpdate,
|
|
@@ -197,9 +198,22 @@ class NativeUpdatePluginWeb {
|
|
|
197
198
|
}
|
|
198
199
|
}
|
|
199
200
|
async getLatest() {
|
|
200
|
-
//
|
|
201
|
+
// Real implementation since v3.1.3 (was a hardcoded {available:false}
|
|
202
|
+
// stub): delegates to checkForUpdate(), which speaks the
|
|
203
|
+
// /v1/updates/check wire contract. Unconfigured (no baseUrl) stays a
|
|
204
|
+
// tolerant no-update result, matching the old stub's behavior.
|
|
205
|
+
const result = await this.checkForUpdate();
|
|
206
|
+
if (!result.available) {
|
|
207
|
+
return { available: false };
|
|
208
|
+
}
|
|
201
209
|
return {
|
|
202
|
-
available:
|
|
210
|
+
available: true,
|
|
211
|
+
version: result.latestVersion,
|
|
212
|
+
url: result.url,
|
|
213
|
+
mandatory: result.mandatory,
|
|
214
|
+
notes: result.notes,
|
|
215
|
+
size: result.size,
|
|
216
|
+
checksum: result.checksum,
|
|
203
217
|
};
|
|
204
218
|
}
|
|
205
219
|
async setChannel(channel) {
|