Commit f0555f99 by zeven

新增广播方式升级apk

parent fd2c53c1
android @ 76d364ff
Subproject commit 7982a59c72c19718cd70423e8bf6aa1564dcc240 Subproject commit 76d364ff42d62f5eccb5ae06ed77caf1907c6a0d
{ {
"name": "zm-face-counter", "name": "zm-face-counter",
"version": "1.0.3", "version": "1.0.5",
"private": true, "private": true,
"scripts": { "scripts": {
"android": "react-native run-android", "android": "react-native run-android",
......
...@@ -124,6 +124,7 @@ class App extends React.Component { ...@@ -124,6 +124,7 @@ class App extends React.Component {
Installer.download(url, file).then(apk => { Installer.download(url, file).then(apk => {
if (apk) { if (apk) {
Speech.speak('程序下载完成,正在安装'); Speech.speak('程序下载完成,正在安装');
Installer.installApp(apk);
Installer.install(apk); Installer.install(apk);
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment