Yifei Zhang | e6d9964 | 2023-11-02 17:23:07 -0700 | [diff] [blame] | 1 | # 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 Duke | 32c8a6a | 2024-05-01 23:32:26 +0000 | [diff] [blame^] | 13 | # 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 Zhang | e6d9964 | 2023-11-02 17:23:07 -0700 | [diff] [blame] | 16 | -assumenosideeffects class kotlin.coroutines.jvm.internal.DebugMetadataKt { |
| 17 | *** getDebugMetadataAnnotation(...); |
| 18 | } |
| 19 | -assumevalues class kotlin.coroutines.jvm.internal.DebugMetadataKt { |
| 20 | *** getDebugMetadataAnnotation(...) return null; |
| 21 | } |