mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-24 18:10:54 +00:00
31 lines
1.3 KiB
Text
31 lines
1.3 KiB
Text
# Keep classes and methods that have the @UsedForTesting annotation
|
|
-keep @org.dslul.openboard.inputmethod.annotations.UsedForTesting class *
|
|
-keepclassmembers class * {
|
|
@org.dslul.openboard.inputmethod.annotations.UsedForTesting *;
|
|
}
|
|
|
|
# Keep classes and methods that have the @ExternallyReferenced annotation
|
|
-keep @org.dslul.openboard.inputmethod.annotations.ExternallyReferenced class *
|
|
-keepclassmembers class * {
|
|
@org.dslul.openboard.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.
|
|
-keep class org.dslul.openboard.inputmethod.latin.AssetFileAddress
|
|
-keep class org.dslul.openboard.inputmethod.latin.Dictionary
|
|
-keep class org.dslul.openboard.inputmethod.latin.NgramContext
|
|
-keep class org.dslul.openboard.inputmethod.latin.makedict.ProbabilityInfo
|
|
-keep class org.dslul.openboard.inputmethod.latin.utils.LanguageModelParam
|
|
|
|
# TODO: remove once used in code.
|
|
-keep class org.dslul.openboard.inputmethod.keyboard.KeyboardLayout { *; }
|
|
|
|
# after upgrading to gradle 8, stack traces contain "unknown source", which is horribly bad making them rather useless
|
|
-keepattributes SourceFile,LineNumberTable
|
|
-dontobfuscate
|