mirror of
https://github.com/bitwarden/mobile
synced 2025-12-28 06:03:40 +00:00
In-app vault export support (#729)
* First pass at vault export UI * Password validation via cryptoService * Export service framework * support for constructing json export data * Support for constructing csv export data * Cleanup and simplification * Completion of vault export feature * Formatting and simplification * Use dialog instead of toast for invalid master password entry
This commit is contained in:
@@ -190,6 +190,11 @@ namespace Bit.Core.Utilities
|
||||
}
|
||||
return JsonConvert.SerializeObject(obj, jsonSerializationSettings);
|
||||
}
|
||||
|
||||
public static string SerializeJson(object obj, JsonSerializerSettings jsonSerializationSettings)
|
||||
{
|
||||
return JsonConvert.SerializeObject(obj, jsonSerializationSettings);
|
||||
}
|
||||
|
||||
public static T DeserializeJson<T>(string json, bool ignoreNulls = false)
|
||||
{
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace Bit.Core.Utilities
|
||||
var totpService = new TotpService(storageService, cryptoFunctionService);
|
||||
var authService = new AuthService(cryptoService, apiService, userService, tokenService, appIdService,
|
||||
i18nService, platformUtilsService, messagingService, lockService);
|
||||
// TODO: export service
|
||||
var exportService = new ExportService(folderService, cipherService);
|
||||
var auditService = new AuditService(cryptoFunctionService, apiService);
|
||||
var environmentService = new EnvironmentService(apiService, storageService);
|
||||
var eventService = new EventService(storageService, apiService, userService, cipherService);
|
||||
@@ -80,6 +80,7 @@ namespace Bit.Core.Utilities
|
||||
Register<IPasswordGenerationService>("passwordGenerationService", passwordGenerationService);
|
||||
Register<ITotpService>("totpService", totpService);
|
||||
Register<IAuthService>("authService", authService);
|
||||
Register<IExportService>("exportService", exportService);
|
||||
Register<IAuditService>("auditService", auditService);
|
||||
Register<IEnvironmentService>("environmentService", environmentService);
|
||||
Register<IEventService>("eventService", eventService);
|
||||
|
||||
Reference in New Issue
Block a user