Unless you’re a Multimillion or a Billion dollar company, you probably don’t have a multimillion-dollar ad budget or professional Spinners.
Your product needs to stand out on its own merits like More
Retrofit — Effective error handling with Kotlin Coroutine and Result API
Error handling is important, but if it obscures logic, it’s wrong.
What are retrofit call adapters used for?
How does CallAdapter work?
In this article, you will learn how can we do effective error handling with Kotlin Coroutine and Result API
Custom callAdapter in retrofit allows us to filter out various API error responses at a centralized level which reduces boilerplate code effectively. We will create our own Retrofit callAdapter to handle the API call Success and Error states.
We will use Kotlin Result API consistently in the whole application as a response of API calls.
You can find the full code of this project on github.
Unit testing on android - Canopas podcast #1youtu.be
Unit testing has become a must-have skill for any programmer. Many programmers write effective tests but not all, and the reason behind that could be a lack ......
Wanna learn how to design custom animations in Jetpack Compose?
This article will help you learn how to implement super cool custom animations using Jetpack compose in Android.
We are going to implement four different animations in this post.
Jetpack compose - Custom animations.gif
Heartbeat animation: This animation contains a heart-shaped image and we will animate it in such a way that it looks like a beating heart.
Wiggle animation: In this animation, we will have a square box and we will provide a wiggling effect on the box.
Flash animation:In this animation, we will have a square box and we will provide a flashing effect on the box.
Chasing circle animation: This animation contains multiple arcs and a circle and we will provide scaling and rotating effects on them.
Don’t worry if you didn’t get all the animations.
Check out the project on GitHub for the complete working solution and example.