blob: a4a47a711fb79fe4d1e51eb206b55167b9009491 [file] [log] [blame]
# Keep annotations used by chromium to keep members referenced by native code
-keep class org.chromium.base.*Native*
-keep class org.chromium.base.JNINamespace
-keepclasseswithmembers class org.chromium.** {
@org.chromium.base.AccessedByNative <fields>;
-keepclasseswithmembers class org.chromium.** {
@org.chromium.base.*Native* <methods>;
# TODO(mef) remove unnecessary classes from base, so we don't have to preserve
# their methods
-keep class org.chromium.** {
native <methods>;
# Needed so that multiple optimization passes will detect annotations
-keepattributes *Annotation*
# Keep methods used by reflection and native code
-keep class*
-keep* class *
-keepclassmembers class * {* *;
# Suppress unnecessary warnings.
# Objects of this type are passed around by native code, but the class
# is never used directly by native code. Since the class is not loaded, it does
# not need to be preserved as an entry point.