diff options
author | David Duarte <licorne@google.com> | 2023-09-15 02:11:56 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-09-15 02:11:56 +0000 |
commit | fb979a25f27c2f7e23d719d4832744257c168aca (patch) | |
tree | 8ecbb4ffc2d857caa04fca0462bcaa5154ddb4b9 | |
parent | beb69e7befb7eeb167ef26770932a0210bae5bc4 (diff) | |
parent | d189d985019bf78ae4ac21124f4757e0643ffc1f (diff) | |
download | kotlinx.coroutines-fb979a25f27c2f7e23d719d4832744257c168aca.tar.gz |
Exclude DebugProbesKt.bin from kotlinx_coroutines ressources am: 74c9e56a50 am: d189d98501
Original change: https://android-review.googlesource.com/c/platform/external/kotlinx.coroutines/+/2751992
Change-Id: I90221f636cb042f89dae07f9b3b1e7682060d596
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r-- | Android.bp | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -50,6 +50,13 @@ java_library_host { "kotlinx-coroutines-core/jvm/src/test_/TestCoroutineContext.kt", ], java_resource_dirs: ["kotlinx-coroutines-core/jvm/resources"], + // See https://github.com/Kotlin/kotlinx.coroutines#avoiding-including-the-debug-infrastructure-in-the-resulting-apk + // This file contains `kotlin.coroutines.jvm.internal.DebugProbesKt` class and is only used + // by the debugger. + // This cause issues when generating coverage as Jacoco will fail with + // `Caused by: java.lang.IllegalStateException: Can't add different class with same name: kotlin/coroutines/jvm/internal/DebugProbesKt` + // See b/291743544 for more details + exclude_java_resources: ["kotlinx-coroutines-core/jvm/resources/DebugProbesKt.bin"], static_libs: [ "kotlinx_atomicfu", ], |