Skip to content

Allow flutter_secure_storage v10 (widen constraint)#6

Merged
mpge merged 1 commit into
mainfrom
chore/secure-storage-v10-compat
Jul 24, 2026
Merged

Allow flutter_secure_storage v10 (widen constraint)#6
mpge merged 1 commit into
mainfrom
chore/secure-storage-v10-compat

Conversation

@mpge

@mpge mpge commented Jul 24, 2026

Copy link
Copy Markdown
Member

Widens flutter_secure_storage from ^9.2.0 to >=9.2.0 <11.0.0 so consumers (e.g. the HaulOy customer app's release-prep line) can move to v10 while v9 stays supported.

Why safe: escalated only uses const FlutterSecureStorage() + read/write/delete (key:/value:) in theme_provider.dart and services/auth_hooks.dart. v10 leaves those method signatures unchanged, so no Dart code changes are needed. Verified: flutter analyze → 0 errors and the test suite passes against flutter_secure_storage 10.3.1.

Also bumped environment to Dart 3.3.0 / Flutter 3.19.0 to match v10's minimums. Consuming apps must target Android minSdk 23 and iOS 12 (v10 requirements).

v10's Android default cipher changed but auto-migrates existing data (migrateOnAlgorithmChange: true); worst case is a one-time token re-fetch.

Widen the flutter_secure_storage constraint from ^9.2.0 to >=9.2.0 <11.0.0 so
consumers can adopt v10 while v9 stays supported. v10 only touches the API
surface escalated uses (const FlutterSecureStorage() + read/write/delete with
key:/value:) via unchanged method signatures, so no code changes are needed;
verified with analyzer (0 errors) and the test suite against 10.3.1.

v10 raises platform minimums, so bump the package environment to Dart 3.3.0 /
Flutter 3.19.0 to match. Consuming apps must also target Android minSdk 23 and
iOS 12.
@mpge
mpge merged commit 9a95864 into main Jul 24, 2026
1 check 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