flutter_shield 1.1.6
flutter_shield: ^1.1.6 copied to clipboard
A comprehensive device security and vulnerability detection package for Flutter — Android, iOS, Web, Windows, Linux, and macOS.
Changelog #
All notable changes to Flutter Shield are documented in this file. Format follows Keep a Changelog.
1.1.6 - 2026-05-07 #
Fixed #
- Demo GIF not rendering in README — Compressed
Screen_recording_20260507_103132.giffrom 38 MB to 7.1 MB (81 % reduction) using resolution downscale (1080×2424 → 320×718), framerate reduction (25 fps → 10 fps), and 128-colour palette with Bayer dithering; file now falls within GitHub's 10 MB inline-display limit
1.1.5 - 2026-05-07 #
Added #
- Multi-platform support — Web, Windows, Linux, and macOS now declared as supported platforms via a pure-Dart stub (
FlutterShieldStub); all 31 checks returnisVulnerable: falsewith a "Not applicable on this platform." message on unsupported platforms, keepingperformFullSecurityCheck()safe to call anywhere - Swift Package Manager (SPM) — Added
ios/Package.swiftso the plugin is recognised by Xcode's SPM integration, resolving the partial pub.dev score deduction for missing SPM support - pub.dev platform score — Platform support score improved from 10 / 20 (Android + iOS only) to 20 / 20 (all 6 platforms)
Fixed #
FlutterShieldStubnot found at build time — ExportedFlutterShieldStubfrom the package's main library (lib/flutter_shield.dart) so Flutter's generateddart_plugin_registrant.dartcan resolve the class during kernel compilation- Corrupted Kotlin incremental cache — Cleaned stale build artefacts that caused
Storage corruptederrors and prevented the example app from launching on Android
Changed #
pubspec.yamldescription — Updated to reflect the new six-platform scopepubspec.yamlplatform declarations — Addedweb,windows,linux,macosentries each withpluginClass: none,dartPluginClass: FlutterShieldStub, andfileName: src/flutter_shield_stub.dartios/flutter_shield.podspec— Corrected placeholder values: version, summary, description, homepage, and author now match the published package- Screenshots — Replaced all old screenshots and the demo GIF with updated assets; Demo, Home Screen, and Scan Results displayed horizontally in the README
1.1.4 - 2026-05-06 #
Bug Fixes #
- Performance —
performFullSecurityCheck()now runs all 31 checks in parallel usingFuture.wait()instead of sequentially, significantly reducing total scan time - Type Safety —
SecurityCheckResult.fromMap()now properly casts thedetailsfield usingMap<String, dynamic>.from(), preventing potential runtime type errors when native code returns nested maps - Stale Test — Kotlin unit test updated to verify the correct
notImplemented()behavior instead of testing the non-existentgetPlatformVersionmethod - Analyzer Warning — Removed unused
platformvariable and its dangling import influtter_shield_method_channel_test.dart - Dependencies — Removed three unused dependencies (
path_provider,shared_preferences,device_info_plus) frompubspec.yaml, reducing package weight and transitive dependency graph
Example App — Full UI Redesign #
- Dark-themed design system with radial gradient background (
#0A0E1A) - Animated shield hero with pulsing glow aura on the home screen
- Radial scan animation with rotating icon during active scan
- Security score ring — animated arc (CustomPainter) that reveals the score from 0 on load
- Dynamic score label: Well Protected / Moderate Risk / High Risk / Critical Risk
- Three-column stats row: Passed · Failed · Total
- Results grouped into 7 security categories, each with inline progress bar and issue count
- Expandable category sections with smooth
AnimatedSizetransitions - Per-check PASS / FAIL badges with tap-to-expand messages
- Six quick-check grid cards on the home screen
- Bottom sheet for quick-check results with status badge and message card
- Slide-in page transition (380 ms,
easeOutCubic) - Migrated all
Color.withOpacity()calls to the modernColor.withValues(alpha:)API
1.1.2 - 2026-01-02 #
Initial Release #
Features
- Complete coverage of 31 security vulnerabilities
- Support for both Android and iOS platforms
- Comprehensive security reporting via
SecurityReport - Individual check methods for targeted testing
- Full security scan via
performFullSecurityCheck()
Device Integrity
- Root / Jailbreak detection with three independent methods
- Debuggable app detection
- USB debugging status check (Android)
- Emulator / Simulator detection
- Basic malware exposure detection
Storage Security
- Local storage security analysis
- Plaintext data detection
- Keychain / Keystore validation framework
- File permissions checking
- External storage analysis
- Backup configuration checking
Authentication
- Biometric handling validation
- Biometric bypass detection
- Screen lock enforcement checking
UI Security
- Screenshot restriction checking
- Screen recording detection (active capture check on iOS)
- Clipboard security analysis
- Overlay attack detection framework
- Background data exposure checking
- Recent apps exposure detection
Communication
- IPC security analysis
- Intent hijacking detection (Android)
- Broadcast receiver exposure checking (Android)
- Deep link security validation
WebView Security
- WebView debugging detection
- JavaScript interface security checking
Permissions & Runtime
- Runtime permission validation
- Autofill security checking
- Sensor abuse detection framework
Other
- Device time trust validation
- Side-channel attack detection framework
Platform Support
- Android: API 21+ (Android 5.0 Lollipop and above)
- iOS: 12.0+