This repository is derived from vdurmont/emoji-java. Coding makes some change in this version to be used in product more suitable.
The project uses maven as build tool. You can use mvn package
to build jar.
After that, you can copy the jar under target/
into your project libs.
compile files('libs/emoji-java-4.0.0-coding.jar')
- Use binary format to load emoji resource instead of json.
- Use constructor in EmojiManager instead of static function. The intent is to enable lazy loading for emoji resource.
If src/main/resource/emojis.json
changed, you can run GenerateBinaryEmojisFileTools
to generate binary file.
The emoji.ser
will be generated under the root path. You should copy the file to src/main/resource
manually.