pub-dev icon indicating copy to clipboard operation
pub-dev copied to clipboard

Surface supported architectures per OS

Open dcharkes opened this issue 1 year ago • 5 comments

Tracking issue for the surfacing on pub.dev part of:

  • https://github.com/dart-lang/sdk/issues/56639
  • https://github.com/dart-lang/native/issues/1500

We should consider surfacing the supported hardware architectures on pub per OS.

And there are more things we could report, such as the minimum supported SDK version for Android, iOS, and MacOS.

dcharkes avatar Sep 03 '24 07:09 dcharkes

Is this really an issue for the site? (dart-lang/pub-dev)?

sigurdm avatar Sep 03 '24 07:09 sigurdm

The reporting is? (I'll file another issue on the SDK for reasoning about SDK native version constraints in general.)

dcharkes avatar Sep 03 '24 08:09 dcharkes

@dcharkes is pana going to run the native-assets build script to get this information, or is it something that is hardcoded in pubspec.yaml under platforms.android?

jonasfj avatar Sep 03 '24 12:09 jonasfj

Those are two options.

If we want the solution to work for Flutter plugins, and Dart packages only using dart:ffi, the pubspec.yaml.

If we don't care about forcing those users to use a build hook, we could also make the hook report it. See the linked issues.

dcharkes avatar Sep 03 '24 12:09 dcharkes

I think going with the hook is ok. I don't see the need for it in pubspec.yaml, and as you say, it can get out of sync with the actual platform support.

Pana is sandboxed, and should(??) be ok running user code. But that would be something new for us to do.

sigurdm avatar Sep 05 '24 08:09 sigurdm