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

Replace FakeImage with ColorImage. #2697

Merged
merged 22 commits into from
Jan 15, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve deprecation warning.
  • Loading branch information
colinrtwhite committed Jan 15, 2025
commit 448aaf8f1daaf92687eb36a8b92715cc9a46dab2
Original file line number Diff line number Diff line change
@@ -6,7 +6,8 @@ import coil3.Image
import coil3.annotation.Poko

@Deprecated(
message = "This use case is better fulfilled by ColorImage.",
message = "ColorImage supports the same functionality, has `color` as the first argument, " +
"and is more easily accessible in coil-core instead of coil-test.",
replaceWith = ReplaceWith("ColorImage", "coil3.ColorImage"),
level = DeprecationLevel.WARNING,
)
3 changes: 2 additions & 1 deletion coil-test/src/commonMain/kotlin/coil3/test/FakeImage.kt
Original file line number Diff line number Diff line change
@@ -7,7 +7,8 @@ import coil3.Image
* A simple [Image] that draws a 100x100 black square by default.
*/
@Deprecated(
message = "This use case is better fulfilled by ColorImage.",
message = "ColorImage supports the same functionality, has `color` as the first argument, " +
"and is more easily accessible in coil-core instead of coil-test.",
replaceWith = ReplaceWith("ColorImage", "coil3.ColorImage"),
level = DeprecationLevel.WARNING,
)
Original file line number Diff line number Diff line change
@@ -7,7 +7,8 @@ import org.jetbrains.skia.Paint
import org.jetbrains.skia.Rect

@Deprecated(
message = "This use case is better fulfilled by ColorImage.",
message = "ColorImage supports the same functionality, has `color` as the first argument, " +
"and is more easily accessible in coil-core instead of coil-test.",
replaceWith = ReplaceWith("ColorImage", "coil3.ColorImage"),
level = DeprecationLevel.WARNING,
)
Loading