aboutsummaryrefslogtreecommitdiffstats
path: root/java/proguard.flags
diff options
context:
space:
mode:
authorChristoffer Adamsen <christofferqa@google.com>2025-01-09 01:25:44 -0800
committerGerrit Code Review <noreply-gerritcodereview@google.com>2025-01-09 01:25:44 -0800
commit41fd35c1412b6b3b52acdd30027c6d7ac54cd17f (patch)
treec942c907b6b2b998f39761ae460d55c83025a998 /java/proguard.flags
parentd4249b45e6d5fe580837b7798ecbb7c07ba8e9b7 (diff)
parent91bc6c288fc46107854aa4ec275b1e7564d30808 (diff)
downloadlatinime-41fd35c1412b6b3b52acdd30027c6d7ac54cd17f.tar.gz
latinime-41fd35c1412b6b3b52acdd30027c6d7ac54cd17f.tar.xz
latinime-41fd35c1412b6b3b52acdd30027c6d7ac54cd17f.zip
Merge "Explicitly keep default constructor in rules without members" into main
Diffstat (limited to 'java/proguard.flags')
-rw-r--r--java/proguard.flags35
1 files changed, 28 insertions, 7 deletions
diff --git a/java/proguard.flags b/java/proguard.flags
index c832a88e3..0ebca04de 100644
--- a/java/proguard.flags
+++ b/java/proguard.flags
@@ -1,11 +1,17 @@
# Keep classes and methods that have the @UsedForTesting annotation
--keep @com.android.inputmethod.annotations.UsedForTesting class *
+# TODO(b/373579455): Evaluate if <init> needs to be kept.
+-keep @com.android.inputmethod.annotations.UsedForTesting class * {
+ void <init>();
+}
-keepclassmembers class * {
@com.android.inputmethod.annotations.UsedForTesting *;
}
# Keep classes and methods that have the @ExternallyReferenced annotation
--keep @com.android.inputmethod.annotations.ExternallyReferenced class *
+# TODO(b/373579455): Evaluate if <init> needs to be kept.
+-keep @com.android.inputmethod.annotations.ExternallyReferenced class * {
+ void <init>();
+}
-keepclassmembers class * {
@com.android.inputmethod.annotations.ExternallyReferenced *;
}
@@ -17,11 +23,26 @@
# Keep classes that are used as a parameter type of methods that are also marked as keep
# to preserve changing those methods' signature.
--keep class com.android.inputmethod.latin.AssetFileAddress
--keep class com.android.inputmethod.latin.Dictionary
--keep class com.android.inputmethod.latin.NgramContext
--keep class com.android.inputmethod.latin.makedict.ProbabilityInfo
--keep class com.android.inputmethod.latin.utils.LanguageModelParam
+# TODO(b/373579455): Evaluate if <init> needs to be kept.
+-keep class com.android.inputmethod.latin.AssetFileAddress {
+ void <init>();
+}
+# TODO(b/373579455): Evaluate if <init> needs to be kept.
+-keep class com.android.inputmethod.latin.Dictionary {
+ void <init>();
+}
+# TODO(b/373579455): Evaluate if <init> needs to be kept.
+-keep class com.android.inputmethod.latin.NgramContext {
+ void <init>();
+}
+# TODO(b/373579455): Evaluate if <init> needs to be kept.
+-keep class com.android.inputmethod.latin.makedict.ProbabilityInfo {
+ void <init>();
+}
+# TODO(b/373579455): Evaluate if <init> needs to be kept.
+-keep class com.android.inputmethod.latin.utils.LanguageModelParam {
+ void <init>();
+}
# TODO: remove once used in code.
-keep class com.android.inputmethod.keyboard.KeyboardLayout { *; }