Skip to content

Commit

Permalink
Update dependencies to latest
Browse files Browse the repository at this point in the history
Upgrade mobile_scanner
  • Loading branch information
erdemyerebasmaz committed May 7, 2024
1 parent 9dcc4df commit c2bed1b
Show file tree
Hide file tree
Showing 4 changed files with 198 additions and 196 deletions.
190 changes: 91 additions & 99 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PODS:
- app_group_directory (1.0.0):
- Flutter
- breez_sdk (0.3.2):
- breez_sdk (0.4.0):
- Flutter
- clipboard_watcher (0.0.1):
- Flutter
Expand All @@ -10,39 +10,39 @@ PODS:
- FlutterMacOS
- device_info_plus (0.0.1):
- Flutter
- Firebase/CoreOnly (10.22.0):
- FirebaseCore (= 10.22.0)
- Firebase/DynamicLinks (10.22.0):
- Firebase/CoreOnly (10.25.0):
- FirebaseCore (= 10.25.0)
- Firebase/DynamicLinks (10.25.0):
- Firebase/CoreOnly
- FirebaseDynamicLinks (~> 10.22.0)
- Firebase/Messaging (10.22.0):
- FirebaseDynamicLinks (~> 10.25.0)
- Firebase/Messaging (10.25.0):
- Firebase/CoreOnly
- FirebaseMessaging (~> 10.22.0)
- firebase_core (2.29.0):
- Firebase/CoreOnly (= 10.22.0)
- FirebaseMessaging (~> 10.25.0)
- firebase_core (2.31.0):
- Firebase/CoreOnly (= 10.25.0)
- Flutter
- firebase_dynamic_links (5.5.1):
- Firebase/DynamicLinks (= 10.22.0)
- firebase_dynamic_links (5.5.5):
- Firebase/DynamicLinks (= 10.25.0)
- firebase_core
- Flutter
- firebase_messaging (14.8.1):
- Firebase/Messaging (= 10.22.0)
- firebase_messaging (14.9.2):
- Firebase/Messaging (= 10.25.0)
- firebase_core
- Flutter
- FirebaseCore (10.22.0):
- FirebaseCore (10.25.0):
- FirebaseCoreInternal (~> 10.0)
- GoogleUtilities/Environment (~> 7.12)
- GoogleUtilities/Logger (~> 7.12)
- FirebaseCoreInternal (10.24.0):
- FirebaseCoreInternal (10.25.0):
- "GoogleUtilities/NSData+zlib (~> 7.8)"
- FirebaseDynamicLinks (10.22.0):
- FirebaseDynamicLinks (10.25.0):
- FirebaseCore (~> 10.0)
- FirebaseInstallations (10.24.0):
- FirebaseInstallations (10.25.0):
- FirebaseCore (~> 10.0)
- GoogleUtilities/Environment (~> 7.8)
- GoogleUtilities/UserDefaults (~> 7.8)
- PromisesObjC (~> 2.1)
- FirebaseMessaging (10.22.0):
- FirebaseMessaging (10.25.0):
- FirebaseCore (~> 10.0)
- FirebaseInstallations (~> 10.0)
- GoogleDataTransport (~> 9.3)
Expand All @@ -69,51 +69,44 @@ PODS:
- GoogleUtilities/Environment (~> 7.7)
- nanopb (< 2.30911.0, >= 2.30908.0)
- PromisesObjC (< 3.0, >= 1.2)
- GoogleMLKit/BarcodeScanning (4.0.0):
- GoogleMLKit/BarcodeScanning (6.0.0):
- GoogleMLKit/MLKitCore
- MLKitBarcodeScanning (~> 3.0.0)
- GoogleMLKit/MLKitCore (4.0.0):
- MLKitCommon (~> 9.0.0)
- GoogleToolboxForMac/DebugUtils (2.3.2):
- GoogleToolboxForMac/Defines (= 2.3.2)
- GoogleToolboxForMac/Defines (2.3.2)
- GoogleToolboxForMac/Logger (2.3.2):
- GoogleToolboxForMac/Defines (= 2.3.2)
- "GoogleToolboxForMac/NSData+zlib (2.3.2)":
- GoogleToolboxForMac/Defines (= 2.3.2)
- "GoogleToolboxForMac/NSDictionary+URLArguments (2.3.2)":
- GoogleToolboxForMac/DebugUtils (= 2.3.2)
- GoogleToolboxForMac/Defines (= 2.3.2)
- "GoogleToolboxForMac/NSString+URLArguments (= 2.3.2)"
- "GoogleToolboxForMac/NSString+URLArguments (2.3.2)"
- GoogleUtilities/AppDelegateSwizzler (7.13.0):
- MLKitBarcodeScanning (~> 5.0.0)
- GoogleMLKit/MLKitCore (6.0.0):
- MLKitCommon (~> 11.0.0)
- GoogleToolboxForMac/Defines (4.2.1)
- GoogleToolboxForMac/Logger (4.2.1):
- GoogleToolboxForMac/Defines (= 4.2.1)
- "GoogleToolboxForMac/NSData+zlib (4.2.1)":
- GoogleToolboxForMac/Defines (= 4.2.1)
- GoogleUtilities/AppDelegateSwizzler (7.13.2):
- GoogleUtilities/Environment
- GoogleUtilities/Logger
- GoogleUtilities/Network
- GoogleUtilities/Privacy
- GoogleUtilities/Environment (7.13.0):
- GoogleUtilities/Environment (7.13.2):
- GoogleUtilities/Privacy
- PromisesObjC (< 3.0, >= 1.2)
- GoogleUtilities/Logger (7.13.0):
- GoogleUtilities/Logger (7.13.2):
- GoogleUtilities/Environment
- GoogleUtilities/Privacy
- GoogleUtilities/Network (7.13.0):
- GoogleUtilities/Network (7.13.2):
- GoogleUtilities/Logger
- "GoogleUtilities/NSData+zlib"
- GoogleUtilities/Privacy
- GoogleUtilities/Reachability
- "GoogleUtilities/NSData+zlib (7.13.0)":
- "GoogleUtilities/NSData+zlib (7.13.2)":
- GoogleUtilities/Privacy
- GoogleUtilities/Privacy (7.13.0)
- GoogleUtilities/Reachability (7.13.0):
- GoogleUtilities/Privacy (7.13.2)
- GoogleUtilities/Reachability (7.13.2):
- GoogleUtilities/Logger
- GoogleUtilities/Privacy
- GoogleUtilities/UserDefaults (7.13.0):
- GoogleUtilities/UserDefaults (7.13.2):
- GoogleUtilities/Logger
- GoogleUtilities/Privacy
- GoogleUtilitiesComponents (1.1.0):
- GoogleUtilities/Logger
- GTMSessionFetcher/Core (2.3.0)
- GTMSessionFetcher/Core (3.4.1)
- image_cropper (0.0.4):
- Flutter
- TOCropViewController (~> 2.6.1)
Expand All @@ -124,35 +117,34 @@ PODS:
- KeychainAccess (4.2.2)
- local_auth_darwin (0.0.1):
- Flutter
- MLImage (1.0.0-beta4)
- MLKitBarcodeScanning (3.0.0):
- MLKitCommon (~> 9.0)
- MLKitVision (~> 5.0)
- MLKitCommon (9.0.0):
- GoogleDataTransport (~> 9.0)
- GoogleToolboxForMac/Logger (~> 2.1)
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
- "GoogleToolboxForMac/NSDictionary+URLArguments (~> 2.1)"
- GoogleUtilities/UserDefaults (~> 7.0)
- MLImage (1.0.0-beta5)
- MLKitBarcodeScanning (5.0.0):
- MLKitCommon (~> 11.0)
- MLKitVision (~> 7.0)
- MLKitCommon (11.0.0):
- GoogleDataTransport (< 10.0, >= 9.4.1)
- GoogleToolboxForMac/Logger (< 5.0, >= 4.2.1)
- "GoogleToolboxForMac/NSData+zlib (< 5.0, >= 4.2.1)"
- GoogleUtilities/UserDefaults (< 8.0, >= 7.13.0)
- GoogleUtilitiesComponents (~> 1.0)
- GTMSessionFetcher/Core (< 3.0, >= 1.1)
- MLKitVision (5.0.0):
- GoogleToolboxForMac/Logger (~> 2.1)
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)"
- GTMSessionFetcher/Core (< 3.0, >= 1.1)
- MLImage (= 1.0.0-beta4)
- MLKitCommon (~> 9.0)
- mobile_scanner (3.5.6):
- GTMSessionFetcher/Core (< 4.0, >= 3.3.2)
- MLKitVision (7.0.0):
- GoogleToolboxForMac/Logger (< 5.0, >= 4.2.1)
- "GoogleToolboxForMac/NSData+zlib (< 5.0, >= 4.2.1)"
- GTMSessionFetcher/Core (< 4.0, >= 3.3.2)
- MLImage (= 1.0.0-beta5)
- MLKitCommon (~> 11.0)
- mobile_scanner (5.0.2):
- Flutter
- GoogleMLKit/BarcodeScanning (~> 4.0.0)
- GoogleMLKit/BarcodeScanning (~> 6.0.0)
- nanopb (2.30910.0):
- nanopb/decode (= 2.30910.0)
- nanopb/encode (= 2.30910.0)
- nanopb/decode (2.30910.0)
- nanopb/encode (2.30910.0)
- ObjcExceptionBridging (1.0.1):
- ObjcExceptionBridging/ObjcExceptionBridging (= 1.0.1)
- ObjcExceptionBridging/ObjcExceptionBridging (1.0.1)
- ObjcExceptionBridging (7.1.5):
- ObjcExceptionBridging/ObjcExceptionBridging (= 7.1.5)
- ObjcExceptionBridging/ObjcExceptionBridging (7.1.5)
- OrderedSet (5.0.0)
- package_info_plus (0.4.5):
- Flutter
Expand All @@ -167,18 +159,18 @@ PODS:
- shared_preferences_foundation (0.0.1):
- Flutter
- FlutterMacOS
- sqlite3 (3.45.1):
- sqlite3/common (= 3.45.1)
- sqlite3/common (3.45.1)
- sqlite3/fts5 (3.45.1):
- "sqlite3 (3.45.3+1)":
- "sqlite3/common (= 3.45.3+1)"
- "sqlite3/common (3.45.3+1)"
- "sqlite3/fts5 (3.45.3+1)":
- sqlite3/common
- sqlite3/perf-threadsafe (3.45.1):
- "sqlite3/perf-threadsafe (3.45.3+1)":
- sqlite3/common
- sqlite3/rtree (3.45.1):
- "sqlite3/rtree (3.45.3+1)":
- sqlite3/common
- sqlite3_flutter_libs (0.0.1):
- Flutter
- sqlite3 (~> 3.45.1)
- "sqlite3 (~> 3.45.3+1)"
- sqlite3/fts5
- sqlite3/perf-threadsafe
- sqlite3/rtree
Expand All @@ -187,9 +179,9 @@ PODS:
- Flutter
- url_launcher_ios (0.0.1):
- Flutter
- XCGLogger (7.0.1):
- XCGLogger/Core (= 7.0.1)
- XCGLogger/Core (7.0.1):
- XCGLogger (7.1.5):
- XCGLogger/Core (= 7.1.5)
- XCGLogger/Core (7.1.5):
- ObjcExceptionBridging

