Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 1 | # Disable the warnings of using dynamic method call in common library. |
| 2 | -dontnote com.android.gallery3d.common.* |
Alok Kediya | aed6525 | 2013-09-23 14:31:42 +0530 | [diff] [blame] | 3 | #Avoid the library class dependency error |
| 4 | -dontwarn android.view.inputmethod.InputMethodManager |
Natiq Ahmed | 32d7821 | 2014-09-26 17:15:44 +0530 | [diff] [blame^] | 5 | -dontwarn android.content.res.Resources |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 6 | |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 7 | # ctors of subclasses of CameraPreference are called with Java reflection. |
| 8 | -keep class * extends com.android.camera.CameraPreference { |
| 9 | <init>(...); |
| 10 | } |
| 11 | |
| 12 | -keep class com.android.camera.CameraActivity { |
| 13 | public boolean isRecording(); |
| 14 | public long getAutoFocusTime(); |
| 15 | public long getShutterLag(); |
| 16 | public long getShutterToPictureDisplayedTime(); |
| 17 | public long getPictureDisplayedToJpegCallbackTime(); |
| 18 | public long getJpegCallbackFinishTime(); |
| 19 | public long getCaptureStartTime(); |
| 20 | } |
| 21 | |
| 22 | -keep class com.android.camera.VideoModule { |
| 23 | public void onCancelBgTraining(...); |
| 24 | public void onProtectiveCurtainClick(...); |
| 25 | } |
| 26 | |
| 27 | -keep class * extends android.app.Activity { |
| 28 | @com.android.camera.OnClickAttr <methods>; |
| 29 | } |
| 30 | |
| 31 | -keep class com.android.camera.CameraHolder { |
| 32 | public static void injectMockCamera(...); |
| 33 | } |
| 34 | |
| 35 | # Disable the warnings of using dynamic method calls in EffectsRecorder |
| 36 | -dontnote com.android.camera.EffectsRecorder |
| 37 | |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 38 | # For unit testing: |
| 39 | |
| 40 | # - Required for running exif tests on userdebug |
| 41 | -keep class com.android.gallery3d.exif.ExifTag { *; } |
| 42 | -keep class com.android.gallery3d.exif.ExifData { *; } |
| 43 | -keep class com.android.gallery3d.exif.ExifInterface { *; } |
| 44 | -keepclassmembers class com.android.gallery3d.exif.Util { |
| 45 | *** closeSilently(...); |
| 46 | } |
| 47 | |