Add version to sentry

This commit is contained in:
Hillel Coren 2019-02-01 13:45:12 +02:00
parent 22c5be969d
commit 6722ec8b69
1 changed files with 5 additions and 1 deletions

View File

@ -66,7 +66,11 @@ import 'package:invoiceninja_flutter/redux/quote/quote_actions.dart';
import 'package:invoiceninja_flutter/redux/quote/quote_middleware.dart';
void main() async {
final SentryClient _sentry = SentryClient(dsn: Config.SENTRY_DNS);
final SentryClient _sentry = SentryClient(
dsn: Config.SENTRY_DNS,
environmentAttributes: Event(
release: kAppVersion,
));
final prefs = await SharedPreferences.getInstance();
final enableDarkMode = prefs.getBool(kSharedPrefEnableDarkMode) ?? false;
final requireAuthentication =