Skip to content

chore(emojis): remove the unused :ui:emojis module - #1668

Merged
bmc08gt merged 1 commit into
code/cashfrom
chore/emoji-dead-compat
Oct 2, 2026
Merged

bmc08gt merged 1 commit into
code/cashfrom
chore/emoji-dead-compat

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 2, 2026

Copy link
Copy Markdown
Collaborator

:ui:emojis had one consumer, EmojiModal.kt in :ui:components, and nothing calls EmojiModalContent. This removes both, along with emoji2 and emoji2-bundled.

The module was also a latent crash. EmojiRender and EmojiSearchResults call processEmoji, which reads EmojiCompat.get(). EmojiCompat is never initialized: EmojiCompatController.init() has no callers, and emoji2-bundled's manifest strips emoji2's startup initializer. Rendering either composable would throw IllegalStateException.

Dropping emoji2-bundled lets EmojiCompatInitializer back into the merged manifest through Compose's emoji2 dependency. That would initialize EmojiCompat with the downloadable font and change emoji rendering on API 29–34. The app manifest now removes the initializer explicitly, so emoji stay on the system font as they are today. The debug and release merged manifests both have no emoji entries, same as before this change.

:libs:emojis stays; the reaction picker and recent reactions use it.

Nothing outside the module called into it except EmojiModal.kt in
:ui:components, and nothing called EmojiModalContent. Its EmojiRender and
EmojiSearchResults call processEmoji, which reads EmojiCompat.get() without
EmojiCompat ever being initialized: EmojiCompatController.init() had no
callers, and emoji2-bundled strips emoji2's startup initializer. Rendering
either composable would throw IllegalStateException.

Removing emoji2-bundled lets EmojiCompatInitializer back into the merged
manifest through Compose's emoji2 dependency, which would switch emoji on
API 29-34 to the downloadable font. The app manifest now removes it
explicitly, so emoji keep using the system font as before.
@bmc08gt bmc08gt self-assigned this Oct 2, 2026
@github-actions github-actions Bot added area: ui Compose UI, theme, components, resources area: build-system Gradle, convention plugins, build-logic type: chore Maintenance, config, CI/CD labels Oct 2, 2026
@bmc08gt
bmc08gt merged commit 5355e9f into code/cash Oct 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: build-system Gradle, convention plugins, build-logic area: ui Compose UI, theme, components, resources type: chore Maintenance, config, CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant