A simple crypto app with Nomics API
This blog post will show you how to create a simple MVVM cryptocurrency app using the Nomics API. Some familiarity with Jetpack Compose is strongly recommended; the purpose of this tutorial is to show developers how to create a fully functional app using Compose as well as dependency injection and REST API calls. The end of this post has links to the reference documentation for the various libraries used in the project. The complete project can be found here: https://github.com/PopularPenguin/CryptoApp Setup First start by going to New Project > Empty Compose Activity. Minimum API level can be set at 21: Android 5.0 Lollipop, the minimum that is required for Jetpack Compose. Now, we need to start adding our dependencies. We first add kotlin-kapt for annotation processing in the build script block. This is used to convert our Hilt annotations (like @HiltAndroidApp and @AndroidEntryPoint, more on this later) into generated code. We need Retrofit for HTTP requests, Moshi for JSON ...