android-retrofit | スキル詳細 | OpenClaw Study

Provides expert guidance for integrating Retrofit to implement type-safe HTTP networking in Android apps. Explains defining service interfaces and request/…

Provides expert guidance for integrating Retrofit to implement type-safe HTTP networking in Android apps. Explains defining service interfaces and request/response models, configuring converters (Gson, Moshi) and call adapters, and using Kotlin coroutines with suspend functions for concise asynchronous code. Shows OkHttp configuration: interceptors for authentication and logging, caching, timeouts, connection pooling, and retry strategies. Demonstrates Hilt integration to provide injectable Retrofit/OkHttp instances and converters for consistent, testable networking. Includes best practices for error handling, response parsing, unit and integration testing with MockWebServer, and performance tuning. Use this skill when building REST clients, improving network reliability, or standardizing API layers across projects; core advantages are strong type-safety, modularity, testability, and easy DI-backed configuration.

このページは OpenClaw Skills 学習ハブの一部で、導入手順・カテゴリ導線・実践リンクを提供します。

English 简体中文 繁體中文 Español Português