{"repo":"skydoves/sandwich","free":true,"listed":false,"github":"https://github.com/skydoves/sandwich","clone":"git clone https://github.com/skydoves/sandwich.git","description":"🥪 Sandwich is an adaptable and lightweight sealed API library designed for handling API responses and exceptions in Kotlin for Retrofit, Ktor, and Kotlin Multiplatform.","language":"Kotlin","stars":1771,"topics":["android","retrofit","api","network","apiresponse","datasource","kotlin","skydoves"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"Why Sandwich? Sandwich was conceived to streamline the creation of standardized interfaces to model responses from Retrofit, Ktor, and whatever. This library empowers you to handle body data, errors, and exceptional cases more succinctly, utilizing functional operators within a multi-layer architecture. With Sandwich, the need to create wrapper classes like Resource or Result is eliminated, allowing you to concentrate on your core business logic. Sandwich boasts features such as global response handling, Mapper, Operator, and exceptional compatibility, including ApiResponse With Coroutines. Download Sandwich has achieved an impressive milestone, being downloaded in over 1,200,000 across Android and backend projects worldwide! Gradle Add the dependency below into your module 's build.gradle file: For Kotlin Multiplatform, add the dependency below to your module's build.gradle.kts file: R8 / ProGuard The specific rules are already bundled into the JAR which can be interpreted by R8 automatically. Documentation For comprehensive details about Sandwich, please refer to the complete documentation available here. Use Cases You can also check out nice use cases of this library in the repositories below: - Pokedex: 🗡️ Android Pokedex using Hilt, Motion, Coroutines, Flow, Jetpack (Room, ViewModel, LiveData) based on MVVM architecture. - ChatGPT Android: 📲 ChatGPT Android demonstrates OpenAI's ChatGPT on Android with Stream Chat SDK for Compose. - DisneyMotions: 🦁 A Disney app using","default_branch":null,"files":null,"tree":[],"storefront":"/r/skydoves","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/skydoves/sandwich/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}