Couchbase Lite Android 2.6

13 views
Skip to first unread message

Blake Meike

unread,
Jun 26, 2019, 5:00:43 PM6/26/19
to Couchbase Mobile
If you are building Couchbase Lite from source, you are getting a preview of the 2.6 version.  There are a couple of things that you will have to do, in your code, to use it.

  1. You *must* call CouchbaseLite.init(ApplicationContext) before you use any other Couchbase classes.  Unless you do this, your app will crash.
  2. DatabaseConfiguration no longer takes a context as an argument.
  3. Your application must support Java 8.  Your gradle build should contain a clause like this, inside the android block
    compileOptions {
        targetCompatibility 1.8
        sourceCompatibility 1.8
    }

Cheers!
  -blake
Reply all
Reply to author
Forward
0 new messages