mirror of
https://github.com/fankes/moshi.git
synced 2025-10-19 07:59:21 +08:00
Initial JsonAdapter structure.
This is similar to the way Gson does its type adapters: factories that can delegate and compose. It's different because annotations are fundamental to the design. It's also different because there are no APIs to convert to and from JSON on the central object: instead callers must get the JSON adapter they're interested in and do that there. This is potentially more efficient because applications can hold the adapter they need.
This commit is contained in:
6
pom.xml
6
pom.xml
@@ -30,6 +30,7 @@
|
||||
|
||||
<!-- Test Dependencies -->
|
||||
<junit.version>4.11</junit.version>
|
||||
<assertj.version>1.6.1</assertj.version>
|
||||
</properties>
|
||||
|
||||
<scm>
|
||||
@@ -63,6 +64,11 @@
|
||||
<artifactId>okio</artifactId>
|
||||
<version>${okio.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.assertj</groupId>
|
||||
<artifactId>assertj-core</artifactId>
|
||||
<version>${assertj.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
|
Reference in New Issue
Block a user