Options

object Options

Properties

Link copied to clipboard
const val OPTION_GENERATE_PROGUARD_RULES: String

This boolean processing option can disable proguard rule generation. Normally, this is not recommended unless end-users build their own JsonAdapter look-up tool. This is enabled by default.

Link copied to clipboard
const val OPTION_GENERATED: String

This processing option can be specified to have a @Generated annotation included in the generated code. It is not encouraged unless you need it for static analysis reasons and not enabled by default.

Link copied to clipboard
const val OPTION_INSTANTIATE_ANNOTATIONS: String

This boolean processing option controls whether or not Moshi will directly instantiate JsonQualifier annotations in Kotlin 1.6+. Note that this is enabled by default in Kotlin 1.6 but can be disabled to restore the legacy behavior of storing annotations on generated adapter fields and looking them up reflectively.

Link copied to clipboard
val POSSIBLE_GENERATED_NAMES: Map<String, ClassName>