-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
94 changed files
with
14,711 additions
and
101 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+12.4 KB
...roid/lib/couchbase-lite-android-1.0.2.jar → ...roid/lib/couchbase-lite-android-1.0.3.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+10.4 KB
.../couchbase-lite-java-javascript-1.0.2.jar → .../couchbase-lite-java-javascript-1.0.3.jar
Binary file not shown.
Binary file renamed
BIN
+9.29 KB
...ib/couchbase-lite-java-listener-1.0.2.jar → ...ib/couchbase-lite-java-listener-1.0.3.jar
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
mobile/android/src/com/obscure/titouchdb/DocumentChangeProxy.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package com.obscure.titouchdb; | ||
|
||
import org.appcelerator.kroll.KrollProxy; | ||
import org.appcelerator.kroll.annotations.Kroll; | ||
|
||
import com.couchbase.lite.DocumentChange; | ||
|
||
@Kroll.proxy(parentModule = TitouchdbModule.class) | ||
public class DocumentChangeProxy extends KrollProxy { | ||
|
||
private String documentId; | ||
|
||
private boolean isConflict; | ||
|
||
private boolean isCurrentRevision; | ||
|
||
private String revisionId; | ||
|
||
private String sourceUrl; | ||
|
||
public DocumentChangeProxy(DocumentChange change) { | ||
assert change != null; | ||
|
||
this.isCurrentRevision = change.isCurrentRevision(); | ||
this.isConflict = change.isConflict(); | ||
this.sourceUrl = change.getSourceUrl() != null ? change.getSourceUrl().toString() : ""; | ||
} | ||
|
||
@Kroll.getProperty(name = "documentId") | ||
public String getDocumentId() { | ||
return documentId; | ||
} | ||
|
||
@Kroll.getProperty(name = "revisionId") | ||
public String getRevisionId() { | ||
return revisionId; | ||
} | ||
|
||
@Kroll.getProperty(name = "sourceUrl") | ||
public String getSourceUrl() { | ||
return sourceUrl; | ||
} | ||
|
||
@Kroll.getProperty(name = "isConflict") | ||
public boolean isConflict() { | ||
return isConflict; | ||
} | ||
|
||
@Kroll.getProperty(name = "isCurrentRevision") | ||
public boolean isCurrentRevision() { | ||
return isCurrentRevision; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.