Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c6e44c0e authored by Tsung-Mao Fang's avatar Tsung-Mao Fang
Browse files

Import the window extension libary in the Settings app

Test: Rebuilt apk and run apk successfully.
Fix: 196939216
Change-Id: If9040ae9a1c72097e4964c8d40ea9785cf2f01dc
Merged-In: If9040ae9a1c72097e4964c8d40ea9785cf2f01dc
parent c63c0d43
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -73,6 +73,7 @@ android_library {
        "android.hardware.dumpstate-V1.0-java",
        "android.hardware.dumpstate-V1.1-java",
        "lottie",
        "windowExtLib",
    ],

    libs: [
@@ -101,6 +102,10 @@ android_app {
    ],
    static_libs: ["Settings-core"],
    uses_libs: ["org.apache.http.legacy"],
    optional_uses_libs: [
        "androidx.window.extensions",
        "androidx.window.sidecar",
    ],
    resource_dirs: [],
    optimize: {
        proguard_flags_files: ["proguard.flags"],
@@ -112,6 +117,11 @@ android_library_import {
    aars: ["libs/contextualcards.aar"],
}

android_library_import {
    name: "windowExtLib",
    aars: ["libs/window_ext_lib.aar"],
}

filegroup {
    name: "Settings_proguard_flags",
    srcs: ["proguard.flags"],
+4 −1
Original line number Diff line number Diff line
@@ -121,6 +121,9 @@
            android:appComponentFactory="androidx.core.app.CoreComponentFactory">

        <uses-library android:name="org.apache.http.legacy"/>
        <uses-library android:name="androidx.window.extensions" android:required="false"/>
        <uses-library android:name="androidx.window.sidecar" android:required="false"/>

        <!-- Settings -->

        <activity android:name=".homepage.SettingsHomepageActivity"
+159 KiB

File added.

No diff preview for this file type.

+4 −0
Original line number Diff line number Diff line
@@ -66,3 +66,7 @@
-keepclasseswithmembers class * extends com.android.settings.slices.SliceBackgroundWorker {
    public <init>(android.content.Context, android.net.Uri);
}

# Keep WM Jetpack classes and callbacks
-keep class androidx.window.** { *; }
-dontwarn androidx.window.extensions.**