Kotlin-reflect QoL APIs (#875)

* Start MoshiKotlinExtensions

* Add Moshi.Builder.add() with reified typeOf

* Use non-shadowing name for addAdapter

* Implement KType.toType()

.javaType isn't implemented

* Don't re-wrap wrapped adapters

* Use new adapter functions in tests to smoke test

* Don't enable uses experimental in kotlin-reflect, only the test

* Use internal leniency API

* Use toType in addAdapter too

* Update error message in test
This commit is contained in:
Zac Sweers
2019-09-04 20:24:59 -04:00
committed by GitHub
parent 73cc9656ba
commit 9db91f2dce
8 changed files with 267 additions and 132 deletions

View File

@@ -116,6 +116,7 @@
<configuration>
<args>
<arg>-Werror</arg>
<arg>-Xuse-experimental=kotlin.ExperimentalStdlibApi</arg>
</args>
</configuration>
</plugin>