Add Coroutines.DEFAULT to Gradle plugin

See CommonCompilerArguments changes
This commit is contained in:
Alexey Tsvetkov
2018-08-14 20:17:06 +03:00
committed by Ilya Gorbunov
parent c26b202907
commit a3d78f769b
2 changed files with 4 additions and 4 deletions
@@ -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) }
}
}
@@ -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}" }