mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-30 06:32:24 +00:00
chore: remov unwanted/mobile references and update skills submodule (#45)
* refactor: remove mobile platform support and update documentation - Updated CONTRIBUTING.md and SECURITY.md to reflect the removal of Android and iOS support, focusing on desktop platforms only. - Modified AGENTS.md and MEMORY.md to clarify the platform capabilities of OpenHuman as a desktop application. - Adjusted various Rust files to eliminate references to mobile platforms, including socket management and platform detection logic. - Removed mobile-specific code from SkillsGrid and Skills components, ensuring the application is tailored for desktop usage. - Deleted unused iOS and Android assets and configurations from the Tauri project structure. * chore: remove zeroclaw mentions and mobile support paths
This commit is contained in:
@@ -8,8 +8,6 @@ pub fn get_platform() -> &'static str {
|
||||
"macos" => "macos",
|
||||
"windows" => "windows",
|
||||
"linux" => "linux",
|
||||
"android" => "android",
|
||||
"ios" => "ios",
|
||||
_ => "unknown",
|
||||
}
|
||||
}
|
||||
@@ -20,9 +18,6 @@ pub fn send_notification(
|
||||
title: &str,
|
||||
body: &str,
|
||||
) -> Result<(), String> {
|
||||
if matches!(get_platform(), "android" | "ios") {
|
||||
return Err("Notifications not available on this platform".to_string());
|
||||
}
|
||||
log::info!("[runtime] notification requested: {title} - {body}");
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ pub struct SkillManifest {
|
||||
#[serde(default)]
|
||||
pub setup: Option<SkillSetup>,
|
||||
/// Platform filter. When present, only these platforms will load the skill.
|
||||
/// Valid values: "windows", "macos", "linux", "android", "ios".
|
||||
/// Valid values: "windows", "macos", "linux".
|
||||
/// When absent or empty, the skill is available on all platforms.
|
||||
#[serde(default)]
|
||||
pub platforms: Option<Vec<String>>,
|
||||
@@ -75,8 +75,6 @@ fn current_platform() -> &'static str {
|
||||
"windows" => "windows",
|
||||
"macos" => "macos",
|
||||
"linux" => "linux",
|
||||
"android" => "android",
|
||||
"ios" => "ios",
|
||||
_ => "unknown",
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,8 +96,6 @@ pub fn register<'js>(
|
||||
"windows" => "windows",
|
||||
"macos" => "macos",
|
||||
"linux" => "linux",
|
||||
"android" => "android",
|
||||
"ios" => "ios",
|
||||
_ => "unknown",
|
||||
}
|
||||
}),
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
//! - Connection state emitted to the frontend via Tauri events
|
||||
//! - Automatic reconnection with exponential backoff
|
||||
//!
|
||||
//! Note: On Android, this is a stub. The frontend handles its own Socket.io connection.
|
||||
//! Desktop runtime Socket.IO manager.
|
||||
|
||||
use std::sync::Arc;
|
||||
|
||||
@@ -20,7 +20,7 @@ use tauri::{AppHandle, Emitter};
|
||||
|
||||
use crate::models::socket::{ConnectionStatus, SocketState};
|
||||
|
||||
// WebSocket-based Socket.IO client (desktop + iOS)
|
||||
// WebSocket-based Socket.IO client (desktop)
|
||||
use {
|
||||
futures_util::{SinkExt, StreamExt},
|
||||
tokio::sync::{mpsc, watch},
|
||||
@@ -53,13 +53,13 @@ struct SharedState {
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// WebSocket stream type alias (desktop + iOS)
|
||||
// WebSocket stream type alias (desktop)
|
||||
// ---------------------------------------------------------------------------
|
||||
type WsStream =
|
||||
tokio_tungstenite::WebSocketStream<tokio_tungstenite::MaybeTlsStream<tokio::net::TcpStream>>;
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Connection outcome (desktop + iOS)
|
||||
// Connection outcome (desktop)
|
||||
// ---------------------------------------------------------------------------
|
||||
enum ConnectionOutcome {
|
||||
/// Clean shutdown requested.
|
||||
@@ -122,7 +122,7 @@ impl SocketManager {
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// Connection lifecycle (desktop + iOS)
|
||||
// Connection lifecycle (desktop)
|
||||
// -----------------------------------------------------------------------
|
||||
pub async fn connect(&self, url: &str, token: &str) -> Result<(), String> {
|
||||
self.disconnect().await?;
|
||||
@@ -220,7 +220,7 @@ impl Default for SocketManager {
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
// WebSocket Engine.IO/Socket.IO implementation (desktop + iOS)
|
||||
// WebSocket Engine.IO/Socket.IO implementation (desktop)
|
||||
// ===========================================================================
|
||||
async fn ws_loop(
|
||||
url: String,
|
||||
|
||||
Reference in New Issue
Block a user