1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-29 15:11:58 +00:00

chore(mobile): update photo_manager 3.5.0 (#13050)

This commit is contained in:
Alex 2024-10-01 08:18:13 +07:00 committed by GitHub
parent a019fb670e
commit fe33732958
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 5 deletions

View file

@ -0,0 +1 @@
{"client":{"name":"basic","version":0,"file-system":"device-agnostic","perform-ownership-analysis":"no"},"targets":{"":["<all>"]},"commands":{"<all>":{"tool":"phony","inputs":["<WorkspaceHeaderMapVFSFilesWritten>"],"outputs":["<all>"]},"P0:::Gate WorkspaceHeaderMapVFSFilesWritten":{"tool":"phony","inputs":[],"outputs":["<WorkspaceHeaderMapVFSFilesWritten>"]}}}

View file

@ -16,8 +16,12 @@ class FileMediaRepository implements IFileMediaRepository {
required String title, required String title,
String? relativePath, String? relativePath,
}) async { }) async {
final entity = await PhotoManager.editor final entity = await PhotoManager.editor.saveImage(
.saveImage(data, title: title, relativePath: relativePath); data,
filename: title,
title: title,
relativePath: relativePath,
);
return AssetMediaRepository.toAsset(entity); return AssetMediaRepository.toAsset(entity);
} }

View file

@ -1211,10 +1211,10 @@ packages:
dependency: "direct main" dependency: "direct main"
description: description:
name: photo_manager name: photo_manager
sha256: "1e8bbe46a6858870e34c976aafd85378bed221ce31c1201961eba9ad3d94df9f" sha256: "32a1ce1095aeaaa792a29f28c1f74613aa75109f21c2d4ab85be3ad9964230a4"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.2.3" version: "3.5.0"
photo_manager_image_provider: photo_manager_image_provider:
dependency: "direct main" dependency: "direct main"
description: description:

View file

@ -13,7 +13,7 @@ dependencies:
sdk: flutter sdk: flutter
path_provider_ios: path_provider_ios:
photo_manager: ^3.2.3 photo_manager: ^3.5.0
photo_manager_image_provider: ^2.1.1 photo_manager_image_provider: ^2.1.1
flutter_hooks: ^0.20.4 flutter_hooks: ^0.20.4
hooks_riverpod: ^2.4.9 hooks_riverpod: ^2.4.9