Tadashi G. Takaoka | 15f6d4a | 2012-10-03 17:36:45 +0900 | [diff] [blame] | 1 | # Keep classes and methods that have the @UsedForTesting annotation |
| 2 | -keep @com.android.inputmethod.annotations.UsedForTesting class * |
| 3 | -keepclassmembers class * { |
Ken Wakasa | 0053bc5 | 2013-06-26 18:06:53 +0900 | [diff] [blame] | 4 | @com.android.inputmethod.annotations.UsedForTesting *; |
Ken Wakasa | 96fdc4d | 2012-03-31 18:32:48 +0900 | [diff] [blame] | 5 | } |
| 6 | |
Tadashi G. Takaoka | 15f6d4a | 2012-10-03 17:36:45 +0900 | [diff] [blame] | 7 | # Keep classes and methods that have the @ExternallyReferenced annotation |
| 8 | -keep @com.android.inputmethod.annotations.ExternallyReferenced class * |
| 9 | -keepclassmembers class * { |
Ken Wakasa | 0053bc5 | 2013-06-26 18:06:53 +0900 | [diff] [blame] | 10 | @com.android.inputmethod.annotations.ExternallyReferenced *; |
Tadashi G. Takaoka | 2866da8 | 2012-05-23 17:37:20 +0900 | [diff] [blame] | 11 | } |
Ken Wakasa | b1b21d4 | 2013-06-26 17:58:39 +0900 | [diff] [blame] | 12 | |
| 13 | # Keep native methods |
Ken Wakasa | 0053bc5 | 2013-06-26 18:06:53 +0900 | [diff] [blame] | 14 | -keepclassmembers class * { |
| 15 | native <methods>; |
Ken Wakasa | b1b21d4 | 2013-06-26 17:58:39 +0900 | [diff] [blame] | 16 | } |
Tadashi G. Takaoka | fd6b1ac | 2014-04-04 17:59:26 +0900 | [diff] [blame] | 17 | |
| 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 |