proguard.flags 1.85 KB
Newer Older
Owen Lin's avatar
Owen Lin committed
1 2 3
# Disable the warnings of using dynamic method call in common library.
-dontnote com.android.gallery3d.common.*

Owen Lin's avatar
Owen Lin committed
4 5 6 7 8 9 10
# Keep all classes extended from com.android.gallery3d.common.Entry
# Since we annotate on the fields and use reflection to create SQL
# according to those field.

-keep class * extends com.android.gallery3d.common.Entry {
    @com.android.gallery3d.common.Entry$Column <fields>;
}
11 12 13 14 15 16 17 18 19 20 21

# ctors of subclasses of CameraPreference are called with Java reflection.
-keep class * extends com.android.camera.CameraPreference {
  <init>(...);
}

-keep class com.android.camera.ActivityBase {
  public int getResultCode();
  public android.content.Intent getResultData();
}

Wu-cheng Li's avatar
Wu-cheng Li committed
22
-keep class com.android.camera.CameraActivity {
23
  public boolean isRecording();
24 25 26 27 28 29
  public long getAutoFocusTime();
  public long getShutterLag();
  public long getShutterToPictureDisplayedTime();
  public long getPictureDisplayedToJpegCallbackTime();
  public long getJpegCallbackFinishTime();
  public long getCaptureStartTime();
30 31
}

32 33 34 35 36
-keep class com.android.camera.VideoModule {
  public void onCancelBgTraining(...);
  public void onProtectiveCurtainClick(...);
}

37 38 39 40 41 42 43
-keep class * extends android.app.Activity {
  @com.android.camera.OnClickAttr <methods>;
}

-keep class com.android.camera.CameraHolder {
  public static void injectMockCamera(...);
}
44 45 46

# Disable the warnings of using dynamic method calls in EffectsRecorder
-dontnote com.android.camera.EffectsRecorder
47

48 49
-keep class android.support.v8.renderscript.** { *; }

50 51 52 53 54 55 56
# Required for ActionBarSherlock
-keep class android.support.v4.app.** { *; }
-keep interface android.support.v4.app.** { *; }
-keep class com.actionbarsherlock.** { *; }
-keep interface com.actionbarsherlock.** { *; }
-keepattributes *Annotation*

57
# Required for mp4parser
58
-keep public class * implements com.coremedia.iso.boxes.Box
59

John Reck's avatar
John Reck committed
60 61 62 63
#-assumenosideeffects junit.framework.Assert {
#*;
#}