2012-10-03 17:36:45 +09:00
|
|
|
# Keep classes and methods that have the @UsedForTesting annotation
|
|
|
|
-keep @com.android.inputmethod.annotations.UsedForTesting class *
|
|
|
|
-keepclassmembers class * {
|
2013-06-26 18:06:53 +09:00
|
|
|
@com.android.inputmethod.annotations.UsedForTesting *;
|
2012-03-31 18:32:48 +09:00
|
|
|
}
|
|
|
|
|
2012-10-03 17:36:45 +09:00
|
|
|
# Keep classes and methods that have the @ExternallyReferenced annotation
|
|
|
|
-keep @com.android.inputmethod.annotations.ExternallyReferenced class *
|
|
|
|
-keepclassmembers class * {
|
2013-06-26 18:06:53 +09:00
|
|
|
@com.android.inputmethod.annotations.ExternallyReferenced *;
|
2012-05-23 17:37:20 +09:00
|
|
|
}
|
2013-06-26 17:58:39 +09:00
|
|
|
|
|
|
|
# Keep native methods
|
2013-06-26 18:06:53 +09:00
|
|
|
-keepclassmembers class * {
|
|
|
|
native <methods>;
|
2013-06-26 17:58:39 +09:00
|
|
|
}
|
2014-04-04 17:59:26 +09: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.AssetFileAddress
|
|
|
|
-keep class com.android.inputmethod.latin.Dictionary
|
2014-09-29 10:52:18 +09:00
|
|
|
-keep class com.android.inputmethod.latin.NgramContext
|
2014-05-23 20:18:17 +09:00
|
|
|
-keep class com.android.inputmethod.latin.makedict.ProbabilityInfo
|
|
|
|
-keep class com.android.inputmethod.latin.utils.LanguageModelParam
|
2015-01-30 17:24:09 -08:00
|
|
|
|
|
|
|
# TODO: remove once used in code.
|
|
|
|
-keep class com.android.inputmethod.keyboard.KeyboardLayout { *; }
|
|
|
|
|