summaryrefslogtreecommitdiffstats
path: root/proguard.flags
diff options
context:
space:
mode:
authorRuben Brunk <rubenbrunk@google.com>2013-02-13 13:36:21 -0800
committerRuben Brunk <rubenbrunk@google.com>2013-02-13 13:36:21 -0800
commitab24a05cd280452b7e3d8349c15bac7c576fd226 (patch)
tree50353f1b1245c0e27abda8873da4e130a4858a07 /proguard.flags
parentadd77dfcee665d309e5eb20e344e1d10e7c4070e (diff)
downloadandroid_packages_apps_Gallery2-ab24a05cd280452b7e3d8349c15bac7c576fd226.zip
android_packages_apps_Gallery2-ab24a05cd280452b7e3d8349c15bac7c576fd226.tar.gz
android_packages_apps_Gallery2-ab24a05cd280452b7e3d8349c15bac7c576fd226.tar.bz2
Fix proguard and makefile targets for tests.
Change-Id: I19f35567eff7c6d377a95b434dc4735faca93861
Diffstat (limited to 'proguard.flags')
-rw-r--r--proguard.flags34
1 files changed, 34 insertions, 0 deletions
diff --git a/proguard.flags b/proguard.flags
index dce9d07..45221e2 100644
--- a/proguard.flags
+++ b/proguard.flags
@@ -61,3 +61,37 @@
#*;
#}
+# For unit testing:
+
+# - Required for running exif tests on userdebug
+-keepclassmembers class com.android.gallery3d.exif.ExifTag {
+ *** setValue(...);
+ *** valueToString(...);
+}
+-keepclassmembers class com.android.gallery3d.exif.ExifParser {
+ *** parse(...);
+}
+-keepclassmembers class com.android.gallery3d.exif.Util {
+ *** closeSilently(...);
+}
+-keepclassmembers class com.android.gallery3d.exif.ExifData {
+ *** addInteroperabilityTag(...);
+ *** addThumbnailTag(...);
+ *** getTag(...);
+ *** getInteroperabilityTag(...);
+ *** getThumbnailTag(...);
+}
+
+# - Required for running blobcache tests on userdebug
+-keep class com.android.gallery3d.common.BlobCache { *; }
+
+# - Required for running glcanvas tests on userdebug
+-keep class com.android.gallery3d.ui.GLPaint { *; }
+-keep class com.android.gallery3d.ui.GLCanvas { *; }
+-keep class com.android.gallery3d.glrenderer.GLPaint { *; }
+-keep class com.android.gallery3d.glrenderer.GLCanvas { *; }
+-keep class com.android.gallery3d.ui.GLView { *; }
+-keepclassmembers class com.android.gallery3d.util.IntArray {
+ *** toArray(...);
+}
+-keep class com.android.gallery3d.util.ProfileData { *; }