main.com.jaychang.generatemock.GenerateMockProcessorProvider.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of generateMock-compiler Show documentation
Show all versions of generateMock-compiler Show documentation
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
)
}
}