This is a shared native SQLite library used for Couchbase Lite Android/Java.
There are three SQLite configurations.
- sqlite-system - No sqlite library provided, use system sqlite installed on the device or machine
- sqlite - bundled with a prebuilt sqlite library
- sqlcipher - bundled with a prebuilt sqlcipher library for encryption
$ git clone https://github.com/couchbase/couchbase-lite-java-native.git
- Android
- Linux (x86, x86_64, amd64)
- Windows (x86, x86_64)
- OSX (x86, x86_64)
The project is using Gradle to build and package the native binaries into a jar file (See Gradle Building native binaries for more info). The packaged jar file will be located in build/libs folder.
$ cd <sqlite-system|sqlite|sqlcipher>
$ gradlew -Pspec=<android|java> clean
$ gradlew -Pspec=<android|java> build
Make sure that you have the ANDROID_NDK_HOME variable defined. For example,
#.bashrc:
export ANDROID_NDK_HOME=~/Android/android-ndk-r11c
- To build the x86 binary on a 64-bit machine, you will need to setup a 64-bit toolchain as follows.
$ sudo apt-get install gcc-multilib
$ sudo apt-get install g++-multilib
- Visual Studio 2015 is required.
- Command Line Tools for Xcode is required. You may download the Command Line Tools from the Apple Developer website.