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 {
|
enum class Coroutines {
|
||||||
ENABLE,
|
ENABLE,
|
||||||
WARN,
|
WARN,
|
||||||
ERROR;
|
ERROR,
|
||||||
|
DEFAULT;
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
val DEFAULT = WARN
|
|
||||||
|
|
||||||
fun byCompilerArgument(argument: String): Coroutines? =
|
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.ENABLE -> CommonCompilerArguments.ENABLE
|
||||||
Coroutines.WARN -> CommonCompilerArguments.WARN
|
Coroutines.WARN -> CommonCompilerArguments.WARN
|
||||||
Coroutines.ERROR -> CommonCompilerArguments.ERROR
|
Coroutines.ERROR -> CommonCompilerArguments.ERROR
|
||||||
|
Coroutines.DEFAULT -> CommonCompilerArguments.DEFAULT
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.kotlinDebug { "args.coroutinesState=${args.coroutinesState}" }
|
logger.kotlinDebug { "args.coroutinesState=${args.coroutinesState}" }
|
||||||
|
|||||||
Reference in New Issue
Block a user