trustpin_sdk 5.0.0 copy "trustpin_sdk: ^5.0.0" to clipboard
trustpin_sdk: ^5.0.0 copied to clipboard

A Flutter plugin for TrustPin SSL certificate pinning SDK that provides enhanced security for network connections by validating SSL certificates against configured pins.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

5.0.0 - 2026-05-22 #

Added #

  • iOS/macOS can initialize the SDK using a PList file
  • Android can initialize SDK using a JSON file

Changed #

  • Updated iOS/macOS native SDK to 5.0.0
  • Updated Android native SDK to 5.0.0

4.3.0 - 2026-05-14 #

Added #

  • TrustPin.validateConnection(host, {port, timeout}) — atomic "is this connection allowed?" entry point. The platform composes the certificate fetch and pin verification inside a single channel call, so the certificate never enters the Dart isolate. The timeout argument bounds the entire operation, closing the gap where verify previously could not be time-limited.
  • TrustPinConfiguration.fromAssets for loading the SDK configuration from a bundled trustpin.json asset (shares the JSON schema with the Android SDK)

Changed #

  • TrustPinHttpClient and TrustPinDioInterceptor now route HTTPS requests through validateConnection. No source changes required for callers; every HTTPS request now takes one channel hop instead of two. The interceptors no longer hold any pinning-related Dart state (no caches, no in-flight tracking).
  • Updated iOS/macOS native SDK to 4.3.1
  • Updated Android native SDK to 4.3.2
  • Aligned iOS/macOS Swift Package Manager manifests with the Swift 6.1 toolchain requirement used by CocoaPods and documented in the README.
  • iOS/macOS now reject malformed configurationURL values with INVALID_PROJECT_CONFIG, matching Android behavior.
  • Android minSdk bumped from 21 to 25 to match the requirement of the underlying cloud.trustpin:kotlin-sdk:4.3.2. Apps consuming this plugin must declare minSdk >= 25 in their android/app/build.gradle.

Deprecated #

  • TrustPin.verify(domain, certificate) and TrustPin.fetchCertificate(host, {port, timeout}) are deprecated in favor of TrustPin.validateConnection. The deprecated methods still work and remain useful for diagnostic flows (for example, computing a SHA-256 fingerprint from the raw PEM), but will be removed in a future major release. The same deprecations apply to the corresponding TrustPinSDKPlatform methods.

4.1.0 - 2026-05-02 #

Changed #

  • Upgrade native SDKs to 4.1.0

4.0.0 - 2026-08-03 #

Changed #

  • Improved CI/CD

3.3.0 - 2026-02-27 #

Changed #

  • Updated SDKs to v3.3.0

3.0.1 - 2026-02-23 #

Changed #

  • Added Swift Package Manager support for iOS and macOS
  • Updated documentation

3.0.0 - 2026-02-19 #

Added #

  • fetchCertificate() for OS-level TLS leaf certificate extraction
  • TrustPinConfiguration class for SDK initialization
  • configurationURL parameter for self-hosted configurations
  • TrustPinDioInterceptor for Dio integration
  • TrustPinHttpClient for http package integration
  • TrustPin.shared and TrustPin.instance('id') for named instances

Changed #

  • Renamed TrustPinSDK class to TrustPin with instance-based API
  • Updated native SDKs

2.1.0 - 2026-02-09 #

Changed #

  • Updated native SDKs
  • Improved documentation

2.0.0 - 2026-01-26 #

Added #

  • SPKI and AWS Certificate Manager support

Changed #

  • Updated native SDKs

1.3.0 - 2026-01-23 #

Changed #

  • Updated native SDKs

1.2.0 - 2025-08-14 #

Changed #

  • Updated native SDKs

1.0.0 - 2025-08-05 #

Added #

  • Initial release of TrustPin Flutter SDK
  • SSL certificate pinning with SHA-256/SHA-512 public key pins
  • Support for strict and permissive pinning modes
  • Configurable logging levels
  • iOS, Android, and macOS platform support
3
likes
140
points
533
downloads

Documentation

Documentation
API reference

Publisher

verified publishertrustpin.cloud

Weekly Downloads

A Flutter plugin for TrustPin SSL certificate pinning SDK that provides enhanced security for network connections by validating SSL certificates against configured pins.

Repository (GitHub)
View/report issues

Topics

#networking #tls #ssl #certificate #pinning

License

unknown (license)

Dependencies

dio, flutter, http, plugin_platform_interface

More

Packages that depend on trustpin_sdk

Packages that implement trustpin_sdk