trustpin_sdk 5.0.0
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 #
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. Thetimeoutargument bounds the entire operation, closing the gap whereverifypreviously could not be time-limited.TrustPinConfiguration.fromAssetsfor loading the SDK configuration from a bundledtrustpin.jsonasset (shares the JSON schema with the Android SDK)
Changed #
TrustPinHttpClientandTrustPinDioInterceptornow route HTTPS requests throughvalidateConnection. 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
configurationURLvalues withINVALID_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 declareminSdk >= 25in theirandroid/app/build.gradle.
Deprecated #
TrustPin.verify(domain, certificate)andTrustPin.fetchCertificate(host, {port, timeout})are deprecated in favor ofTrustPin.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 correspondingTrustPinSDKPlatformmethods.
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 extractionTrustPinConfigurationclass for SDK initializationconfigurationURLparameter for self-hosted configurationsTrustPinDioInterceptorfor Dio integrationTrustPinHttpClientfor http package integrationTrustPin.sharedandTrustPin.instance('id')for named instances
Changed #
- Renamed
TrustPinSDKclass toTrustPinwith instance-based API - Updated native SDKs