version:1.6.3

fix:
update:改回无障碍接听
This commit is contained in:
2025-06-03 16:30:33 +08:00
parent 4482aedea6
commit 6457d40df8
361 changed files with 906 additions and 134994 deletions

View File

@@ -17,8 +17,8 @@ android {
applicationId "com.xxpatx.os"
minSdkVersion 24
targetSdkVersion 29
versionCode 1062
versionName "1.6.2"
versionCode 1063
versionName "1.6.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -55,13 +55,6 @@ android {
}
}
externalNativeBuild {
cmake {
path "src/main/cpp/CMakeLists.txt"
version "3.10.2"
}
}
signingConfigs {
mtk {
storeFile file("keystore/xueshibaoos.jks")
@@ -293,53 +286,53 @@ preBuild {
}
}
def archives = [
[
'src' : 'https://paddleocr.bj.bcebos.com/libs/paddle_lite_libs_v2_10.tar.gz',
'dest': 'PaddleLite'
],
[
'src' : 'https://paddlelite-demo.bj.bcebos.com/libs/android/opencv-4.2.0-android-sdk.tar.gz',
'dest': 'OpenCV'
],
[
'src' : 'https://paddleocr.bj.bcebos.com/PP-OCRv2/lite/ch_PP-OCRv2.tar.gz',
'dest' : 'src/main/assets/models'
],
[
'src' : 'https://paddleocr.bj.bcebos.com/dygraph_v2.0/lite/ch_dict.tar.gz',
'dest' : 'src/main/assets/labels'
]
]
//def archives = [
// [
// 'src' : 'https://paddleocr.bj.bcebos.com/libs/paddle_lite_libs_v2_10.tar.gz',
// 'dest': 'PaddleLite'
// ],
// [
// 'src' : 'https://paddlelite-demo.bj.bcebos.com/libs/android/opencv-4.2.0-android-sdk.tar.gz',
// 'dest': 'OpenCV'
// ],
// [
// 'src' : 'https://paddleocr.bj.bcebos.com/PP-OCRv2/lite/ch_PP-OCRv2.tar.gz',
// 'dest' : 'src/main/assets/models'
// ],
// [
// 'src' : 'https://paddleocr.bj.bcebos.com/dygraph_v2.0/lite/ch_dict.tar.gz',
// 'dest' : 'src/main/assets/labels'
// ]
//]
task downloadAndExtractArchives(type: DefaultTask) {
doFirst {
println "Downloading and extracting archives including libs and models"
}
doLast {
// Prepare cache folder for archives
String cachePath = "cache"
if (!file("${cachePath}").exists()) {
mkdir "${cachePath}"
}
archives.eachWithIndex { archive, index ->
MessageDigest messageDigest = MessageDigest.getInstance('MD5')
messageDigest.update(archive.src.bytes)
String cacheName = new BigInteger(1, messageDigest.digest()).toString(32)
// Download the target archive if not exists
boolean copyFiles = !file("${archive.dest}").exists()
if (!file("${cachePath}/${cacheName}.tar.gz").exists()) {
ant.get(src: archive.src, dest: file("${cachePath}/${cacheName}.tar.gz"))
copyFiles = true; // force to copy files from the latest archive files
}
// Extract the target archive if its dest path does not exists
if (copyFiles) {
copy {
from tarTree("${cachePath}/${cacheName}.tar.gz")
into "${archive.dest}"
}
}
}
}
}
preBuild.dependsOn downloadAndExtractArchives
//task downloadAndExtractArchives(type: DefaultTask) {
// doFirst {
// println "Downloading and extracting archives including libs and models"
// }
// doLast {
// // Prepare cache folder for archives
// String cachePath = "cache"
// if (!file("${cachePath}").exists()) {
// mkdir "${cachePath}"
// }
// archives.eachWithIndex { archive, index ->
// MessageDigest messageDigest = MessageDigest.getInstance('MD5')
// messageDigest.update(archive.src.bytes)
// String cacheName = new BigInteger(1, messageDigest.digest()).toString(32)
// // Download the target archive if not exists
// boolean copyFiles = !file("${archive.dest}").exists()
// if (!file("${cachePath}/${cacheName}.tar.gz").exists()) {
// ant.get(src: archive.src, dest: file("${cachePath}/${cacheName}.tar.gz"))
// copyFiles = true; // force to copy files from the latest archive files
// }
// // Extract the target archive if its dest path does not exists
// if (copyFiles) {
// copy {
// from tarTree("${cachePath}/${cacheName}.tar.gz")
// into "${archive.dest}"
// }
// }
// }
// }
//}
//preBuild.dependsOn downloadAndExtractArchives