提交 f210e5d4 编写于 作者: 张磊

更新4.26离线打包,更新集成文档。

上级 90287ba7
...@@ -10,11 +10,14 @@ ...@@ -10,11 +10,14 @@
## alpha版 ## alpha版
### 4.23.2024070309-alpha ### 4.26.2024082213-alpha
**[下载地址](https://web-ext-storage.dcloud.net.cn/uni-app-x/sdk/Android-uni-app-x-SDK@11973-4.23.zip)** **[下载地址](https://web-ext-storage.dcloud.net.cn/uni-app-x/sdk/Android/Android-uni-app-x-SDK@12222-4.26.zip)**
* 更新 uni-app x 原生SDK打包支持,需使用HBuilderX(4.23.2024070309-alpha)版本生成本地打包App资源。 * 更新 uni-app x 原生SDK打包支持,需使用HBuilderX(4.26.2024082213-alpha)版本生成本地打包App资源。
* 新增 API uni.setTabBarStyle/pages.json 支持传递 borderColor 设定自定义边框颜色,优先级高于 borderStyle [详情](https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbarstyle) * 新增 组件 canvas 支持绘制自定义字体 [文档](https://doc.dcloud.net.cn/uni-app-x/api/canvasrenderingcontext2d.html#custonfont) <https://issues.dcloud.net.cn/pages/issues/detail?id=5359>
* 调整 API uni.setTabBarStyle/pages.json 中 borderStyle 只支持 black/white [详情](https://doc.dcloud.net.cn/uni-app-x/api/set-tabbar.html#settabbarstyle) * 调整 API uni.getWindowInfo 返回的 screenTop 属性废弃 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=7095)
* 修复 组件 list-view 设置 scroll-top 属性值域与 upper-threshold 属性值域相同时,部分安卓设备可能不触发 scrolltoupper 事件的Bug[详情](https://issues.dcloud.net.cn/pages/issues/detail?id=2847) * 修复 4.25版本引发的 编译器 当代码中定义一个包含大量数据的UTSJSONObject数组字面量时,编译报 method too large [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=6906)
\ No newline at end of file * 修复 4.25版本引发的 API uni.getLocation 导入uni-getLocation-tencent插件云打包报错 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=6890)
* 修复 4.25版本引发的 API uni.getWindowInfo 返回的 screenHeight 值可能不是设备屏幕高度 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=7058)
* 修复 4.14版本引发的 CSS overflow 多级子 view 全部设置 overflow 为 visible 后点击 view 可能引起崩溃 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=6957)
\ No newline at end of file
## API与对应的库参照表 ## API与对应的库参照表
|模块名称 |本地依赖库 |线上依赖库 |最低支持安卓版本 |依赖的模块 | |模块名称 |本地依赖库 |线上依赖库 |最低支持安卓版本 |依赖的模块 |
|:-- |:-- |:-- |:-- |:-- | |:-- |:-- |:-- |:-- |:-- |
|uni-createRequestPermissionListener|uni-createRequestPermissionListener-release.aar |- |- |- | |uni-createRequestPermissionListener|uni-createRequestPermissionListener-release.aar |- |- |- |
|uni-createWebviewContext |uni-createWebviewContext-release.aar |- |- |- | |uni-createWebviewContext |uni-createWebviewContext-release.aar |- |- |- |
|uni-fileSystemManager |uni-fileSystemManager-release.aar |- |- |- | |uni-fileSystemManager |uni-fileSystemManager-release.aar |- |- |- |
|uni-getLocation-system |uni-getLocation-system-release.aar |- |- |- | |uni-getLocation-system |uni-getLocation-system-release.aar |- |- |- |
|uni-getNetworkType |uni-getNetworkType-release.aar |- |- |- | |uni-getNetworkType |uni-getNetworkType-release.aar |- |- |- |
|uni-installApk |uni-installApk-release.aar |- |- |- | |uni-installApk |uni-installApk-release.aar |- |- |- |
|uni-network |uni-network-release.aar |com.squareup.okhttp3:okhttp:3.12.12 |- |- | |uni-network |uni-network-release.aar |com.squareup.okhttp3:okhttp:3.12.12 |- |- |
|uni-websocket |uni-websocket-release.aar |com.squareup.okhttp3:okhttp:3.12.12 |- |- | |uni-websocket |uni-websocket-release.aar |com.squareup.okhttp3:okhttp:3.12.12 |- |- |
|uni-cloud-client |uni-cloud-client-release.aar |- |- |uni-media<br/>uni-network | |uni-cloud-client |uni-cloud-client-release.aar |- |- |uni-network<br/>uni-storage<br/>uni-getSystemInfo<br/>uni-prompt<br/>uni-media<br/>uni-websocket |
|uni-media |uni-media-release.aar<br/>nativeobj-preview-release.aar|com.github.bumptech.glide:glide:4.9.0<br/>androidx.recyclerview:recyclerview:1.0.0<br/>androidx.appcompat:appcompat:1.0.0 |- |uni-prompt | |uni-media |uni-media-release.aar<br/>nativeobj-preview-release.aar|com.github.bumptech.glide:glide:4.9.0<br/>androidx.recyclerview:recyclerview:1.0.0<br/>androidx.appcompat:appcompat:1.0.0 |- |uni-prompt |
各模块对应的API可参考文档[App端支持的内置模块列表](https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-modules.html#utsmodules) 各模块对应的API可参考文档[App端支持的内置模块列表](https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-modules.html#utsmodules)
...@@ -35,6 +35,25 @@ ...@@ -35,6 +35,25 @@
## 其他模块 ## 其他模块
### canvas
#### 本地依赖库
|名称 |
|:-- |
|uni-canvas-release.aar |
|uni-canvas-native-release.aar |
#### 组件注册
将以下内容添加到主模块的build.gradle,详见[根据configjson配置应用](../../use/android.md#utscomponents)
```groovy
defaultConfig {
buildConfigField "String", "UTSRegisterComponents", "\"[{\"name\":\"canvas\",\"class\":\"io.dcloud.canvas.CanvasComponent\",\"node\":\"io.dcloud.canvas.UniCanvasElementImpl\"}]\""
}
```
[uni-ad](/native/modules/android/uni-ad.md) [uni-ad](/native/modules/android/uni-ad.md)
[uni-video](/native/modules/android/uni-video.md) [uni-video](/native/modules/android/uni-video.md)
......
...@@ -4,25 +4,26 @@ ...@@ -4,25 +4,26 @@
|本地依赖库名称 | |本地依赖库名称 |
|:-- | |:-- |
|aliyun-base-2.3.16.1-240418145504.aar |
|aliyun-facade-2.3.16.1-240418145504.aar |
|aliyun-face-2.3.16.1-240418145504.aar |
|aliyun-faceaudio-2.3.16.1-240418145504.aar |
|aliyun-facelanguage-2.3.16.1-240418145504.aar |
|aliyun-photinus-2.3.16.1-240418145504.aar |
|aliyun-wishverify-2.3.16.1-240418145504.aar |
|Android-AliyunFaceGuard-10049.aar |
|APSecuritySDK-deepSec-7.0.1.20240415.jiagu.aar | |APSecuritySDK-deepSec-7.0.1.20240415.jiagu.aar |
|Android-AliyunFaceGuard-10042.aar |
|aliyun-base-2.3.7-20231102102722.aar |
|aliyun-facade-2.3.7-20231102102722.aar |
|aliyun-face-2.3.7-20231102102722.aar |
|aliyun-faceaudio-2.3.7-20231102102722.aar |
|aliyun-facelanguage-2.3.7-20231102102722.aar |
|aliyun-wishverify-2.3.7-20231102102722.aar |
|facialRecognitionVerify-support-release.aar | |facialRecognitionVerify-support-release.aar |
|uni-facialRecognitionVerify-release.aar | |uni-facialRecognitionVerify-release.aar |
将本地依赖库复制到app项目的libs下 将本地依赖库复制到app项目的libs下
### 线上依赖库 ### 线上依赖库
|线上依赖库名称 | |线上依赖库名称 |
|:-- | |:-- |
|com.squareup.okhttp3:okhttp:3.11.0 | |com.squareup.okhttp3:okhttp:3.11.0 |
|com.squareup.okio:okio:1.14.0 | |com.squareup.okio:okio:1.14.0 |
|com.alibaba:fastjson:1.2.83 | |com.alibaba:fastjson:1.2.83_noneautotype |
|com.aliyun.dpa:oss-android-sdk:+ | |com.aliyun.dpa:oss-android-sdk:2.9.11 |
将线上依赖库添加到app项目的build.gradle下 将线上依赖库添加到app项目的build.gradle下
\ No newline at end of file
...@@ -51,28 +51,29 @@ uni-getSystemInfo-release.aar,uni-rpx2px-release.aar,uni-theme-release.aar ...@@ -51,28 +51,29 @@ uni-getSystemInfo-release.aar,uni-rpx2px-release.aar,uni-theme-release.aar
```groovy ```groovy
dependencies { dependencies {
implementation fileTree(include: ['*.aar'], dir: './libs') implementation fileTree(include: ['*.aar'], dir: './libs')
implementation("androidx.core:core-ktx:1.8.0") implementation "androidx.core:core-ktx:1.10.1"
implementation("androidx.recyclerview:recyclerview:1.0.0") implementation "androidx.recyclerview:recyclerview:1.3.2"
implementation("androidx.appcompat:appcompat:1.0.0") implementation "androidx.appcompat:appcompat:1.0.0"
implementation("androidx.exifinterface:exifinterface:1.3.6") implementation "androidx.exifinterface:exifinterface:1.3.6"
implementation("androidx.localbroadcastmanager:localbroadcastmanager:1.0.0@aar") implementation "androidx.localbroadcastmanager:localbroadcastmanager:1.0.0@aar"
implementation("androidx.constraintlayout:constraintlayout:2.1.4") implementation "androidx.constraintlayout:constraintlayout:2.1.4"
implementation("com.google.android.material:material:1.4.0") implementation "androidx.webkit:webkit:1.6.0"
implementation("androidx.viewpager2:viewpager2:1.1.0-beta02") implementation "com.google.android.material:material:1.4.0"
implementation("com.alibaba:fastjson:1.2.83") implementation "androidx.viewpager2:viewpager2:1.1.0-beta02"
implementation("com.facebook.fresco:fresco:3.1.3") implementation "com.alibaba:fastjson:1.2.83"
implementation("com.facebook.fresco:middleware:3.1.3") implementation "com.facebook.fresco:fresco:3.1.3"
implementation("com.facebook.fresco:animated-gif:3.1.3") implementation "com.facebook.fresco:middleware:3.1.3"
implementation("com.facebook.fresco:webpsupport:3.1.3") implementation "com.facebook.fresco:animated-gif:3.1.3"
implementation("com.facebook.fresco:animated-webp:3.1.3") implementation "com.facebook.fresco:webpsupport:3.1.3"
implementation("com.github.bumptech.glide:glide:4.9.0") implementation "com.facebook.fresco:animated-webp:3.1.3"
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") implementation "com.github.bumptech.glide:glide:4.9.0"
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4") implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4"
implementation("org.jetbrains.kotlin:kotlin-stdlib:1.8.10") implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4"
implementation("org.jetbrains.kotlin:kotlin-reflect:1.8.10") implementation "org.jetbrains.kotlin:kotlin-stdlib:1.8.10"
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1") implementation "org.jetbrains.kotlin:kotlin-reflect:1.8.10"
implementation("com.squareup.okhttp3:okhttp:3.12.12") implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1"
implementation("com.github.getActivity:XXPermissions:18.0") implementation "com.squareup.okhttp3:okhttp:3.12.12"
implementation "com.github.getActivity:XXPermissions:18.63"
} }
``` ```
...@@ -457,6 +458,8 @@ dependencies { ...@@ -457,6 +458,8 @@ dependencies {
``` ```
**注意:转义符不能删掉,格式一定严格一致。** **注意:转义符不能删掉,格式一定严格一致。**
**注意:暂不支持在build.gradle中设置`applicationIdSuffix`,添加`applicationIdSuffix`会导致组件初始化失败。**
### 复制资源@copyresources ### 复制资源@copyresources
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册