aboutsummaryrefslogtreecommitdiffstats
path: root/java/proguard.flags
diff options
context:
space:
mode:
Diffstat (limited to 'java/proguard.flags')
-rw-r--r--java/proguard.flags9
1 files changed, 7 insertions, 2 deletions
diff --git a/java/proguard.flags b/java/proguard.flags
index d65924f7c..c08a968bc 100644
--- a/java/proguard.flags
+++ b/java/proguard.flags
@@ -1,11 +1,16 @@
# Keep classes and methods that have the @UsedForTesting annotation
-keep @com.android.inputmethod.annotations.UsedForTesting class *
-keepclassmembers class * {
-@com.android.inputmethod.annotations.UsedForTesting *;
+ @com.android.inputmethod.annotations.UsedForTesting *;
}
# Keep classes and methods that have the @ExternallyReferenced annotation
-keep @com.android.inputmethod.annotations.ExternallyReferenced class *
-keepclassmembers class * {
-@com.android.inputmethod.annotations.ExternallyReferenced *;
+ @com.android.inputmethod.annotations.ExternallyReferenced *;
+}
+
+# Keep native methods
+-keepclassmembers class * {
+ native <methods>;
}