Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a4daac0 authored by Christoffer Adamsen's avatar Christoffer Adamsen Committed by Automerger Merge Worker
Browse files

Merge "Explicitly keep default constructor in rules without members" into main...

Merge "Explicitly keep default constructor in rules without members" into main am: 41fd35c1 am: fd0ebb16

Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/3438500



Change-Id: Ic2126eb24fac8ffd6df2f26098032dc47062ca52
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents fe610be4 fd0ebb16
Loading
Loading
Loading
Loading
+28 −7
Original line number Diff line number Diff line
# Keep classes and methods that have the @UsedForTesting annotation
-keep @com.android.inputmethod.annotations.UsedForTesting class *
# 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
-keep @com.android.inputmethod.annotations.ExternallyReferenced class *
# 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 *;
}
@@ -17,11 +23,26 @@

# 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
-keep class com.android.inputmethod.latin.NgramContext
-keep class com.android.inputmethod.latin.makedict.ProbabilityInfo
-keep class com.android.inputmethod.latin.utils.LanguageModelParam
# 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 { *; }