Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mail share extension #830

Merged
merged 70 commits into from
Aug 4, 2023
Merged

Mail share extension #830

merged 70 commits into from
Aug 4, 2023

Conversation

adrien-coye
Copy link
Contributor

@adrien-coye adrien-coye commented Jun 22, 2023

Abstract

ShareExtension setup for the kMail project.
NEW: Support the same files as input as kDrive.

Dependencies

Core PR
Core UI PR
TODO Core UI + Core PR
Bring back latest Core changes here
use date as default name Core
use date as default name CoreUI

Details

Wraps existing SwiftUI code, no way to use pure SwiftUI currently IMO.

Includes also:

  • Small refactor of the Tuist setup to help with one extra target.
  • AccountManager is now availlable with DI instead of static ref.
  • More code split using DI for ease of running all the code in Extension mode.
  • Reworked the Attachment ingestion, to prevent errors in extreme cases.
  • Abstracted user messaging mechanisms to work seamlessly in extension mode.
  • Abstracted NSItemProvider to File between kDrive and ikMail

@adrien-coye adrien-coye added the enhancement New feature or request label Jun 22, 2023
@adrien-coye adrien-coye self-assigned this Jun 22, 2023
…ct, thanks to some refactor using DI to abstract types not availlable in Extension mode

feat: AccountManager is now availlable with DI instead of static ref.
feat: Present ComposeMessageView when sharing to ikMail
@adrien-coye adrien-coye mentioned this pull request Jun 29, 2023
Copy link
Contributor Author

@adrien-coye adrien-coye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did an auto review.

MailCore/Utils/SnackBarPresentable.swift Outdated Show resolved Hide resolved
MailShareExtension/ComposeMessageWrapperView.swift Outdated Show resolved Hide resolved
Tuist/ProjectDescriptionHelpers/ExtensionTarget.swift Outdated Show resolved Hide resolved
Project.swift Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Aug 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
1.7% 1.7% Duplication

@PhilippeWeidmann PhilippeWeidmann merged commit bf038f6 into master Aug 4, 2023
5 checks passed
@PhilippeWeidmann PhilippeWeidmann deleted the shareExtension branch August 4, 2023 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants