diff --git a/.gitignore b/.gitignore index 08cdfdb..48f7298 100644 --- a/.gitignore +++ b/.gitignore @@ -42,3 +42,4 @@ build # Ignore 3rd party binaries /externals/downloadable /externals/gst-1.0-android-universal +/externals/libs diff --git a/nnstreamer-api/build.gradle.kts b/nnstreamer-api/build.gradle.kts index bc4a9c6..7dc7a0a 100644 --- a/nnstreamer-api/build.gradle.kts +++ b/nnstreamer-api/build.gradle.kts @@ -92,5 +92,20 @@ android { named("preBuild") { dependsOn("genNnsSrc") } + + build { + doLast{ + copy { + val srcAarPath = project.projectDir.toPath().resolve("build/outputs/aar") + val outAarPath = externalDirPath.resolve("libs").apply { + createDirectories() + } + + from(srcAarPath) + include("*-debug.aar") + into(outAarPath) + } + } + } } }