You should move to the master branch where it has an com.couchbase.lite.android.AndroidContext defined.
See https://github.com/couchbase/couchbase-lite-java-core/issues/148#issuecomment-39996005 On Wed, Apr 9, 2014 at 5:33 AM, Shantanu <[email protected]>wrote: > I have found some sample for implementing LiteListener > here<https://github.com/couchbase/couchbase-lite-android-liteserv/blob/master/couchbase-lite-android-liteserv/src/main/java/com/couchbase/liteservandroid/MainActivity.java> > > but i am not able to import com.couchbase.lite.android.AndroidContext, > this class is missing from jar. > i am using CBLite-1.0.0-beta2.jar in my application. > > somebody please help. > > > On Wednesday, April 9, 2014 5:56:16 PM UTC+5:30, Shantanu wrote: >> >> >> >> On Tuesday, April 8, 2014 10:19:26 PM UTC+5:30, Shantanu wrote: >>> >>> @Traun : Thank you very much >>> >>> These are the exact things i was looking for. >>> >>> I am actually trying to build a simple application where the changes >>> made in TouchDB of one device will be updated in other and vice versa. >>> >>> Could you please do me a favour, point me to some references or code >>> snippets that will be useful in above task. that is, examples on how to use >>> LiteListener >>> >>> >>> On Tuesday, April 8, 2014 1:54:22 AM UTC+5:30, Traun Leyden wrote: >>>> >>>> Thanks for posting this Yaron. >>>> >>>> @Shantanu - as far as getting jars to use in Eclipse, we currently >>>> distribute jars for the beta2 version of Couchbase Lite >>>> here<http://www.couchbase.com/dl/releases/couchbase-lite/android/1.0-beta/couchbase-lite-community-android_1.0-beta2.zip/download> >>>> . >>>> >>>> We also have a more recent build of the zipfile from the master branch >>>> available >>>> here<http://factory.couchbase.com/view/build/view/mobile_dev/view/android/job/build_cblite_android_master/202/artifact/cblite_android_0.0.0-202.zip>, >>>> and soon will have up-to-the-minute builds from our Jenkins CI server. >>>> >>>> If needed I can manually build a snapshot zipfile and upload it for you. >>>> >>>> >>>> >>>> >>>> On Sat, Apr 5, 2014 at 1:56 PM, Yaron Goland <[email protected]>wrote: >>>> >>>>> *tl;dr - See >>>>> **here*<https://thali.codeplex.com/SourceControl/latest#Production/Utilities/UniversalUtilities/src/main/java/com/msopentech/thali/CouchDBListener/ThaliListener.java>* >>>>> for inspiration.* >>>>> >>>>> *Long Winded Version* - >>>>> >>>>> https://thali.codeplex.com is my day job and it's all about building >>>>> a P2P infrastructure on top of Couchbase-Lite. >>>>> Here<https://thali.codeplex.com/SourceControl/latest#Production/Utilities/UniversalUtilities/src/main/java/com/msopentech/thali/CouchDBListener/ThaliListener.java>is >>>>> the file that implements our core listener. >>>>> >>>>> So that's the good news. >>>>> >>>>> The bad news is that we aren't using standard CouchBase Lite. We need >>>>> a bunch of extra features that aren't in Couchbase Lite to make our P2P >>>>> environment work correctly. So if you look >>>>> here<https://github.com/yaronyg?tab=repositories>you will see we've >>>>> forked all of CouchBase's depots and built our own >>>>> custom versions. We've filed all our features/bug fixes with CouchBase but >>>>> they are really busy getting out V1 and haven't had time to deal with >>>>> them. >>>>> >>>>> So unfortunately the code in the previous link is using a bunch of >>>>> features we introduced that aren't in mainline CouchBase lite. So that >>>>> link >>>>> may not be the best example if you are just looking for generic CouchBase. >>>>> Sorry. :( >>>>> >>>>> If you are interested in what features we added and why see our >>>>> architecture overview available >>>>> here<http://thali.cloudapp.net/mediawiki/index.php?title=Thali_and_Couch> >>>>> . >>>>> >>>>> I realize this is a ton of data to drop on your head and certainly not >>>>> a quickly friendly - here you go. Hopefully your P2P needs are more modest >>>>> than ours and you won't need all this. But if you do, at least you know >>>>> it's there and can look at it, or better yet, use it! It's all licensed >>>>> under Apache 2.0. >>>>> >>>>> I'd love to know what you're up to with P2P and CouchBase-Lite. Would >>>>> you care to share more about what you are up to? >>>>> >>>>> Thanks, >>>>> >>>>> Yaron >>>>> >>>>> ------------------------------ >>>>> *From:* [email protected] <[email protected]> >>>>> on behalf of Shantanu <[email protected]> >>>>> *Sent:* Saturday, April 05, 2014 2:14 AM >>>>> *To:* [email protected] >>>>> *Subject:* JAR containing cblite-listener >>>>> >>>>> Hi, >>>>> >>>>> Recently, I have developed an Android App in Eclipse using >>>>> couchbase-lite. Client-Server replication is working fine. >>>>> But I need a peer-to-peer functionality in this app. >>>>> >>>>> can somebody point me to right direction. I require the JAR that >>>>> implements CBLListener method. >>>>> >>>>> Thanks in Advance >>>>> >>>>> >>>>> -- >>>>> 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 [email protected]. >>>>> To view this discussion on the web visit https://groups.google.com/d/ >>>>> msgid/mobile-couchbase/dced6813-aa57-4e67-9bb7- >>>>> ca79b063bfe9%40googlegroups.com<https://groups.google.com/d/msgid/mobile-couchbase/dced6813-aa57-4e67-9bb7-ca79b063bfe9%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>>> -- >>>>> 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 [email protected]. >>>>> To view this discussion on the web visit https://groups.google.com/d/ >>>>> msgid/mobile-couchbase/759234afc19345bea842942dcda684 >>>>> d8%40SN2PR03MB016.namprd03.prod.outlook.com<https://groups.google.com/d/msgid/mobile-couchbase/759234afc19345bea842942dcda684d8%40SN2PR03MB016.namprd03.prod.outlook.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> >>>> -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/mobile-couchbase/634b3015-c7da-4a5c-a39c-f34445be5e99%40googlegroups.com<https://groups.google.com/d/msgid/mobile-couchbase/634b3015-c7da-4a5c-a39c-f34445be5e99%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/CACSSHCFXgsoz7aCy1JwCHkESp5R7fH_H7BnuoAWjT_b76GV%2Big%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
