Files
flutterApp/lib/core/env/env_config.dart
Songzex c39eb6037d 完成解决日志sentry日志代码被覆盖的问题
完成切换后台App获取列表和TCP连接后数据响应慢的问题。
2026-03-06 13:52:14 +08:00

17 lines
564 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class EnvConfig {
static const String environment = String.fromEnvironment(
'ENV',
defaultValue: 'dev',
);
static String get sentryDsn {
// 根据环境切换 DSN(去 Sentry 后台创建两个项目:Test 和 Prod)
if (environment == 'prod') {
return 'https://d5fdda78335793935593efa3f4ed11bb@o4510984107261952.ingest.de.sentry.io/4510984527937616';
}
return 'https://1a72051f8ac6c21cde96ded18a318217@o4510984107261952.ingest.de.sentry.io/4510984468824144';
}
static bool get isProduction => environment == 'prod';
}