futokb/java/proguard.flags

29 lines
1.0 KiB
Plaintext
Raw Normal View History

# Keep classes and methods that have the @UsedForTesting annotation
2023-07-06 19:57:49 +01:00
-keep @org.futo.inputmethod.annotations.UsedForTesting class *
-keepclassmembers class * {
2023-07-06 19:57:49 +01:00
@org.futo.inputmethod.annotations.UsedForTesting *;
}
# Keep classes and methods that have the @ExternallyReferenced annotation
2023-07-06 19:57:49 +01:00
-keep @org.futo.inputmethod.annotations.ExternallyReferenced class *
-keepclassmembers class * {
2023-07-06 19:57:49 +01:00
@org.futo.inputmethod.annotations.ExternallyReferenced *;
}
# Keep native methods
-keepclassmembers class * {
native <methods>;
}
# Keep classes that are used as a parameter type of methods that are also marked as keep
# to preserve changing those methods' signature.
2023-07-06 19:57:49 +01:00
-keep class org.futo.inputmethod.latin.AssetFileAddress
-keep class org.futo.inputmethod.latin.Dictionary
-keep class org.futo.inputmethod.latin.NgramContext
-keep class org.futo.inputmethod.latin.makedict.ProbabilityInfo
-keep class org.futo.inputmethod.latin.utils.LanguageModelParam
# TODO: remove once used in code.
2023-07-06 19:57:49 +01:00
-keep class org.futo.inputmethod.keyboard.KeyboardLayout { *; }