Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add emoji generator script #321

Conversation

wax911
Copy link
Member

@wax911 wax911 commented Feb 8, 2025

AniTrend Pull Request

Thank you for contributing! Please take a moment to review our contributing guidelines to make the process easy and effective for everyone involved.

Please open an issue before embarking on any significant pull request, especially those that add a new library or change existing tests, otherwise you risk spending a lot of time working on something that might not end up being merged into the project.

Before opening a pull request, please ensure you've done the following:

  • You have followed our contributing guidelines
  • Double checked that your branch is based on develop and targets develop (where applicable)
  • Pull request has tests (if applicable)
  • Documentation is updated (if necessary)
  • Description explains the issue/use-case resolved

Description

See: #226

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Enhancement (Improves existing functionality)

IMPORTANT: By submitting a patch, you agree to allow the project owners to license your work under the terms of the Apache License 2.0.

@github-actions github-actions bot added the docs label Feb 8, 2025
@wax911 wax911 changed the title feat: add emoji generator scrk; feat: add emoji generator script Feb 8, 2025
LATEST_RELEASE=$(echo "$RELEASE_INFO" | jq -r '.tag_name')
RELEASE_URL=$(echo "$RELEASE_INFO" | jq -r '.html_url')
echo "VERSION=$(echo \"$LATEST_RELEASE\" | grep -oP '(?<=emojibase-data@)\d+\.\d+\.\d+')" >> $GITHUB_ENV
echo "RELEASE_URL=$RELEASE_URL" >> $GITHUB_ENV
Copy link

@DanyloOliinykSSG DanyloOliinykSSG Feb 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RELEASE_URL is the latest emoji release, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is correct

assert exc_info.value.code is not None


def test_normalization():
Copy link

@DanyloOliinykSSG DanyloOliinykSSG Feb 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the only thing that i might've added is test for isEmoji for these emojies: https://developer.android.com/develop/ui/views/text-and-emoji/emoji2
🐦‍🔥 🧑‍🧑‍🧒‍🧒 👩🏽‍🦽‍➡️ 🇲🇶
🩷 🫸🏼 🐦‍⬛
🫠 🫱🏼‍🫲🏿 🫰🏽
😶‍🌫️ 🧔🏻‍♀️ 🧑🏿‍❤️‍🧑🏾
🥲 🥷🏿 🐻‍❄️
🧑🏻‍🦰 🧑🏿‍🦯 👩🏻‍🤝‍👩🏼
🦩 🦻🏿 👩🏼‍🤝‍👩🏻

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great recommendation, however this would the the wrong place to do this. this script has one major role which is to convert map emojipedia emojis into a simpler structure we can use in the library. However the library already has tests EmojiTest.kt that make use of emoji-test.txt derived from https://www.unicode.org/Public/emoji/latest/emoji-test.txt this would cover the case of validating that all the unicode compliant emojis are catered for.

Copy link

@DanyloOliinykSSG DanyloOliinykSSG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great! 😎

@wax911 wax911 force-pushed the feat/226-platform-actions-create-automated-action-to-generate-emojijson-inline-with-unicodeorg branch from 1dc9f48 to b25e7bb Compare February 23, 2025 11:08
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved automated PR

@wax911 wax911 merged commit 3abaa70 into develop Feb 23, 2025
11 checks passed
@wax911 wax911 deleted the feat/226-platform-actions-create-automated-action-to-generate-emojijson-inline-with-unicodeorg branch February 23, 2025 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

platform(actions): create automated action to generate emoji.json inline with unicode.org
2 participants