Merge "Do not proguard com.android.systemui.log" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2e2e1ca600
@@ -34,6 +34,8 @@ java_library {
|
|||||||
|
|
||||||
// If you add a static lib here, you may need to also add the package to the ClassLoaderFilter
|
// 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.
|
// 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: [
|
static_libs: [
|
||||||
"androidx.annotation_annotation",
|
"androidx.annotation_annotation",
|
||||||
"PluginCoreLib",
|
"PluginCoreLib",
|
||||||
|
|||||||
@@ -62,11 +62,17 @@
|
|||||||
-keep class ** extends androidx.preference.PreferenceFragment
|
-keep class ** extends androidx.preference.PreferenceFragment
|
||||||
-keep class com.android.systemui.tuner.*
|
-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.
|
# dynamically-loaded plugin APKs.
|
||||||
-keep class com.android.systemui.plugins.** {
|
-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 {
|
-keep class com.android.systemui.fragments.FragmentService$FragmentCreator {
|
||||||
*;
|
*;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -230,7 +230,10 @@ public class PluginInstance<T extends Plugin> implements PluginLifecycleManager
|
|||||||
|
|
||||||
private ClassLoader getParentClassLoader(ClassLoader baseClassLoader) {
|
private ClassLoader getParentClassLoader(ClassLoader baseClassLoader) {
|
||||||
return new PluginManagerImpl.ClassLoaderFilter(
|
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. */
|
/** Returns class loader specific for the given plugin. */
|
||||||
|
|||||||
Reference in New Issue
Block a user