@capgo/capacitor-updater 3.3.7 → 3.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# capacitor-updater
|
|
2
2
|
|
|
3
|
-
Update capacitor app
|
|
3
|
+
Update capacitor app without store review.
|
|
4
4
|
|
|
5
5
|
You have 3 ways possible :
|
|
6
6
|
- use [capgo.app](https://capgo.app) a full featured auto update system in 5 min Setup, to manage version, update, revert and see stats.
|
|
@@ -24,10 +24,10 @@ npx cap sync
|
|
|
24
24
|
## Auto update setup
|
|
25
25
|
|
|
26
26
|
Create account in [capgo.app](https://capgo.app) and get your [API key](https://capgo.app/app/apikeys)
|
|
27
|
-
- Download the CLI `npm i -g capgo`
|
|
28
|
-
- Add app from CLI `capgo add -a API_KEY`
|
|
29
|
-
- Upload app `capgo upload -a API_KEY`
|
|
30
|
-
- Upload app `capgo set -a API_KEY -s public`
|
|
27
|
+
- Download the CLI `npm i -g @capgo/cli`
|
|
28
|
+
- Add app from CLI `npx @capgo/cli add -a API_KEY`
|
|
29
|
+
- Upload app `npx @capgo/cli upload -a API_KEY`
|
|
30
|
+
- Upload app `npx @capgo/cli set -a API_KEY -s public`
|
|
31
31
|
- Edit your `capacitor.config.json` like below, set `autoUpdate` to true.
|
|
32
32
|
```json
|
|
33
33
|
// capacitor.config.json
|
|
@@ -99,7 +99,7 @@ In your main code :
|
|
|
99
99
|
}
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
-
*Be extra
|
|
102
|
+
*Be extra careful for your update* if you send a broken update, the app will crash until the user reinstalls it.
|
|
103
103
|
|
|
104
104
|
If you need more secure way to update your app, you can use Auto update system.
|
|
105
105
|
|
|
@@ -58,7 +58,7 @@ public class CapacitorUpdater {
|
|
|
58
58
|
|
|
59
59
|
public String appId = "";
|
|
60
60
|
public String deviceID = "";
|
|
61
|
-
public final String pluginVersion = "3.3.
|
|
61
|
+
public final String pluginVersion = "3.3.10";
|
|
62
62
|
public String statsUrl = "";
|
|
63
63
|
|
|
64
64
|
public CapacitorUpdater (final Context context) throws PackageManager.NameNotFoundException {
|
package/package.json
CHANGED