Import the window extension libary in the Settings app
Test: Rebuilt apk and run apk successfully. Bug: 196939216 Change-Id: If9040ae9a1c72097e4964c8d40ea9785cf2f01dc
This commit is contained in:
10
Android.bp
10
Android.bp
@@ -74,6 +74,7 @@ android_library {
|
|||||||
"android.hardware.dumpstate-V1.1-java",
|
"android.hardware.dumpstate-V1.1-java",
|
||||||
"lottie",
|
"lottie",
|
||||||
"WifiTrackerLib",
|
"WifiTrackerLib",
|
||||||
|
"windowExtLib",
|
||||||
],
|
],
|
||||||
|
|
||||||
libs: [
|
libs: [
|
||||||
@@ -102,6 +103,10 @@ android_app {
|
|||||||
],
|
],
|
||||||
static_libs: ["Settings-core"],
|
static_libs: ["Settings-core"],
|
||||||
uses_libs: ["org.apache.http.legacy"],
|
uses_libs: ["org.apache.http.legacy"],
|
||||||
|
optional_uses_libs: [
|
||||||
|
"androidx.window.extensions",
|
||||||
|
"androidx.window.sidecar",
|
||||||
|
],
|
||||||
resource_dirs: [],
|
resource_dirs: [],
|
||||||
optimize: {
|
optimize: {
|
||||||
proguard_flags_files: ["proguard.flags"],
|
proguard_flags_files: ["proguard.flags"],
|
||||||
@@ -113,6 +118,11 @@ android_library_import {
|
|||||||
aars: ["libs/contextualcards.aar"],
|
aars: ["libs/contextualcards.aar"],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
android_library_import {
|
||||||
|
name: "windowExtLib",
|
||||||
|
aars: ["libs/window_ext_lib.aar"],
|
||||||
|
}
|
||||||
|
|
||||||
filegroup {
|
filegroup {
|
||||||
name: "Settings_proguard_flags",
|
name: "Settings_proguard_flags",
|
||||||
srcs: ["proguard.flags"],
|
srcs: ["proguard.flags"],
|
||||||
|
@@ -122,6 +122,7 @@
|
|||||||
android:appComponentFactory="androidx.core.app.CoreComponentFactory">
|
android:appComponentFactory="androidx.core.app.CoreComponentFactory">
|
||||||
|
|
||||||
<uses-library android:name="org.apache.http.legacy" />
|
<uses-library android:name="org.apache.http.legacy" />
|
||||||
|
|
||||||
<!-- Settings -->
|
<!-- Settings -->
|
||||||
|
|
||||||
<activity android:name=".homepage.SettingsHomepageActivity"
|
<activity android:name=".homepage.SettingsHomepageActivity"
|
||||||
|
BIN
libs/window_ext_lib.aar
Normal file
BIN
libs/window_ext_lib.aar
Normal file
Binary file not shown.
@@ -66,3 +66,8 @@
|
|||||||
-keepclasseswithmembers class * extends com.android.settings.slices.SliceBackgroundWorker {
|
-keepclasseswithmembers class * extends com.android.settings.slices.SliceBackgroundWorker {
|
||||||
public <init>(android.content.Context, android.net.Uri);
|
public <init>(android.content.Context, android.net.Uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Keep WM Jetpack classes and callbacks
|
||||||
|
-keep class androidx.window.extensions.** { *; }
|
||||||
|
-dontwarn androidx.window.extensions.**
|
||||||
|
-keep class androidx.window.** { *; }
|
||||||
|
Reference in New Issue
Block a user