Skip to content

Contributing

n1th1n-19 edited this page Nov 11, 2026 · 1 revision

Contributing

Pull requests target main. See Building from source to set up the project, and CONTRIBUTING.md in the repository.

Checks

The same as CI:

cd app
fvm dart format --set-exit-if-changed lib test
fvm flutter analyze
fvm flutter test

cd ../packages/core
cargo test --features full
cargo clippy --features full

Formatting is 150 columns. Generated Dart (lib/gen) is not format-checked.

Guidelines

  • Keep code formatted and covered by tests where it has logic worth testing.
  • Write descriptive commit messages using Conventional Commits (feat:, fix:, ...).
  • Do not rename LocalSend's internal identifiers (package names, method channels, settings keys, crate names); they keep upstream merges small.

Testing tap to share

Tap to share needs two real Android phones with NFC; the emulator has none.

  1. Pair both phones over wireless debugging (Developer options → Wireless debugging → Pair device with QR code).
  2. Install on both:
    adb -s <device> install -r app/build/app/outputs/flutter-apk/app-debug.apk
    Debug builds use the package com.duck.daystack.debug.
  3. Watch the exchange:
    adb -s <device> logcat -s TapShare flutter
  4. To test with the app closed:
    adb shell input keyevent KEYCODE_HOME && adb shell am kill com.duck.daystack.debug

On Pixel phones, turn off Google's Tap to Share first; it competes for NFC.

Translations

Add new strings to app/assets/i18n/en.json only, then run:

fvm dart run slang

The other locale files come from LocalSend and may lag behind; missing keys fall back to English. Fields starting with @ are notes for translators and are not used by the app.

Branding

The logo and every platform icon are generated from one script. Edit support/branding/duck.py, then run python support/branding/export.py app. Brand colors: Pond blue #1E6FD9, ink #1C1B1F.

Pulling changes from LocalSend

The original project is the upstream remote:

git remote add upstream https://github.com/localsend/localsend.git
git fetch upstream
git merge upstream/main

Expect conflicts in the rebranded files (app name, icons, applicationId, i18n).

Bugs and security issues

Report bugs in the issue tracker. Report security issues privately via GitHub security advisories.

Clone this wiki locally