AOSP System Apps with Jetpack Compose

280 Views Asked by At

Does AOSP support Jetpack Compose for System Applications?

If so what changes have to be done in Android.bp file?

1

There are 1 best solutions below

0
Miruna Radu On

Yes, it does. You can check the SystemUI code here and here.

The main dependencies that you'll need to add to your .bp file are:

 android_library/android_app {

     .........
     static_libs: [
        "PlatformComposeCore",
        "androidx.compose.runtime_runtime",
        "androidx.compose.material3_material3",
        "androidx.activity_activity-compose",
     ]
}