Skip to content

Commit

Permalink
Gradle/NNSApi: Copy aar file to external
Browse files Browse the repository at this point in the history
This patch adds task in build.gradle.kts to copy aar file.
Copied aar file will be used by other modules.

Signed-off-by: Yelin Jeong <[email protected]>
  • Loading branch information
niley7464 committed Apr 22, 2024
1 parent 57d4da5 commit d586719
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ build
# Ignore 3rd party binaries
/externals/downloadable
/externals/gst-1.0-android-universal
/externals/libs
15 changes: 15 additions & 0 deletions nnstreamer-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
}
}
}

0 comments on commit d586719

Please sign in to comment.