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

Commit 99d50271 authored by Hawkwood Glazier's avatar Hawkwood Glazier Committed by Automerger Merge Worker
Browse files

Merge "Do not proguard com.android.systemui.log" into udc-dev am: 2e2e1ca6 am: a69af0ec

parents b4c80d56 a69af0ec
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -34,6 +34,8 @@ java_library {

    // If you add a static lib here, you may need to also add the package to the ClassLoaderFilter
    // in PluginInstance. That will ensure that loaded plugins have access to the related classes.
    // You should also add it to proguard_common.flags so that proguard does not remove the portions
    // of the library which are used by the plugins but not by systemui itself.
    static_libs: [
        "androidx.annotation_annotation",
        "PluginCoreLib",
+7 −1
Original line number Diff line number Diff line
@@ -62,11 +62,17 @@
-keep class ** extends androidx.preference.PreferenceFragment
-keep class com.android.systemui.tuner.*

# The plugins subpackage acts as a shared library that might be referenced in
# The plugins, log & common subpackages act as shared libraries that might be referenced in
# dynamically-loaded plugin APKs.
-keep class com.android.systemui.plugins.** {
    *;
}
-keep class com.android.systemui.log.** {
    *;
}
-keep class com.android.systemui.common.** {
    *;
}
-keep class com.android.systemui.fragments.FragmentService$FragmentCreator {
    *;
}
+4 −1
Original line number Diff line number Diff line
@@ -230,7 +230,10 @@ public class PluginInstance<T extends Plugin> implements PluginLifecycleManager

        private ClassLoader getParentClassLoader(ClassLoader baseClassLoader) {
            return new PluginManagerImpl.ClassLoaderFilter(
                    baseClassLoader, "com.android.systemui.log", "com.android.systemui.plugin");
                    baseClassLoader,
                    "com.android.systemui.common",
                    "com.android.systemui.log",
                    "com.android.systemui.plugin");
        }

        /** Returns class loader specific for the given plugin. */