Added handlers

This commit is contained in:
Juan Gilsanz Polo 2023-05-08 22:19:32 +02:00
parent 7ddc08d109
commit e10b53338b

View file

@ -1,3 +1,5 @@
import 'package:sentry_flutter/sentry_flutter.dart';
bool compareVersions({ bool compareVersions({
required String currentVersion, required String currentVersion,
required String newVersion required String newVersion
@ -19,6 +21,7 @@ bool compareVersions({
return false; return false;
} }
} catch (e) { } catch (e) {
Sentry.captureException(e);
return false; return false;
} }
} }
@ -50,6 +53,7 @@ bool compareBetaVersions({
return false; return false;
} }
} catch (e) { } catch (e) {
Sentry.captureException(e);
return false; return false;
} }
} }
@ -116,6 +120,7 @@ bool serverVersionIsAhead({
} }
} }
} catch (e) { } catch (e) {
Sentry.captureException(e);
return false; return false;
} }
} }