Skip to content

Commit

Permalink
chore(docs): Add differential documentation to fedcap
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven0351 committed May 9, 2024
1 parent 343610f commit 4e05e2a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions website/docs/for-capacitor/live-updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ First let's add Live Updates to the main shell application. Modify the `capacito
liveUpdateConfig: {
appId: "YOUR_APP_ID_IN_APPFLOW",
channel: "production",
autoUpdateMethod: "none"
autoUpdateMethod: "none",
strategy: "differential"
}
},
```
- **appId**: Replace `YOUR_APP_ID_IN_APPFLOW` with your own id. (example: `e9597b11`)
- **channel**: By default all releases happen in Appflow from the `production` channel but you can setup whatever channel you need here.
- **autoUpdateMethod**: Options would be `none` or `background`. You would choose `none` if you want to call the update method on your own, but the most common choice here would be `background` where the updates happen automatically.
- **strategy**: Options would be `zip` or `differential`. `zip` is the default and will download the entire update each time. `differential` will only download the changes between the current version and the new version.
After you have made these changes and done a build the application will begin pulling updates from Appflow using the IDs that you have provided. See the [reference](reference) documentation for methods on performing live updates manually from your application code.
Expand All @@ -39,7 +41,8 @@ Modify the `capacitor.config.ts` file to add a `liveUpdatesKey` field to the Fed
liveUpdateConfig: {
appId: "YOUR_APP_ID_IN_APPFLOW",
channel: "production",
autoUpdateMethod: "none"
autoUpdateMethod: "none",
strategy: "differential"
}
},
```
Expand Down
1 change: 1 addition & 0 deletions website/docs/for-capacitor/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ Sync Some
| **`channel`** | <code>string</code> |
| **`autoUpdateMethod`** | <code><a href="#autoupdatemethod">AutoUpdateMethod</a></code> |
| **`maxVersions`** | <code>number</code> |
| **`strategy`** | <code>'zip' \| 'differential'</code> |
| **`key`** | <code>string</code> |
Expand Down
5 changes: 5 additions & 0 deletions website/docs/for-capacitor/upgrade-guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ title: Upgrade Guides
sidebar_label: Upgrade Guides
---

## @ionic-enterprise/federated-capacitor 0.1.7

### Differential Support
Differential Live Update support has been added with this release. See the [Live Updates](live-updates) documentation for more information on how to configure this feature.

## @ionic-enterprise/federated-capacitor 0.1.0

'Portals for Capacitor' has been rebranded as 'Federated Capacitor'. This has come with
Expand Down

0 comments on commit 4e05e2a

Please sign in to comment.