Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,26 @@ new CborDecoder(bais).decode(new DataItemListener() {
});
```

### GWT Usage

The library can be used in GWT projects.
You just need to add the sources dependency to your project:

```xml
<dependency>
<groupId>co.nstant.in</groupId>
<artifactId>cbor</artifactId>
<version>0.9</version>
<classifier>sources</classifier>
</dependency>
```

And the following inherits statement to your module file:

```xml
<inherits name="co.nstant.in.cbor"/>
```

### Preserving order of map entries

By default, [maps are encoded in canonical format](https://tools.ietf.org/html/rfc7049#section-3.9).
Expand Down
6 changes: 6 additions & 0 deletions src/main/resources/co/nstant/in/cbor.gwt.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit trunk//EN"
"https://www.gwtproject.org/doctype/2.12.1/gwt-module.dtd">
<module>
<source path="cbor"/>
</module>