castle_flutter 4.0.0
castle_flutter: ^4.0.0 copied to clipboard
Castle Flutter plugin.
Changelog #
4.0.0 - 2026-08-24 #
This release follows 2.2.1. There is no 3.x release — the version number was moved straight to 4.0.0 so that it matches the major version of the native SDKs the plugin wraps.
- Updated Castle iOS SDK to 4.3.0
- Updated Castle Android SDK to 4.1.0
Breaking changes
- Minimum Android API level raised to 26 (Android 8.0), up from 21.
- iOS integration is now Swift Package Manager only. The
castle_flutter.podspechas been removed. Enable SPM in your app withflutter config --enable-swift-package-manager(on by default from Flutter 3.44). - Minimum iOS version is 13.0.
- Minimum Flutter version is 3.29.0, minimum Dart SDK 3.4.0.
- Removed methods that no longer exist in the native SDKs.
- Removed
flushIfNeeded(url) - Removed
userAgent - Removed
queueSize
- Removed
Fixes and enhancements
-
Added the
touchCollectionEnabledconfiguration option, which enables or disables touch signal collection introduced in Castle iOS SDK 4.3.0. iOS only. -
advertisingIdentifier(id)is now applied on Android as well, via the newadIdProviderconfiguration option. It was previously a no-op on Android. -
Fixed
baseURLAllowListnever being applied on iOS. The values are sent from Dart as strings but were cast toURL, so the cast always failed and the option was dropped.
See the Android and iOS native migration guides for details on the underlying SDK changes.
2.2.0 - 2026-05-27 #
- Added Swift Package Manager support for iOS (#57)
- Updated Castle iOS SDK to 3.2.0
- Updated Castle Android SDK to 3.1.8
2.1.7 - 2025-12-08 #
- Updated Castle iOS SDK to 3.1.7
2.1.6 - 2025-11-25 #
- Updated Castle Android SDK to 3.1.2
2.1.5 - 2025-11-18 #
- Updated Castle iOS SDK to 3.1.6
2.1.4 - 2025-11-06 #
- Updated Castle iOS SDK to 3.1.5
2.1.3 - 2025-10-20 #
- Updated Castle iOS SDK to 3.1.3
- Fix: #51 Update Swift implementation configuration import
2.1.2 - 2025-10-03 #
- Updated Castle iOS SDK to 3.1.2
- Updated Castle Android SDK to 3.1.1
2.1.1 - 2025-09-12 #
- Updated Castle iOS SDK to 3.1.1
2.1.0 - 2025-07-21 #
- Updated Castle iOS SDK to 3.1.0
- Updated Castle Android SDK to 3.1.0
2.0.14 - 2025-04-23 #
- #46 Add configuration for lifecycle events
- Updated Castle iOS SDK to 3.0.13
- Updated Castle Android SDK to 3.0.10
2.0.13 - 2025-04-04 #
- Downgraded Gradle to 7.4.2, as 8+ is not compatible with the current version of the Android SDK.
2.0.11 - 2024-09-17 #
- Updated Castle iOS SDK to 3.0.13
2.0.10 - 2024-04-05 #
- Updated Castle iOS SDK to 3.0.10
2.0.9 - 2024-03-19 #
- Updated Castle iOS SDK to 3.0.9
- Added support for providing IDFA (iOS only)
2.0.8 - 2022-10-06 #
- Updated Castle Android SDK to 3.0.7
2.0.7 - 2022-09-19 #
- Updated Castle Android SDK to 3.0.6
2.0.6 - 2022-08-09 #
- Updated Castle Android SDK to 3.0.5
- Updated Castle iOS SDK to 3.0.7
2.0.5 - 2022-06-30 #
- Updated Castle Android SDK to 3.0.4
- Updated Castle iOS SDK to 3.0.6
2.0.4 - 2022-05-11 #
- Updated Castle iOS SDK to 3.0.5
2.0.3 - 2022-04-29 #
- Updated Castle Android SDK to 3.0.3
- Updated Castle iOS SDK to 3.0.4
2.0.2 - 2022-04-08 #
- Updated Castle Android SDK to 3.0.2
- Updated Castle iOS SDK to 3.0.3
2.0.1 - 2022-03-30 #
- Updated Castle Android SDK to 3.0.1
- Updated Castle iOS SDK to 3.0.2
2.0.0 - 2022-03-16 #
-
Updated Castle Android SDK to 3.0.0
-
Updated Castle iOS SDK to 3.0.1
-
Add support for enhanced user activity monitoring.
- Introduced custom(name) method
- Introduced custom(name, properties) method
- Introduced screen(name) method
- Introduced userJwt(jwt) method
-
Remove deprecated methods.
- Removed identify()
- Removed userId()
- Removed secure()
- Removed secureModeEnabled()
- Removed userSignature()
- Removed track()
- Removed useCloudflareApp()
- Removed clientIdHeaderName()
- Removed clientId()
- Removed baseUrl()
1.1.5 - 2022-03-14 #
Fixes
- Updated Castle iOS SDK to 2.1.8. (Updated internal library because of an issue with the vendored framework included in the 2.1.7 release.)
1.1.4 - 2022-03-03 #
- Updated Castle Android SDK to 2.1.4
- Updated Castle iOS SDK to 2.1.7
1.1.3 - 2022-02-10 #
- Updated Castle Android SDK to 2.1.3
- Updated Castle iOS SDK to 2.1.6
1.1.2 - 2021-09-20 #
- Updated Castle Android SDK to 2.1.2
- Updated Castle iOS SDK to 2.1.2
1.1.0 - 2021-06-08 #
- Updated Castle Android SDK to 2.1.0
- Updated Castle iOS SDK to 2.1.1
- Added
createRequestTokenandrequestTokenHeaderNamefunctions
1.0.0 - 2021-03-24 #
Initial public release