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

TimelineItemPresenterFactories #1609

Merged
merged 1 commit into from
Oct 19, 2023
Merged

Conversation

julioromano
Copy link
Contributor

DI infrastructure to allow injection of presenters into the timeline. Add an @AssisteFactory of type TimelineItemPresenterFactory to a [Presenter] class and bind this factory ino the TimelineItemPresenterFactory map multi binding using:

@Binds
@IntoMap
@TimelineItemEventContentKey(MyTimelineItemContent::class)

A map multibinding of such map will be available in the LocalTimelineItemPresenterFactories composition local for further use down the UI tree.

DI infrastructure to allow injection of presenters into the timeline.
Add an @AssisteFactory of type `TimelineItemPresenterFactory` to a [Presenter] class and bind this factory ino the TimelineItemPresenterFactory map multi binding using:

```
@BINDS
@Intomap
@TimelineItemEventContentKey(MyTimelineItemContent::class)
```

A map multibinding of such map will be available in the `LocalTimelineItemPresenterFactories` composition local for further use down the UI tree.
@julioromano julioromano self-assigned this Oct 19, 2023
@julioromano julioromano requested a review from a team as a code owner October 19, 2023 12:35
@julioromano julioromano requested review from ganfra and removed request for a team October 19, 2023 12:35
@sonarcloud
Copy link

sonarcloud bot commented Oct 19, 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 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@github-actions
Copy link
Contributor

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/WzXu6c

@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

Attention: 7 lines in your changes are missing coverage. Please review.

Comparison is base (33f5c8e) 58.94% compared to head (4bdf4f5) 58.92%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1609      +/-   ##
===========================================
- Coverage    58.94%   58.92%   -0.02%     
===========================================
  Files         1201     1202       +1     
  Lines        30982    30989       +7     
  Branches      6345     6345              
===========================================
  Hits         18261    18261              
- Misses        9974     9981       +7     
  Partials      2747     2747              
Files Coverage Δ
...impl/timeline/di/TimelineItemPresenterFactories.kt 0.00% <0.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@ganfra ganfra left a comment

Choose a reason for hiding this comment

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

Nice I like it, it's simple and efficient

@julioromano julioromano merged commit a814c4a into develop Oct 19, 2023
13 of 16 checks passed
@julioromano julioromano deleted the julioromano/presenter_factories branch October 19, 2023 13:57
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.

None yet

2 participants