Assigned
Status Update
Comments
da...@google.com <da...@google.com> #2
there are some image for help
ch...@gmail.com <ch...@gmail.com> #3
hello?
da...@google.com <da...@google.com> #4
Oh, I didn't realize you could still add room-ktx
to as a common dep to a KMP project. I would have thought because the packing is an aar
it would fail.
Maybe there is some additional constraint / metadata we can add to prevent this. I'll look around...
Description
Component used: room-ktx
Version used: 2.7.0-alpha12
Devices/Android versions reproduced on: N/A
Now that
room-ktx
is merged intoroom-runtime
for KMP support, can theroom-ktx
artifact be deleted/deprecated/aliased toroom-runtime
?Unfortunatelyhttps://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:room/room-ktx/build.gradle;l=36;drc=7795282b4d5dff56d63c51b500d40d95bec8a8f1
room-ktx
imports an Android specific dependency,kotlinx-coroutines-android
:This causes it to fail when launching a non-Android KMP app, as it tries to access the
android.os.Looper
to initialize the mainDispatcher
.There's no actual code left, so this only serves to throw a bizarre error and confuse anyone who defaults to importing the -ktx artifacts.