Owen Lin | 2733d79 | 2011-09-01 14:11:19 +0800 | [diff] [blame] | 1 | # Disable the warnings of using dynamic method call in common library. |
| 2 | -dontnote com.android.gallery3d.common.* |
| 3 | |
Owen Lin | f9a0a43 | 2011-08-17 22:07:43 +0800 | [diff] [blame] | 4 | # Keep all classes extended from com.android.gallery3d.common.Entry |
| 5 | # Since we annotate on the fields and use reflection to create SQL |
| 6 | # according to those field. |
| 7 | |
| 8 | -keep class * extends com.android.gallery3d.common.Entry { |
| 9 | @com.android.gallery3d.common.Entry$Column <fields>; |
| 10 | } |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 11 | |
| 12 | # ctors of subclasses of CameraPreference are called with Java reflection. |
| 13 | -keep class * extends com.android.camera.CameraPreference { |
| 14 | <init>(...); |
| 15 | } |
| 16 | |
| 17 | -keep class com.android.camera.ActivityBase { |
| 18 | public int getResultCode(); |
| 19 | public android.content.Intent getResultData(); |
| 20 | } |
| 21 | |
Wu-cheng Li | 8444067 | 2012-10-14 21:28:31 +0800 | [diff] [blame] | 22 | -keep class com.android.camera.CameraActivity { |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 23 | public boolean isRecording(); |
Jason Noguchi | 1098a18 | 2012-10-17 14:35:00 -0700 | [diff] [blame] | 24 | public long getAutoFocusTime(); |
| 25 | public long getShutterLag(); |
| 26 | public long getShutterToPictureDisplayedTime(); |
| 27 | public long getPictureDisplayedToJpegCallbackTime(); |
| 28 | public long getJpegCallbackFinishTime(); |
| 29 | public long getCaptureStartTime(); |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 30 | } |
| 31 | |
Wu-cheng Li | 81e863b | 2012-09-27 10:49:46 +0800 | [diff] [blame] | 32 | -keep class com.android.camera.VideoModule { |
Wu-cheng Li | 81e863b | 2012-09-27 10:49:46 +0800 | [diff] [blame] | 33 | public void onCancelBgTraining(...); |
| 34 | public void onProtectiveCurtainClick(...); |
| 35 | } |
| 36 | |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 37 | -keep class * extends android.app.Activity { |
| 38 | @com.android.camera.OnClickAttr <methods>; |
| 39 | } |
| 40 | |
| 41 | -keep class com.android.camera.CameraHolder { |
| 42 | public static void injectMockCamera(...); |
| 43 | } |
Owen Lin | 1a2b42c | 2012-08-01 13:32:34 +0800 | [diff] [blame] | 44 | |
| 45 | # Disable the warnings of using dynamic method calls in EffectsRecorder |
| 46 | -dontnote com.android.camera.EffectsRecorder |
Owen Lin | 8a861a0 | 2012-08-24 15:09:42 +0800 | [diff] [blame] | 47 | |
Tim Murray | a640516 | 2013-02-04 13:09:27 -0800 | [diff] [blame] | 48 | -keep class android.support.v8.renderscript.** { *; } |
| 49 | |
Owen Lin | 8a861a0 | 2012-08-24 15:09:42 +0800 | [diff] [blame] | 50 | # Required for ActionBarSherlock |
| 51 | -keep class android.support.v4.app.** { *; } |
| 52 | -keep interface android.support.v4.app.** { *; } |
| 53 | -keep class com.actionbarsherlock.** { *; } |
| 54 | -keep interface com.actionbarsherlock.** { *; } |
| 55 | -keepattributes *Annotation* |
| 56 | |
Teng-Hui Zhu | 15ff1b1 | 2012-09-23 15:02:56 -0700 | [diff] [blame] | 57 | # Required for mp4parser |
Teng-Hui Zhu | 284efcc | 2012-09-30 14:27:24 -0700 | [diff] [blame] | 58 | -keep public class * implements com.coremedia.iso.boxes.Box |
Teng-Hui Zhu | 15ff1b1 | 2012-09-23 15:02:56 -0700 | [diff] [blame] | 59 | |
John Reck | a4eae1a | 2012-12-11 14:42:27 -0800 | [diff] [blame] | 60 | #-assumenosideeffects junit.framework.Assert { |
| 61 | #*; |
| 62 | #} |
| 63 | |
Ruben Brunk | ab24a05 | 2013-02-13 13:36:21 -0800 | [diff] [blame] | 64 | # For unit testing: |
| 65 | |
| 66 | # - Required for running exif tests on userdebug |
Ruben Brunk | 6e6a524 | 2013-03-11 19:00:12 -0700 | [diff] [blame] | 67 | -keep class com.android.gallery3d.exif.ExifTag { *; } |
| 68 | -keep class com.android.gallery3d.exif.ExifData { *; } |
| 69 | -keep class com.android.gallery3d.exif.ExifInterface { *; } |
Ruben Brunk | ab24a05 | 2013-02-13 13:36:21 -0800 | [diff] [blame] | 70 | -keepclassmembers class com.android.gallery3d.exif.Util { |
| 71 | *** closeSilently(...); |
| 72 | } |
Ruben Brunk | ab24a05 | 2013-02-13 13:36:21 -0800 | [diff] [blame] | 73 | |
| 74 | # - Required for running blobcache tests on userdebug |
| 75 | -keep class com.android.gallery3d.common.BlobCache { *; } |
| 76 | |
| 77 | # - Required for running glcanvas tests on userdebug |
| 78 | -keep class com.android.gallery3d.ui.GLPaint { *; } |
| 79 | -keep class com.android.gallery3d.ui.GLCanvas { *; } |
| 80 | -keep class com.android.gallery3d.glrenderer.GLPaint { *; } |
| 81 | -keep class com.android.gallery3d.glrenderer.GLCanvas { *; } |
| 82 | -keep class com.android.gallery3d.ui.GLView { *; } |
| 83 | -keepclassmembers class com.android.gallery3d.util.IntArray { |
| 84 | *** toArray(...); |
| 85 | } |
| 86 | -keep class com.android.gallery3d.util.ProfileData { *; } |