From 452c49f5bfca903e88803ff7c13d8e8f90bd167e Mon Sep 17 00:00:00 2001 From: SimonIT Date: Fri, 17 Jan 2025 21:28:57 +0100 Subject: [PATCH] Add gwt compatibility with instructions --- README.md | 20 ++++++++++++++++++++ src/main/resources/co/nstant/in/cbor.gwt.xml | 6 ++++++ 2 files changed, 26 insertions(+) create mode 100644 src/main/resources/co/nstant/in/cbor.gwt.xml diff --git a/README.md b/README.md index b71964f..76409f6 100644 --- a/README.md +++ b/README.md @@ -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 + + co.nstant.in + cbor + 0.9 + sources + +``` + +And the following inherits statement to your module file: + +```xml + +``` + ### Preserving order of map entries By default, [maps are encoded in canonical format](https://tools.ietf.org/html/rfc7049#section-3.9). diff --git a/src/main/resources/co/nstant/in/cbor.gwt.xml b/src/main/resources/co/nstant/in/cbor.gwt.xml new file mode 100644 index 0000000..7014a1d --- /dev/null +++ b/src/main/resources/co/nstant/in/cbor.gwt.xml @@ -0,0 +1,6 @@ + + + + +