diff --git a/SystemUIShared/build.gradle b/SystemUIShared/build.gradle index 342da95438..4af9a21c9f 100644 --- a/SystemUIShared/build.gradle +++ b/SystemUIShared/build.gradle @@ -42,8 +42,11 @@ android { } dependencies { - compileOnly fileTree(dir: new File(rootProject.projectDir, 'prebuilts/libs'), include: 'wm_shell-aidls.jar') + compileOnly fileTree(dir: new File(rootProject.projectDir, 'prebuilts/libs'), include: 'WindowManager-Shell.jar') implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" + implementation "androidx.concurrent:concurrent-futures:1.1.0" + implementation "androidx.lifecycle:lifecycle-common-java8:2.4.1" + implementation "androidx.dynamicanimation:dynamicanimation:1.0.0" implementation project(':CompatLib') implementation project(':CompatLibVR') implementation project(':CompatLibVS') diff --git a/SystemUIShared/src/com/android/systemui/shared/plugins/PluginManagerImpl.java b/SystemUIShared/src/com/android/systemui/shared/plugins/PluginManagerImpl.java index 06506ffdbf..a0f111c9c9 100644 --- a/SystemUIShared/src/com/android/systemui/shared/plugins/PluginManagerImpl.java +++ b/SystemUIShared/src/com/android/systemui/shared/plugins/PluginManagerImpl.java @@ -76,7 +76,7 @@ public class PluginManagerImpl extends BroadcastReceiver implements PluginManage PluginExceptionHandler uncaughtExceptionHandler = new PluginExceptionHandler( defaultHandlerOptional); - invoke(sSetUncaughtExceptionPreHandler, uncaughtExceptionHandler); + invoke(sSetUncaughtExceptionPreHandler, null, uncaughtExceptionHandler); } public boolean isDebuggable() { diff --git a/build.gradle b/build.gradle index 22cb59b426..35d0612e35 100644 --- a/build.gradle +++ b/build.gradle @@ -42,6 +42,18 @@ allprojects { tasks.withType(JavaCompile) { options.bootstrapClasspath = files([frameworkJar] + (options.bootstrapClasspath.files as Iterable)) } + tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile) { + def originalFiles = [] + it.classpath.files + def newFiles = [] + originalFiles.each { file -> + if (file.path.endsWith('android.jar')) { + newFiles.add(frameworkJar) + } else { + newFiles.add(file) + } + } + it.classpath.setFrom(files(newFiles)) + } tasks.withType(org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask) { it.classpath.from(files([frameworkJar] + (it.classpath.files as Iterable))) } @@ -293,7 +305,7 @@ dependencies { // Recents lib dependency withQuickstepImplementation project(':SystemUIShared') - implementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/libs", include: 'wm_shell-aidls.jar') + implementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/libs", include: 'WindowManager-Shell.jar') // Required for AOSP to compile. This is already included in the sysui_shared.jar withoutQuickstepImplementation fileTree(dir: "${FRAMEWORK_PREBUILTS_DIR}/libs", include: 'plugin_core.jar') @@ -314,12 +326,12 @@ dependencies { implementation "androidx.compose.foundation:foundation:$compose_version" implementation "androidx.compose.material:material:$compose_version" implementation "androidx.compose.material3:material3:1.0.0-alpha06" - implementation "androidx.constraintlayout:constraintlayout:2.1.3" - implementation 'androidx.activity:activity-compose:1.4.0' - implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.4.1' implementation "androidx.compose.runtime:runtime-livedata:$compose_version" implementation "androidx.compose.runtime:runtime-rxjava2:$compose_version" implementation "androidx.compose.compiler:compiler:$compose_version" + implementation "androidx.constraintlayout:constraintlayout:2.1.3" + implementation 'androidx.activity:activity-compose:1.4.0' + implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.4.1' implementation "androidx.navigation:navigation-compose:2.4.1" implementation "androidx.palette:palette-ktx:${ANDROID_X_VERSION}" implementation "androidx.slice:slice-core:1.1.0-alpha02" @@ -331,6 +343,7 @@ dependencies { implementation "com.google.accompanist:accompanist-pager:$accompanist_version" implementation "com.google.accompanist:accompanist-placeholder-material:$accompanist_version" implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version" + implementation 'com.google.android.material:material:1.6.0' implementation "com.github.devsideal:VectorChildFinder:1.0.0" implementation "com.github.fornewid:material-motion-compose:0.8.0-beta01" implementation 'dev.kdrag0n:colorkt:1.0.3' diff --git a/lawnchair/res/layout/overview_actions_container.xml b/lawnchair/res/layout/overview_actions_container.xml index e43850d50a..42c5f07bfb 100644 --- a/lawnchair/res/layout/overview_actions_container.xml +++ b/lawnchair/res/layout/overview_actions_container.xml @@ -60,6 +60,21 @@ android:layout_height="1dp" android:layout_weight="1" /> +