repowiseersinkoc/phonebox

Architecture of ersinkoc/phonebox

ersinkoc/phonebox is 1,016 source files holding 15,101 symbols across 8 modules, written mainly in C#, JavaScript, Kotlin. The largest module is agent, with 432 files, and 13 files are entry points into the dependency graph.

How phonebox fits together

The desktop agent runs on the computer and provides live readings and controls to the Android app; while the phone is attached over USB, it reaches the agent through an ADB reverse connection. On the phone, the panel is web code that the Android app loads in a WebView, starting from agent/PhoneBox.Agent/Program.cs on the desktop side and android/app/src/main/assets/www/main.js on the phone side. The setup.sh script in the root directory installs the agent on Linux or macOS and prepares the computer for pairing with a phone. The scripts directory holds scripts/build.sh, which builds PhoneBox from source and packages the macOS build as a disk image. Data flows from the agent to the panel cards, which the bundled page scripts create and draw into.

Largest modules

  • agent: 432 files and 92,562 lines of code
  • tools: 196 files and 24,369 lines of code
  • android: 99 files and 84,481 lines of code
  • ios: 28 files and 2,396 lines of code
  • scripts: 3 files and 226 lines of code
  • docs: 1 file and 116 lines of code
  • packaging: 1 file and 68 lines of code
  • root: 1 file and 585 lines of code

Languages

By file count: C# 430 files, JavaScript 229 files, Kotlin 50 files, Swift 29 files, Python 15 files, Shell 7 files.

Documentation

Repowise documents phonebox in 464 pages generated from the source, 19 of them written explanations of the repository and its modules. Module guides include:

  • android: Android
  • android/app: Android App
  • android/app/src/main/java/net/oxog/phonebox/deskpanel: Android Desktop Bridge

More on phonebox: summary and FAQ, codebase overview, code health.

Related guide: Best dependency graph tools for monorepos