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

fix(device_info_plus): fixed webasm compliance #3254

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

arnaudruffin
Copy link

Description

This PR allows device_info_plus to be used in a web project compiled to webasm.

For that a type had to be changed (devicememory became a double?) and one converted from JStype to dart type.
I also took the liberty to update the example "index.html" file, as it was based on a deprecated template and not compatible with webasm compilation.

Most of this commit is a copy of what was done in #3161 by @GiacomoPignoni . Credits go to him.

Related Issues

Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I titled the PR using Conventional Commits.
  • I did not modify the CHANGELOG.md nor the plugin version in pubspec.yaml files.
  • All existing and new tests are passing.
  • The analyzer (flutter analyze) does not report any problems on my PR. => not directly on my modifications

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (please indicate that with a ! in the title as explained in Conventional Commits).
  • No, this is not a breaking change.

@arnaudruffin arnaudruffin changed the title fix(device_info_plus): fixed webaasm fix(device_info_plus): fixed webasm Sep 12, 2024
@arnaudruffin arnaudruffin changed the title fix(device_info_plus): fixed webasm fix(device_info_plus): fixed webasm compliance Sep 12, 2024
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.

[Bug]: illegal cast in device_info_plus when compiled to Wasm
2 participants