Implement creating debug archive in client communication service

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-01-02 20:11:05 +08:00
parent 9733c11f7f
commit 70521e95bc
No known key found for this signature in database
GPG Key ID: C839200C384636B0
2 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,7 @@
serverUrl:(NSString *)serverUrl
password:(NSString *)password;
- (void)removeAccountConfig;
- (void)createDebugArchiveAtURL:(NSURL *)url;
@end

View File

@ -60,4 +60,10 @@ class ClientCommunicationService: NSObject, NSFileProviderServiceSource, NSXPCLi
func removeAccountConfig() {
self.fpExtension.removeAccountConfig()
}
func createDebugArchive(at url: URL!) {
if #available(macOSApplicationExtension 12.0, *) {
Logger.createDebugArchive(saveFolderUrl: url)
}
}
}