Code Monkey home page Code Monkey logo

sync-android-p2p's Introduction

sync-android-p2p

This project implements a http listener on top of sync-android to allow sync-android to become a replication target.

This project is a prototype. It can perform a basic replication based on the steps below, however, a lot more functionality needs to be implemented to support replication proper. Expect lots of bugs, this code needs much more testing.

Note that this project is community supported.

Testing this project

  • check out this project
git clone https://github.com/ibm-cds-labs/sync-android-p2p
cd sync-android
./gradlew test

Using Eclipse

If you are using eclipse, execute below command. For Android studio, skip to Using Android Studio section

./gradlew eclipse
  • In Eclipse, create a Run Configuration to run P2PTest.java. Ensure the VM Arguments are set to this for the test:
-ea -Dsqlite4java.library.path=native

Using Android Studio

To run JUnit tests in Android Studio you will need to set VM arguments in the following way:

  • In menu, select Run -> Edit configurations
  • In Edit configurations screen select Defaults -> JUnit
  • At right hand panel add -ea -Dsqlite4java.library.path=native as VM Options

Deploying this project's jars to the github repo

./gradlew clean build uploadArchives
git add repository/
git commit ...
git push 

Using this project's jars from another project

Example build.gradle:

apply plugin: 'android'

android {
  compileSdkVersion 19
  buildToolsVersion '19.0.0'

  repositories {
    mavenLocal()
    mavenCentral()
    maven { url "http://maven.restlet.org" }
    maven { url "http://cloudant.github.io/cloudant-sync-eap/repository/" }
    maven { url 'https://github.com/ibm-cds-labs/sync-android-p2p/raw/master/repository/' }
  }

  ...
    
  dependencies {
    compile 'net.christophersnow:sync-android-p2p:0.0.5-SNAPSHOT'
  }
}

See example project: ./sync-android-p2p-example

Contributing

It you would like to get involved in this project, please email: [email protected]

sync-android-p2p's People

Contributors

snowch avatar

Watchers

 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.