# Keep classes and methods that have the @UsedForTesting annotation # TODO(b/373579455): Evaluate if needs to be kept. -keep @com.android.inputmethod.annotations.UsedForTesting class * { void (); } -keepclassmembers class * { @com.android.inputmethod.annotations.UsedForTesting *; } # Keep classes and methods that have the @ExternallyReferenced annotation # TODO(b/373579455): Evaluate if needs to be kept. -keep @com.android.inputmethod.annotations.ExternallyReferenced class * { void (); } -keepclassmembers class * { @com.android.inputmethod.annotations.ExternallyReferenced *; } # Keep native methods -keepclassmembers class * { native ; } # Keep classes that are used as a parameter type of methods that are also marked as keep # to preserve changing those methods' signature. # TODO(b/373579455): Evaluate if needs to be kept. -keep class com.android.inputmethod.latin.AssetFileAddress { void (); } # TODO(b/373579455): Evaluate if needs to be kept. -keep class com.android.inputmethod.latin.Dictionary { void (); } # TODO(b/373579455): Evaluate if needs to be kept. -keep class com.android.inputmethod.latin.NgramContext { void (); } # TODO(b/373579455): Evaluate if needs to be kept. -keep class com.android.inputmethod.latin.makedict.ProbabilityInfo { void (); } # TODO(b/373579455): Evaluate if needs to be kept. -keep class com.android.inputmethod.latin.utils.LanguageModelParam { void (); } # TODO: remove once used in code. -keep class com.android.inputmethod.keyboard.KeyboardLayout { *; }