Showing
1 changed file
with
6 additions
and
0 deletions
| @@ -15,6 +15,12 @@ A universal barcode and QR code scanner for Flutter based on MLKit. Uses CameraX | @@ -15,6 +15,12 @@ A universal barcode and QR code scanner for Flutter based on MLKit. Uses CameraX | ||
| 15 | ### Android | 15 | ### Android |
| 16 | SDK 21 and newer. Reason: CameraX requires at least SDK 21. | 16 | SDK 21 and newer. Reason: CameraX requires at least SDK 21. |
| 17 | 17 | ||
| 18 | +This packages uses the **bundled version** of MLKit Barcode-scanning for Android. This version is more accurate and immediately available to devices. However, this version will increas the size of the app with approximately 3 to 10 MB. The alternative for this is to use the **unbundled version** of MLKit Barcode-scanning for Android. This version is older than the bundled version however this only increases the size by around 600KB. | ||
| 19 | + | ||
| 20 | +To use this version you must alter the mobile_scanner gradle file to replace `com.google.mlkit:barcode-scanning:17.0.2` with `com.google.android.gms:play-services-mlkit-barcode-scanning:18.0.0`. Keep in mind that if you alter the gradle files directly in your project it can be overriden when you update your pubspec.yaml. I am still searching for a way to properly replace the module in gradle but have yet to find one. | ||
| 21 | + | ||
| 22 | +[You can read more about the difference between the two versions here.](https://developers.google.com/ml-kit/vision/barcode-scanning/android) | ||
| 23 | + | ||
| 18 | ### iOS | 24 | ### iOS |
| 19 | iOS 11 and newer. Reason: MLKit for iOS requires at least iOS 11 and a [64bit device](https://developers.google.com/ml-kit/migration/ios). | 25 | iOS 11 and newer. Reason: MLKit for iOS requires at least iOS 11 and a [64bit device](https://developers.google.com/ml-kit/migration/ios). |
| 20 | 26 |
-
Please register or login to post a comment