DEPENDENCIES:
Expand Down Expand Up @@ -305,55 +297,55 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
app_group_directory: 7bf9f8f9819ead554de29da7c25fb7a680d6a9a0
breez_sdk: 3fe2b6ffff9f776e983a4dc6ba250d18d2ec8008
breez_sdk: 503ffaabe90dafa43852d1c2927f7e246194d404
clipboard_watcher: 86fb70421aca6f4944e0591a8292605da7784666
connectivity_plus: ddd7f30999e1faaef5967c23d5b6d503d10434db
device_info_plus: 97af1d7e84681a90d0693e63169a5d50e0839a0d
Firebase: 797fd7297b7e1be954432743a0b3f90038e45a71
firebase_core: aaadbddb3cb2ee3792b9804f9dbb63e5f6f7b55c
firebase_dynamic_links: fd07f555c20bbf06e0380328ad2e6b21a876c4a2
firebase_messaging: 860e28c6ad8b3281276eba922024644b9909c903
FirebaseCore: 0326ec9b05fbed8f8716cddbf0e36894a13837f7
FirebaseCoreInternal: bcb5acffd4ea05e12a783ecf835f2210ce3dc6af
FirebaseDynamicLinks: 25ed0e87b0afb4769cc0ec8e942a532219abac28
FirebaseInstallations: 8f581fca6478a50705d2bd2abd66d306e0f5736e
FirebaseMessaging: 9f71037fd9db3376a4caa54e5a3949d1027b4b6e
Firebase: 0312a2352584f782ea56f66d91606891d4607f06
firebase_core: 0b39f4f424e02eecabb2356ddf331fa07b772af8
firebase_dynamic_links: c4713196b078b72fe8ca825433eb7fbebc009dd9
firebase_messaging: 8999827b6efc9c3ab4b1f9dc246deaa7f13dbf88
FirebaseCore: 7ec4d0484817f12c3373955bc87762d96842d483
FirebaseCoreInternal: 910a81992c33715fec9263ca7381d59ab3a750b7
FirebaseDynamicLinks: 12c9f5b643943e0565ed28080373f89cbcb914a3
FirebaseInstallations: 91950fe859846fff0fbd296180909dd273103b09
FirebaseMessaging: 88950ba9485052891ebe26f6c43a52bb62248952
Flutter: e0871f40cf51350855a761d2e70bf5af5b9b5de7
flutter_fgbg: 31c0d1140a131daea2d342121808f6aa0dcd879d
flutter_inappwebview_ios: 97215cf7d4677db55df76782dbd2930c5e1c1ea0
flutter_keyboard_visibility: 0339d06371254c3eb25eeb90ba8d17dca8f9c069
flutter_secure_storage: 23fc622d89d073675f2eaa109381aefbcf5a49be
GoogleDataTransport: 6c09b596d841063d76d4288cc2d2f42cc36e1e2a
GoogleMLKit: 2bd0dc6253c4d4f227aad460f69215a504b2980e
GoogleToolboxForMac: 8bef7c7c5cf7291c687cf5354f39f9db6399ad34
GoogleUtilities: d053d902a8edaa9904e1bd00c37535385b8ed152
GoogleMLKit: 97ac7af399057e99182ee8edfa8249e3226a4065
GoogleToolboxForMac: d1a2cbf009c453f4d6ded37c105e2f67a32206d8
GoogleUtilities: c56430aef51a1aa57b25da78c3f8397e522c67b7
GoogleUtilitiesComponents: 679b2c881db3b615a2777504623df6122dd20afe
GTMSessionFetcher: 3a63d75eecd6aa32c2fc79f578064e1214dfdec2
GTMSessionFetcher: 8000756fc1c19d2e5697b90311f7832d2e33f6cd
image_cropper: a3291c624a953049bc6a02e1f8c8ceb162a24b25
image_picker_ios: b545a5f16c0fa88e3ecbbce3ed4de45567a8ec18
integration_test: 13825b8a9334a850581300559b8839134b124670
KeychainAccess: c0c4f7f38f6fc7bbe58f5702e25f7bd2f65abf51
local_auth_darwin: c7e464000a6a89e952235699e32b329457608d98
MLImage: 7bb7c4264164ade9bf64f679b40fb29c8f33ee9b
MLKitBarcodeScanning: 04e264482c5f3810cb89ebc134ef6b61e67db505
MLKitCommon: c1b791c3e667091918d91bda4bba69a91011e390
MLKitVision: 8baa5f46ee3352614169b85250574fde38c36f49
mobile_scanner: 38dcd8a49d7d485f632b7de65e4900010187aef2
MLImage: 1824212150da33ef225fbd3dc49f184cf611046c
MLKitBarcodeScanning: 10ca0845a6d15f2f6e911f682a1998b68b973e8b
MLKitCommon: afec63980417d29ffbb4790529a1b0a2291699e1
MLKitVision: e858c5f125ecc288e4a31127928301eaba9ae0c1
mobile_scanner: cfc76f77dca7e074fc9ca5993e3e7c35901c8b34
nanopb: 438bc412db1928dac798aa6fd75726007be04262
ObjcExceptionBridging: c30e00eb3700467e695faeea30e26e18bd445001
ObjcExceptionBridging: d3d37d62981bb7f252ecb31b62d7e23a96bbfb8a
OrderedSet: aaeb196f7fef5a9edf55d89760da9176ad40b93c
package_info_plus: 58f0028419748fad15bf008b270aaa8e54380b1c
path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c
PromisesObjC: f5707f49cb48b9636751c5b2e7d227e43fba9f47
share_plus: 8875f4f2500512ea181eef553c3e27dba5135aad
shared_preference_app_group: 46aee3873e1da581d4904bece9876596d7f66725
shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695
sqlite3: 73b7fc691fdc43277614250e04d183740cb15078
sqlite3_flutter_libs: af0e8fe9bce48abddd1ffdbbf839db0302d72d80
shared_preferences_foundation: fcdcbc04712aee1108ac7fda236f363274528f78
sqlite3: 02d1f07eaaa01f80a1c16b4b31dfcbb3345ee01a
sqlite3_flutter_libs: 9bfe005308998aeca155330bbc2ea6dddf834a3b
TOCropViewController: edfd4f25713d56905ad1e0b9f5be3fbe0f59c863
uni_links: d97da20c7701486ba192624d99bffaaffcfc298a
url_launcher_ios: 6116280ddcfe98ab8820085d8d76ae7449447586
XCGLogger: 1943831ef907df55108b0b18657953f868de973b
XCGLogger: 399c5885210b4e2ad79d9f7a29b105d672ef724f

