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

commonMain.co.touchlab.skie.plugin.configuration.SkieAnalyticsConfiguration.kt Maven / Gradle / Ivy

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