|
1 | | -# couchbase-lite-java-native # |
2 | | - |
3 | | -This is a shared native SQLite library used for Couchbase Lite [Android](https://github.com/couchbase/couchbase-lite-android)/[Java](https://github.com/couchbase/couchbase-lite-java). |
4 | | - |
5 | | -There are three SQLite configurations. |
6 | | - |
7 | | -1. sqlite-system - No sqlite library provided, use system sqlite installed on the device or machine |
8 | | -2. sqlite - bundled with a prebuilt sqlite library |
9 | | -3. sqlcipher - bundled with a prebuilt sqlcipher library for encryption |
10 | | - |
11 | | -## Get the code |
12 | | - |
13 | | -``` |
14 | | -$ git clone https://github.com/couchbase/couchbase-lite-java-native.git |
15 | | -``` |
16 | | - |
17 | | -## Support Platform |
18 | | -* Android |
19 | | -* Linux (x86, x86_64, amd64) |
20 | | -* Windows (x86, x86_64) |
21 | | -* OSX (x86, x86_64) |
22 | | - |
23 | | -## How to build |
24 | | - |
25 | | -The project is using [Gradle](http://www.gradle.org) to build and package the native binaries into a jar file (See Gradle [Building native binaries](http://www.gradle.org/docs/current/userguide/nativeBinaries.html) for more info). The packaged jar file will be located in build/libs folder. |
26 | | - |
27 | | -``` |
28 | | -$ cd <sqlite-system|sqlite|sqlcipher> |
29 | | -$ gradlew -Pspec=<android|java> clean |
30 | | -$ gradlew -Pspec=<android|java> build |
31 | | -``` |
32 | | -### Android |
33 | | -* [Android NDK](http://developer.android.com/ndk/index.html) |
34 | | - |
35 | | - Make sure that you have the `ANDROID_NDK_HOME` variable defined. For example, |
36 | | - ``` |
37 | | - #.bashrc: |
38 | | - export ANDROID_NDK_HOME=~/Android/android-ndk-r11c |
39 | | -``` |
40 | | - |
41 | | -### Linux |
42 | | -* To build the x86 binary on a 64-bit machine, you will need to setup a 64-bit toolchain as follows. |
43 | | - |
44 | | -``` |
45 | | -$ sudo apt-get install gcc-multilib |
46 | | -$ sudo apt-get install g++-multilib |
47 | | -``` |
48 | | - |
49 | | -### Windows |
50 | | -* Visual Studio 2015 is required. |
51 | | - |
52 | | -### OSX |
53 | | -* Command Line Tools for Xcode is required. You may download the Command Line Tools from the [Apple Developer](https://developer.apple.com/xcode/downloads) website. |
| 1 | +This repository is deprecated as of Couchbase Lite v2.8. |
| 2 | +Please refer to the [Community Edition Repository](https://github.com/couchbase/couchbase-lite-java-ce-root) |
0 commit comments