Uploaded image for project: 'Realm Kotlin'
  1. Realm Kotlin
  2. RKOTLIN-383

Custom type adapters

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Local

      See this Java issue for broader context: https://github.com/realm/realm-java/issues/1694

      Given that KMP has no default types for UUID and Dates, type adapters are probably required from the start for Kotlin.

      This will allow people to bring their own libraries to work with UUID and Dates as long as they create a type adapter for those types. We should probably ship adapters for the common libraries: https://github.com/Kotlin/kotlinx-datetime and https://github.com/benasher44/uuid.

      Note, the Java issue has pretty ambitious. We can probably cut scope for an initial implementation that only does "single property -> single core property"

      API needs to be determined.

            Assignee:
            Unassigned Unassigned
            Reporter:
            christian.melchior@mongodb.com Christian Melchior (Inactive)
            AD SDK Team 2
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: