v0.1.42 - fix: update iOS version check for experimentalMLE5EngineUsage from 16 to 17 (#408)
π Summary
v0.1.42 makes the Flutter YOLO plugin safer on iOS, adds a clean API to choose front/back camera by default, and improves model initialization and stability across platforms. π
π Key Changes
-
β iOS stability fix for Core ML config (
experimentalMLE5EngineUsage)- Updated the iOS version guard so
experimentalMLE5EngineUsageis only used on iOS 17+. - Prevents crashes on iOS 16 and earlier caused by setting an unsupported Core ML configuration key.
- Implemented in
BasePredictor.swiftusing a stricter#available(iOS 17.0, *)check.
- Updated the iOS version guard so
-
π₯ New
lensFacingparameter inYOLOView(front/back camera selection)- Added
enum LensFacing { back, front }to the Dart API. YOLOViewnow acceptslensFacing, defaulting to for full backward compatibility.
- Added