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

Commit 90f3d52f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Keep classes/fields only used via reflection"

parents 0ccfd66b ab704110
Loading
Loading
Loading
Loading
+14 −2
Original line number Original line Diff line number Diff line
@@ -27,3 +27,15 @@
-keepclasseswithmembers class * {
-keepclasseswithmembers class * {
    public <init>(android.content.Context, android.util.AttributeSet, int);
    public <init>(android.content.Context, android.util.AttributeSet, int);
}
}

# Keep annotated classes or class members.
-keep @android.support.annotation.Keep class *
-keepclassmembers class * {
    @android.support.annotation.Keep *;
}

# Keep specific fields used via reflection.
-keepclassmembers class * {
    public static ** SEARCH_INDEX_DATA_PROVIDER;
    public static ** SUMMARY_PROVIDER_FACTORY;
}
+2 −0
Original line number Original line Diff line number Diff line
@@ -17,10 +17,12 @@
package com.android.settings.overlay;
package com.android.settings.overlay;


import android.content.Context;
import android.content.Context;
import android.support.annotation.Keep;


/**
/**
 * {@link FeatureFactory} implementation for AOSP Settings.
 * {@link FeatureFactory} implementation for AOSP Settings.
 */
 */
@Keep
public final class FeatureFactoryImpl extends FeatureFactory {
public final class FeatureFactoryImpl extends FeatureFactory {


    @Override
    @Override