-
Notifications
You must be signed in to change notification settings - Fork 927
PM-26689: Separate share logic from IntentManager #5987
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
Conversation
| val autofillSaveItem = intent.getAutofillSaveItemOrNull() | ||
| val autofillSelectionData = intent.getAutofillSelectionDataOrNull() | ||
| val shareData = intentManager.getShareDataFromIntent(intent) | ||
| val shareData = shareManager.getShareDataOrNull(intent = intent) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only spot in the app that used the IntentManager that was not a composable.
| /** | ||
| * Manages the retrieving data shared to this app. | ||
| */ | ||
| interface ShareManager { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put this in the ui module but it could have gone directly into the app module. Any preference on where this end up living?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it here in ui. Gives us more flexibility.
|
Great job! No new security vulnerabilities introduced in this pull request |
|
Thanks @SaintPatrck |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #5987 +/- ##
==========================================
- Coverage 84.57% 84.56% -0.02%
==========================================
Files 717 719 +2
Lines 54544 54632 +88
Branches 7511 7531 +20
==========================================
+ Hits 46133 46197 +64
- Misses 5781 5802 +21
- Partials 2630 2633 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|

🎟️ Tracking
PM-26689
📔 Objective
This PR separates the
ShareDatalogic from theIntentManager. This change allows theIntentManagerto be UI only and we can pass a fullActivityinto it, this will be required forAuthTabfunctionality.⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes