Upgrading device_info_plus 9 to 10
Breaking9.1.2 → 10.1.2Breaking5Platform3New2Changed1Fixed5Other5
BreakingUpgrade verdict
5 breaking changes and 3 platform requirement changes.
In plain terms
- Android device info no longer includes display metrics fields.
- The macOS build now targets macOS 10.14 or newer.
- The web implementation now uses package:web and supports WebAssembly.
- Android builds now use Java 17.
Must act Top 5 of 8 that need code or config changes
Dart SDK requirement changed in 10.0.1: >=2.18.0 <4.0.0 → >=3.3.0 <4.0.0.
What you must change
Breaking5
Removes Display Metrics from Android Device Info.
Bumps MACOSX_DEPLOYMENT_TARGET from 10.11 to 10.14.
MACOSX_DEPLOYMENT_TARGETMigrates to package:web, adding WASM support.
package:webTargets Java 17 on Android.
Updates target and compile SDK to 34.
Platform3
Plugin now requires Flutter >=3.19.0 and Dart >=3.3.0.
Android part now requires compileSDK 34, Java 17 and Gradle 8.4.
Updates minimum iOS target to 12.
API changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- removed:
class AndroidDisplayMetrics - removed:
field AndroidDeviceInfo.displayMetrics: final AndroidDisplayMetrics - removed:
field AndroidDisplayMetrics.heightPx: final double - removed:
field AndroidDisplayMetrics.widthPx: final double - removed:
field AndroidDisplayMetrics.xDpi: final double - removed:
field AndroidDisplayMetrics.yDpi: final double - removed:
get AndroidDisplayMetrics.heightInches: double - removed:
get AndroidDisplayMetrics.sizeInches: double - removed:
get AndroidDisplayMetrics.widthInches: double - removed:
method AndroidDisplayMetrics.toMap(): Map<String, dynamic> - added:
field AndroidDeviceInfo.isLowRamDevice: final bool - added:
method LinuxDeviceInfo.toString(): String