[Android] Support PPTinyPose on Android (#746)

* [Android] Update ppseg jni via new api and optimize jni vis funcs

* delete local refs

* [Android] Add PPTinyPose jni and java api

* [Android] Update gradle download tasks info

* [Android] Add PPTinyPose Android app example

* update app build.gradle
This commit is contained in:
DefTruth
2022-11-30 16:29:20 +08:00
committed by GitHub
parent 9d78b1d414
commit 8e4a38ce21
27 changed files with 1649 additions and 50 deletions

View File

@@ -56,7 +56,7 @@ def FD_CXX_LIB = [
task downloadAndExtractLibs(type: DefaultTask) {
doFirst {
println "Downloading and extracting fastdeploy android c++ lib ..."
println "[INFO] Downloading and extracting fastdeploy android c++ lib ..."
}
doLast {
String cachePath = "cache"
@@ -69,15 +69,18 @@ task downloadAndExtractLibs(type: DefaultTask) {
libName = libName.split("\\.")[0]
boolean copyFiles = !file("${lib.dest}/${libName}").exists()
if (!file("${cachePath}/${libName}.tgz").exists()) {
println "Downloading ${lib.src} -> ${cachePath}/${libName}.tgz"
println "[INFO] Downloading ${lib.src} -> ${cachePath}/${libName}.tgz"
ant.get(src: lib.src, dest: file("${cachePath}/${libName}.tgz"))
copyFiles = true
}
if (copyFiles) {
println "[INFO] Taring ${cachePath}/${libName}.tgz -> ${lib.dest}/${libName}"
copy {
from tarTree("${cachePath}/${libName}.tgz")
into "${lib.dest}"
}
} else {
println "[INFO] ${lib.dest}/${libName} already exists!"
}
}
}