Skip to content

Convex for Android 0.6.1

Choose a tag to compare

@dowski dowski released this 21 Nov 01:44
· 2 commits to main since this release

This is a minor feature and bug fix release of Convex for Android. It includes the following:

  • A dependency on an updated version of convex-rs with a fix for a deadlock
  • initConvexLogging() API for outputting ConvexClient events in logcat

Available on Maven Central: https://central.sonatype.com/artifact/dev.convex/android-convexmobile/0.6.1

Include in your Gradle project dependencies with:

    implementation("dev.convex:android-convexmobile:0.6.1@aar") {
        isTransitive = true
    }

Prior to this version, applications receiving rapid query updates while sending outgoing requests could experience the ConvexClient becoming unresponsive.

The logging API is meant to be called when your application launches. It's useful during development for inspecting the state of the ConvexClient while your application is running. Here's a simple example:

package com.example.myapp

import android.app.Application
import dev.convex.android.ConvexClient
import dev.convex.android.initConvexLogging
import com.example.myapp.MyRepository

class WorkoutApplication : Application() {
    lateinit var repository: MyRepository

    override fun onCreate() {
        super.onCreate()
        // Call once at startup to initialize logging.
        initConvexLogging()
        repository = MyRepository(
            convex = ConvexClient(getString(R.string.convex_url))
        )
    }
}