Skip to content

Zip log files before sharing - #747

Open
bjorkert wants to merge 1 commit into
devfrom
feature/zip-shared-logs
Open

bjorkert wants to merge 1 commit into
devfrom
feature/zip-shared-logs

Conversation

@bjorkert

Copy link
Copy Markdown
Member

Log files can get large enough that mail apps warn about the attachment size when sharing them. Share Logs now puts the notice file and the log files into a single zip archive and hands that to the share sheet. The archive is named LoopFollow Logs YYYY-MM-DD_HHMM.zip and unpacks to a folder with the same name.

The zip is created with NSFileCoordinator and the forUploading option, so there is no new dependency. Zipping runs off the main thread. If it fails, the error is logged and the files are shared uncompressed as before.

Share Logs now bundles the notice file and the log files into a single zip archive before opening the share sheet. The archive is created with NSFileCoordinator, so no new dependency is needed. If zipping fails the files are shared uncompressed as before.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant