impl: refactor config logic to use generic interface
Build Mumble Web 2 / macos_build (push) Successful in 51s
Build Mumble Web 2 / linux_build (push) Successful in 1m12s
Build Mumble Web 2 / windows_build (push) Successful in 3m10s
Build Mumble Web 2 / android_build (push) Successful in 5m41s

This commit is contained in:
2026-03-04 19:11:59 -07:00
parent 518c50d8a4
commit ce4f3ee934
9 changed files with 348 additions and 134 deletions
+1 -16
View File
@@ -9,6 +9,7 @@ pub struct MobilePlatform;
impl super::PlatformInterface for MobilePlatform {
type AudioSystem = super::native_audio::NativeAudioSystem;
type ConfigSystem = super::native_config::NativeConfigSystem;
async fn load_proxy_overrides() -> color_eyre::Result<ProxyOverrides> {
Ok(ProxyOverrides {
@@ -18,22 +19,6 @@ impl super::PlatformInterface for MobilePlatform {
})
}
fn load_username() -> Option<String> {
None
}
fn load_server_url() -> Option<String> {
None
}
fn set_default_username(_username: &str) -> Option<()> {
None
}
fn set_default_server(server: &str) -> Option<()> {
None
}
async fn network_connect(
address: String,
username: String,