How to use couchbase-lite-java ?

65 views
Skip to first unread message

Doru Chiulan

unread,
Dec 3, 2014, 4:43:14 PM12/3/14
to mobile-c...@googlegroups.com

Hi,

I am trying to build couchbase-lite-java in order to use for an offline desktop version of a POS SaaS that will run on Windows/OSX.

I built following the instructions provided on the github project, but I am not able to use the "Manager" via constructor or "getSharedInstance()" method :

getSharedInstance() is not a valid API call on Android. Pure java version coming soon

Am I on a wrong path or this is not possible at the moment ?

Thanks

Traun Leyden

unread,
Dec 3, 2014, 5:25:10 PM12/3/14
to mobile-c...@googlegroups.com
Hi,

You should use:

ManagerOptions options= new ManagerOptions();
Manager manager=new Manager(new JavaContext(), options);




--
You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/cf6fdaeb-1b58-48c6-a7bc-91c66c065c4a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Doru Chiulan

unread,
Dec 3, 2014, 6:47:00 PM12/3/14
to mobile-c...@googlegroups.com
Thanks a lot, meanwhile I also found about JavaContext after I had an idea to look in testcases and see how the tests were implemented. I saw that there was a custom context implementation and then I searched if there is any default implementation of Context, and there it was JavaContext.

Thank you a lot again anyway!
Reply all
Reply to author
Forward
0 new messages