You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: android/README.md
+29-5Lines changed: 29 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -257,14 +257,38 @@ npx cap sync android
257
257
## 14. Deployment Workflow
258
258
259
259
```bash
260
-
#1. Build web app for production
261
-
yarn build-web
260
+
# Build web app for production and Sync assets to Android
261
+
yarn build-sync-android
262
262
263
-
# 2. Sync assets to Android
264
-
npx cap sync android
263
+
# Build signed release APK in Android Studio
264
+
```
265
+
266
+
---
267
+
268
+
## Live Updates
269
+
270
+
To avoid releasing to the app stores after every code update in the web pages, we build the new bundle and store it in Capawesome Cloud (an alternative to Ionic).
265
271
266
-
# 3. Build signed release APK in Android Studio
272
+
First, you need to do this one-time setup:
267
273
```
274
+
npm install -g @capawesome/cli@latest
275
+
npx @capawesome/cli login
276
+
```
277
+
278
+
Then, run this to build your local assets and push them to Capawesome. Once done, each mobile app user will receive a notice that there is a new update available, which they can approve to download.
That's all. So you should run the lines above every time you want your web updates pushed to main (which essentially updates the web app) to update the mobile app as well.
285
+
Maybe we should add it to our CD. For example we set a file with `{liveUpdateVersion: 1}` and run the live update each time a push to main increments that counter.
286
+
There is a limit of 100 monthly active user per month, though. So we may need to pay or create our custom limit as we scale. Next plan is $9 / month and allows 1000 MAUs.
287
+
288
+
- ∞ Live Updates
289
+
- 100 Monthly Active Users
290
+
- 500 MB of Storage (around 10 MB per update, but we just delete the previous ones)
0 commit comments