Skip to content

docs: add CONTRIBUTING.md aligning with the BitBox-stack workflow#22

Merged
TaprootFreak merged 1 commit into
developfrom
docs/contributing
May 18, 2026
Merged

docs: add CONTRIBUTING.md aligning with the BitBox-stack workflow#22
TaprootFreak merged 1 commit into
developfrom
docs/contributing

Conversation

@TaprootFreak

Copy link
Copy Markdown

Summary

bitbox-testkit has a CONTRIBUTING.md, bitbox_flutter didn't. Closes that consistency gap.

The doc covers what people repeatedly stumble over without it:

  • Branching model — develop default, every PR against develop, release PR is auto-opened.
  • Local PR gate — exactly the commands the workflow runs, so contributors can reproduce CI offline.
  • Hardware-wallet-specific rules: recoverPanic on every gomobile-exported entry point, the BLE-dedup contract in Bluetooth.swift, print() policy (banned in lib/, ok in example/lib/).
  • Release flow — explains why the auto-tagger is intentionally not overridable.
  • Step-by-step "Adding a new platform method" walkthrough covering all 5 sides (Dart, Go, Android, iOS, testkit).

Cross-references TESTING.md for the test-layer pyramid instead of duplicating it. Mirrors bitbox-testkit's CONTRIBUTING.md structure, adapted to Flutter-plugin context.

Local validation

Check Result
Markdown renders
dart format --set-exit-if-changed unaffected (docs-only)
flutter analyze unaffected
flutter test unaffected

Documents the branching model (develop default), the local PR gate
(matches pull-request.yaml exactly), the release flow (auto-release-pr
+ auto-tag), and the hardware-wallet-specific rules contributors keep
asking about — recoverPanic on every gomobile-exported entry point,
the BLE-dedup contract in Bluetooth.swift, no print() in lib/ but ok in
example/lib/.

Mirrors the structure of bitbox-testkit's CONTRIBUTING.md adapted to
Flutter-plugin context. Cross-references TESTING.md for the test-layer
discussion instead of duplicating it.
@TaprootFreak TaprootFreak marked this pull request as ready for review May 18, 2026 19:27
@TaprootFreak TaprootFreak merged commit b37ff75 into develop May 18, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant