commonMain.co.touchlab.skie.configuration.ExperimentalFeatures.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configuration-declaration-jvm Show documentation
Show all versions of configuration-declaration-jvm Show documentation
Configuration declarations for SKIE, used in Gradle plugin.
package co.touchlab.skie.configuration
import co.touchlab.skie.configuration.annotations.ExperimentalFeatures
object ExperimentalFeatures {
/**
* If true, enables experimental features which might not be fully implemented yet which may cause compilation problems.
*/
object Enabled : ConfigurationKey.Boolean, ConfigurationScope.All {
override val defaultValue: Boolean = false
override val skieRuntimeValue: Boolean = true
override fun findAnnotationValue(configurationTarget: ConfigurationTarget): Boolean? =
when {
configurationTarget.hasAnnotation() -> true
configurationTarget.hasAnnotation() -> false
else -> null
}
}
}