GithubHelp home page GithubHelp logo

mariusfovenyessy / couchbase-lite-java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from couchbase/couchbase-lite-java

0.0 2.0 0.0 4.33 MB

Portable java version of Couchbase Lite

Ruby 10.25% Shell 3.88% Java 85.88%

couchbase-lite-java's Introduction

Join the chat at https://gitter.im/couchbase/mobile

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 https://github.com/couchbase/couchbase-lite-java.git
$ cd couchbase-lite-java
$ git submodule update --init --recursive

Build and test

Requirements

  • JDK 1.7+

  • Toolchains for compiling native libraries as follows :

    Operating System Tool Chain Notes
    Linux GCC and G++
    Mac OSX GCC or Clang
    Windows Visual C++ Install Visual Studio 2013. (Visual Studio 2015 is not supported yet)
  • 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 - Command Line

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
    $ git clone https://github.com/couchbase/couchbase-lite-android.git at the same folder where the couchbase-lite-java is located (parent folder of couchbase-lite-java).
  2. Go to your couchbase-lite-java, build the project and run the tests
    $ ./gradlew clean && ./gradlew test

If you need to see the test output to debug them, you can run ./gradlew --debug --info test

Note: there seems to be no way to see the test output when using the command line, so if you need to see the test output, use the IntelliJ IDE instead

Build and Test Steps - IntelliJ

  1. Build on command line - run $ ./gradlew build
  2. Clone Couchbase-lite-android project
    $ git clone https://github.com/couchbase/couchbase-lite-android.git at the same folder where the couchbase-lite-java is located (parent folder of couchbase-lite-java).
  3. Open IntelliJ and import project by selecting settings.gradle
  4. In IntelliJ project window, browse to /src/test/java/
  5. Right-click on an individual test or package and choose Run Test ..

Build and Package the library

$ ./gradlew distZip

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

couchbase-lite-java's People

Contributors

pasin avatar andreibaranouski avatar tleyden avatar yaronyg avatar devexter avatar

Watchers

James Cloos avatar Marius avatar

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.