mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 10:37:11 -04:00 
			
		
		
		
	* setup ios * chore: succesfully sent media to the app * share from Android * wip: navigate to share screen * wip: UI for displaying upload candidate * wip: logic * wip: upload logic * wip: up up up we got it up * wip * wip * wip * upload state * feat: i18n * fix: release build ios' * feat: clear file cache * pr feedback * using const for checking download status --------- Co-authored-by: Alex <alex@pop-os.localdomain>
		
			
				
	
	
		
			24 lines
		
	
	
		
			674 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			674 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'package:hooks_riverpod/hooks_riverpod.dart';
 | |
| import 'package:immich_mobile/models/upload/share_intent_attachment.model.dart';
 | |
| import 'package:immich_mobile/repositories/share_handler.repository.dart';
 | |
| 
 | |
| final shareIntentServiceProvider = Provider(
 | |
|   (ref) => ShareIntentService(
 | |
|     ref.watch(shareHandlerRepositoryProvider),
 | |
|   ),
 | |
| );
 | |
| 
 | |
| class ShareIntentService {
 | |
|   final ShareHandlerRepository shareHandlerRepository;
 | |
|   void Function(List<ShareIntentAttachment> attachments)? onSharedMedia;
 | |
| 
 | |
|   ShareIntentService(
 | |
|     this.shareHandlerRepository,
 | |
|   );
 | |
| 
 | |
|   void init() {
 | |
|     shareHandlerRepository.onSharedMedia = onSharedMedia;
 | |
|     shareHandlerRepository.init();
 | |
|   }
 | |
| }
 |