moshi

fun moshi(codegen: Boolean, adapters: Boolean = false, kotlinReflect: Boolean = false, action: Action<MoshiHandler> = Action {})(source)

Enables Moshi for this project.

Parameters

codegen

Enables codegen.

adapters

Enables moshi-adapters.

kotlinReflect

Enables kotlin-reflect-based support. Should only be used in unit tests or CLIs!

action

Optional extra configuration for other Moshi libraries, such as MoshiX.