- Reorganized library structure: all implementation files moved to
lib/src/directory. - Renamed
ios_options.darttoios_scanner_options.dartfor better clarity. - Separated
IosImageFormatenum into its own file (ios_image_format.dart).
- Added custom exception
CunningDocumentScannerExceptionwith specific error codes. - Replaced generic
ExceptionwithCunningDocumentScannerException.permissionDenied()for better error handling. - Improved code organization with barrel exports - users only need a single import.
- Added comprehensive unit tests for custom exceptions.
- Enhanced equality operators for
CunningDocumentScannerException.
- No changes required for users - the public API remains the same with
import 'package:cunning_document_scanner/cunning_document_scanner.dart'; - If catching exceptions, update catch blocks to use
CunningDocumentScannerExceptioninstead of genericException.
- Bumped
permission_handlerto12.0.1. - Updated the example app to use Kotlin
2.2.21, Android Gradle Plugin8.13.1, and Gradle8.13. - Added detailed documentation comments to the
CunningDocumentScannerclass.
- Upgraded
play-services-mlkit-document-scannerto16.0.0. - Updated
compileSdkto34.
- Upgraded dependencies.
- Allow users to configure the image output type on iOS (PNG or JPEG).
- Fix iOS crash where Documentscanner is not available
- Fix bitmap exception crash on Android (thanks to rosenberg_ptr)
- Add fallback for Android devices < 1.7GB RAM
- Use ML kit on Android
- dropped nocrop support
- image quality dropped
- Nmed parameters
- crop default is false
- dependencies updated
- min ios version 12 now
- Fixed iOS permission issue in example
- upgraded permission_handler
- Fixed permanently denied permission issue
- Merged crop option for android - Thanks Edwin
- iOS return unique filenames
- Updated android documentscanner library
- Exchanged android documentscanner with https://github.com/WebsiteBeaver/android-document-scanner
- Fixed conflicting requestcodes issue
- Updated permission handler constraint to ^10
- Android fixed nullsafe access issues
- Cleanup code - added images to README.md
- Fixed Playstore issue exported activity. Added documentation.
- Android and iOs Documentscanner based on Visionkit and AndroidDocument https://github.com/mayuce/AndroidDocumentScanner