commonMain.co.touchlab.skie.plugin.configuration.SkieAnalyticsConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-plugin-api-jvm Show documentation
Show all versions of gradle-plugin-api-jvm Show documentation
Public API for SKIE Gradle plugin.
The newest version!
package co.touchlab.skie.plugin.configuration
import co.touchlab.skie.configuration.AnalyticsTier
import co.touchlab.skie.configuration.SkieConfigurationFlag
import org.gradle.api.model.ObjectFactory
import org.gradle.api.provider.Property
import javax.inject.Inject
abstract class SkieAnalyticsConfiguration @Inject constructor(objects: ObjectFactory) {
val enabled: Property = objects.property(Boolean::class.java).convention(true)
val disableUpload: Property = objects.property(Boolean::class.java).convention(false)
internal fun buildConfigurationFlags(): Set =
(if (enabled.get()) AnalyticsTier.Anonymous else AnalyticsTier.None).configurationFlags
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy