Skip to content

Commit

Permalink
Upgrade flutter_image_compress from '1.1.3' to '2.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreichardt committed Jan 5, 2024
1 parent b0eeaf6 commit 8f85680
Show file tree
Hide file tree
Showing 7 changed files with 142 additions and 10 deletions.
2 changes: 2 additions & 0 deletions app/macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"))
Expand Down
36 changes: 34 additions & 2 deletions app/pubspec.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 34 additions & 2 deletions lib/abgabe/abgabe_client_lib/pubspec.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
36 changes: 34 additions & 2 deletions lib/filesharing/files_usecases/pubspec.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/filesharing/files_usecases/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
36 changes: 34 additions & 2 deletions lib/filesharing/filesharing_logic/pubspec.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8f85680

Please sign in to comment.