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

com.dailystudio.devbricksx.ksp.processors.ComposeProcessor.kt Maven / Gradle / Ivy

package com.dailystudio.devbricksx.ksp.processors

import com.dailystudio.devbricksx.ksp.processors.step.ProcessStep
import com.dailystudio.devbricksx.ksp.processors.step.compose.ListScreenStep
import com.google.devtools.ksp.processing.SymbolProcessorEnvironment
import com.squareup.kotlinpoet.FileSpec

class ComposeProcessor(
    environment: SymbolProcessorEnvironment
) : StepsSymbolProcessor(environment) {

    override val steps: Array
        get() = arrayOf(
            ListScreenStep(this),
        )

    override fun postProcessOnFileBuilder(fileBuilder: FileSpec.Builder) {
        super.postProcessOnFileBuilder(fileBuilder)

        fileBuilder.addImport("androidx.compose.runtime", "getValue")
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy