core/helper_version_check library
Classes
- HelperVersionNotReported
- The helper answered but does not report a version (older than helperVersionReportingSince).
- HelperVersionReported
- The helper reported version.
- The version could not be queried (no session, no helper, VM unreachable).
- RunningHelperVersion
- What the running app reported about its fdb_helper version.
Constants
- helperVersionQueryTimeout → const Duration
- Upper bound for queryRunningHelperVersion so a hung VM never stalls doctor.
- helperVersionReportingSince → const String
- First fdb_helper release that reports its version. A helper that stays silent is older than this.
Functions
-
helperVersionWarnings(
{required RunningHelperVersion running, required String? resolved, String cliVersion = constants.version}) → List< String> -
Returns the
WARNING: ...lines forrunningcompared to the version the project resolves (resolved, null when unknown) and the fdb CLI version (cliVersion). Empty when everything lines up or nothing is known. -
queryRunningHelperVersion(
{Duration timeout = helperVersionQueryTimeout}) → Future< RunningHelperVersion> -
Best-effort query of the running helper's version via
ext.fdb.lifecycle. Never throws. -
readResolvedHelperVersion(
String projectPath) → String? -
Returns the fdb_helper version the Flutter project at
projectPathresolves, from.dart_tool/package_config.json, or null when it cannot be determined (nopub getyet, no fdb_helper dependency, unreadable files). -
readSessionResolvedHelperVersion(
) → String? - readResolvedHelperVersion for the active session's project.