When updating `androidx.compose` artifacts, do we ...
# compose
t
When updating
androidx.compose
artifacts, do we also need to update
androidx.activity:activity-compose
? (i.e. looking to update compose to
1.2.0-alpha08
)
c
I don't believe so. I think they are separate things, and I think if you try to update activity to latest it forces you onto tiramisu. So far I've held activity-compose back, while keeping all other compose artifacts on latest, but I think Ian will be best to add his input here.
t
and I think if you try to update activity to latest it forces you onto tiramisu
๐Ÿ˜† this exactly Yeah, so far done the same. Looking at this change as well [All] Update to Compose 1.2.0-alpha08 looks like
androidx.activity:activity-compose
was left at
1.4.0
๐Ÿ‘ 1
c
FWIW I wouldve moved us onto tiramisu actually, but once we started using it we saw that you couldn't install the app on android 12 devices or 12L devices. so something is broken with AGP or something. but yeah. i upgraded. then some people coudln't install app. so i downgraded. no issues now.
t
Oh thats good to know, do you recall which version you upgraded to?
c
which version of activity-compose? It was whatever the latest was as of last week. We pretty much stay on bleeding edge constantly. so like every two weeks we run the upgrade versions plugin and just update everything
๐Ÿ‘๐Ÿผ 1
i
You'll want Activity Compose 1.5.0-beta01 as the latest version unless you are specifically using the Android T Dev Preview builds as per the Activity 1.6 release notes
โค๏ธ 2
t
Thanks Ian. Just to confirm, if NOT using Android T Dev Preview builds, would it be necessary then to upgrade
Activity Compose (1.4.0)
to
1.5.0-beta01
when upgrading
androidx.compose
to
1.2.0-alpha08
?
i
Necessary? No, you can safely use Activity 1.3, 1.4, or any 1.5 build with any build of Compose 1.0.0 or higher (Activity only depends on public Compose APIs, so they're all compatible)
๐Ÿ™ 1
๐Ÿ™๐Ÿผ 1
There have been quite a few updates in the Lifecycle ViewModel Compose 2.5.0-beta01 build which you'd want to use alongside Activity 1.5.0-beta01 if you weren't in the Hilt world and were creating your own ViewModel Factories
๐Ÿ™ 1
๐Ÿ™๐Ÿผ 1
t
Sounds good, thank you!