mirror of
https://github.com/matrix-org/emojibase-bindings.git
synced 2026-11-17 03:30:36 +00:00
Packages emojibase bindings for iOS and Android
- TypeScript 43.8%
- Swift 27.8%
- Kotlin 21.9%
- Shell 5.8%
- JavaScript 0.7%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .github | ||
| platforms | ||
| scripts | ||
| src | ||
| test | ||
| .eslintignore | ||
| .eslintrc.json | ||
| .gitignore | ||
| babel.config.cjs | ||
| jest.config.ts | ||
| LICENSE | ||
| package.json | ||
| Package.swift | ||
| README.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| yarn.lock | ||
emojibase-bindings
Kotlin, Swift and Web bindings for emojibase json.
Requirements
- Node LTS
- Yarn Classic
Installation
Run ./scripts/setup.sh to install dependencies for this project.
Generating the emojibase.json
Run ./scripts/generateJson.sh to generate the emojibase.json assets
Updating Emoji Version
- Update the emojibase
emojibaseversion in a package.json to one that support the required emoji version. - To update the emoji version web uses change
MAX_EMOJI_VERSION_WEBin src/emoji.ts(Element Web imports this file directly).- caveat: This version should be changed in unison with the twemoji verison so that all emojis displayed in the picker can actually be rendered.
- To update the emoji version iOS or Android use change
MAX_EMOJI_VERSION_ANDROIDorMAX_EMOJI_VERSION_IOSrespectively in scripts/generateJson.sh(This script generates theemojibase.jsonfile packaged with the iOS and Android packages)
Releasing
Use "Run workflow". Refer to SemVer for versioning semantics. This workflow will bump the version, publish to NPM/Maven and create a GitHub release. The Swift consumer uses SwiftPM and can target the latest released version.