wire-compiler / com.squareup.wire.schema / Target / KotlinTarget

KotlinTarget

data class KotlinTarget : Target

Generate .kt sources.

Constructors

<init>

KotlinTarget(elements: List<String> = listOf("*"), outDirectory: String, android: Boolean = false, javaInterop: Boolean = false)

Generate .kt sources.

Properties

android

val android: Boolean

True for emitted types to implement android.os.Parcelable.

elements

val elements: List<String>

Proto types to generate sources for with this target. Types included here will be generated for this target and not for subsequent targets in the task.

javaInterop

val javaInterop: Boolean

True for emitted types to implement APIs for easier migration from the Java target.

outDirectory

val outDirectory: String