Skip to main content

memory_info 0.1.0 copy "memory_info: ^0.1.0" to clipboard
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 legacy buildscript block.
  • Bumps compileSdk to 36.
  • Behavior change: appMem is now total PSS of the app process (Debug.MemoryInfo), including native memory. The previous value (Java heap) is available as javaHeapUsedMem.
  • Behavior change: freeSpace on 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 PlatformException instead 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 appAvailableMem via os_proc_available_memory and provides lowMemory (true when available memory is below 25% of the app memory limit). Both are null on simulator.
  • Fixes a Mach port leak on every memoryInfo call.
  • Disk total and free space are read from the same API, so usedSpace is 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 onMemoryPressure stream: Android onTrimMemory/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 #

  • bump android sdk && gradle
  • update memory_info_interface to 0.0.2
  • Merge PR (#4) with privacy manifest fix, thanks to cokaholic

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
21
likes
160
points
33k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Flutter package to get device memory info(ram&rom) at android/ios devices

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, memory_info_platform_interface

More

Packages that depend on memory_info

Packages that implement memory_info