futokb/java/proguard.flags
2023-07-06 21:57:49 +03:00

29 lines
1.0 KiB
Plaintext

# Keep classes and methods that have the @UsedForTesting annotation
-keep @org.futo.inputmethod.annotations.UsedForTesting class *
-keepclassmembers class * {
@org.futo.inputmethod.annotations.UsedForTesting *;
}
# Keep classes and methods that have the @ExternallyReferenced annotation
-keep @org.futo.inputmethod.annotations.ExternallyReferenced class *
-keepclassmembers class * {
@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.
-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.
-keep class org.futo.inputmethod.keyboard.KeyboardLayout { *; }