1# Keep classes and methods that have the @UsedForTesting annotation 2# TODO(b/373579455): Evaluate if <init> needs to be kept. 3-keep @com.android.inputmethod.annotations.UsedForTesting class * { 4 void <init>(); 5} 6-keepclassmembers class * { 7 @com.android.inputmethod.annotations.UsedForTesting *; 8} 9 10# Keep classes and methods that have the @ExternallyReferenced annotation 11# TODO(b/373579455): Evaluate if <init> needs to be kept. 12-keep @com.android.inputmethod.annotations.ExternallyReferenced class * { 13 void <init>(); 14} 15-keepclassmembers class * { 16 @com.android.inputmethod.annotations.ExternallyReferenced *; 17} 18 19# Keep native methods 20-keepclassmembers class * { 21 native <methods>; 22} 23 24# Keep classes that are used as a parameter type of methods that are also marked as keep 25# to preserve changing those methods' signature. 26# TODO(b/373579455): Evaluate if <init> needs to be kept. 27-keep class com.android.inputmethod.latin.AssetFileAddress { 28 void <init>(); 29} 30# TODO(b/373579455): Evaluate if <init> needs to be kept. 31-keep class com.android.inputmethod.latin.Dictionary { 32 void <init>(); 33} 34# TODO(b/373579455): Evaluate if <init> needs to be kept. 35-keep class com.android.inputmethod.latin.NgramContext { 36 void <init>(); 37} 38# TODO(b/373579455): Evaluate if <init> needs to be kept. 39-keep class com.android.inputmethod.latin.makedict.ProbabilityInfo { 40 void <init>(); 41} 42# TODO(b/373579455): Evaluate if <init> needs to be kept. 43-keep class com.android.inputmethod.latin.utils.LanguageModelParam { 44 void <init>(); 45} 46 47# TODO: remove once used in code. 48-keep class com.android.inputmethod.keyboard.KeyboardLayout { *; } 49 50