-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
4 changed files
with
71 additions
and
25 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
...rawableCoilLib/src/main/java/com/flyjingfish/graphicsdrawablecoillib/GraphicsExtension.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
@file:JvmName("-SingletonGraphicsExtensions") | ||
@file:Suppress("NOTHING_TO_INLINE") | ||
package com.flyjingfish.graphicsdrawablecoillib | ||
|
||
|
||
import coil.request.ImageRequest | ||
import com.flyjingfish.graphicsdrawablelib.GraphicsDrawable | ||
|
||
inline fun ImageRequest.Builder.setGraphicsImageViewDrawable( | ||
graphicsDrawable: GraphicsDrawable | ||
): ImageRequest.Builder { | ||
return this.target(CoilGraphicsImageViewTarget(graphicsDrawable)) | ||
} | ||
|
||
inline fun ImageRequest.Builder.setGraphicsViewBackground( | ||
graphicsDrawable: GraphicsDrawable | ||
): ImageRequest.Builder { | ||
return this.target(CoilGraphicsViewBackgroundTarget(graphicsDrawable)) | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#Sat Mar 16 00:32:34 CST 2024 | ||
PROJ_VERSION=1.0.2 | ||
#Mon Mar 18 15:37:04 CST 2024 | ||
PROJ_VERSION=1.0.3 |