Just in case anyone is wondering about PouchDroid, a few things changed since I started working on it three months ago:
- I found out CouchBase Lite exists. So you may want to try that instead of some crazy JavaScript thing.
- I started working on PouchDB itself.
I do plan on eventually updating PouchDroid, but for the time being there’s still plenty to be done in PouchDB. Long-term goals will be:
- API parity with PouchDB (at least, the important parts).
- Get a rigorous suite of tests in place.
- Once the tests are passing, port it to pure Java.
If you still want to use PouchDroid in a Cordova/PhoneGap app, I’d recommend using PouchDB itself and the SQLite plugin instead. PouchDroid uses a slightly modified version of the SQLite plugin, which probably won’t give you any noticeable performance improvements. As for the XHR overrides, I’ll probably take that out, so you should just set up CORS on your CouchDB.
If you want to use PouchDroid in a Java Android project, it’s still pretty nifty for small sync tasks (e.g. the PouchDroidMigrationTask
, which can sync a SQLite database to CouchDB). But if you want something more full-featured and reliable, wait for 1.0.
Posted by 55+ on September 20, 2014 at 11:55 PM
Could PouchDB (the Java version) then be “merged” together with ElasticSearch for a perfect storage and searching solution?
Posted by Nolan Lawson on October 4, 2014 at 8:10 AM
I actually wrote a lite FTS on top of PouchDB using Lunr: https://github.com/nolanlawson/pouchdb-quick-search
TBH this Java version may come later than expected. Been too busy with PouchDB itself! :P