mvrx-mocking / com.airbnb.mvrx.mocking.printer / AutoValueTypePrinter / modifyImports

modifyImports

fun modifyImports(imports: List<String>): List<String>

Overrides TypePrinter.modifyImports

Optionally modify the import statements that will be added to the generated mock file. By default, each processed type is added as an import.

This function can be used if your generated code depends on anything beyond the instance types that are processed.

This will be called once per registered TypePrinter, after all other code has been generated, but only if this instance is actually used to generated code (ie it returned true from acceptsObject at least once).