-
Notifications
You must be signed in to change notification settings - Fork 0
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
Refactoring service image #25
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 tasks
defagos
reviewed
Oct 23, 2023
...trofit/src/main/java/ch/srg/dataProvider/integrationlayer/request/image/ImageUrlExtension.kt
Show resolved
Hide resolved
Loic-Dumas
force-pushed
the
24-simplify-image-url-handling
branch
from
November 2, 2023 13:19
2b5348c
to
d1df120
Compare
Loic-Dumas
requested changes
Nov 27, 2023
data/src/main/java/ch/srg/dataProvider/integrationlayer/data/ImageUrl.kt
Outdated
Show resolved
Hide resolved
MGaetan89
reviewed
Nov 28, 2023
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've put a couple of comments about adding the @Px
annotation. It should help Android Studio to display a warning when it can infer that a non-pixel value is passed instead.
data/src/main/java/ch/srg/dataProvider/integrationlayer/data/ImageUrl.kt
Outdated
Show resolved
Hide resolved
data/src/main/java/ch/srg/dataProvider/integrationlayer/data/ImageUrl.kt
Outdated
Show resolved
Hide resolved
...src/main/java/ch/srg/dataProvider/integrationlayer/request/image/DefaultImageUrlDecorator.kt
Outdated
Show resolved
Hide resolved
...trofit/src/main/java/ch/srg/dataProvider/integrationlayer/request/image/ImageUrlExtension.kt
Outdated
Show resolved
Hide resolved
...ider-retrofit/src/main/java/ch/srg/dataProvider/integrationlayer/request/image/ImageWidth.kt
Show resolved
Hide resolved
...ider-retrofit/src/main/java/ch/srg/dataProvider/integrationlayer/request/image/ImageWidth.kt
Show resolved
Hide resolved
...ider-retrofit/src/main/java/ch/srg/dataProvider/integrationlayer/request/image/ImageWidth.kt
Show resolved
Hide resolved
...ider-retrofit/src/main/java/ch/srg/dataProvider/integrationlayer/request/image/ImageWidth.kt
Outdated
Show resolved
Hide resolved
...ider-retrofit/src/main/java/ch/srg/dataProvider/integrationlayer/request/image/ImageWidth.kt
Outdated
Show resolved
Hide resolved
…ationlayer/request/image/DefaultImageUrlDecorator.kt Co-authored-by: Gaëtan Muller <[email protected]>
…ationlayer/request/image/ImageWidth.kt Co-authored-by: Gaëtan Muller <[email protected]>
Loic-Dumas
approved these changes
Nov 28, 2023
MGaetan89
approved these changes
Nov 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The goal of this PR is to enhance the integrator experience with image url handling.
The new api allow to write with ease image url like the SRG SSR required.
Examples
Changes
ImageUrl.rawUrl
is private nowImageUrlDecorator
to decorate image url with a widthImageProvider
replaced byDefaultImageUrlDecorator