From dd0f9a8e0fb0fdf1b338e6550cb938dfd15b4eac Mon Sep 17 00:00:00 2001 From: taohebin Date: Fri, 27 Oct 2023 11:43:39 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-installApk/changelog.md | 2 + uni_modules/uni-installApk/package.json | 8 ++-- uni_modules/uni-installApk/readme.md | 49 ++++++++++++++++++++++--- 3 files changed, 50 insertions(+), 9 deletions(-) diff --git a/uni_modules/uni-installApk/changelog.md b/uni_modules/uni-installApk/changelog.md index 36cc81d..cd0ec1a 100644 --- a/uni_modules/uni-installApk/changelog.md +++ b/uni_modules/uni-installApk/changelog.md @@ -1,2 +1,4 @@ +## 1.0.1(2023-10-27) +支持js层调用 ## 1.0.0(2023-10-26) 安装apk的插件 diff --git a/uni_modules/uni-installApk/package.json b/uni_modules/uni-installApk/package.json index 21a0292..ac0393b 100644 --- a/uni_modules/uni-installApk/package.json +++ b/uni_modules/uni-installApk/package.json @@ -1,7 +1,7 @@ { "id": "uni-installApk", "displayName": "uni-installApk", - "version": "1.0.0", + "version": "1.0.1", "description": "uni-installApk", "keywords": [ "uni-installApk" @@ -52,11 +52,11 @@ }, "client": { "Vue": { - "vue2": "u", - "vue3": "u" + "vue2": "y", + "vue3": "y" }, "App": { - "app-android": "u", + "app-android": "y", "app-ios": "n" }, "H5-mobile": { diff --git a/uni_modules/uni-installApk/readme.md b/uni_modules/uni-installApk/readme.md index 9e7caa4..ea713e2 100644 --- a/uni_modules/uni-installApk/readme.md +++ b/uni_modules/uni-installApk/readme.md @@ -1,6 +1,45 @@ # uni-installApk -### 开发文档 -[UTS 语法](https://uniapp.dcloud.net.cn/tutorial/syntax-uts.html) -[UTS API插件](https://uniapp.dcloud.net.cn/plugin/uts-plugin.html) -[UTS 组件插件](https://uniapp.dcloud.net.cn/plugin/uts-component.html) -[Hello UTS](https://gitcode.net/dcloud/hello-uts) \ No newline at end of file + +## 使用说明 + +Android平台安装Apk + + + +### App-Android平台注意事项 +- 需要自定义基座,并且需要具备下面的权限 + +``` + +``` + + +### uni.installApk(options : InstallApkOptions):void + +安装apk + +参数说明 + +``` +type InstallApkOptions = { + /** + * apk文件地址 + */ + filePath : string, + /** + * 接口调用成功的回调函数 + * @defaultValue null + */ + success ?: (res : any) => void, + /** + * 接口调用失败的回调函数 + * @defaultValue null + */ + fail ?: (err : any) => void, + /** + * 接口调用结束的回调函数(调用成功、失败都会执行) + * @defaultValue null + */ + complete ?: (res : any) => void, +} +``` \ No newline at end of file -- GitLab