https://kotlinlang.org logo
Title
s

Suser

01/19/2021, 8:00 AM
Have there been any changes or considerations when adding a dependency to a compose-desktop app? i'm trying to add the dependency
implementation("dev.chrisbanes.accompanist:accompanist-coil:0.4.2")
from the mavenCentral() repository. I can see that this file is there on maven central but i get:
CCould not resolve dev.chrisbanes.accompanist:accompanist-coil:0.4.2.
Required by:
    project :

Possible solution:
 - Declare repository providing the artifact
maybe it's my intellij? I can't seem to resolve any dependencies...
s

stumi

01/19/2021, 9:11 AM
Edit: the coil dependency only accessible for android projects
s

Suser

01/19/2021, 9:42 AM
thanks @stumi. that's what i've also concluded. i'm not really sure how to find compatible dependencies. If i want to add features am i limited to kotlin native? i assume the actual problem is using libraries that have android dependencies.
s

stumi

01/19/2021, 9:50 AM
well for compose desktop you are basically creating a JVM project so every dependency which has a JVM target should work (there are plenty of those) I usually check the https://github.com/AAkira/Kotlin-Multiplatform-Libraries libs first because my targets are mobile + desktop at this moment so i need plenty of support 😄 but if you are only working with dektop app you are in a better place.
🙌 1
s

Suser

01/19/2021, 9:59 AM
brilliant, thanks.