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( Color get accentColor => convertHexStringToColor(
userCompany?.settings?.accentColor ?? kDefaultAccentColor); userCompany?.settings?.accentColor ?? kDefaultAccentColor);
String get appVersion => String get appVersion {
'${account?.currentVersion ?? '0.0.0'}-${kClientVersion.split('.').last}'; String version = account?.currentVersion ?? '';
if (version.isNotEmpty) {
version += '-';
}
return version + kClientVersion.split('.').last;
}
List<HistoryRecord> get historyList => List<HistoryRecord> get historyList =>
prefState.companyPrefs[company.id].historyList.where((history) { prefState.companyPrefs[company.id].historyList.where((history) {

View File

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