Skip to content

Commit f3dbb25

Browse files
Use static libcrypto instead of dynamic version
1 parent d82a49e commit f3dbb25

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ SQLiteDatabaseHook hook = new SQLiteDatabaseHook() {
3434

3535
### Building
3636

37-
This repository is not batteries-included. Specificially, you will need to build `libcrypto.so`, the shared library from OpenSSL using the NDK for the [supported platforms](#compatibility), and bundle the top-level `include` folder from OpenSSL. Additionally, you will need to build a SQLCipher amalgamation. These files will need to be placed in the following locations:
37+
This repository is not batteries-included. Specificially, you will need to build `libcrypto.a`, the static library from OpenSSL using the NDK for the [supported platforms](#compatibility), and bundle the top-level `include` folder from OpenSSL. Additionally, you will need to build a SQLCipher amalgamation. These files will need to be placed in the following locations:
3838

3939
```
40-
<project-root>/sqlcipher/src/main/jni/sqlcipher/android-libs/armeabi-v7a/libcrypto.so
41-
<project-root>/sqlcipher/src/main/jni/sqlcipher/android-libs/x86/libcrypto.so
42-
<project-root>/sqlcipher/src/main/jni/sqlcipher/android-libs/x86_64/libcrypto.so
43-
<project-root>/sqlcipher/src/main/jni/sqlcipher/android-libs/arm64_v8a/libcrypto.so
40+
<project-root>/sqlcipher/src/main/jni/sqlcipher/android-libs/armeabi-v7a/libcrypto.a
41+
<project-root>/sqlcipher/src/main/jni/sqlcipher/android-libs/x86/libcrypto.a
42+
<project-root>/sqlcipher/src/main/jni/sqlcipher/android-libs/x86_64/libcrypto.a
43+
<project-root>/sqlcipher/src/main/jni/sqlcipher/android-libs/arm64_v8a/libcrypto.a
4444
<project-root>/sqlcipher/src/main/jni/sqlcipher/android-libs/include/
4545
<project-root>/sqlcipher/src/main/jni/sqlcipher/sqlite3.c
4646
<project-root>/sqlcipher/src/main/jni/sqlcipher/sqlite3.h

sqlcipher/src/main/jni/sqlcipher/Android.mk

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ LOCAL_C_INCLUDES += $(LOCAL_PATH) $(LOCAL_PATH)/nativehelper/ $(LOCAL_PATH)/andr
3232

3333
LOCAL_MODULE:= libsqlcipher
3434
LOCAL_LDLIBS += -ldl -llog
35-
LOCAL_SHARED_LIBRARIES += shared-libcrypto
35+
LOCAL_STATIC_LIBRARIES += static-libcrypto
3636

3737
include $(BUILD_SHARED_LIBRARY)
3838

3939
include $(CLEAR_VARS)
40-
LOCAL_MODULE := shared-libcrypto
41-
LOCAL_SRC_FILES := $(LOCAL_PATH)/android-libs/$(TARGET_ARCH_ABI)/libcrypto.so
42-
include $(PREBUILT_SHARED_LIBRARY)
40+
LOCAL_MODULE := static-libcrypto
41+
LOCAL_SRC_FILES := $(LOCAL_PATH)/android-libs/$(TARGET_ARCH_ABI)/libcrypto.a
42+
include $(PREBUILT_STATIC_LIBRARY)

0 commit comments

Comments
 (0)