diff options
| author | Mady Mellor <madym@google.com> | 2015-09-09 10:42:59 -0700 |
|---|---|---|
| committer | Mady Mellor <madym@google.com> | 2015-09-09 10:42:59 -0700 |
| commit | 69bd278c0cb2cefe01e39ec9a8b12cb21222edb2 (patch) | |
| tree | 65611bc9214193b1525e1d7f0c234bfaf69f6f8d /samples | |
| parent | 063b68edf61dbf8bf1b3bf342b9fd16bb0cc49b2 (diff) | |
| download | android_development-69bd278c0cb2cefe01e39ec9a8b12cb21222edb2.tar.gz android_development-69bd278c0cb2cefe01e39ec9a8b12cb21222edb2.tar.bz2 android_development-69bd278c0cb2cefe01e39ec9a8b12cb21222edb2.zip | |
Add proguard configuration to support design demos sample app
Proguard was stripping out the coordinator layout behavior and the
linear layout manager classes.
Change-Id: Ibe72d5952bee20cf386e7384e261f46eea1cb67d
Diffstat (limited to 'samples')
| -rw-r--r-- | samples/SupportDesignDemos/Android.mk | 1 | ||||
| -rw-r--r-- | samples/SupportDesignDemos/proguard.flags | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/samples/SupportDesignDemos/Android.mk b/samples/SupportDesignDemos/Android.mk index f70b6e138..96068ee6f 100644 --- a/samples/SupportDesignDemos/Android.mk +++ b/samples/SupportDesignDemos/Android.mk @@ -37,4 +37,5 @@ LOCAL_AAPT_FLAGS := \ --extra-packages android.support.v7.appcompat \ --extra-packages android.support.v7.recyclerview \ --extra-packages android.support.design +LOCAL_PROGUARD_FLAG_FILES := proguard.flags include $(BUILD_PACKAGE) diff --git a/samples/SupportDesignDemos/proguard.flags b/samples/SupportDesignDemos/proguard.flags new file mode 100644 index 000000000..9ebd7374d --- /dev/null +++ b/samples/SupportDesignDemos/proguard.flags @@ -0,0 +1,7 @@ +-keep public class * extends android.support.design.widget.CoordinatorLayout$Behavior { + public <init>(android.content.Context, android.util.AttributeSet); +} + +-keep public class * extends android.support.v7.widget.LinearLayoutManager { + public <init>(android.content.Context, android.util.AttributeSet, int, int); +} |
