Git Product home page Git Product logo

couchbase-lite-java's Introduction

This is a "portable java" version of the Couchbase Lite.

To see how this fits into the overall architecture, see the Couchbase Lite Project Structure.

Get the code

$ git clone <this repo>
$ git submodule init && git submodule update

Build and test

Requirements

  • JDK 1.6+

  • Toolchains for compiling native libraries as follows :

    Operating System Tool Chain Notes
    Linux GCC and G++
    Mac OSX GCC or Clang Install Command Line Tools for Xcode available at the Apple Developer website.
    Windows Visual C++ Install Visual C++ 2010 and later.
  • To setup a Linux cross complier to compile both x86 and x86_64 linux native libraries on 64 bit machine, you may setup your toolchain as below :

     $ sudo apt-get install gcc-multilib
     $ sudo apt-get install g++-multilib
    

Build and Test Steps

Note: Currently we are sharing the test suits with Couchbase-lite-android project and the following steps will copy the test classes over and run the test suit.

  1. Clone Couchbase-lite-android project
    $ clone https://github.com/couchbase/couchbase-lite-android.git at the same folder where the couchbase-lite-java is located.
  2. At your couchbase-lite-android folder, create the test configuration file
    $ cd couchbase-lite-andriod
    $ cp src/androidTest/assets/test.properties src/androidTest/assets/local-test.properties
    Open src/androidTest/assets/local-test.properteis and edit replicationServer pointing to your Sync-Gateway (eg. 127.0.0.1 if you run the Sync-Gateway locally).
  3. Install and Run Sync-Gateway (See Getting Started With Sync Gateway).
    You can use a sample Sync-Gateway configuration to run the test suits from here.
  4. Go to your couchbase-lite-java, build the project and run the tests
    $ ./gradlew clean && ./gradlew test

Package the library

$ ./gradlew distZip

Note: The packaged file will be located at build/distributions.

couchbase-lite-java's People

Contributors

devexter avatar jpoon avatar pasin avatar tleyden avatar yaronyg avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

jmspring

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.