fix: macos Support

This commit is contained in:
xkeyC
2025-11-19 11:53:45 +08:00
parent aaaee30368
commit 0983ebe21f
13 changed files with 184 additions and 177 deletions

View File

@@ -10,6 +10,11 @@ class URLConf {
static String newsApiHome = "https://scbox.citizenwiki.cn";
static const String analyticsApiHome = "https://scbox.org";
/// PartyRoom Server
static const String partyRoomServerAddress = "partyroom.grpc.scbox.xkeyc.cn";
static const int partyRoomServerPort = 443;
static bool isUrlCheckPass = false;
/// URLS
@@ -32,10 +37,6 @@ class URLConf {
static String get devReleaseUrl => "$gitApiHome/SCToolBox/Release/releases";
/// PartyRoom Server
static const String partyRoomServerAddress = "localhost";
static const int partyRoomServerPort = 50051;
/// RSI Avatar Base URL
static const String rsiAvatarBaseUrl = "https://robertsspaceindustries.com";

View File

@@ -28,10 +28,9 @@ class S {
static const AppLocalizationDelegate delegate = AppLocalizationDelegate();
static Future<S> load(Locale locale) {
final name =
(locale.countryCode?.isEmpty ?? false)
? locale.languageCode
: locale.toString();
final name = (locale.countryCode?.isEmpty ?? false)
? locale.languageCode
: locale.toString();
final localeName = Intl.canonicalizedLocale(name);
return initializeMessages(localeName).then((_) {
Intl.defaultLocale = localeName;

View File

@@ -127,11 +127,7 @@ class PartyRoom extends _$PartyRoom {
final serverAddress = URLConf.partyRoomServerAddress;
final serverPort = URLConf.partyRoomServerPort;
final channel = ClientChannel(
serverAddress,
port: serverPort,
options: const ChannelOptions(credentials: ChannelCredentials.insecure()),
);
final channel = ClientChannel(serverAddress, port: serverPort);
final authClient = auth.AuthServiceClient(channel);
final roomClient = partroom.PartRoomServiceClient(channel);

View File

@@ -41,7 +41,7 @@ final class SettingsUIModelProvider
}
}
String _$settingsUIModelHash() => r'5c08c56bf5464ef44bee8edb8c18c08d4217f135';
String _$settingsUIModelHash() => r'd19104d924f018a9230548d0372692fc344adacd';
abstract class _$SettingsUIModel extends $Notifier<SettingsUIState> {
SettingsUIState build();