Jokes Api App using Clean Architecture - MVVM Retrofit Dagger Jetpack Compose Kotlin Part
In this Video We Build an App that is basically fetches data which is list of jokes in this case from Jokes API. We use MVVM as design Pattern, Android Jetpack Compose for UI Building , Retrofit for API Calls and Dagger Hilt for Dependency Injection.
MVVM : Model View and ViewModel
Link to the API : [ Ссылка ]
Dependencies :
// Compose dependencies
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:2.4.0-rc01"
implementation "androidx.navigation:navigation-compose:2.4.0-alpha10"
//noinspection GradleDependency
implementation "androidx.compose.material:material-icons-extended:$compose_version"
implementation "androidx.hilt:hilt-navigation-compose:1.0.0-alpha03"
// Coroutines
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.1'
//Dagger - Hilt
implementation "com.google.dagger:hilt-android:2.38.1"
kapt "com.google.dagger:hilt-android-compiler:2.38.1"
implementation "androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha03"
kapt "androidx.hilt:hilt-compiler:1.0.0"
// Room
implementation "androidx.room:room-runtime:2.3.0"
kapt "androidx.room:room-compiler:2.3.0"
// Kotlin Extensions and Coroutines support for Room
implementation "androidx.room:room-ktx:2.3.0"
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
implementation 'com.squareup.okhttp3:okhttp:5.0.0-alpha.2'
Mobile app projects can be the X factor in your resume, and they can give you an upper edge when it comes to job interviews. Good app dev projects can be crucial to crack jobs in both startups and MNCs.
So maybe this project can be helpful for your minor College project or part of your minor or major college project.
Jetpack Compose is Android’s modern toolkit for building native UI. It simplifies and accelerates UI development on Android. Quickly bring your app to life with less code, powerful tools, and intuitive Kotlin APIs.
Writing less code affects all stages of development: as an author, you get to focus on the problem at hand, with less to test and debug and with less chances of bugs; as a reviewer or maintainer you have less code to read, understand, review and maintain.
Android Studio is the official Integrated Development Environment (IDE) for Android app development, based on IntelliJ IDEA . On top of IntelliJ's powerful code editor and developer tools, Android Studio offers even more features that enhance your productivity when building Android apps, such as:
1= A flexible Gradle-based build system
2= A fast and feature-rich emulator
3= A unified environment where you can develop for all Android devices
4= Apply Changes to push code and resource changes to your running app without restarting your app
5= Code templates and GitHub integration to help you build common app features and import sample code
6= Extensive testing tools and frameworks
7= Lint tools to catch performance, usability, version compatibility, and other problems
8= C++ and NDK support
Built-in support for Google Cloud Platform, making it easy to integrate Google Cloud Messaging and App Engine.
Time Stamps
00:00-00:11 Welcome to Noob developer
00:11-00:46 About Joke Api
00:46-02:43 Creating Packages
02:43-03:17 Setting Up Constants
03:17-04:00 Creating Jokes DTO
04:00-07:00 Setting Up Jokes Model Class
07:00-08:18 Converting Joke DTO to Jokes
08:18-11:20 Jokes API and Repository Interface
11:20-13:00 Joke Repository Implementation
13:00-17:13 Dagger Hilt
17:13-24:15 Get Jokes Use Case
24:15-33:42 Jokes View Model
33:42-41:05 Joke Single Item Screen Jetpack Compose UI
41:05-51:25 Jokes List Screen Jetpack Compose UI
51:25-52:00 Final Setup
52:00-58:00 Errors And their Solutions
58:00:58:43 Like Share Comment and Subscribe
#jetpackcompose
#mvvm
#android
#androidstudio
#kotlin
#cleanarchitecture
#laughter
![](https://s2.save4k.ru/pic/9zWdZJ_i_WM/maxresdefault.jpg)