diff --git a/docs/native/download/android.md b/docs/native/download/android.md index a3454ee9e39883ce53045184f4d974ce099ac2c3..715eead94179a2902a0b33c9402d7a7dcbd69a95 100644 --- a/docs/native/download/android.md +++ b/docs/native/download/android.md @@ -10,11 +10,14 @@ ## 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资源。 -* 新增 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 +* 更新 uni-app x 原生SDK打包支持,需使用HBuilderX(4.26.2024082213-alpha)版本生成本地打包App资源。 +* 新增 组件 canvas 支持绘制自定义字体 [文档](https://doc.dcloud.net.cn/uni-app-x/api/canvasrenderingcontext2d.html#custonfont) +* 调整 API uni.getWindowInfo 返回的 screenTop 属性废弃 [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=7095) +* 修复 4.25版本引发的 编译器 当代码中定义一个包含大量数据的UTSJSONObject数组字面量时,编译报 method too large [详情](https://issues.dcloud.net.cn/pages/issues/detail?id=6906) +* 修复 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 diff --git a/docs/native/modules/android/others.md b/docs/native/modules/android/others.md index 34674fa506947dac45986c858d4cba5f21f21321..6e7b51d8c0af42c18ddf5bae400ddd1acc772628 100644 --- a/docs/native/modules/android/others.md +++ b/docs/native/modules/android/others.md @@ -1,17 +1,17 @@ ## API与对应的库参照表 -|模块名称 |本地依赖库 |线上依赖库 |最低支持安卓版本 |依赖的模块 | -|:-- |:-- |:-- |:-- |:-- | -|uni-createRequestPermissionListener|uni-createRequestPermissionListener-release.aar |- |- |- | -|uni-createWebviewContext |uni-createWebviewContext-release.aar |- |- |- | -|uni-fileSystemManager |uni-fileSystemManager-release.aar |- |- |- | -|uni-getLocation-system |uni-getLocation-system-release.aar |- |- |- | -|uni-getNetworkType |uni-getNetworkType-release.aar |- |- |- | -|uni-installApk |uni-installApk-release.aar |- |- |- | -|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-cloud-client |uni-cloud-client-release.aar |- |- |uni-media
uni-network | -|uni-media |uni-media-release.aar
nativeobj-preview-release.aar|com.github.bumptech.glide:glide:4.9.0
androidx.recyclerview:recyclerview:1.0.0
androidx.appcompat:appcompat:1.0.0 |- |uni-prompt | +|模块名称 |本地依赖库 |线上依赖库 |最低支持安卓版本 |依赖的模块 | +|:-- |:-- |:-- |:-- |:-- | +|uni-createRequestPermissionListener|uni-createRequestPermissionListener-release.aar |- |- |- | +|uni-createWebviewContext |uni-createWebviewContext-release.aar |- |- |- | +|uni-fileSystemManager |uni-fileSystemManager-release.aar |- |- |- | +|uni-getLocation-system |uni-getLocation-system-release.aar |- |- |- | +|uni-getNetworkType |uni-getNetworkType-release.aar |- |- |- | +|uni-installApk |uni-installApk-release.aar |- |- |- | +|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-cloud-client |uni-cloud-client-release.aar |- |- |uni-network
uni-storage
uni-getSystemInfo
uni-prompt
uni-media
uni-websocket | +|uni-media |uni-media-release.aar
nativeobj-preview-release.aar|com.github.bumptech.glide:glide:4.9.0
androidx.recyclerview:recyclerview:1.0.0
androidx.appcompat:appcompat:1.0.0 |- |uni-prompt | 各模块对应的API可参考文档[App端支持的内置模块列表](https://doc.dcloud.net.cn/uni-app-x/collocation/manifest-modules.html#utsmodules) @@ -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-video](/native/modules/android/uni-video.md) diff --git a/docs/native/modules/android/uni-facialRecognitionVerify.md b/docs/native/modules/android/uni-facialRecognitionVerify.md index 50ecd1fbcc38320e90b44a93b66dfaf882e40381..dbf701ccc1bdbe094245a9fe7dc5438043a74ad0 100644 --- a/docs/native/modules/android/uni-facialRecognitionVerify.md +++ b/docs/native/modules/android/uni-facialRecognitionVerify.md @@ -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 | -|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 | |uni-facialRecognitionVerify-release.aar | 将本地依赖库复制到app项目的libs下 ### 线上依赖库 -|线上依赖库名称 | -|:-- | -|com.squareup.okhttp3:okhttp:3.11.0 | -|com.squareup.okio:okio:1.14.0 | -|com.alibaba:fastjson:1.2.83 | -|com.aliyun.dpa:oss-android-sdk:+ | +|线上依赖库名称 | +|:-- | +|com.squareup.okhttp3:okhttp:3.11.0 | +|com.squareup.okio:okio:1.14.0 | +|com.alibaba:fastjson:1.2.83_noneautotype | +|com.aliyun.dpa:oss-android-sdk:2.9.11 | 将线上依赖库添加到app项目的build.gradle下 \ No newline at end of file diff --git a/docs/native/use/android.md b/docs/native/use/android.md index cc46c69df33f3aa9e4b0fabc804a700b1b908f18..cee3f51b3b4bb7787ede89166a398c35ae9f060e 100644 --- a/docs/native/use/android.md +++ b/docs/native/use/android.md @@ -51,28 +51,29 @@ uni-getSystemInfo-release.aar,uni-rpx2px-release.aar,uni-theme-release.aar ```groovy dependencies { implementation fileTree(include: ['*.aar'], dir: './libs') - implementation("androidx.core:core-ktx:1.8.0") - implementation("androidx.recyclerview:recyclerview:1.0.0") - implementation("androidx.appcompat:appcompat:1.0.0") - implementation("androidx.exifinterface:exifinterface:1.3.6") - implementation("androidx.localbroadcastmanager:localbroadcastmanager:1.0.0@aar") - implementation("androidx.constraintlayout:constraintlayout:2.1.4") - implementation("com.google.android.material:material:1.4.0") - implementation("androidx.viewpager2:viewpager2:1.1.0-beta02") - implementation("com.alibaba:fastjson:1.2.83") - implementation("com.facebook.fresco:fresco:3.1.3") - implementation("com.facebook.fresco:middleware:3.1.3") - implementation("com.facebook.fresco:animated-gif:3.1.3") - implementation("com.facebook.fresco:webpsupport:3.1.3") - implementation("com.facebook.fresco:animated-webp:3.1.3") - implementation("com.github.bumptech.glide:glide:4.9.0") - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4") - implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4") - implementation("org.jetbrains.kotlin:kotlin-stdlib:1.8.10") - implementation("org.jetbrains.kotlin:kotlin-reflect:1.8.10") - implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1") - implementation("com.squareup.okhttp3:okhttp:3.12.12") - implementation("com.github.getActivity:XXPermissions:18.0") + implementation "androidx.core:core-ktx:1.10.1" + implementation "androidx.recyclerview:recyclerview:1.3.2" + implementation "androidx.appcompat:appcompat:1.0.0" + implementation "androidx.exifinterface:exifinterface:1.3.6" + implementation "androidx.localbroadcastmanager:localbroadcastmanager:1.0.0@aar" + implementation "androidx.constraintlayout:constraintlayout:2.1.4" + implementation "androidx.webkit:webkit:1.6.0" + implementation "com.google.android.material:material:1.4.0" + implementation "androidx.viewpager2:viewpager2:1.1.0-beta02" + implementation "com.alibaba:fastjson:1.2.83" + implementation "com.facebook.fresco:fresco:3.1.3" + implementation "com.facebook.fresco:middleware:3.1.3" + implementation "com.facebook.fresco:animated-gif:3.1.3" + implementation "com.facebook.fresco:webpsupport:3.1.3" + implementation "com.facebook.fresco:animated-webp:3.1.3" + implementation "com.github.bumptech.glide:glide:4.9.0" + implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4" + implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4" + implementation "org.jetbrains.kotlin:kotlin-stdlib:1.8.10" + implementation "org.jetbrains.kotlin:kotlin-reflect:1.8.10" + implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1" + implementation "com.squareup.okhttp3:okhttp:3.12.12" + implementation "com.github.getActivity:XXPermissions:18.63" } ``` @@ -457,6 +458,8 @@ dependencies { ``` **注意:转义符不能删掉,格式一定严格一致。** + + **注意:暂不支持在build.gradle中设置`applicationIdSuffix`,添加`applicationIdSuffix`会导致组件初始化失败。** ### 复制资源@copyresources