aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Duarte <licorne@google.com>2023-09-15 04:52:29 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2023-09-15 04:52:29 +0000
commita8c20d76818ab099f631b5c59ba96287af099893 (patch)
tree8ecbb4ffc2d857caa04fca0462bcaa5154ddb4b9
parentb0a2b35bb676f86e726d9d1b18934c9d8f9ea9e9 (diff)
parent0be8a1606871af1ff6f5e0fcb9ac625f6138f4d2 (diff)
downloadkotlinx.coroutines-a8c20d76818ab099f631b5c59ba96287af099893.tar.gz
Exclude DebugProbesKt.bin from kotlinx_coroutines ressources am: 74c9e56a50 am: d189d98501 am: fb979a25f2 am: 0fd7ab7687 am: 0be8a16068
Original change: https://android-review.googlesource.com/c/platform/external/kotlinx.coroutines/+/2751992 Change-Id: I44dadd90ce5a3369dd4b8a2a434b220367e08cb9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
-rw-r--r--Android.bp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index ee7cb03e..ef396c7a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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",
],