blob: ef6bf0e9e3559f4f5e838aa0aee8f8ba3671f7b0 [file] [log] [blame]
Yifei Zhange6d99642023-11-02 17:23:07 -07001# Ignore missing Kotlin meta-annotations so that Java-only projects can depend
2# on projects that happen to be written in Kotlin but do not have a run-time
3# dependency on the Kotlin standard library. Note these annotations are RUNTIME
4# retention, but we won't need them available in Java-only projects.
5-dontwarn kotlin.Metadata
6-dontwarn kotlin.annotation.AnnotationRetention
7-dontwarn kotlin.annotation.AnnotationTarget
8-dontwarn kotlin.annotation.Retention
9-dontwarn kotlin.annotation.Target
10
11# Kotlin DebugMetadata has no value in release builds, these two rules, will
12# allow AppReduce to strip out DebutMetadata.
Jared Duke32c8a6a2024-05-01 23:32:26 +000013# TODO(b/302383328): Restore the below checkdiscard after resolving transitive
14# inclusion of kotlin-stdlib from androidx.annotation library deps.
15# -checkdiscard interface kotlin.coroutines.jvm.internal.DebugMetadata
Yifei Zhange6d99642023-11-02 17:23:07 -070016-assumenosideeffects class kotlin.coroutines.jvm.internal.DebugMetadataKt {
17 *** getDebugMetadataAnnotation(...);
18}
19-assumevalues class kotlin.coroutines.jvm.internal.DebugMetadataKt {
20 *** getDebugMetadataAnnotation(...) return null;
21}