2012-10-03 08:36:45 +00:00
|
|
|
# Keep classes and methods that have the @UsedForTesting annotation
|
|
|
|
-keep @com.android.inputmethod.annotations.UsedForTesting class *
|
|
|
|
-keepclassmembers class * {
|
2013-06-26 09:06:53 +00:00
|
|
|
@com.android.inputmethod.annotations.UsedForTesting *;
|
2012-03-31 09:32:48 +00:00
|
|
|
}
|
|
|
|
|
2012-10-03 08:36:45 +00:00
|
|
|
# Keep classes and methods that have the @ExternallyReferenced annotation
|
|
|
|
-keep @com.android.inputmethod.annotations.ExternallyReferenced class *
|
|
|
|
-keepclassmembers class * {
|
2013-06-26 09:06:53 +00:00
|
|
|
@com.android.inputmethod.annotations.ExternallyReferenced *;
|
2012-05-23 08:37:20 +00:00
|
|
|
}
|
2013-06-26 08:58:39 +00:00
|
|
|
|
|
|
|
# Keep native methods
|
2013-06-26 09:06:53 +00:00
|
|
|
-keepclassmembers class * {
|
|
|
|
native <methods>;
|
2013-06-26 08:58:39 +00:00
|
|
|
}
|
2014-04-04 08:59:26 +00:00
|
|
|
|
|
|
|
# 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 com.android.inputmethod.latin.utils.LanguageModelParam
|
|
|
|
-keep class com.android.inputmethod.latin.AssetFileAddress
|
|
|
|
-keep class com.android.inputmethod.latin.makedict.ProbabilityInfo
|
|
|
|
-keep class com.android.inputmethod.latin.Dictionary
|