All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.co.touchlab.skie.configuration.ExperimentalFeatures.kt Maven / Gradle / Ivy

There is a newer version: 0.9.3
Show newest version
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
            }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy