getVersion method
Get engine version
Implementation
@override
Future<String> getVersion() async {
if (!isSupported) {
return 'Not supported';
}
try {
if (Platform.isIOS || Platform.isMacOS) {
return await _iosEngine.getXrayVersion();
} else if (Platform.isAndroid) {
return await _androidEngine.getXrayVersion();
}
return 'Unknown';
} catch (e) {
print('LibXray get version error: $e');
return 'Unknown';
}
}