Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

Commit

Permalink
Add Java PoC and fixes to make it work (#1887)
Browse files Browse the repository at this point in the history
* Add Java PoC and fixes to make it work
* Add a top-level build file that builds both pure-java and android projects
  • Loading branch information
bmeike committed Mar 20, 2019
1 parent d347664 commit e85edfa
Show file tree
Hide file tree
Showing 37 changed files with 2,049 additions and 438 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ captures/

# Intellij
android/.idea
java/.idea
*.iml
.idea/workspace.xml
.idea/tasks.xml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;

import static com.couchbase.lite.ReplicatorConfiguration.ReplicatorType.PULL;
import static com.couchbase.lite.ReplicatorConfiguration.ReplicatorType.PUSH;
import static com.couchbase.lite.ReplicatorConfiguration.ReplicatorType.PUSH_AND_PULL;
import static com.couchbase.lite.AbstractReplicatorConfiguration.ReplicatorType.PULL;
import static com.couchbase.lite.AbstractReplicatorConfiguration.ReplicatorType.PUSH;
import static com.couchbase.lite.AbstractReplicatorConfiguration.ReplicatorType.PUSH_AND_PULL;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ public DatabaseConfiguration setDirectory(@NonNull String directory) {
}

//---------------------------------------------
// Package level access
// protected methods
//---------------------------------------------

DatabaseConfiguration readonlyCopy() {
final DatabaseConfiguration config = new DatabaseConfiguration(this);
config.setReadonly(true);
return config;
}
@Override
protected DatabaseConfiguration getDatabaseConfiguration() { return this; }
}

0 comments on commit e85edfa

Please sign in to comment.