@onekeyfe/react-native-app-update 3.0.179 → 3.0.180
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 +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -53,6 +53,18 @@ For complete parameter and event types, see
|
|
|
53
53
|
test helpers are also exposed there; applications should keep the production
|
|
54
54
|
download and verification flow enabled.
|
|
55
55
|
|
|
56
|
+
## Listener and artifact types
|
|
57
|
+
|
|
58
|
+
`AppUpdateDownloadParams` requires `downloadUrl`, `notificationTitle` and
|
|
59
|
+
`fileSize`; `AppUpdateFileParams` contains `downloadUrl`. Download callbacks
|
|
60
|
+
receive a `DownloadEvent` with string `type`/`message` and numeric `progress`.
|
|
61
|
+
These types are exported for application adapters.
|
|
62
|
+
|
|
63
|
+
A listener ID belongs to the registration that returned it; retain that exact
|
|
64
|
+
ID for `removeDownloadListener`. `clearApkCache()` removes cached APK artifacts
|
|
65
|
+
without cancelling an active download. Invoke it through the application's
|
|
66
|
+
update-state coordinator, after active work is finished.
|
|
67
|
+
|
|
56
68
|
## License
|
|
57
69
|
|
|
58
70
|
MIT.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onekeyfe/react-native-app-update",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.180",
|
|
4
4
|
"description": "Android APK download, signature verification and installation for OneKey",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|