Fixed
Status Update
Comments
mg...@google.com <mg...@google.com>
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit 20112348e9cf68cf81ae9b54fb3c0b18150edb71
Author: Marcello Galhardo <mgalhardo@google.com>
Date: Fri May 10 11:10:17 2024
Move `compose-ui` to `androidMain` in `viewmodel-compose`
Test: N/A
Fixes: 339562627
Change-Id: Ia3b0638b3f4b61ba760d3c10337275a255d898e8
M lifecycle/lifecycle-viewmodel-compose/build.gradle
https://android-review.googlesource.com/3079334
Branch: androidx-main
commit 20112348e9cf68cf81ae9b54fb3c0b18150edb71
Author: Marcello Galhardo <mgalhardo@google.com>
Date: Fri May 10 11:10:17 2024
Move `compose-ui` to `androidMain` in `viewmodel-compose`
Test: N/A
Fixes: 339562627
Change-Id: Ia3b0638b3f4b61ba760d3c10337275a255d898e8
M lifecycle/lifecycle-viewmodel-compose/build.gradle
na...@google.com <na...@google.com> #3
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.lifecycle:lifecycle-viewmodel-compose:2.8.1
androidx.lifecycle:lifecycle-viewmodel-compose-android:2.8.1
androidx.lifecycle:lifecycle-viewmodel-compose-desktop:2.8.1
pr...@google.com <pr...@google.com> #4
The following release(s) address this bug.It is possible this bug has only been partially addressed:
androidx.lifecycle:lifecycle-viewmodel-compose:2.9.0-alpha01
androidx.lifecycle:lifecycle-viewmodel-compose-android:2.9.0-alpha01
androidx.lifecycle:lifecycle-viewmodel-compose-desktop:2.9.0-alpha01
Description
Currently
lifecycle-viewmodel-compose
are depending oncompose-ui
incommonMain
. The dependency is only used inandroidMain
.This dependency brings alot of code for projects aiming to use Compose Runtime only, for example Redwood. At Voyager the Core and Navigator modules only depend on Compose Runtime, by adding the support for ViewModel to KMP projects with Voyager would bring the hole
compose-ui
.The solution here is just move the
compose-ui
dependency toandroidMain
.