https://kotlinlang.org logo
#compose
Title
# compose
z

ziv kesten

11/06/2020, 8:44 AM
Trying to explore compose desktop, separating my android dependencies, dagger would probably work since it's decoupled from android but what about networking? Is retrofit android dependant?
a

alorma

11/06/2020, 8:45 AM
no
z

ziv kesten

11/06/2020, 8:45 AM
Tnx 😁
a

alorma

11/06/2020, 8:45 AM
AFAIK 😅
g

gildor

11/06/2020, 8:59 AM
yes, it’s correct, retrofit is not Android library, it’s jvm lib
l

len

11/06/2020, 9:33 AM
I'd like to see Room on desktop 👀
g

gildor

11/06/2020, 9:34 AM
I would just use SqlDelight. but not an option for existing project of course
💯 1
l

len

11/06/2020, 9:39 AM
Yep. I like how Room works (and already a dependency on my Android project), but I don't think they're going to MPP it
g

gildor

11/06/2020, 9:40 AM
Room doesn’t require MPP, it just should be converted to Java library, it a lot easier than real MPP But hard to say how tangled it with Android Gradle Plugin and Android Framework
l

len

11/06/2020, 9:42 AM
I was thinking more of a HMPP project with a commonJava module (but this is not supported yet)
That's how I want to run my app: on desktop with JVM and Android.
g

gildor

11/06/2020, 9:49 AM
but it will not work with Room anyway, isn’t it?
l

len

11/06/2020, 9:54 AM
Not at the current state 🙂. HMPP would be better than a pure JVM module in order to keep binary compatibility with the current versions (you get to support android's Cursor). But anyways, I think I'll have to use another DB for desktop (or migrate to SqlDelight) when the time comes
4 Views