summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorMady Mellor <madym@google.com>2015-09-09 10:42:59 -0700
committerMady Mellor <madym@google.com>2015-09-09 10:42:59 -0700
commit69bd278c0cb2cefe01e39ec9a8b12cb21222edb2 (patch)
tree65611bc9214193b1525e1d7f0c234bfaf69f6f8d /samples
parent063b68edf61dbf8bf1b3bf342b9fd16bb0cc49b2 (diff)
downloadandroid_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.mk1
-rw-r--r--samples/SupportDesignDemos/proguard.flags7
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);
+}