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 | |
| 22 | -keep class com.android.camera.VideoCamera { |
| 23 | public boolean isRecording(); |
| 24 | public void onCancelBgTraining(...); |
| 25 | public void onProtectiveCurtainClick(...); |
| 26 | } |
| 27 | |
Wu-cheng Li | 81e863b | 2012-09-27 10:49:46 +0800 | [diff] [blame] | 28 | -keep class com.android.camera.VideoModule { |
| 29 | public boolean isRecording(); |
| 30 | public void onCancelBgTraining(...); |
| 31 | public void onProtectiveCurtainClick(...); |
| 32 | } |
| 33 | |
Chih-Chung Chang | 6376478 | 2012-03-08 20:10:53 +0800 | [diff] [blame] | 34 | -keep class * extends android.app.Activity { |
| 35 | @com.android.camera.OnClickAttr <methods>; |
| 36 | } |
| 37 | |
| 38 | -keep class com.android.camera.CameraHolder { |
| 39 | public static void injectMockCamera(...); |
| 40 | } |
Owen Lin | 1a2b42c | 2012-08-01 13:32:34 +0800 | [diff] [blame] | 41 | |
| 42 | # Disable the warnings of using dynamic method calls in EffectsRecorder |
| 43 | -dontnote com.android.camera.EffectsRecorder |
Owen Lin | 8a861a0 | 2012-08-24 15:09:42 +0800 | [diff] [blame] | 44 | |
| 45 | # Required for ActionBarSherlock |
| 46 | -keep class android.support.v4.app.** { *; } |
| 47 | -keep interface android.support.v4.app.** { *; } |
| 48 | -keep class com.actionbarsherlock.** { *; } |
| 49 | -keep interface com.actionbarsherlock.** { *; } |
| 50 | -keepattributes *Annotation* |
| 51 | |
Teng-Hui Zhu | 15ff1b1 | 2012-09-23 15:02:56 -0700 | [diff] [blame] | 52 | # Required for mp4parser |
Teng-Hui Zhu | 284efcc | 2012-09-30 14:27:24 -0700 | [diff] [blame^] | 53 | -keep public class * implements com.coremedia.iso.boxes.Box |
Teng-Hui Zhu | 15ff1b1 | 2012-09-23 15:02:56 -0700 | [diff] [blame] | 54 | |