dawranliou / emoji

Emoji for Clojure
https://cljdoc.org/d/dawran6/emoji
MIT License
21 stars 2 forks source link

Hard to maintain resources/emoji.edn #3

Closed dawranliou closed 4 years ago

dawranliou commented 4 years ago

Maintaining the emoji.edn file could be hard.

For instance when unicode adds a new block of emoji, or slack introduces new aliases.

Opting for json format would be a lot easier to maintain and we get a richer information like html and categories from this gist, or description and tags from this library.

I can think of 2 solutions:

  1. Download the emoji.json as a resource, like this PR.
    • Pros: total control over the resource.
    • Cons: a bit more work to release a new version.
  2. Add a thin wrapper around the library - emoji-java
    • Pros: faster to release a new version, have access to some APIs from emoji-java
    • Cons: cannot release new emoji separately from emoji-java

This is my thoughts so far. Any suggestion is welcome. The solution might be a combination of the two above.

dawranliou commented 4 years ago

I included the emojis.json from emoji-java as a resource. However, I don't feel the need to add emoji-java as a dependency. We'll revisit the decision later if needed.