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

refactor: Use type converters instead calling moshi.adapter by hand #1134

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

nikclayton
Copy link
Contributor

A few places in the code were calling moshi.adapter to marshall to/from strings in the database where type converters either already exist, or are straightforward to create.

Create the missing type converters, and use them throughout. This simplifies several places where a Moshi instance no longer needs to be passed through several layers of method calls.

Since this doesn't change the underlying database representation of the data there's no need to bump the database version number.

A few places in the code where calling `moshi.adapter` to marshall
to/from strings in the database where type converters either already
exist, or are straightforward to create.

Create the missing type converters, and use them throughout. This
simplifies several places where a Moshi instance no longer needs to be
passed through several layers of method calls.

Since this doesn't change the underlying database representation of the
data there's no need to bump the database version number.
@nikclayton nikclayton merged commit 982963b into main Nov 25, 2024
24 checks passed
@nikclayton nikclayton deleted the emoji-type-converter branch November 25, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant