diff --git a/uni_modules/uni-installApk/changelog.md b/uni_modules/uni-installApk/changelog.md index 36cc81dbd1132daa977b2ddd3f5a4c40f06bd5e0..cd0ec1ae73239ab025f5e5256f481c729bd8aeb4 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 21a0292d80dc7bffcf5b1141bce3712c05f82e7b..ac0393b09fd61a0d26daa9a22fe981a2dee131be 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 9e7caa47dae1733d86707f98fe073be2a4714cce..ea713e2822663c6212770359ad5242caab355f2c 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