Skip to content

Kotlinx DateTime - Supabase incompatibility #233

@Maartens-Mathew

Description

@Maartens-Mathew

Platform:
Android

So recently, there have been some changes to Kotlinx.DateTime. I'm aware of in the past month or so, some code has moved from the Kotlinx.DateTime to Kotlin.Time . Which code specifically, I don't know.

Issue Encountered:
The Powersync SDK appears to try to access a Kotlinx.DateTime static function that does not exist:

Image

I have the following gradle dependency versions:

Gradle Dependencies:

  • Powersync Core and Supabase Connector : 1.3.0
  • Supabase BOM : 3.2.0
  • KotlinX Serialization : 2.2.0
  • Kotlin : 2.2.0
  • Ktor : 3.2.3

When I have the above dependencies, then the android app runs successfully (no crashes). However, as soon as I change the Supabase BOM to 3.2.1, it gives the above error. Now, I previously thought that the fault could be their library, but in the error message, it appears that the error originates from a bunch of Powersync files.

Also note that from Supabase BOM 3.2.1 onwards, they upgraded their Kotlinx.DateTime dependency to 0.7.1, which was when there were changes to the whole DateTime. It appears that the Powersync SDK is trying to access a Kotlinx.DateTime method, but the method no longer exists.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions