[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:
DefTruth
2022-12-09 15:53:26 +08:00
committed by GitHub
parent 4ccec075a1
commit 195132a1c7
7 changed files with 146 additions and 27 deletions

View File

@@ -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) {