Merge pull request #592 from runningcode/no/readme-update

Update readme to add information about depending on stdlib.
This commit is contained in:
Jesse Wilson
2018-07-03 16:57:56 -04:00
committed by GitHub

View File

@@ -544,6 +544,9 @@ add the following to your build to enable the annotation processor:
kapt 'com.squareup.moshi:moshi-kotlin-codegen:1.6.0' kapt 'com.squareup.moshi:moshi-kotlin-codegen:1.6.0'
``` ```
You must also have the `kotlin-stdlib` dependency on the classpath during compilation in order for
the compiled code to have the required metadata annotations that Moshi's processor looks for.
#### Limitations #### Limitations
If your Kotlin class has a superclass, it must also be a Kotlin class. Neither reflection or codegen If your Kotlin class has a superclass, it must also be a Kotlin class. Neither reflection or codegen