app.cash.paparazzi.preview.processor.PreviewProcessor.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of paparazzi-preview-processor Show documentation
Show all versions of paparazzi-preview-processor Show documentation
A symbol processor for integrating Paparazzi with Composable @Previews
The newest version!
package app.cash.paparazzi.preview.processor
import com.google.devtools.ksp.processing.Resolver
import com.google.devtools.ksp.processing.SymbolProcessor
import com.google.devtools.ksp.processing.SymbolProcessorEnvironment
import com.google.devtools.ksp.processing.SymbolProcessorProvider
import com.google.devtools.ksp.symbol.KSAnnotated
public class PreviewProcessorProvider : SymbolProcessorProvider {
override fun create(
environment: SymbolProcessorEnvironment
): PreviewProcessor = PreviewProcessor(environment)
}
public class PreviewProcessor(
private val environment: SymbolProcessorEnvironment
) : SymbolProcessor {
override fun process(resolver: Resolver): List = emptyList()
}