Jetpack Compose - Viewmodels and Repository + MVVM - Complete App | CheezyCode Hindi

  Рет қаралды 10,578

Cheezy Code

Cheezy Code

Жыл бұрын

Learn Jetpack Compose in Android. Learn how to create repository in MVVM architecture for a jetpack compose based app. Learn how to create viewmodels and inject repository inside viewmodels using HILT. These are the basic concepts required to setup MVVM architecture in Android. Learn what is the need of repository and viewmodels in android mvvm architecture. We have used StateFlow and MutableStateFlow as observable for data. StateFlow in Kotlin is used to store data that acts as an observable. Whenever data changes, observers are notified to take required actions.
Learn how to setup a project from scratch in this video. We will be covering a lot. Learn how to get the data using ChatGPT - good example of using ChatGPT for data curation. You can use this for any category of data you want. This is a simple example and opens a huge opportunity for you to add features. Learn how to define composables using best practices. Everything is explained in Hindi (हिन्दी)
Topics covered -
1. Define Repository in MVVM Architecture in Android
2. ViewModels - need and how to define it.
3. Inject objects using HILT.
4. Jetpack Compose Project with MVVM setup video.
Jetpack Compose Series -
• Android Jetpack Compos...
Kotlin Flows Playlist -
• Kotlin Flows Tutorials
Jetpack Paging Tutorial -
• Android Paging 3 | Jet...
Complete Dependency Injection Playlist Link -
• Dagger 2 - Dependency ...
Complete Android Architecture Components Playlist -
• Android Architecture C...
Beginner series in Android Playlist (Hindi) -
• Android Tutorials Step...
Kotlin Beginners Tutorial Series -
• Kotlin Beginner Tutori...
For more info - visit the below link
www.cheezycode.com
We are social. Follow us at -
Facebook - / cheezycode
Twitter - / cheezycode
Instagram - / cheezycode

Пікірлер: 29
@shubhamshinde4042
@shubhamshinde4042 6 ай бұрын
Thanks *#CheezyCode* 💜♥
@ChocoByte
@ChocoByte 11 ай бұрын
Perfect❤❤❤❤❤❤
@wizard9389
@wizard9389 Жыл бұрын
Great !! We need more on this series
@CheezyCode
@CheezyCode Жыл бұрын
in progress
@udaysharma5228
@udaysharma5228 Жыл бұрын
Your teaching style is very unique and to the point, I am fan of it! Just an enhancement : In case of repository pattern in MVVM, we have to rely on abstraction instead of concrete class, so that if any changes come in future, we have to perform changes in 1 place only, and if required, a complete implementation of repository could be replaced with other implementation without affecting other layers.
@CheezyCode
@CheezyCode Жыл бұрын
Thanks Uday
@sanjaymangaroliya6253
@sanjaymangaroliya6253 Жыл бұрын
Good job sir 🙏
@CheezyCode
@CheezyCode Жыл бұрын
Thanks and welcome
@mubaraknative
@mubaraknative Жыл бұрын
Great🎉
@CheezyCode
@CheezyCode Жыл бұрын
Thank you! Cheers!
@rdvibesvids
@rdvibesvids Жыл бұрын
Thanks sir 🙏
@CheezyCode
@CheezyCode Жыл бұрын
Thank you 🤘
@thelight786
@thelight786 2 ай бұрын
IMPORTANT: can u tell me how to add a 3rd party view in compose? when i add the view in a Compose funtion, it gives error, saying that the parameter needs context..
@vikashtiwari8360
@vikashtiwari8360 Жыл бұрын
please continue this series
@CheezyCode
@CheezyCode Жыл бұрын
Thank you for following up...alternative video ka schedule hai
@divyanksharma236
@divyanksharma236 6 ай бұрын
Come back sir
@jayisampelliwar5065
@jayisampelliwar5065 8 ай бұрын
Can you make a detailed playlist on Dagger Hilt?
@vaibhavpandey2967
@vaibhavpandey2967 Жыл бұрын
❤❤❤❤❤
@CheezyCode
@CheezyCode Жыл бұрын
@tabishkhan2012
@tabishkhan2012 Жыл бұрын
Interview questions and answers k hisab se ek video banaiye sir details wala ❤
@CheezyCode
@CheezyCode Жыл бұрын
next karte hai kuch interview wali pe
@shreyanshsingh8020
@shreyanshsingh8020 2 ай бұрын
Bhai kha chle gye aap. Yaad aa rhi hai🤕
@vinodkumar-om1xb
@vinodkumar-om1xb 10 ай бұрын
Why we create 2 ViewModel but 1 Repository?
@rishikeshsingh9946
@rishikeshsingh9946 Жыл бұрын
Hi Sir A question! In Hilt during create a variable in file I want that variable use as a field injection so there I will use like "lateinit var student:Student" and its above I will put @Inject, and there in Student class In will use "@Inject constructor()", so I want to ask here can we @Inject field injection without using lateinit keyword, In my project I am using "detekt tool" and there is a rule define we can not use lateinit keyword in hole project, and without it I am unable to use field injection. so please tell us this solution.
@CheezyCode
@CheezyCode Жыл бұрын
try this - make it nullable and assign null and annotate it with @Inject
@rishikeshsingh9946
@rishikeshsingh9946 Жыл бұрын
@@CheezyCode from this not working
@udaysharma5228
@udaysharma5228 Жыл бұрын
You can't do that, because the dependencies that hilt is providing is non-null, so only lateinit is the way to inject non null dependencies as field injection. Hope this helps.
@rishikeshsingh9946
@rishikeshsingh9946 Жыл бұрын
@@udaysharma5228 agree bro...thanks...I already do it but thanks for reply..
@rishikeshsingh9946
@rishikeshsingh9946 Жыл бұрын
@AWESOME
ViewModels & Configuration Changes - Android Basics 2023
18:46
Philipp Lackner
Рет қаралды 110 М.
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 28 МЛН
Gym belt !! 😂😂  @kauermotta
00:10
Tibo InShape
Рет қаралды 18 МЛН
Playing hide and seek with my dog 🐶
00:25
Zach King
Рет қаралды 37 МЛН
Hilt - Providing Retrofit Instance and Repository
20:36
CodingWithMitch
Рет қаралды 18 М.
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 74 М.
Full Guide to Manual Dependency Injection + Removing Dagger
14:50
Philipp Lackner
Рет қаралды 36 М.
6 Design Patterns Every Android Developer Must Know
14:16
Philipp Lackner
Рет қаралды 79 М.
Hilt Dependency Injection (Kotlin Beginner Example)
21:20
CodingWithMitch
Рет қаралды 42 М.
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 28 МЛН