feat: networkGameChannels Support

This commit is contained in:
2024-12-20 19:17:30 +08:00
parent 33f8866bb9
commit 43d0d8454c
17 changed files with 50 additions and 27 deletions

28
lib/common/conf/conf.dart Normal file
View File

@ -0,0 +1,28 @@
class ConstConf {
static const String appVersion = "2.13.3";
static const int appVersionCode = 61;
static const String appVersionDate = "2024-11-23";
static const _gameChannels = [
"LIVE",
"4.0_PREVIEW",
"PTU",
"EPTU",
"TECH-PREVIEW",
"HOTFIX"
];
static const isMSE =
String.fromEnvironment("MSE", defaultValue: "false") == "true";
static const dohAddress = "https://223.6.6.6/resolve";
static const inputMethodServerPort = 59399;
}
class AppConf {
static List<String>? _networkGameChannels;
static setNetworkChannels(List<String>? channels) {
_networkGameChannels = channels;
}
static List<String> get gameChannels =>
_networkGameChannels ?? ConstConf._gameChannels;
}