[Android] add asset dir for native library
authorJaeyun <jy1210.jung@samsung.com>
Mon, 9 Dec 2019 12:47:41 +0000 (21:47 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 12 Dec 2019 07:25:29 +0000 (16:25 +0900)
Add asset dir for native library.

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
api/android/build-android-lib.sh

index 37260e6..9811bf2 100644 (file)
@@ -183,11 +183,13 @@ if [[ -e $nnstreamer_android_api_lib ]]; then
     # Prepare native libraries and header files for C-API
     unzip $nnstreamer_android_api_lib -d aar_extracted
 
+    mkdir -p main/assets
     mkdir -p main/java/org/freedesktop
     mkdir -p main/jni/nnstreamer/lib
     mkdir -p main/jni/nnstreamer/include
 
     cp -r api/src/main/java/org/freedesktop/* main/java/org/freedesktop
+    cp -r aar_extracted/assets/* main/assets
     cp -r aar_extracted/jni/* main/jni/nnstreamer/lib
     cp ext-files/jni/Android-nnstreamer-prebuilt.mk main/jni
     cp $NNSTREAMER_ROOT/api/capi/include/nnstreamer.h main/jni/nnstreamer/include