couchbase-lite-java-native

Introduction: This is a shared native SQLite library used for Couchbase Lite Android/Java.
More: Author   ReportBugs   OfficialWebsite   
Tags:

This is a shared native SQLite library used for Couchbase Lite Android/Java.

There are three SQLite configurations.

  1. sqlite-system - No sqlite library provided, use system sqlite installed on the device or machine
  2. sqlite - bundled with a prebuilt sqlite library
  3. sqlcipher - bundled with a prebuilt sqlcipher library for encryption

Get the code

$ git clone https://github.com/couchbase/couchbase-lite-java-native.git

Support Platform

  • Android
  • Linux (x86, x86_64, amd64)
  • Windows (x86, x86_64)
  • OSX (x86, x86_64)

How to build

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

Android

  • Android NDK

    Make sure that you have the ANDROID_NDK_HOME variable defined. For example,

    #.bashrc:
    export ANDROID_NDK_HOME=~/Android/android-ndk-r11c
    

Linux

  • 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

Windows

  • Visual Studio 2015 is required.

OSX

  • Command Line Tools for Xcode is required. You may download the Command Line Tools from the Apple Developer website.
Support Me
Apps
About Me
Google+: Trinea trinea
GitHub: Trinea