mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-25 16:26:07 +00:00
Added handlers
This commit is contained in:
parent
7ddc08d109
commit
e10b53338b
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue