mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-21 17:05:39 +03:00
Add a formatted version of emoji_picker_datasource.json. Not included in the APK.
This commit is contained in:
parent
bffa96ae10
commit
930675d4c9
3 changed files with 23206 additions and 0 deletions
5
tools/emojis/README.md
Normal file
5
tools/emojis/README.md
Normal 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.
|
23195
tools/emojis/emoji_picker_datasource_formatted.json
Normal file
23195
tools/emojis/emoji_picker_datasource_formatted.json
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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.")
|
||||||
|
|
Loading…
Reference in a new issue