Sentry changes
This commit is contained in:
parent
1d48b6e79a
commit
caf48c6770
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ Future<Event> getSentryEvent(
|
|||
}
|
||||
|
||||
return Event(
|
||||
release: state?.appVersion ?? kClientVersion,
|
||||
release: kClientVersion,
|
||||
//release: packageInfo.version,
|
||||
environment: environment,
|
||||
stackTrace: stackTrace,
|
||||
|
|
|
|||
Loading…
Reference in New Issue