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

Improve SSZ Android compatibility: Replace java.util.function.Supplier with com.google.common.base.Supplier #9212

Open
biafra23 opened this issue Mar 7, 2025 · 0 comments

Comments

@biafra23
Copy link

biafra23 commented Mar 7, 2025

Issue description

On Android com.google.common.base.Supplier doesn't inherit from java.util.function.Supplier. This leads to a java.lang.IncompatibleClassChangeError at runtime.

Solution

Replace all occurrences of java.util.function.Supplier with com.google.common.base.Supplier.

I would be happy to create a pull request for this if you're open to considering it for merging.

AFAICT that is the only issue when using SSZ on Android. At least regarding the code paths that Samba reaches as of now.

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

No branches or pull requests

1 participant