matfur92/mongo-java-driver


The Java driver for MongoDB https://mongodb.github.io/mongo-java-driver

Download


Step 1. Add the JitPack repository to your build file

Add it in your root build.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}
	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.matfur92:mongo-java-driver:r3.0.4'
	}
	<dependency>
	    <groupId>com.github.matfur92</groupId>
	    <artifactId>mongo-java-driver</artifactId>
	    <version>r3.0.4</version>
	</dependency>

                            
    libraryDependencies += "com.github.matfur92" % "mongo-java-driver" % "r3.0.4"
        
        

                            
    :dependencies [[com.github.matfur92/mongo-java-driver "r3.0.4"]]
        
        

Readme


Release Notes

This is an Android porting of Java MongoDB Driver - 3.4.0-SNAPSHOT version - updated on 28 July 2016.

You can download compiled JAR from

https://github.com/matfur92/mongo-java-driver/blob/gh-pages/JARs/mongo-java-driver-3.2.0-SNAPSHOT.jar?raw=true

https://github.com/matfur92/mongo-java-driver/blob/gh-pages/JARs/mongo-java-driver-3.4.0-SNAPSHOT.jar?raw=true

I've forked ufficial mongodb/mongo-java-driver (master branch) and added classes from https://github.com/koterpillar/android-sasl to fix javax.security.sasl on Android.

driver-core is tested and work correctly on Android. SSL is supported!

Feel free to open new issues and contact me

Important

driver-async is not ported because java.nio.channels.AsynchronousSocketChannel doesn't exist on Android and doesn't exist any porting.