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 |
Weijie Wang | b59cf61 | 2017-09-05 10:42:58 +0800 | [diff] [blame] | 6 | -dontwarn com.android.internal.widget.ViewInfoStore$InfoRecord |
jinwu | 8045fd4 | 2018-02-09 14:54:16 +0800 | [diff] [blame] | 7 | -dontwarn com.android.internal.util.function.pooled.PooledLambdaImpl$Pool |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 8 | |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 9 | # ctors of subclasses of CameraPreference are called with Java reflection. |
| 10 | -keep class * extends com.android.camera.CameraPreference { |
| 11 | <init>(...); |
| 12 | } |
| 13 | |
| 14 | -keep class com.android.camera.CameraActivity { |
| 15 | public boolean isRecording(); |
| 16 | public long getAutoFocusTime(); |
| 17 | public long getShutterLag(); |
| 18 | public long getShutterToPictureDisplayedTime(); |
| 19 | public long getPictureDisplayedToJpegCallbackTime(); |
| 20 | public long getJpegCallbackFinishTime(); |
| 21 | public long getCaptureStartTime(); |
| 22 | } |
| 23 | |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 24 | -keep class * extends android.app.Activity { |
| 25 | @com.android.camera.OnClickAttr <methods>; |
| 26 | } |
| 27 | |
| 28 | -keep class com.android.camera.CameraHolder { |
| 29 | public static void injectMockCamera(...); |
| 30 | } |
| 31 | |
| 32 | # Disable the warnings of using dynamic method calls in EffectsRecorder |
| 33 | -dontnote com.android.camera.EffectsRecorder |
| 34 | |
Sascha Haeberling | 43ec6fa | 2013-08-06 16:44:42 -0700 | [diff] [blame] | 35 | # For unit testing: |
| 36 | |
| 37 | # - Required for running exif tests on userdebug |
| 38 | -keep class com.android.gallery3d.exif.ExifTag { *; } |
| 39 | -keep class com.android.gallery3d.exif.ExifData { *; } |
| 40 | -keep class com.android.gallery3d.exif.ExifInterface { *; } |
| 41 | -keepclassmembers class com.android.gallery3d.exif.Util { |
| 42 | *** closeSilently(...); |
| 43 | } |
| 44 | |
Jack Yoo | a02710a | 2016-04-06 16:07:22 -0700 | [diff] [blame] | 45 | -keepclasseswithmembernames class * { |
| 46 | native <methods>; |
| 47 | } |
| 48 | |
| 49 | -keep class * { |
| 50 | public <methods>; |
| 51 | public <fields>; |
| 52 | private <methods>; |
| 53 | private <fields>; |
| 54 | } |
| 55 | |
| 56 | -keep class android.renderscript.** { *; } |
Weijie Wang | b59cf61 | 2017-09-05 10:42:58 +0800 | [diff] [blame] | 57 | |