Skip to content

Commit e0f9f5a

Browse files
Merge pull request juliansteenbakker#1530 from juliansteenbakker/fix/dependency-update
fix: dependency update
2 parents 49cd13e + 1f19412 commit e0f9f5a

File tree

13 files changed

+37
-33
lines changed

13 files changed

+37
-33
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## NEXT
2+
3+
* [Android] Update to Java 17, and update other dependencies.
4+
* [iOS] Upgraded minimum iOS level to 13 due to Flutter requirements.
5+
16
## 7.0.1
27

38
* Added error handling for when `MobileScannerController.start` is called without an active `MobileScanner` widget.

android/build.gradle

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:8.10.1'
12+
classpath 'com.android.tools.build:gradle:8.13.0'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414
}
1515
}
@@ -29,15 +29,15 @@ android {
2929
namespace 'dev.steenbakker.mobile_scanner'
3030
}
3131

32-
compileSdk 35
32+
compileSdk 36
3333

3434
compileOptions {
35-
sourceCompatibility JavaVersion.VERSION_1_8
36-
targetCompatibility JavaVersion.VERSION_1_8
35+
sourceCompatibility JavaVersion.VERSION_17
36+
targetCompatibility JavaVersion.VERSION_17
3737
}
3838

3939
kotlinOptions {
40-
jvmTarget = '1.8'
40+
jvmTarget = '17'
4141
}
4242

4343
sourceSets {
@@ -73,9 +73,9 @@ dependencies {
7373
implementation 'com.google.mlkit:barcode-scanning:17.3.0'
7474
}
7575

76-
implementation 'androidx.camera:camera-lifecycle:1.4.2'
77-
implementation 'androidx.camera:camera-camera2:1.4.2'
78-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3'
76+
implementation 'androidx.camera:camera-lifecycle:1.5.0'
77+
implementation 'androidx.camera:camera-camera2:1.5.0'
78+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.2'
7979

8080
testImplementation 'org.jetbrains.kotlin:kotlin-test'
8181
testImplementation 'org.mockito:mockito-core:5.19.0'

example/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if (flutterVersionName == null) {
2424

2525
android {
2626
namespace "dev.steenbakker.mobile_scanner_example"
27-
compileSdk 35
27+
compileSdk 36
2828

2929
compileOptions {
3030
sourceCompatibility JavaVersion.VERSION_17
@@ -43,7 +43,7 @@ android {
4343
// TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
4444
applicationId "dev.steenbakker.mobile_scanner_example"
4545
minSdkVersion 24
46-
targetSdkVersion 35
46+
targetSdkVersion 36
4747
ndkVersion flutter.ndkVersion
4848
versionCode flutterVersionCode.toInteger()
4949
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-8.10.2-all.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-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 "8.3.2" apply false
22-
id "org.jetbrains.kotlin.android" version "2.0.20" apply false
21+
id "com.android.application" version '8.13.0' apply false
22+
id "org.jetbrains.kotlin.android" version "2.2.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>13.0</string>
2525
</dict>
2626
</plist>

example/ios/Runner.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
);
244244
mainGroup = 97C146E51CF9000F007C117D;
245245
packageReferences = (
246-
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */,
246+
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" */,
247247
);
248248
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
249249
projectDirPath = "";
@@ -460,7 +460,7 @@
460460
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
461461
GCC_WARN_UNUSED_FUNCTION = YES;
462462
GCC_WARN_UNUSED_VARIABLE = YES;
463-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
463+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
464464
MTL_ENABLE_DEBUG_INFO = NO;
465465
SDKROOT = iphoneos;
466466
SUPPORTED_PLATFORMS = iphoneos;
@@ -478,7 +478,7 @@
478478
CODE_SIGN_IDENTITY = "Apple Development";
479479
CODE_SIGN_STYLE = Automatic;
480480
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
481-
DEVELOPMENT_TEAM = "";
481+
DEVELOPMENT_TEAM = 75Y2P2WSQQ;
482482
ENABLE_BITCODE = NO;
483483
INFOPLIST_FILE = Runner/Info.plist;
484484
LD_RUNPATH_SEARCH_PATHS = (
@@ -591,7 +591,7 @@
591591
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
592592
GCC_WARN_UNUSED_FUNCTION = YES;
593593
GCC_WARN_UNUSED_VARIABLE = YES;
594-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
594+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
595595
MTL_ENABLE_DEBUG_INFO = YES;
596596
ONLY_ACTIVE_ARCH = YES;
597597
SDKROOT = iphoneos;
@@ -640,7 +640,7 @@
640640
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
641641
GCC_WARN_UNUSED_FUNCTION = YES;
642642
GCC_WARN_UNUSED_VARIABLE = YES;
643-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
643+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
644644
MTL_ENABLE_DEBUG_INFO = NO;
645645
SDKROOT = iphoneos;
646646
SUPPORTED_PLATFORMS = iphoneos;
@@ -660,7 +660,7 @@
660660
CODE_SIGN_IDENTITY = "Apple Development";
661661
CODE_SIGN_STYLE = Automatic;
662662
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
663-
DEVELOPMENT_TEAM = "";
663+
DEVELOPMENT_TEAM = 75Y2P2WSQQ;
664664
ENABLE_BITCODE = NO;
665665
INFOPLIST_FILE = Runner/Info.plist;
666666
LD_RUNPATH_SEARCH_PATHS = (
@@ -686,7 +686,7 @@
686686
CODE_SIGN_IDENTITY = "Apple Development";
687687
CODE_SIGN_STYLE = Automatic;
688688
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
689-
DEVELOPMENT_TEAM = "";
689+
DEVELOPMENT_TEAM = 75Y2P2WSQQ;
690690
ENABLE_BITCODE = NO;
691691
INFOPLIST_FILE = Runner/Info.plist;
692692
LD_RUNPATH_SEARCH_PATHS = (
@@ -738,7 +738,7 @@
738738
/* End XCConfigurationList section */
739739

740740
/* Begin XCLocalSwiftPackageReference section */
741-
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = {
741+
781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "FlutterGeneratedPluginSwiftPackage" */ = {
742742
isa = XCLocalSwiftPackageReference;
743743
relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage;
744744
};

example/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
buildConfiguration = "Debug"
4545
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
4646
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
47+
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
4748
shouldUseLaunchSchemeArgsEnv = "YES">
4849
<MacroExpansion>
4950
<BuildableReference
@@ -72,6 +73,7 @@
7273
buildConfiguration = "Debug"
7374
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
7475
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
76+
customLLDBInitFile = "$(SRCROOT)/Flutter/ephemeral/flutter_lldbinit"
7577
launchStyle = "0"
7678
useCustomWorkingDirectory = "NO"
7779
ignoresPersistentStateOnLaunch = "NO"

example/lib/widgets/dialogs/box_fit_dialog.dart

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,7 @@ class _BoxFitDialogState extends State<BoxFitDialog> {
4646
child: Column(
4747
children: [
4848
for (final fit in BoxFit.values)
49-
RadioListTile<BoxFit>(
50-
title: Text(fit.name),
51-
value: fit,
52-
),
49+
RadioListTile<BoxFit>(title: Text(fit.name), value: fit),
5350
],
5451
),
5552
),

lib/src/method_channel/rotated_preview.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ final class _RotatedPreviewState extends State<RotatedPreview> {
120120

121121
@override
122122
void dispose() {
123-
_deviceOrientationSubscription?.cancel();
123+
unawaited(_deviceOrientationSubscription?.cancel());
124124
_deviceOrientationSubscription = null;
125125
super.dispose();
126126
}

0 commit comments

Comments
 (0)