Add a formatted version of emoji_picker_datasource.json. Not included in the APK.

This commit is contained in:
Benoit Marty 2021-06-17 14:17:44 +02:00 committed by Benoit Marty
parent bffa96ae10
commit 930675d4c9
3 changed files with 23206 additions and 0 deletions

5
tools/emojis/README.md Normal file
View file

@ -0,0 +1,5 @@
# Emojis in Element Android
This folder contains a formatted version of emoji_picker_datasource.json, for easier comparison when doing change.
It is updated each time the emoji are imported, using ./tools/import_emoji.py.

File diff suppressed because it is too large Load diff

View file

@ -130,4 +130,10 @@ print("Writing emoji_picker_datasource.json...")
scripts_dir = os.path.dirname(os.path.abspath(__file__)) scripts_dir = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(scripts_dir, "../vector/src/main/res/raw/emoji_picker_datasource.json"), "w") as outfile: with open(os.path.join(scripts_dir, "../vector/src/main/res/raw/emoji_picker_datasource.json"), "w") as outfile:
json.dump(emoji_picker_datasource, outfile, ensure_ascii=False, separators=(',', ':')) json.dump(emoji_picker_datasource, outfile, ensure_ascii=False, separators=(',', ':'))
# Also export a formatted version
print("Writing emoji_picker_datasource_formatted.json...")
with open(os.path.join(scripts_dir, "../tools/emojis/emoji_picker_datasource_formatted.json"), "w") as outfile:
json.dump(emoji_picker_datasource, outfile, ensure_ascii=False, indent=4)
print("Done.") print("Done.")