Skip to content

Release 0.5.1 with certificate check callback#29

Merged
vik-borisov merged 2 commits into
mainfrom
0.5.1
Jun 29, 2026
Merged

Release 0.5.1 with certificate check callback#29
vik-borisov merged 2 commits into
mainfrom
0.5.1

Conversation

@vik-borisov

Copy link
Copy Markdown
Contributor

Summary

  • Prepare git2dart release 0.5.1.
  • Require git2dart_binaries >=1.11.2 <1.12.0.
  • Add Callbacks.certificateCheck for remote certificate validation.
  • Add safe Dart wrappers for libgit2 certificate data and keep raw C access in the bindings layer.
  • Document certificate checks in the remote guide.

Why

Fixes #28. Android SSH operations can fail when libgit2 falls back to known_hosts lookup in an app sandbox without a usable HOME. The new callback lets callers make the host key trust decision in Dart without exposing raw FFI pointers.

Validation

  • dart format . --set-exit-if-changed
  • dart analyze
  • flutter test test\callbacks_test.dart
  • flutter pub publish --dry-run

Note: full local flutter test on this Windows machine is blocked by native dependency loading for git2dart_binaries-1.11.2; targeted tests for the new callback pass.

@vik-borisov
vik-borisov marked this pull request as ready for review June 29, 2026 05:59
@vik-borisov
vik-borisov merged commit 2c740f0 into main Jun 29, 2026
6 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.

SSH failure on Android; no certificate_check callback to override known_hosts lookup

1 participant