PODFILE CHECKSUM: 90aa10f06f49fb924f3a73fc0e8b32bc6a6677ad

Expand Down
44 changes: 27 additions & 17 deletions lib/routes/qr_scan/widgets/qr_scan.dart
Original file line number Diff line number Diff line change
Expand Up @@ -120,27 +120,37 @@ class ImagePickerButton extends StatelessWidget {
height: 32,
),
onPressed: () async {
final picker = ImagePicker();
// ignore: body_might_complete_normally_catch_error
final pickedFile = await picker.pickImage(source: ImageSource.gallery).catchError((err) {
final ImagePicker picker = ImagePicker();

final XFile? image = await picker.pickImage(source: ImageSource.gallery).catchError((err) {
_log.warning("Failed to pick image", err);
return null;
});
final filePath = pickedFile?.path;

if (image == null) {
return;
}
var filePath = image.path;
_log.info("Picked image: $filePath");
try {
final found = filePath != null && await cameraController.analyzeImage(filePath);
if (!found) {
_log.info("No QR code found in image");
scaffoldMessenger.showSnackBar(
SnackBar(
content: Text(texts.qr_scan_gallery_failed),
),
);
} else {
_log.info("QR code found in image");
}
} catch (err) {

final BarcodeCapture? barcodes = await cameraController.analyzeImage(filePath).catchError((err) {
_log.warning("Failed to analyze image", err);
return null;
});

if (barcodes == null) {
_log.info("QR code found in image");
} else {
if (!context.mounted) {
return;
}

_log.info("No QR code found in image");
scaffoldMessenger.showSnackBar(
SnackBar(
content: Text(texts.qr_scan_gallery_failed),
),
);
}
},
);
Expand Down
Loading

0 comments on commit c2bed1b

Please sign in to comment.