diff --git a/pages/index/index.vue b/pages/index/index.vue index 94ee4def8686e13841d81cce569352e86cc55eec..e6dcd419ef9015cb0954b3afad2f0957324468f8 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -284,8 +284,8 @@ }, handleInstallApk() { installApk({ - filePath: "/sdcard/Android/data/io.dcloud.HBuilder/apps/HBuilder/doc/ddd.apk", - // filePath:"/static/ddd.apk", + // filePath: "/sdcard/Android/data/io.dcloud.HBuilder/apps/HBuilder/doc/ddd.apk", + filePath:"/static/test.apk", complete(res) { console.log(res); } diff --git a/static/test.apk b/static/test.apk new file mode 100644 index 0000000000000000000000000000000000000000..19c5e6c121de52104c6349f81a05f7c8c5fd4f91 Binary files /dev/null and b/static/test.apk differ diff --git a/uni_modules/uni-installApk/changelog.md b/uni_modules/uni-installApk/changelog.md index cd0ec1ae73239ab025f5e5256f481c729bd8aeb4..d499b3c6feb8d532491c70023605bdd386e23e01 100644 --- a/uni_modules/uni-installApk/changelog.md +++ b/uni_modules/uni-installApk/changelog.md @@ -1,3 +1,5 @@ +## 1.0.2(2023-10-27) +修改文档 ## 1.0.1(2023-10-27) 支持js层调用 ## 1.0.0(2023-10-26) diff --git a/uni_modules/uni-installApk/package.json b/uni_modules/uni-installApk/package.json index ac0393b09fd61a0d26daa9a22fe981a2dee131be..70bb882114e9c740743274b6aabe0c5a6944410d 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.1", + "version": "1.0.2", "description": "uni-installApk", "keywords": [ "uni-installApk" diff --git a/uni_modules/uni-installApk/readme.md b/uni_modules/uni-installApk/readme.md index ea713e2822663c6212770359ad5242caab355f2c..898834d79b542157a264adc6401bce2076c7768e 100644 --- a/uni_modules/uni-installApk/readme.md +++ b/uni_modules/uni-installApk/readme.md @@ -4,15 +4,7 @@ Android平台安装Apk - - -### App-Android平台注意事项 -- 需要自定义基座,并且需要具备下面的权限 - -``` - -``` - +**注意: 3.95以下需要自定义基座** ### uni.installApk(options : InstallApkOptions):void diff --git a/uni_modules/uni-installApk/utssdk/app-android/index.uts b/uni_modules/uni-installApk/utssdk/app-android/index.uts index cf5e2cc2dcca5e50cdd5ab54b2642ff2d48c0f25..4e2c22b95e58c7b3da2e7ea1b18d7dcbcc61f70a 100644 --- a/uni_modules/uni-installApk/utssdk/app-android/index.uts +++ b/uni_modules/uni-installApk/utssdk/app-android/index.uts @@ -31,7 +31,7 @@ export function installApk(options : InstallApkOptions) : void { context.startActivity(intent) const success : InstallApkSuccess = { - message: "success" + errMsg: "success" } options.success?.(success) options.complete?.(success) diff --git a/uni_modules/uni-installApk/utssdk/interface.uts b/uni_modules/uni-installApk/utssdk/interface.uts index a07970ff06f3a11d88f7e66a5ed28df840275c60..e377fb77286a01f13e640343a9a31c0751666805 100644 --- a/uni_modules/uni-installApk/utssdk/interface.uts +++ b/uni_modules/uni-installApk/utssdk/interface.uts @@ -35,7 +35,7 @@ export type InstallApkSuccess = { /** * 安装成功消息 */ - message : string + errMsg : string } export type InstallApkComplete = any export type InstallApkSuccessCallback = (res : InstallApkSuccess) => void