提交 2dd1ae09 编写于 作者: 张磊

升级4.23-alpha

上级 eb583658
......@@ -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
......@@ -174,6 +174,10 @@ android.enableJetifier=true
**注意:如果需要自定义application,必须继承自UniApplication**
- 合并AndroidManifest.xml
如果uni-app x项目根目录下有AndroidManifest.xml文件,你需要按照xml文件的结构将内容拷贝到`uniappx`模块的AndroidManifest.xml中。
### 拷贝资源文件
1. 导出uni-app x项目的资源文件
......
......@@ -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
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册