https://kotlinlang.org logo
Title
a

Alexander Suraphel

12/30/2021, 3:21 PM
do i need the
androidx.activity:activity-compose
dependency if I have one activity application? What is the dependency for?
d

Desmond Teo

12/30/2021, 3:22 PM
you’ll need it to set composable content for the activity
a

Alexander Suraphel

12/30/2021, 3:23 PM
What if I am only setting composable content only inside a fragment? @Desmond Teo
d

Desmond Teo

12/30/2021, 3:26 PM
it also provides features like handling back press in compose with
BackHandler
for example, so i think it depends on your needs
a

Alexander Suraphel

12/30/2021, 3:27 PM
Okay thanks. will look into it
c

Colton Idle

12/30/2021, 4:36 PM
You could just remove the dep and see if everything still compiles fine? 😄
👌 1
a

Alexander Suraphel

12/30/2021, 5:11 PM
One way to find out where it’s actually used ;)