We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4efcce4 commit f3d2a83Copy full SHA for f3d2a83
1 file changed
lib/tizen_doctor.dart
@@ -75,7 +75,23 @@ class TizenValidator extends DoctorValidator {
75
76
if (!_tizenSdk.tizenCli.existsSync()) {
77
missingPackages.add('NativeCLI');
78
+ } else {
79
+ final Version? tizenCliVersion = Version.parse(
80
+ _processUtils
81
+ .runSync(<String>[_tizenSdk.tzCli.path, '--version'])
82
+ .stdout
83
+ .trim()
84
+ .split('v')
85
+ .last,
86
+ );
87
+
88
+ if (tizenCliVersion == null || tizenCliVersion < Version(0, 2, 0)) {
89
+ messages.add(ValidationMessage.error(
90
+ 'The version of NativeCLI is outdated.\n'
91
+ 'Run `$packageManager update` to update the NativeCLI package.'));
92
+ }
93
}
94
95
if (!_tizenSdk.toolsDirectory
96
.childDirectory('arm-linux-gnueabi-gcc-$gccVersion')
97
.existsSync()) {
0 commit comments