// 编译期从 --dart-define-from-file=config/config.json 注入
// CI 打包时脚本修改 config.json 写入线上值，本地开发保持默认（IS_DEV=true）
// ignore: avoid_classes_with_only_static_members
class AppConfig {
  AppConfig._();

  static const isDev = bool.fromEnvironment('IS_DEV', defaultValue: true);
  static const apiBaseUrl = String.fromEnvironment(
    'API_BASE_URL',
    defaultValue: 'http://gateway.winwayinfo.com',
  );

  static const channel = String.fromEnvironment('CHANNEL', defaultValue: '10');

  static const appVersion = String.fromEnvironment(
    'APP_VERSION',
    defaultValue: '1.0.0',
  );

  static bool get isProd => !isDev;
}
