Sentry changes

This commit is contained in:
Hillel Coren 2020-11-30 08:19:10 +02:00
parent 1d48b6e79a
commit caf48c6770
2 changed files with 10 additions and 3 deletions

View File

@ -179,8 +179,15 @@ abstract class AppState implements Built<AppState, AppStateBuilder> {
Color get accentColor => convertHexStringToColor(
userCompany?.settings?.accentColor ?? kDefaultAccentColor);
String get appVersion =>
'${account?.currentVersion ?? '0.0.0'}-${kClientVersion.split('.').last}';
String get appVersion {
String version = account?.currentVersion ?? '';
if (version.isNotEmpty) {
version += '-';
}
return version + kClientVersion.split('.').last;
}
List<HistoryRecord> get historyList =>
prefState.companyPrefs[company.id].historyList.where((history) {

View File

@ -51,7 +51,7 @@ Future<Event> getSentryEvent(
}
return Event(
release: state?.appVersion ?? kClientVersion,
release: kClientVersion,
//release: packageInfo.version,
environment: environment,
stackTrace: stackTrace,