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

Add a Requirement Panel #8578

Open
ricardodalarme opened this issue Feb 21, 2025 · 2 comments
Open

Add a Requirement Panel #8578

ricardodalarme opened this issue Feb 21, 2025 · 2 comments

Comments

@ricardodalarme
Copy link

Description

Add a Requirement Panel to the package page that displays:

  • Minimum Flutter Version (from the flutter version entry in pubspec.yaml)
  • Minimum Dart Version (from the dart version entry in pubspec.yaml)
  • Minimum Android SDK Version (from minSdkVersion in android/app/build.gradle)
  • Minimum iOS Deployment Target (from IPHONEOS_DEPLOYMENT_TARGET in ios/Runner.xcodeproj/project.pbxproj)

This information should be automatically extracted from the configuration files, without requiring additional configuration from package maintainers.

Benefits

  • Improves developer experience by making compatibility details easy to find.
  • Ensures version information is always accurate and up to date.
  • Reduces the risk of installation issues due to unsupported versions.

Example Display

Requirements:
- Flutter: ≥3.10.0
- Dart: ≥2.18.0
- Android: ≥21 (from build.gradle)
- iOS: ≥11.0 (from project.pbxproj)
@sigurdm
Copy link
Contributor

sigurdm commented Feb 27, 2025

I can see the value from this

We already have the flutter and dart required versions on the versions tab.

Extracting versions from build.gradle is non-trivial (because it is executable code), but we might be able to approximate it with a regex or similar. Same thing for ios (we'd probably need to look in the cocoapods/swiftpm file not the project.pbxproj).

@sigurdm
Copy link
Contributor

sigurdm commented Feb 27, 2025

Are there corresponding versions we could extract for the desktop platforms? Probably macos is similar to ios...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants