blob: f7b7f289898f0d721f4c442d4141ff9e51a93e79 [file] [log] [blame]
Tadashi G. Takaoka15f6d4a2012-10-03 17:36:45 +09001# Keep classes and methods that have the @UsedForTesting annotation
2-keep @com.android.inputmethod.annotations.UsedForTesting class *
3-keepclassmembers class * {
Ken Wakasa0053bc52013-06-26 18:06:53 +09004 @com.android.inputmethod.annotations.UsedForTesting *;
Ken Wakasa96fdc4d2012-03-31 18:32:48 +09005}
6
Tadashi G. Takaoka15f6d4a2012-10-03 17:36:45 +09007# Keep classes and methods that have the @ExternallyReferenced annotation
8-keep @com.android.inputmethod.annotations.ExternallyReferenced class *
9-keepclassmembers class * {
Ken Wakasa0053bc52013-06-26 18:06:53 +090010 @com.android.inputmethod.annotations.ExternallyReferenced *;
Tadashi G. Takaoka2866da82012-05-23 17:37:20 +090011}
Ken Wakasab1b21d42013-06-26 17:58:39 +090012
13# Keep native methods
Ken Wakasa0053bc52013-06-26 18:06:53 +090014-keepclassmembers class * {
15 native <methods>;
Ken Wakasab1b21d42013-06-26 17:58:39 +090016}
Tadashi G. Takaokafd6b1ac2014-04-04 17:59:26 +090017
18# Keep classes that are used as a parameter type of methods that are also marked as keep
19# to preserve changing those methods' signature.
20-keep class com.android.inputmethod.latin.utils.LanguageModelParam
21-keep class com.android.inputmethod.latin.AssetFileAddress
22-keep class com.android.inputmethod.latin.makedict.ProbabilityInfo
23-keep class com.android.inputmethod.latin.Dictionary