diff --git a/app/macos/Flutter/GeneratedPluginRegistrant.swift b/app/macos/Flutter/GeneratedPluginRegistrant.swift index 091982c2a..50539401e 100644 --- a/app/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/app/macos/Flutter/GeneratedPluginRegistrant.swift @@ -17,6 +17,7 @@ import firebase_crashlytics import firebase_messaging import firebase_remote_config import firebase_storage +import flutter_image_compress_macos import flutter_native_timezone import google_sign_in_ios import mobile_scanner @@ -42,6 +43,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { FLTFirebaseMessagingPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseMessagingPlugin")) FLTFirebaseRemoteConfigPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseRemoteConfigPlugin")) FLTFirebaseStoragePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseStoragePlugin")) + FlutterImageCompressMacosPlugin.register(with: registry.registrar(forPlugin: "FlutterImageCompressMacosPlugin")) FlutterNativeTimezonePlugin.register(with: registry.registrar(forPlugin: "FlutterNativeTimezonePlugin")) FLTGoogleSignInPlugin.register(with: registry.registrar(forPlugin: "FLTGoogleSignInPlugin")) MobileScannerPlugin.register(with: registry.registrar(forPlugin: "MobileScannerPlugin")) diff --git a/app/pubspec.lock b/app/pubspec.lock index fc6089c6d..2e2a176c5 100644 --- a/app/pubspec.lock +++ b/app/pubspec.lock @@ -909,10 +909,42 @@ packages: dependency: transitive description: name: flutter_image_compress - sha256: "37f1b26399098e5f97b74c1483f534855e7dff68ead6ddaccf747029fb03f29f" + sha256: f159d2e8c4ed04b8e36994124fd4a5017a0f01e831ae3358c74095c340e9ae5e url: "https://pub.dev" source: hosted - version: "1.1.3" + version: "2.1.0" + flutter_image_compress_common: + dependency: transitive + description: + name: flutter_image_compress_common + sha256: "7cad12802628706655920089cfe9ee1d1098300e7f39a079eb160458bbc47652" + url: "https://pub.dev" + source: hosted + version: "1.0.3" + flutter_image_compress_macos: + dependency: transitive + description: + name: flutter_image_compress_macos + sha256: fea1e3d71150d03373916b832c49b5c2f56c3e7e13da82a929274a2c6f88251e + url: "https://pub.dev" + source: hosted + version: "1.0.1" + flutter_image_compress_platform_interface: + dependency: transitive + description: + name: flutter_image_compress_platform_interface + sha256: eb4f055138b29b04498ebcb6d569aaaee34b64d75fb74ea0d40f9790bf47ee9d + url: "https://pub.dev" + source: hosted + version: "1.0.3" + flutter_image_compress_web: + dependency: transitive + description: + name: flutter_image_compress_web + sha256: da41cc3859f19d11c7d10be615f6a9dcf0907e7daffde7442bf4cc2486663660 + url: "https://pub.dev" + source: hosted + version: "0.1.3+2" flutter_lints: dependency: transitive description: diff --git a/lib/abgabe/abgabe_client_lib/pubspec.lock b/lib/abgabe/abgabe_client_lib/pubspec.lock index f7bc696a7..412398872 100644 --- a/lib/abgabe/abgabe_client_lib/pubspec.lock +++ b/lib/abgabe/abgabe_client_lib/pubspec.lock @@ -551,10 +551,42 @@ packages: dependency: transitive description: name: flutter_image_compress - sha256: "37f1b26399098e5f97b74c1483f534855e7dff68ead6ddaccf747029fb03f29f" + sha256: f159d2e8c4ed04b8e36994124fd4a5017a0f01e831ae3358c74095c340e9ae5e url: "https://pub.dev" source: hosted - version: "1.1.3" + version: "2.1.0" + flutter_image_compress_common: + dependency: transitive + description: + name: flutter_image_compress_common + sha256: "7cad12802628706655920089cfe9ee1d1098300e7f39a079eb160458bbc47652" + url: "https://pub.dev" + source: hosted + version: "1.0.3" + flutter_image_compress_macos: + dependency: transitive + description: + name: flutter_image_compress_macos + sha256: fea1e3d71150d03373916b832c49b5c2f56c3e7e13da82a929274a2c6f88251e + url: "https://pub.dev" + source: hosted + version: "1.0.1" + flutter_image_compress_platform_interface: + dependency: transitive + description: + name: flutter_image_compress_platform_interface + sha256: eb4f055138b29b04498ebcb6d569aaaee34b64d75fb74ea0d40f9790bf47ee9d + url: "https://pub.dev" + source: hosted + version: "1.0.3" + flutter_image_compress_web: + dependency: transitive + description: + name: flutter_image_compress_web + sha256: da41cc3859f19d11c7d10be615f6a9dcf0907e7daffde7442bf4cc2486663660 + url: "https://pub.dev" + source: hosted + version: "0.1.3+2" flutter_lints: dependency: transitive description: diff --git a/lib/filesharing/files_usecases/lib/src/file_compression/implementation/mobile_native_image_compressor.dart b/lib/filesharing/files_usecases/lib/src/file_compression/implementation/mobile_native_image_compressor.dart index b136ce095..8ddafc598 100644 --- a/lib/filesharing/files_usecases/lib/src/file_compression/implementation/mobile_native_image_compressor.dart +++ b/lib/filesharing/files_usecases/lib/src/file_compression/implementation/mobile_native_image_compressor.dart @@ -33,7 +33,9 @@ class FlutterNativeImageCompressor extends ImageCompressor { quality: 90, ); if (result == null) return null; - return LocalFileIo.fromFile(result); + + final fileFromXFile = File(result.path); + return LocalFileIo.fromFile(fileFromXFile); } } diff --git a/lib/filesharing/files_usecases/pubspec.lock b/lib/filesharing/files_usecases/pubspec.lock index b9e73bb54..04fb192ae 100644 --- a/lib/filesharing/files_usecases/pubspec.lock +++ b/lib/filesharing/files_usecases/pubspec.lock @@ -396,10 +396,42 @@ packages: dependency: "direct main" description: name: flutter_image_compress - sha256: "37f1b26399098e5f97b74c1483f534855e7dff68ead6ddaccf747029fb03f29f" + sha256: f159d2e8c4ed04b8e36994124fd4a5017a0f01e831ae3358c74095c340e9ae5e url: "https://pub.dev" source: hosted - version: "1.1.3" + version: "2.1.0" + flutter_image_compress_common: + dependency: transitive + description: + name: flutter_image_compress_common + sha256: "7cad12802628706655920089cfe9ee1d1098300e7f39a079eb160458bbc47652" + url: "https://pub.dev" + source: hosted + version: "1.0.3" + flutter_image_compress_macos: + dependency: transitive + description: + name: flutter_image_compress_macos + sha256: fea1e3d71150d03373916b832c49b5c2f56c3e7e13da82a929274a2c6f88251e + url: "https://pub.dev" + source: hosted + version: "1.0.1" + flutter_image_compress_platform_interface: + dependency: transitive + description: + name: flutter_image_compress_platform_interface + sha256: eb4f055138b29b04498ebcb6d569aaaee34b64d75fb74ea0d40f9790bf47ee9d + url: "https://pub.dev" + source: hosted + version: "1.0.3" + flutter_image_compress_web: + dependency: transitive + description: + name: flutter_image_compress_web + sha256: da41cc3859f19d11c7d10be615f6a9dcf0907e7daffde7442bf4cc2486663660 + url: "https://pub.dev" + source: hosted + version: "0.1.3+2" flutter_lints: dependency: transitive description: diff --git a/lib/filesharing/files_usecases/pubspec.yaml b/lib/filesharing/files_usecases/pubspec.yaml index 413b6ff86..95947bc12 100644 --- a/lib/filesharing/files_usecases/pubspec.yaml +++ b/lib/filesharing/files_usecases/pubspec.yaml @@ -34,7 +34,7 @@ dependencies: file_picker: ^5.2.0+1 chewie: ^1.3.5 flutter_cache_manager: any - flutter_image_compress: ^1.1.3 + flutter_image_compress: ^2.1.0 image_picker: ^0.8.1+4 mime: any # For Flutter 3.16 we need the fix from diff --git a/lib/filesharing/filesharing_logic/pubspec.lock b/lib/filesharing/filesharing_logic/pubspec.lock index 6ce02c6a0..1a6d3ed0e 100644 --- a/lib/filesharing/filesharing_logic/pubspec.lock +++ b/lib/filesharing/filesharing_logic/pubspec.lock @@ -396,10 +396,42 @@ packages: dependency: transitive description: name: flutter_image_compress - sha256: "37f1b26399098e5f97b74c1483f534855e7dff68ead6ddaccf747029fb03f29f" + sha256: f159d2e8c4ed04b8e36994124fd4a5017a0f01e831ae3358c74095c340e9ae5e url: "https://pub.dev" source: hosted - version: "1.1.3" + version: "2.1.0" + flutter_image_compress_common: + dependency: transitive + description: + name: flutter_image_compress_common + sha256: "7cad12802628706655920089cfe9ee1d1098300e7f39a079eb160458bbc47652" + url: "https://pub.dev" + source: hosted + version: "1.0.3" + flutter_image_compress_macos: + dependency: transitive + description: + name: flutter_image_compress_macos + sha256: fea1e3d71150d03373916b832c49b5c2f56c3e7e13da82a929274a2c6f88251e + url: "https://pub.dev" + source: hosted + version: "1.0.1" + flutter_image_compress_platform_interface: + dependency: transitive + description: + name: flutter_image_compress_platform_interface + sha256: eb4f055138b29b04498ebcb6d569aaaee34b64d75fb74ea0d40f9790bf47ee9d + url: "https://pub.dev" + source: hosted + version: "1.0.3" + flutter_image_compress_web: + dependency: transitive + description: + name: flutter_image_compress_web + sha256: da41cc3859f19d11c7d10be615f6a9dcf0907e7daffde7442bf4cc2486663660 + url: "https://pub.dev" + source: hosted + version: "0.1.3+2" flutter_lints: dependency: transitive description: