远程遥控开发中

This commit is contained in:
CC
2026-01-21 13:27:55 +08:00
parent 32b702fb6d
commit 8c39f0daf8
45 changed files with 1994 additions and 245 deletions

16
lib/core/env/env_config.dart vendored Normal file
View File

@@ -0,0 +1,16 @@
class EnvConfig {
static const String environment = String.fromEnvironment(
'ENV',
defaultValue: 'dev',
);
static String get sentryDsn {
// 根据环境切换 DSN(去 Sentry 后台创建两个项目:Test 和 Prod)
if (environment == 'prod') {
return 'https://your_prod_dsn@sentry.io/123';
}
return 'https://your_test_dsn@sentry.io/456';
}
static bool get isProduction => environment == 'prod';
}