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

Question: Can we access this library in swift side? #214

Closed
nis-ship-it opened this issue Nov 16, 2024 · 2 comments
Closed

Question: Can we access this library in swift side? #214

nis-ship-it opened this issue Nov 16, 2024 · 2 comments

Comments

@nis-ship-it
Copy link

At the moment, I'm working on integrating this library in kmp project and it's working great on android side with no args module. The instance is created directly in koin under the common folder however issue is that I'm not able to access "Setting" dataType in swift code.

Koin is already working in ios side so no issues with that but it can find the settings definition or data type.

Do you know anything on this? Would I have to use datastore for this section?

@russhwolf
Copy link
Owner

Yes, it's possible. Generally, dependencies only export from a Kotlin framework if they leak into the public API. For example, you might have a public function that includes a Koin type in its signature, but not one that includes a Multiplatform Settings type. So you can add such a function, or you can export the whole library as described here

@russhwolf
Copy link
Owner

Are you still having trouble here? If not, I'm inclined to close this issue.

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

No branches or pull requests

2 participants