SKILL Instructions

Android Retrofit Networking

v1.0.0·Developer Tools·No reviews yet

Type-safe HTTP with Retrofit + OkHttp

claude
cursor
#android
#retrofit
#okhttp
#network

About

Patterns for building a robust Retrofit client: interceptors, error mapping, and coroutine suspend functions.

Metadata (SKILL.md frontmatter)

name
android-retrofit-networking
version
1.0.0

Instructions

Retrofit

  • Define API as an interface with suspend fun returning DTOs.
  • Add HttpLoggingInterceptor only for debug builds.
  • Map DTOs to domain models in the repository layer.
  • Handle HttpException and IOException explicitly; expose a sealed Result type.

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Discussion(0)

Sign in to join the discussion.

No comments yet.