Skip to content

Commit 639d840

Browse files
authored
Merge branch 'juliansteenbakker:master' into master
2 parents e10b7b3 + 8e983f1 commit 639d840

15 files changed

+91
-38
lines changed

CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,27 @@
1-
## NEXT
1+
## 6.0.2
2+
3+
Bugs fixed:
4+
* Fixed a bug that prevented `analyzeImage` from actually accepting the configured formats.
5+
6+
Improvements:
7+
* [iOS] Excluded the `arm64` architecture for Simulators, which is unsupported by MLKit 7.0.0.
8+
9+
## 6.0.1
10+
11+
Bugs fixed:
12+
* Fixed a bug that would cause onDetect to not handle errors.
13+
14+
Improvements:
15+
* [iOS] Excluded the `armv7` architecture, which is unsupported by MLKit 7.0.0.
16+
* Added a new `onDetectError` error handler to the `MobileScanner` widget, for use with `onDetect`.
17+
18+
## 6.0.0
19+
20+
**BREAKING CHANGES:**
21+
22+
* [iOS] iOS 15.5.0 is now the minimum supported iOS version.
23+
* [iOS] Updates MLKit to version 7.0.0.
24+
* [iOS] Updates the minimum supported XCode version to 15.3.0.
225

326
Improvements:
427
* [MacOS] Added the corners and size information to barcode results.

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ dev.steenbakker.mobile_scanner.useUnbundled=true
6060
```
6161

6262
### iOS
63+
64+
_iOS arm64 Simulators are currently not yet supported, until the migration to the Vision API is complete._
65+
_See_ https://github.com/juliansteenbakker/mobile_scanner/issues/1225
66+
6367
**Add the following keys to your Info.plist file, located in <project root>/ios/Runner/Info.plist:**
6468
NSCameraUsageDescription - describe why your app needs access to the camera. This is called Privacy - Camera Usage Description in the visual editor.
6569

example/android/app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ android {
2727
compileSdk 34
2828

2929
compileOptions {
30-
sourceCompatibility JavaVersion.VERSION_1_8
31-
targetCompatibility JavaVersion.VERSION_1_8
30+
sourceCompatibility JavaVersion.VERSION_17
31+
targetCompatibility JavaVersion.VERSION_17
3232
}
3333

3434
kotlinOptions {
35-
jvmTarget = '1.8'
35+
jvmTarget = '17'
3636
}
3737

3838
sourceSets {
@@ -42,7 +42,7 @@ android {
4242
defaultConfig {
4343
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4444
applicationId "dev.steenbakker.mobile_scanner_example"
45-
minSdkVersion 21
45+
minSdkVersion 24
4646
targetSdkVersion 34
4747
versionCode flutterVersionCode.toInteger()
4848
versionName flutterVersionName
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Thu May 02 10:24:49 CEST 2024
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

example/android/settings.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ pluginManagement {
1818

1919
plugins {
2020
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
21-
id "com.android.application" version "7.3.0" apply false
22-
id "org.jetbrains.kotlin.android" version "1.7.22" apply false
21+
id "com.android.application" version "8.3.2" apply false
22+
id "org.jetbrains.kotlin.android" version "2.0.20" apply false
2323
}
2424

2525
include ":app"

example/ios/Flutter/AppFrameworkInfo.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
<key>CFBundleVersion</key>
2222
<string>1.0</string>
2323
<key>MinimumOSVersion</key>
24-
<string>12.0</string>
24+
<string>15.5.0</string>
2525
</dict>
2626
</plist>

example/ios/Podfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Uncomment this line to define a global platform for your project
2-
# platform :ios, '12.0'
2+
# platform :ios, '15.5.0'
33

44
# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
55
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
@@ -40,8 +40,8 @@ end
4040
post_install do |installer|
4141
installer.pods_project.targets.each do |target|
4242
flutter_additional_ios_build_settings(target)
43-
target.build_configurations.each do |config|
44-
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
45-
end
43+
target.build_configurations.each do |config|
44+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.5.0'
45+
end
4646
end
4747
end

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@
470470
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
471471
GCC_WARN_UNUSED_FUNCTION = YES;
472472
GCC_WARN_UNUSED_VARIABLE = YES;
473-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
473+
IPHONEOS_DEPLOYMENT_TARGET = 15.5.0;
474474
MTL_ENABLE_DEBUG_INFO = NO;
475475
SDKROOT = iphoneos;
476476
SUPPORTED_PLATFORMS = iphoneos;
@@ -601,7 +601,7 @@
601601
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
602602
GCC_WARN_UNUSED_FUNCTION = YES;
603603
GCC_WARN_UNUSED_VARIABLE = YES;
604-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
604+
IPHONEOS_DEPLOYMENT_TARGET = 15.5.0;
605605
MTL_ENABLE_DEBUG_INFO = YES;
606606
ONLY_ACTIVE_ARCH = YES;
607607
SDKROOT = iphoneos;
@@ -650,7 +650,7 @@
650650
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
651651
GCC_WARN_UNUSED_FUNCTION = YES;
652652
GCC_WARN_UNUSED_VARIABLE = YES;
653-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
653+
IPHONEOS_DEPLOYMENT_TARGET = 15.5.0;
654654
MTL_ENABLE_DEBUG_INFO = NO;
655655
SDKROOT = iphoneos;
656656
SUPPORTED_PLATFORMS = iphoneos;

example/lib/barcode_scanner_window.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,15 @@ class ScannerOverlay extends CustomPainter {
131131

132132
@override
133133
void paint(Canvas canvas, Size size) {
134-
// TODO: use `Offset.zero & size` instead of Rect.largest
135134
// we need to pass the size to the custom paint widget
136-
final backgroundPath = Path()..addRect(Rect.largest);
135+
final backgroundPath = Path()
136+
..addRect(Rect.fromLTWH(0, 0, size.width, size.height));
137137
final cutoutPath = Path()..addRect(scanWindow);
138138

139139
final backgroundPaint = Paint()
140140
..color = Colors.black.withOpacity(0.5)
141141
..style = PaintingStyle.fill
142-
..blendMode = BlendMode.dstOut;
142+
..blendMode = BlendMode.dstOver;
143143

144144
final backgroundWithCutout = Path.combine(
145145
PathOperation.difference,

example/lib/mobile_scanner_overlay.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ class ScannerOverlay extends CustomPainter {
102102

103103
@override
104104
void paint(Canvas canvas, Size size) {
105-
// TODO: use `Offset.zero & size` instead of Rect.largest
106105
// we need to pass the size to the custom paint widget
107-
final backgroundPath = Path()..addRect(Rect.largest);
106+
final backgroundPath = Path()
107+
..addRect(Rect.fromLTWH(0, 0, size.width, size.height));
108108

109109
final cutoutPath = Path()
110110
..addRRect(
@@ -120,7 +120,7 @@ class ScannerOverlay extends CustomPainter {
120120
final backgroundPaint = Paint()
121121
..color = Colors.black.withOpacity(0.5)
122122
..style = PaintingStyle.fill
123-
..blendMode = BlendMode.dstOut;
123+
..blendMode = BlendMode.dstOver;
124124

125125
final backgroundWithCutout = Path.combine(
126126
PathOperation.difference,

0 commit comments

Comments
 (0)