blob: 0ebca04dead1e8a1167af9b4aa2510365dccf709 [file] [log] [blame]
Tadashi G. Takaoka15f6d4a2012-10-03 17:36:45 +09001# Keep classes and methods that have the @UsedForTesting annotation
Christoffer Adamsen91bc6c22025-01-06 13:04:08 +01002# TODO(b/373579455): Evaluate if <init> needs to be kept.
3-keep @com.android.inputmethod.annotations.UsedForTesting class * {
4 void <init>();
5}
Tadashi G. Takaoka15f6d4a2012-10-03 17:36:45 +09006-keepclassmembers class * {
Ken Wakasa0053bc52013-06-26 18:06:53 +09007 @com.android.inputmethod.annotations.UsedForTesting *;
Ken Wakasa96fdc4d2012-03-31 18:32:48 +09008}
9
Tadashi G. Takaoka15f6d4a2012-10-03 17:36:45 +090010# Keep classes and methods that have the @ExternallyReferenced annotation
Christoffer Adamsen91bc6c22025-01-06 13:04:08 +010011# TODO(b/373579455): Evaluate if <init> needs to be kept.
12-keep @com.android.inputmethod.annotations.ExternallyReferenced class * {
13 void <init>();
14}
Tadashi G. Takaoka15f6d4a2012-10-03 17:36:45 +090015-keepclassmembers class * {
Ken Wakasa0053bc52013-06-26 18:06:53 +090016 @com.android.inputmethod.annotations.ExternallyReferenced *;
Tadashi G. Takaoka2866da82012-05-23 17:37:20 +090017}
Ken Wakasab1b21d42013-06-26 17:58:39 +090018
19# Keep native methods
Ken Wakasa0053bc52013-06-26 18:06:53 +090020-keepclassmembers class * {
21 native <methods>;
Ken Wakasab1b21d42013-06-26 17:58:39 +090022}
Tadashi G. Takaokafd6b1ac2014-04-04 17:59:26 +090023
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.
Christoffer Adamsen91bc6c22025-01-06 13:04:08 +010026# 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}
Mohammadinamul Sheikd5439842015-01-30 17:24:09 -080046
47# TODO: remove once used in code.
48-keep class com.android.inputmethod.keyboard.KeyboardLayout { *; }
49