device_capability 0.1.2
device_capability: ^0.1.2 copied to clipboard
Detect device performance capabilities and get optimization recommendations. Initialize once, use throughout your app session.
0.1.2 #
- Added Swift Package Manager support for iOS
0.1.1 #
- Code formatting improvements
- Updated .gitignore
0.1.0 #
Initial Release
Features #
- Device capability detection with one-time initialization
- Performance scoring system (0-100 scale)
- Tier classification (low, medium, high, ultra)
- Memory tier detection based on RAM capacity
- Storage tier detection based on available space
- Thermal monitoring for temperature state tracking
- Smart helper methods for UX optimization decisions
- Cross-platform support for iOS and Android
- Configurable thresholds and scoring weights
- Full test coverage
- Example application demonstrating all features
- Complete documentation and usage guides
Platform Support #
- Android: Minimum SDK 21 (Android 5.0+)
- iOS: Minimum iOS 12.0+
Collected Metrics #
- CPU core count
- Total and used RAM
- Total and free storage
- Thermal state
- Low power mode status
- Battery level and charging state
- Screen resolution and density
- Processor frequency (where available)
- Device model identifier
- SDK/OS version
Known Limitations #
- Web platform not yet supported
- GPU performance estimation not included
- Network capability detection not available