Skip to content

Conversation

@CrownedPhoenix
Copy link

This enables downstream consumers to define how certain types should be mapped to those that are supported by the PowerSync Kotlin Multiplatform SDK.

This enables downstream consumers to define how certain types should be mapped to those that are supported by the PowerSync Kotlin Multiplatform SDK.
Comment on lines +5 to +12
public enum PowerSyncDataType {
case bool(Bool)
case string(String)
case int64(Int64)
case int32(Int32)
case double(Double)
case data(Data)
}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If there is a way to rework this such that the Swift SDK doesn't have to be amended each time support for a new type is added to the Kotlin SDK that would be ideal.

So far as I can figure it would require a mapping function defined by the consumer/user to be passed across the Kotlin SKIE boundary. I'm not familiar enough with Kotlin SKIE to know what that would entail off the top of my head.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant