Merge "Keep classes/fields only used via reflection"

This commit is contained in:
TreeHugger Robot
2016-08-02 01:19:02 +00:00
committed by Android (Google) Code Review
2 changed files with 16 additions and 2 deletions

View File

@@ -27,3 +27,15 @@
-keepclasseswithmembers class * {
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;
}

View File

@@ -17,10 +17,12 @@
package com.android.settings.overlay;
import android.content.Context;
import android.support.annotation.Keep;
/**
* {@link FeatureFactory} implementation for AOSP Settings.
*/
@Keep
public final class FeatureFactoryImpl extends FeatureFactory {
@Override