Is there any reason to be using `androidx.appcompa...
# compose-android
c
Is there any reason to be using
androidx.appcompat:appcompat
dependency these days? Seems like in a "modern" android compose app we don't need it? Bonus points is if the suggestion against it is documented somewhere so I can show my team.
you might end up still needing FragmentActivity (a subtype of AppCompatActivity) instead of being able to drop everything above ComponentActivity if you use third-party libraries like Google Cast though
c
amazing. thank you! the only thing I could find was the fact that appcompat seems to have a proper light/dark day/night theme that i could use in the root of my project. but id like to get rid of it since i think it basically has no place in modern app dev.
a
The main reasons I know of where you still would need to extend from
AppCompatActivity
directly (not related to fragments) is if you’re using the backported features for light-mode/dark-mode or per-app locales: https://developer.android.com/guide/topics/resources/app-languages#androidx-impl
c
Thank you! thats also really helpful! i wonder if those features would be broken out of app compat at some point in the future, but i guess theres probably like a million other more important things.
đź«  1