Tech Stack
The technologies used in each Fenpo app, and why they were chosen.
Windows
| Area | Choice | Why |
|---|---|---|
| Runtime | .NET 10 LTS, C# 14 | Long-term support |
| UI | WinUI 3, Windows App SDK | Mica, Fluent, Segoe UI Variable and Windows notifications come natively, so Fenpo feels like part of Windows |
| Packaging | MSIX (single-project packaging), full trust | A package identity is required for phone line transport, app notifications, the share target, the startup task and the File Explorer command |
| Bluetooth | WinRT Windows.Devices.Bluetooth.* (GATT client and server, RFCOMM) | The built-in stack, no extra drivers |
| OBEX, MAP | Fenpo's own code | No maintained .NET library exists |
| MVVM | CommunityToolkit.Mvvm | Source-generated, lightweight, standard with WinUI |
| Tray icon | H.NotifyIcon.WinUI | WinUI 3 has no built-in tray support |
| Hosting, DI, logging | Microsoft.Extensions.Hosting, DependencyInjection, Logging + Serilog (file) | A natural structure for background services |
| Data | SQLite, Microsoft.Data.Sqlite | Message cache, notification history, icon cache, clipboard history |
| Protocol | Google.Protobuf + Grpc.Tools (message generation only) | One schema shared with the phone apps, without gRPC |
| TLS | SslStream, TLS 1.3, mutual certificate pinning | Built in, no extra dependency |
| Discovery | DnsServiceRegister (dnsapi.dll) | Built-in mDNS on Windows, no Bonjour install needed |
| File transfer (compatibility) | LocalSend v2.2 protocol | Works with LocalSend apps on iOS, Android and macOS, even without the Fenpo phone app |
| QR codes | QRCoder | Small, no dependencies |
| Theme | System / Light / Dark | The main window, tray panel and call window follow the same setting |
| Language | System language / Turkish / English, .resw resources | Windows notifications use the same language |
| Virtual camera | MFCreateVirtualCamera + a .NET 10 Native AOT COM media source | Stays in C#; Native AOT does not load the .NET runtime into the Frame Server process |
| Video decoding | Media Foundation H.264 decoder, rendered to Fenpo's own swap chain | Camera preview, screen mirroring and Fenpo Kamera share the same decoder |
| Tests | xUnit v3, NSubstitute | Bluetooth parsers are tested with recorded byte sequences |
Not chosen:
- WPF: mature, but Mica, modern notifications and Fluent controls need extra libraries, and it feels less like Windows 11.
- Avalonia, .NET MAUI, Electron, Tauri: Fenpo runs only on Windows and depends deeply on the WinRT Bluetooth APIs, so a cross-platform layer would add weight, not value.
- A separate Windows service (LocalSystem): the Bluetooth and notification APIs need the user session and a package identity.
iPhone
| Area | Choice | Why |
|---|---|---|
| Language, UI | Swift, SwiftUI | Widgets, Live Activities and Control Center buttons can only be written in SwiftUI |
| Minimum iOS | iOS 18.0 | AccessorySetupKit and ControlWidget arrived in iOS 18 |
| Bluetooth | CoreBluetooth (central, bluetooth-central background mode, state restoration) + AccessorySetupKit | Waking in the background and reliable reconnection |
| Network | Network.framework: NWConnection (TLS 1.3, certificate pinning), NWBrowser (Bonjour) | Built in |
| Crypto | CryptoKit + Keychain shared through an App Group | ECDSA P-256 certificates, AES-GCM |
| Shortcuts and system | App Intents, WidgetKit, ActivityKit, ControlWidget | Clipboard, send, ring, lock with one tap from anywhere |
| Files | Share Extension, File Provider Extension, PhotoKit | |
| Camera | AVFoundation + VideoToolbox (HEVC/H.264 hardware encoding) | Low latency, low battery use |
| Screen mirroring | ReplayKit Broadcast Upload Extension | Encoding is done by VideoToolbox |
| Protocol | swift-protobuf (SPM) | The only external dependency |
| Project file | XcodeGen (project.yml) | Readable YAML instead of .xcodeproj, with clean git diffs |
| Tests | Swift Testing |
Not chosen: .NET for iOS / MAUI and Flutter / React Native, because widgets, Control Center and Live Activity extensions require SwiftUI anyway.
Android
Kotlin, Jetpack Compose and Material 3, built with Gradle Kotlin DSL.
Shared
| Area | Choice |
|---|---|
| Protocol | One set of .proto files; the apps negotiate features with Hello.capabilities |
| CI | GitHub Actions |
| Interface languages | Turkish and English |