From 6904ad68d981430c7778540c5bd96a06754ceac1 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com> Date: Wed, 7 Sep 2022 12:58:01 +0100 Subject: [PATCH] android: add libcrypto.so --- apps/android/app/src/main/cpp/CMakeLists.txt | 5 ++++- scripts/android/prepare.sh | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/android/app/src/main/cpp/CMakeLists.txt b/apps/android/app/src/main/cpp/CMakeLists.txt index 28e2a25b13..e97f01708f 100644 --- a/apps/android/app/src/main/cpp/CMakeLists.txt +++ b/apps/android/app/src/main/cpp/CMakeLists.txt @@ -53,6 +53,9 @@ add_library( support SHARED IMPORTED ) set_target_properties( support PROPERTIES IMPORTED_LOCATION ${CMAKE_SOURCE_DIR}/libs/${ANDROID_ABI}/libsupport.so) +add_library( crypto SHARED IMPORTED ) +set_target_properties( crypto PROPERTIES IMPORTED_LOCATION + ${CMAKE_SOURCE_DIR}/libs/${ANDROID_ABI}/libcrypto.so) # Specifies libraries CMake should link to your target library. You # can link multiple libraries, such as libraries you define in this @@ -61,7 +64,7 @@ set_target_properties( support PROPERTIES IMPORTED_LOCATION target_link_libraries( # Specifies the target library. app-lib - simplex support + simplex support crypto # Links the target library to the log library # included in the NDK. diff --git a/scripts/android/prepare.sh b/scripts/android/prepare.sh index 363d7f7edb..a7ee5f7e8a 100755 --- a/scripts/android/prepare.sh +++ b/scripts/android/prepare.sh @@ -2,5 +2,6 @@ # libsimplex.so and libsupport.so binaries should be in ~/Downloads folder rm ./apps/android/app/src/main/cpp/libs/arm64-v8a/* -cp ~/Downloads/libsimplex.so ./apps/android/app/src/main/cpp/libs/arm64-v8a/ cp ~/Downloads/libsupport.so ./apps/android/app/src/main/cpp/libs/arm64-v8a/ +cp ~/Downloads/pkg-aarch64-android-libsimplex/libsimplex.so ./apps/android/app/src/main/cpp/libs/arm64-v8a/ +cp ~/Downloads/pkg-aarch64-android-libsimplex/libcrypto.so ./apps/android/app/src/main/cpp/libs/arm64-v8a/