Enable kotlinx.coroutines.ExperimentalCoroutinesApi for coroutines-test

Disable warning on usage of experimental Coroutines like `runBlockingTest`
Affected: none

MAILAND-896
This commit is contained in:
Davide Farella 2020-08-27 14:17:50 +02:00 committed by Davide Giuseppe Farella
parent 32427675b2
commit 217ac3f265
1 changed files with 6 additions and 1 deletions

View File

@ -34,10 +34,15 @@ allprojects {
}
setupKotlin(
// Enables new type inference: TODO remove with Kotlin 1.4
"-XXLanguage:+NewInference",
"-Xuse-experimental=kotlin.Experimental",
// Enables inline classes
"-XXLanguage:+InlineClasses",
"-Xopt-in=kotlin.ExperimentalUnsignedTypes"
// Enables unsigned types, like `UInt`, `ULong`, etc
"-Xopt-in=kotlin.ExperimentalUnsignedTypes",
// Enables experimental Coroutines from coroutines-test artifact, like `runBlockingTest`
"-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
)
setupDetekt { "tokenAutoComplete" !in it.name }