File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -55,6 +55,10 @@ compileKotlinMetadata {
5555}
5656
5757kotlin. sourceSets {
58+ jvm. dependencies {
59+ compileOnly " com.google.android:annotations:4.1.1.4"
60+ }
61+
5862 jvmTest. dependencies {
5963 api " org.jetbrains.kotlinx:lincheck:$lincheck_version "
6064 api " org.jetbrains.kotlinx:kotlinx-knit-test:$knit_version "
Original file line number Diff line number Diff line change @@ -9,8 +9,14 @@ import sun.misc.*
99import java.lang.instrument.*
1010import java.lang.instrument.ClassFileTransformer
1111import java.security.*
12+ import android.annotation.*
1213
14+ /*
15+ * This class is loaded if and only if kotlinx-coroutines-core was used as -javaagent argument,
16+ * but Android complains anyway (java.lang.instrument.*), so we suppress all lint checks here
17+ */
1318@Suppress(" unused" )
19+ @SuppressLint(" all" )
1420internal object AgentPremain {
1521
1622 public var isInstalledStatically = false
You can’t perform that action at this time.
0 commit comments