CustomOutput

open class CustomOutput @Inject constructor : WireOutput

Constructors

Link copied to clipboard
@Inject
constructor()

Properties

Link copied to clipboard

See com.squareup.wire.schema.Target.excludes

Link copied to clipboard

See com.squareup.wire.schema.Target.exclusive

Link copied to clipboard

See com.squareup.wire.schema.Target.includes

Link copied to clipboard

Black boxed payload which a caller can set for the custom SchemaHandler.Factory to receive.

Link copied to clipboard
var out: String?

Set this to override the default output directory for this WireOutput.

Link copied to clipboard
var schemaHandlerFactory: SchemaHandler.Factory?

Assign the schema handler factory instance.

Link copied to clipboard

Assign the schema handler factory by name. If you use a class name, that class must have a no-arguments constructor.

Functions

Link copied to clipboard
open override fun toTarget(outputDirectory: String): CustomTarget

Transforms this WireOutput into a Target for which Wire will generate code. The Target should use outputDirectory instead of WireOutput.out in all cases for its output directory.