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

Do we still need device_preview? #5297

Closed
g123k opened this issue May 27, 2024 · 5 comments
Closed

Do we still need device_preview? #5297

g123k opened this issue May 27, 2024 · 5 comments

Comments

@g123k
Copy link
Collaborator

g123k commented May 27, 2024

Hi everyone,

I don't really like this dependency personally, but it's becoming a pain to develop with it:

  • keyboard on the desktop is not working
  • a11n tester on Android doesn't recognize any element

I know that I can disable it, but is-it really used?

@monsieurtanuki
Copy link
Contributor

@g123k While you're here please consider

Regarding device_preview I don't use it - I comment it.

@g123k
Copy link
Collaborator Author

g123k commented May 28, 2024

@g123k While you're here please consider

Regarding device_preview I don't use it - I comment it.

For sensors_plus, clearly YES, it's totally removable today. But I think, one way or another, I will bring it back.
So, I don't have a strong opinion.

For cache manager, I remember creating it, but I don't remember why.
So you can reopen (recreate?) a PR to remove it

@monsieurtanuki
Copy link
Contributor

I've just reopened both PRs.
I have no problem with needed packages, so feel free to reintroduce sensors_plus when relevant, but for the moment we'd be better off without it (and I'll get less error messages in my emulator).

Regarding device_preview, I would recommend commenting it in both pubspec.yaml and main.dart: we very rarely need it but it will be ready after a couple of uncommentings.
Or let's get rid of it altogether, I don't really mind.

@g123k
Copy link
Collaborator Author

g123k commented May 28, 2024

I've just reopened both PRs. I have no problem with needed packages, so feel free to reintroduce sensors_plus when relevant, but for the moment we'd be better off without it (and I'll get less error messages in my emulator).

Regarding device_preview, I would recommend commenting it in both pubspec.yaml and main.dart: we very rarely need it but it will be ready after a couple of uncommentings. Or let's get rid of it altogether, I don't really mind.

Oops didn't see your comment before my PR.
Actually, running the app in the desktop mode is more or less the same.

Instead of uncommenting, we can maybe create a script (I'm not really a fan of commenting)

@monsieurtanuki
Copy link
Contributor

Removed in #5302.

@github-project-automation github-project-automation bot moved this from 💬 To discuss and validate to 🎊 Done in 🤳🥫 The Open Food Facts mobile app (Android & iOS) May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants