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

main.com.jaychang.generatemock.GenerateMockProcessorProvider.kt Maven / Gradle / Ivy

Go to download

A KSP processor that generates a mock class implementing required methods with empty implementation and a factory class.

The newest version!
package com.jaychang.generatemock

import com.google.devtools.ksp.processing.SymbolProcessor
import com.google.devtools.ksp.processing.SymbolProcessorEnvironment
import com.google.devtools.ksp.processing.SymbolProcessorProvider

class GenerateMockProcessorProvider : SymbolProcessorProvider {
    override fun create(environment: SymbolProcessorEnvironment): SymbolProcessor {
        return GenerateMockProcessor(
            logger = environment.logger,
            codeGenerator = environment.codeGenerator
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy