Skip to content

Development

Flutter is pinned to 3.38.6 in desktop CI; the app requires Dart 3.10.7 compatibility. The relay uses Node 22 LTS. Documentation needs Node 22.12 or newer and pins its own Astro/Starlight/Galaxy dependencies. Commit the appropriate lockfile when deliberately changing a dependency.

Native app builds require their matching operating systems:

Host Build prerequisites
macOS Xcode, command-line tools, CocoaPods
Windows Visual Studio Desktop development with C++, Windows SDK, C++ ATL
Linux clang, CMake, Ninja, pkg-config, GTK3 development headers, libsecret development headers
Android Flutter Android toolchain and JDK 17 for native unit tests

From app/:

Terminal window
flutter pub get --enforce-lockfile
flutter analyze
flutter test

For localization changes, edit both English and German ARB sources and run flutter gen-l10n. Follow the shared palette/type/shape tokens; presentational widgets receive their strings from callers. Preserve platform capability boundaries and shared storage/channel contracts when refactoring paired-device behavior.

From app/android/, with JAVA_HOME pointing to JDK 17:

Terminal window
./gradlew :app:testDebugUnitTest

Use gradlew.bat :app:testDebugUnitTest in Windows Command Prompt.

From server/:

Terminal window
npm ci
npm test

Node suites use disposable loopback ports, in-memory SQLite state and forbidden-file-write fixtures, and mock APNs delivery. Relay subprocesses filter inherited operator SIM_BRIDGE_* settings. Do not load .env.local, probe port 8787, or point tests at server/data/sim-bridge.sqlite. Those may belong to an operating bridge.

From the repository root, start the isolated synthetic fixture:

Terminal window
node app/tool/desktop_smoke_relay.mjs

In a second terminal, from app/:

Terminal window
flutter drive --profile -d macos --target=integration_test/desktop_smoke_test.dart \
--driver=test_driver/desktop_smoke_driver.dart --no-pub

The fixture uses disposable loopback port 18798 and temporary data. It tests real macOS Keychain access and an encrypted client roundtrip without SIM hardware. It does not establish visible notifications, carrier delivery, pairing UI operation, or cross-process credential restoration. See the native smoke test README for cleanup and custom-port instructions.

From docs/:

Terminal window
npm ci
npm run dev
npm run build

The documentation is served under /docs/ of https://sim-bridge.renner.dev. Keep screenshot provenance and synthetic-data labels accurate. The Pages workflow validates pull requests and deploys only from main. The template’s dark/light theme behavior is retained with Sim Bridge’s green branding.

Describe the behavior change, relevant checks, and runtime limits. Keep real phone IDs, owner settings, credentials, messages, and signing material out of source and reports. Retain third-party font notices when packaging assets. The repository’s contribution guide contains the project-wide conventions.

Desktop CI covers analysis, widget tests, and native release compilation. Mobile installation, carrier operations, signing credentials, and store submission require separate authorized workflows and evidence.