Add Coroutines.DEFAULT to Gradle plugin
See CommonCompilerArguments changes
This commit is contained in:
committed by
Ilya Gorbunov
parent
c26b202907
commit
a3d78f769b
+3
-4
@@ -63,12 +63,11 @@ open class ExperimentalExtension {
|
||||
enum class Coroutines {
|
||||
ENABLE,
|
||||
WARN,
|
||||
ERROR;
|
||||
ERROR,
|
||||
DEFAULT;
|
||||
|
||||
companion object {
|
||||
val DEFAULT = WARN
|
||||
|
||||
fun byCompilerArgument(argument: String): Coroutines? =
|
||||
Coroutines.values().firstOrNull { it.name.equals(argument, ignoreCase = true) }
|
||||
Coroutines.values().firstOrNull { it.name.equals(argument, ignoreCase = true) }
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -269,6 +269,7 @@ abstract class AbstractKotlinCompile<T : CommonCompilerArguments>() : AbstractKo
|
||||
Coroutines.ENABLE -> CommonCompilerArguments.ENABLE
|
||||
Coroutines.WARN -> CommonCompilerArguments.WARN
|
||||
Coroutines.ERROR -> CommonCompilerArguments.ERROR
|
||||
Coroutines.DEFAULT -> CommonCompilerArguments.DEFAULT
|
||||
}
|
||||
|
||||
logger.kotlinDebug { "args.coroutinesState=${args.coroutinesState}" }
|
||||
|
||||
Reference in New Issue
Block a user