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

Koin Annotations is not supported for Compose Multiplatform? #1979

Open
ubarua123 opened this issue Sep 16, 2024 · 3 comments
Open

Koin Annotations is not supported for Compose Multiplatform? #1979

ubarua123 opened this issue Sep 16, 2024 · 3 comments

Comments

@ubarua123
Copy link

ubarua123 commented Sep 16, 2024

Describe the bug

Could not resolve io.insert-koin:koin-ksp-compiler:1.4.0-RC4

No matching variant of io.insert-koin:koin-ksp-compiler:1.4.0-RC4 was found. The consumer was configured to find a
 library for use during 'kotlin-metadata', preferably optimized for non-jvm, 
as well as attribute 'org.jetbrains.kotlin.native.target' with value 'ios_arm64', attribute 'org.jetbrains.kotlin.platform.type' with value 'native' but:

To Reproduce
Steps to reproduce the behavior:

Add ksp dependancies

koin-annotations = { module = "io.insert-koin:koin-annotations", version.ref = "koin-ksp" }
koin-ksp-compiler = {module = "io.insert-koin:koin-ksp-compiler", version.ref = "koin-ksp"}

koin-ksp = "1.4.0-RC4"

Tried with 1.3.1. Still the same.

Expected behavior
Gradle build should succeed

Koin module and version:
[e.g]: `io.insert-koin:koin-annotations= "1.4.0-RC4"

@ubarua123 ubarua123 changed the title Koin Annotations Doesn't support Compose Multiplatform? Koin Annotations is not supported for Compose Multiplatform? Sep 16, 2024
@muazkadan
Copy link

I've used Koin Annotations in a Kotlin Multiplatform Project (Android & iOS) before and it worked great
Check the repository here if you want: KMP News App

@ubarua123
Copy link
Author

This is not a simple Kmm project. It's Compose Multiplatform. The project structure is different.

@muazkadan
Copy link

Here's a Koin Annotations Sample in Compose Multiplatform supporting Android, iOS, Desktop and Wasm

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