mirror of
				https://github.com/ImranR98/Obtainium.git
				synced 2025-10-29 12:33:28 +01:00 
			
		
		
		
	Ability to share selective exports (#1752)
This commit is contained in:
		| @@ -917,6 +917,27 @@ class AppsPageState extends State<AppsPage> { | ||||
|                                 }, | ||||
|                           child: Text(tr('shareAppConfigLinks'))), | ||||
|                       const Divider(), | ||||
|                       TextButton( | ||||
|                           onPressed: selectedAppIds.isEmpty | ||||
|                               ? null | ||||
|                               : () { | ||||
|                                   var exportJSON = jsonEncode( | ||||
|                                       appsProvider.generateExportJSON( | ||||
|                                           appIds: selectedApps | ||||
|                                               .map((e) => e.id) | ||||
|                                               .toList(), | ||||
|                                           overrideExportSettings: false)); | ||||
|                                   XFile f = XFile.fromData( | ||||
|                                       Uint8List.fromList( | ||||
|                                           utf8.encode(exportJSON)), | ||||
|                                       mimeType: 'application/json', | ||||
|                                       name: | ||||
|                                           '${tr('obtainiumExportHyphenatedLowercase')}-${selectedApps.length}-${DateTime.now().millisecondsSinceEpoch}'); | ||||
|                                   Share.shareXFiles([f]); | ||||
|                                 }, | ||||
|                           child: Text( | ||||
|                               '${tr('share')} - ${tr('obtainiumExport')}')), | ||||
|                       const Divider(), | ||||
|                       TextButton( | ||||
|                           onPressed: () { | ||||
|                             appsProvider | ||||
|   | ||||
		Reference in New Issue
	
	Block a user