diff --git a/lib/constants.dart b/lib/constants.dart index 4e0e1cfa24d..fffc0aa7488 100644 --- a/lib/constants.dart +++ b/lib/constants.dart @@ -8,7 +8,7 @@ class Constants { } // TODO remove version once #46609 is fixed -const String kClientVersion = '5.0.32'; +const String kClientVersion = '5.0.33'; const String kMinServerVersion = '5.0.4'; const String kAppName = 'Invoice Ninja'; diff --git a/lib/main.dart b/lib/main.dart index b595b68b12e..34c590cd350 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -97,6 +97,9 @@ void main({bool isTesting = false}) async { options.release = kClientVersion; options.beforeSend = (SentryEvent event, {dynamic hint}) { final state = store.state; + if (!state.account.reportErrors) { + return null; + } event = event.copyWith( environment: '${state.environment}'.split('.').last, extra: { diff --git a/pubspec.yaml b/pubspec.yaml index 868864f1b35..9155c851af8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: invoiceninja_flutter description: Client for Invoice Ninja -version: 5.0.32+32 +version: 5.0.33+33 author: Hillel Coren homepage: https://invoiceninja.com documentation: http://docs.invoiceninja.com