mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 16:48:03 +08:00
[Android] Update Android build scripts & app download tasks (#835)
* [Android] Add ERNIE3.0 intent and slot task jni support * [Bug Fix] fix app sdk download tasks * [Bug Fix] fix app sdk download tasks * [JNI] remove empty .cc files * [Android] Update Android build scripts
This commit is contained in:
@@ -67,10 +67,12 @@ task downloadAndExtractLibs(type: DefaultTask) {
|
||||
String[] libPaths = lib.src.split("/")
|
||||
String libName = libPaths[libPaths.length - 1]
|
||||
libName = libName.split("\\.")[0]
|
||||
boolean copyFiles = !file("${lib.dest}/${libName}").exists()
|
||||
if (!file("${cachePath}/${libName}.tgz").exists()) {
|
||||
println "[INFO] Downloading ${lib.src} -> ${cachePath}/${libName}.tgz"
|
||||
ant.get(src: lib.src, dest: file("${cachePath}/${libName}.tgz"))
|
||||
boolean copyFiles = false
|
||||
if (!file("${lib.dest}/${libName}").exists()) {
|
||||
if (!file("${cachePath}/${libName}.tgz").exists()) {
|
||||
println "[INFO] Downloading ${lib.src} -> ${cachePath}/${libName}.tgz"
|
||||
ant.get(src: lib.src, dest: file("${cachePath}/${libName}.tgz"))
|
||||
}
|
||||
copyFiles = true
|
||||
}
|
||||
if (copyFiles) {
|
||||
|
Reference in New Issue
Block a user