aboutsummaryrefslogtreecommitdiffstats
path: root/java/proguard.flags
blob: 0ebca04dead1e8a1167af9b4aa2510365dccf709 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Keep classes and methods that have the @UsedForTesting annotation
# TODO(b/373579455): Evaluate if <init> needs to be kept.
-keep @com.android.inputmethod.annotations.UsedForTesting class * {
    void <init>();
}
-keepclassmembers class * {
    @com.android.inputmethod.annotations.UsedForTesting *;
}

# Keep classes and methods that have the @ExternallyReferenced annotation
# TODO(b/373579455): Evaluate if <init> needs to be kept.
-keep @com.android.inputmethod.annotations.ExternallyReferenced class * {
    void <init>();
}
-keepclassmembers class * {
    @com.android.inputmethod.annotations.ExternallyReferenced *;
}

# Keep native methods
-keepclassmembers class * {
    native <methods>;
}

# Keep classes that are used as a parameter type of methods that are also marked as keep
# to preserve changing those methods' signature.
# TODO(b/373579455): Evaluate if <init> needs to be kept.
-keep class com.android.inputmethod.latin.AssetFileAddress {
    void <init>();
}
# TODO(b/373579455): Evaluate if <init> needs to be kept.
-keep class com.android.inputmethod.latin.Dictionary {
    void <init>();
}
# TODO(b/373579455): Evaluate if <init> needs to be kept.
-keep class com.android.inputmethod.latin.NgramContext {
    void <init>();
}
# TODO(b/373579455): Evaluate if <init> needs to be kept.
-keep class com.android.inputmethod.latin.makedict.ProbabilityInfo {
    void <init>();
}
# TODO(b/373579455): Evaluate if <init> needs to be kept.
-keep class com.android.inputmethod.latin.utils.LanguageModelParam {
    void <init>();
}

# TODO: remove once used in code.
-keep class com.android.inputmethod.keyboard.KeyboardLayout { *; }