From 2dd1ae09671671dc5ee8db183b77845ca89dfdec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A3=8A?= <1633537611@qq.com> Date: Thu, 4 Jul 2024 17:21:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=87=E7=BA=A74.23-alpha?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/native/download/android.md | 9 +++++---- docs/native/use/android.md | 4 ++++ docs/native/use/androidcomm.md | 8 ++++++-- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/docs/native/download/android.md b/docs/native/download/android.md index 66871487..a703b692 100644 --- a/docs/native/download/android.md +++ b/docs/native/download/android.md @@ -2,10 +2,11 @@ ## alpha版 -### 4.22.2024062415-alpha +### 4.23.2024070309-alpha -**[下载地址](https://web-ext-storage.dcloud.net.cn/uni-app-x/sdk/Android-uni-app-x-SDK@11920-4.22.zip)** +**[下载地址](https://web-ext-storage.dcloud.net.cn/uni-app-x/sdk/Android-uni-app-x-SDK@11973-4.23.zip)** * 更新uni-app离线打包支持,需使用HBuilderX(4.22.2024062415-alpha)版本生成本地打包App资源。 -* 修复 响应式API可能存在内存泄漏的Bug [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=2543) -* 修复 组件 switch 在 list-view 组件中显示状态可能不正确的Bug [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=2482) \ No newline at end of file +* 新增 API uni.setTabBarStyle/pages.json 支持传递 borderColor 设定自定义边框颜色,优先级高于 borderStyle [详情](https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbarstyle) +* 调整 API uni.setTabBarStyle/pages.json 中 borderStyle 只支持 black/white [详情](https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbarstyle) +* 修复 组件 list-view 设置 scroll-top 属性值域与 upper-threshold 属性值域相同时,部分安卓设备可能不触发 scrolltoupper 事件的Bug[详情](https://issues.dcloud.net.cn/pages/issues/detail?id=2847) \ No newline at end of file diff --git a/docs/native/use/android.md b/docs/native/use/android.md index e264e2de..9d27ed9e 100644 --- a/docs/native/use/android.md +++ b/docs/native/use/android.md @@ -173,6 +173,10 @@ android.enableJetifier=true 将`application`节点的`android:name`修改为`io.dcloud.uniapp.UniApplication` **注意:如果需要自定义application,必须继承自UniApplication** + +- 合并AndroidManifest.xml + + 如果uni-app x项目根目录下有AndroidManifest.xml文件,你需要按照xml文件的结构将内容拷贝到`uniappx`模块的AndroidManifest.xml中。 ### 拷贝资源文件 1. 导出uni-app x项目的资源文件 diff --git a/docs/native/use/androidcomm.md b/docs/native/use/androidcomm.md index 5b02f276..7e8ac452 100644 --- a/docs/native/use/androidcomm.md +++ b/docs/native/use/androidcomm.md @@ -39,7 +39,7 @@ startActivity(Intent(this, UniAppActivity::class.java)) import Context from 'android.content.Context' import Intent from 'android.content.Intent' import IntentFilter from 'android.content.IntentFilter' - import ContextCompat from 'androidx.core.content.ContextCompat' + import Build from 'android.os.Build' class MyReciver extends BroadcastReceiver { constructor() { @@ -70,7 +70,11 @@ startActivity(Intent(this, UniAppActivity::class.java)) onReady() { // #ifdef APP-ANDROID this.receiver = new MyReciver() - ContextCompat.registerReceiver(UTSAndroid.getUniActivity()!,this.receiver, IntentFilter("ACTION_FROM_NATIVE"),ContextCompat.RECEIVER_EXPORTED) + if (Build.VERSION.SDK_INT >= 33) { + UTSAndroid.getUniActivity()?.registerReceiver(this.receiver, IntentFilter("ACTION_FROM_NATIVE"), Context.RECEIVER_EXPORTED) + } else { + UTSAndroid.getUniActivity()?.registerReceiver(this.receiver, IntentFilter("ACTION_FROM_NATIVE")) + } // #endif }, -- GitLab