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

Tash

04/27/2022, 12:52 AM
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

Colton Idle

04/27/2022, 12:59 AM
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

Tash

04/27/2022, 1:02 AM
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

Colton Idle

04/27/2022, 1:04 AM
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

Tash

04/27/2022, 1:05 AM
Oh thats good to know, do you recall which version you upgraded to?
c

Colton Idle

04/27/2022, 1:06 AM
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

Ian Lake

04/27/2022, 1:10 AM
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

Tash

04/27/2022, 2:26 AM
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

Ian Lake

04/27/2022, 2:31 AM
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

Tash

04/27/2022, 12:00 PM
Sounds good, thank you!