memory_info 0.1.0
memory_info: ^0.1.0 copied to clipboard
Flutter package to get device memory info(ram&rom) at android/ios devices
0.1.0 #
Android
- Migrates to built-in Kotlin (AGP 9 / Gradle 9 compatible).
- Removes deprecated
jcenter()repository and legacybuildscriptblock. - Bumps
compileSdkto 36. - Behavior change:
appMemis now total PSS of the app process (Debug.MemoryInfo), including native memory. The previous value (Java heap) is available asjavaHeapUsedMem. - Behavior change:
freeSpaceon Android 8+ includes cached data the system can clear (StorageManager.getAllocatableBytes), same as on iOS. - Adds
lowMemoryThreshold,advertisedMem(Android 14+),javaHeapUsedMem,javaHeapMaxMem. - Values are collected off the main thread.
- Returns a
PlatformExceptioninstead of zero values when the plugin is not attached. - All values are reported as fractional megabytes.
iOS
- Adds Swift Package Manager support (CocoaPods is still supported).
- Bumps minimum deployment target to 13.0.
- Adds
appAvailableMemviaos_proc_available_memoryand provideslowMemory(true when available memory is below 25% of the app memory limit). Both are null on simulator. - Fixes a Mach port leak on every
memoryInfocall. - Disk total and free space are read from the same API, so
usedSpaceis consistent. - Returns null instead of 0 when a value can't be read.
- Disk values are reported as fractional megabytes, same as Android.
Common
- Adds
onMemoryPressurestream: AndroidonTrimMemory/onLowMemory, iOS memory warnings and critical memory pressure. - Updates the minimum supported SDK version to Flutter 3.44/Dart 3.12.
- Updates memory_info_platform_interface to 0.1.0.
- Regenerates the example app and shows memory pressure events.
- Adds unit tests.
0.0.4 #
0.0.3 #
- bump android sdk && gradle
0.0.2 #
- fix ios build error at convert 'vm_size_t' to UInt
0.0.1 #
- implements memory interface