mirror of
https://github.com/StarCitizenToolBox/app.git
synced 2026-02-12 02:00:22 +00:00
fix: macos Support
This commit is contained in:
@@ -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";
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -41,7 +41,7 @@ final class SettingsUIModelProvider
|
||||
}
|
||||
}
|
||||
|
||||
String _$settingsUIModelHash() => r'5c08c56bf5464ef44bee8edb8c18c08d4217f135';
|
||||
String _$settingsUIModelHash() => r'd19104d924f018a9230548d0372692fc344adacd';
|
||||
|
||||
abstract class _$SettingsUIModel extends $Notifier<SettingsUIState> {
|
||||
SettingsUIState build();
|
||||
|
||||
Reference in New Issue
Block a user