Skip to content

sgapr/couchbase-lite-java-native

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

101 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

couchbase-lite-java-native

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

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.

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 88.6%
  • Makefile 6.7%
  • C 4.3%
  • Java 0.4%