-
Notifications
You must be signed in to change notification settings - Fork 160
[Feature] Exclude supports for certain platform #4602
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
Comments
@Sunbreak: can you think of any intrinsic property inside the package that we can detect and could suggest us that it supports desktop platforms only? |
Maybe something like: dart:
native:
platforms: [windows, linux, macos] |
@Sunbreak: I was thinking if there is in the code, the dependencies, in the layout of the project or in the content of the files that necessarily excludes mobile platforms. We tend to prefer inferring these as opposed to requiring to specify explicitly. |
I don't think it could be inferred from the code, the dependencies or the layout of the project. |
In general, there's unlikely to be a way to detect platform limitation of a package whose limitation comes from either FFI or |
This has been fixed in pana already, and will show up in a coming pub release. Closing as a duplicate of dart-lang/pana#889 |
Uh oh!
There was an error while loading. Please reload this page.
https://pub.dev/packages/libusb supports only Windows/macOS/Linux
Could we exclude the
TAG
s of Android/iOS?BTW:
libusb
is a Dart package, neither Flutter plugin nor Flutter package. None of it dependency declared something like:The text was updated successfully, but these errors were encountered: