Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ByteString exposed to Objective-C / Swift cannot see NSData helper #1113

Closed
JakeWharton opened this issue Apr 20, 2022 · 0 comments · Fixed by #1131
Closed

ByteString exposed to Objective-C / Swift cannot see NSData helper #1113

JakeWharton opened this issue Apr 20, 2022 · 0 comments · Fixed by #1131

Comments

@JakeWharton
Copy link
Collaborator

The Kotlin/Native Objective-C headers only expose things transitively referenced from APIs which are public in the module producing the XCFramework. The ByteStringKt class which only exists for darwin platforms to hold the NSData extension therefore does not get exposed, and cannot even be explicitly exposed since Kotlin won't let you reference that implicit enclosing type.

It would be nice if these platform-specific conversion functions existed on the companion object so that if ByteString is exposed all of the niceties to create one for your platform are available. Doing so requires more granular actual's which just adds to the existing pain for lack of https://youtrack.jetbrains.com/issue/KT-20427/.

Still probably worth doing.

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 a pull request may close this issue.

1 participant