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