Skip to content

Commit f3d2a83

Browse files
committed
Update tizen_doctor.dart
1 parent 4efcce4 commit f3d2a83

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

lib/tizen_doctor.dart

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,23 @@ class TizenValidator extends DoctorValidator {
7575

7676
if (!_tizenSdk.tizenCli.existsSync()) {
7777
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+
}
7893
}
94+
7995
if (!_tizenSdk.toolsDirectory
8096
.childDirectory('arm-linux-gnueabi-gcc-$gccVersion')
8197
.existsSync()) {

0 commit comments

Comments
 (0)