diff --git a/lib/error_reporting.dart b/lib/error_reporting.dart index 191e7af4..820e62ba 100644 --- a/lib/error_reporting.dart +++ b/lib/error_reporting.dart @@ -9,10 +9,12 @@ import 'package:gitjournal/settings.dart'; import 'package:package_info/package_info.dart'; import 'package:sentry/sentry.dart'; +import 'package:gitjournal/.env.dart'; + SentryClient _sentryClient; Future<SentryClient> _initSentry() async { return SentryClient( - dsn: 'https://35f34dbec289435fbe16483faacf49a5@sentry.io/5168082', + dsn: environment['sentry'], environmentAttributes: await _environmentEvent, ); } diff --git a/scripts/setup_env.dart b/scripts/setup_env.dart index 14015e57..141ccc46 100644 --- a/scripts/setup_env.dart +++ b/scripts/setup_env.dart @@ -3,8 +3,8 @@ import 'dart:io'; Future<void> main() async { final config = { - 'sentryApiKey': Platform.environment['TEST'], - 'credentials': Platform.environment['APP_CREDENTIALS'], + 'sentry': Platform.environment['SENTRY_DSN'], + 'revenueCat': Platform.environment['REVENUE_CAT_API_KEY'], }; final filename = 'lib/.env.dart';