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

commonMain.co.touchlab.skie.plugin.analytics.project.ProjectAnalytics.kt Maven / Gradle / Ivy

There is a newer version: 0.9.0-RC.5
Show newest version
package co.touchlab.skie.plugin.analytics.project

import co.touchlab.skie.configuration.SkieConfigurationFlag
import co.touchlab.skie.plugin.analytics.AnalyticsProducer
import co.touchlab.skie.plugin.util.toPrettyJson
import co.touchlab.skie.util.hash.hashed

data class ProjectAnalytics(
    val projectId: String,
) {

    class Producer(
        private val rootProjectName: String,
        private val projectPath: String,
        private val projectGroup: Any,
    ) : AnalyticsProducer {

        override val configurationFlag: SkieConfigurationFlag = SkieConfigurationFlag.Analytics_Project

        override val name: String = "project"

        override fun produce(): String =
            ProjectAnalytics(
                projectId = "${rootProjectName}${projectPath}${projectGroup}".hashed(),
            ).toPrettyJson()
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy