# hsavchuk03/ios-logitech-z407-remote architecture

> Architecture diagram of the GitHub repository hsavchuk03/ios-logitech-z407-remote, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hsavchuk03/ios-logitech-z407-remote
- Repository: https://github.com/hsavchuk03/ios-logitech-z407-remote

## Overview

This is a Flutter iOS remote for Logitech Z407 speakers. The principal workflow is a user issuing a control from the app, which communicates with the speaker over BLE using the device’s undocumented protocol. The README identifies protocol UUIDs and a handshake, but the Dart implementation was not sampled, so internal calls and the precise control flow remain unverified; those links are dashed. The iOS host setup is shown only as a supporting runtime layer.

Main entry points: [`lib/bluetooth_manager.dart`](https://github.com/hsavchuk03/ios-logitech-z407-remote/blob/main/lib/bluetooth_manager.dart) (Bluetooth manager), [`lib/main.dart`](https://github.com/hsavchuk03/ios-logitech-z407-remote/blob/main/lib/main.dart) (Remote app), [`ios/Runner/AppDelegate.swift`](https://github.com/hsavchuk03/ios-logitech-z407-remote/blob/main/ios/Runner/AppDelegate.swift) (Flutter iOS host), [`lib/constants.dart`](https://github.com/hsavchuk03/ios-logitech-z407-remote/blob/main/lib/constants.dart) (BLE constants)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Flutter app"]
  node_app_ui["Remote app<br/>[main.dart]"]
end

subgraph group_ble["BLE control"]
  node_ble_manager["Bluetooth manager"]
  node_ble_constants["BLE constants<br/>[constants.dart]"]
end

subgraph group_ios["iOS runtime"]
  node_ios_host["Flutter iOS host<br/>[AppDelegate.swift]"]
  node_plugin_registration["Plugin registration<br/>[AppDelegate.swift]"]
end

node_user(("User"))
node_speaker["Z407 speaker"]

node_user -.->|"controls"| node_app_ui
node_app_ui -.->|"uses"| node_ble_manager
node_ble_manager -.->|"uses"| node_ble_constants
node_ble_manager -->|"controls over BLE"| node_speaker
node_ios_host -->|"registers"| node_plugin_registration

click node_app_ui "https://github.com/hsavchuk03/ios-logitech-z407-remote/blob/main/lib/main.dart"
click node_ble_manager "https://github.com/hsavchuk03/ios-logitech-z407-remote/blob/main/lib/bluetooth_manager.dart"
click node_ble_constants "https://github.com/hsavchuk03/ios-logitech-z407-remote/blob/main/lib/constants.dart"
click node_ios_host "https://github.com/hsavchuk03/ios-logitech-z407-remote/blob/main/ios/Runner/AppDelegate.swift"
click node_plugin_registration "https://github.com/hsavchuk03/ios-logitech-z407-remote/blob/main/ios/Runner/AppDelegate.swift"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app_ui,node_user toneBlue
class node_ble_manager,node_ble_constants toneAmber
class node_ios_host,node_plugin_registration toneMint
class node_speaker toneIndigo
```

## Components

### Flutter app

- [Remote app](https://github.com/hsavchuk03/ios-logitech-z407-remote/blob/main/lib/main.dart): `lib/main.dart`

### BLE control

- [Bluetooth manager](https://github.com/hsavchuk03/ios-logitech-z407-remote/blob/main/lib/bluetooth_manager.dart): `lib/bluetooth_manager.dart`
- [BLE constants](https://github.com/hsavchuk03/ios-logitech-z407-remote/blob/main/lib/constants.dart): `lib/constants.dart`

### iOS runtime

- [Flutter iOS host](https://github.com/hsavchuk03/ios-logitech-z407-remote/blob/main/ios/Runner/AppDelegate.swift): `ios/Runner/AppDelegate.swift`
- [Plugin registration](https://github.com/hsavchuk03/ios-logitech-z407-remote/blob/main/ios/Runner/AppDelegate.swift): `ios/Runner/AppDelegate.swift`

### Other components

- **User**
- **Z407 speaker**

## Connections

- User → Remote app: controls
- Remote app → Bluetooth manager: uses
- Bluetooth manager → BLE constants: uses
- Bluetooth manager → Z407 speaker: controls over BLE (evidence: `README.md`)
- Flutter iOS host → Plugin registration: registers (evidence: `ios/Runner/AppDelegate.swift`)
