forked from firka/flutter
[flutter_tools] replace MockFlutterVersion usage with fake where possible, move from context (#77390)
This commit is contained in:
@@ -720,7 +720,7 @@ class FlutterValidator extends DoctorValidator {
|
||||
messages.add(ValidationMessage(_userMessages.flutterRevision(
|
||||
version.frameworkRevisionShort,
|
||||
version.frameworkAge,
|
||||
version.frameworkDate,
|
||||
version.frameworkCommitDate,
|
||||
)));
|
||||
messages.add(ValidationMessage(_userMessages.engineRevision(version.engineRevisionShort)));
|
||||
messages.add(ValidationMessage(_userMessages.dartRevision(version.dartSdkVersion)));
|
||||
|
||||
@@ -144,8 +144,6 @@ class FlutterVersion {
|
||||
String _frameworkVersion;
|
||||
String get frameworkVersion => _frameworkVersion;
|
||||
|
||||
String get frameworkDate => frameworkCommitDate;
|
||||
|
||||
String get dartSdkVersion => globals.cache.dartSdkVersion;
|
||||
|
||||
String get engineRevision => globals.cache.engineRevision;
|
||||
@@ -181,6 +179,8 @@ class FlutterVersion {
|
||||
'dartSdkVersion': dartSdkVersion,
|
||||
};
|
||||
|
||||
String get frameworkDate => frameworkCommitDate;
|
||||
|
||||
/// A date String describing the last framework commit.
|
||||
///
|
||||
/// If a git command fails, this will return a placeholder date.
|
||||
|
||||
Reference in New Issue
Block a user