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

com.vk.gradle.plugin.compose.utils.VkomposePlugin.kt Maven / Gradle / Ivy

The newest version!
package com.vk.gradle.plugin.compose.utils

import com.vk.gradle.plugin.composable.skippability.checker.ComposableSkippabilityCheckerPlugin
import com.vk.gradle.plugin.compose.source.information.cleaner.SourceInformationCleanerPlugin
import com.vk.gradle.plugin.compose.test.tag.applier.ComposeTestTagApplierPlugin
import com.vk.gradle.plugin.compose.test.tag.cleaner.ComposeTestTagCleanerPlugin
import com.vk.gradle.plugin.compose.test.tag.drawer.ComposeTestTagDrawerPlugin
import com.vk.gradle.plugin.compose.utils.settings.RecomposeSetting
import com.vk.gradle.plugin.compose.utils.settings.SkippabilityChecksSetting
import com.vk.gradle.plugin.compose.utils.settings.SourceInfoCleanSetting
import com.vk.gradle.plugin.compose.utils.settings.TestTagSetting
import com.vk.gradle.plugin.recompose.highlighter.RecomposeHighlighterPlugin
import com.vk.gradle.plugin.recompose.logger.RecomposeLoggerPlugin
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.apply

class VkomposePlugin : Plugin {

    override fun apply(target: Project) {

        // order matters
        target.apply()
        target.apply()
        target.apply()
        target.apply()
        target.apply()
        target.apply()
        target.apply()

        val extension = target.extensions.create("vkompose", VkomposeExtension::class.java)
        val settings = extension.settings

        // apply default settings
        settings[RecomposeSetting::class]?.setup(target)
        settings[TestTagSetting::class]?.setup(target)
        settings[SourceInfoCleanSetting::class]?.setup(target)
        settings[SkippabilityChecksSetting::class]?.setup(target)
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy