mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 00:19:21 +08:00
Update readme to add information about depending on stdlib.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user