How to Setup a Room DB for Kotlin Multiplatform Compose

preview_player
Показать описание
In this video I'll show you how to set up a Room DB for Kotlin Multiplatform Compose!

💻 Let me be your mentor and become an industry-ready Android developer in 10 weeks:

⭐ Courses with real-life practices
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:

Get my FREE PDF about 20 things you should never do in Jetpack Compose:

Join my Discord server:

Get the source code for this video on GitHub:
Рекомендации по теме
Комментарии
Автор

There it is, nice! Next video suggestions:

- Preparing for Kotlin 2.0
- Compose Preview Screenshot testing

FonT
Автор

No gonna lie, today i was decided to implement Rom in KMP with the documentation provided for google. And Philipp comes with this video, it is truly insane.
Philipp you saved my day, tanks a lot!!!

gerardosanchez
Автор

Philipp, I spent two days trying to do this, and here’s your video! Lord, give you everything you want and thank you so much

stasleonov
Автор

Thank you Philipp, extremely helpful content. I'll stick to realm, but good to know room is now also supported.

peterpaniccc
Автор

damn Philipp!
you're speeding up! ❤

sijanneupane
Автор

Thank you for your extremely helpful content!
I found an issue that the database is closed in app inspector, even if the app run and doing sql CRUD. I can't see my live database. Do you have any idea?

HokiantoCandra
Автор

damn i feel like u read my mind, thats what i was looking for :)

m.fatihyldz
Автор

Hi Philipp, Can we use Room for Desktop also ?

AravindhAthmanathan
Автор

For Kotlin 2.0.0, there seems to be an issue syncing 'Cannot change attributes of configuration after it has been locked for mutation', have used the latest KSP so that IDE identifies generated sources, but still throwing this error. Any one had any luck with this?

vinupolly
Автор

Hi Phillip, You will know how to implement PagingSource<Int, Entity>, to a room dao function, if currently room for kmp only allows you to place the function as suspend or Flow

bolivarcortes
Автор

Can you pre-populate the DB in the ios main similar to how its done in android?

Joshdevelopsdaily
Автор

Hi, whats your theme in Android Studio?

betterboyfilms
Автор

How can you have code suggestion on kotlin files of iosMain package? Mine Android studio only treated like a plain text files :(

khanhNguyen-tsgj
Автор

please create a playlist for KMP videos on your channel for better access 🙏

mohammadhosein
Автор

Philipp many thanks for the video explanation. Could you explain how to implement dependency injection in this project? how to inject the room database in the viewmodel, shared amongst Android and iOS? thanks, best regards

tmjromao
Автор

Could you please integrating it with koin in kmm

MahmoudBashir-ddor
Автор

Great video, thanks! By the way, context exists on iOS as well. Core Data, which is the native persistence method in iOS, uses it too. However, for some reason, Kotlin databases on iOS, like Room or SQLDelight, don't seem to require it.

MaksimLA
Автор

I used to have roomdb then wanted to migrate for kotlin multiplatform so changed to sqldelight. Now room is available for kotlin multi platform too. Too late 😂😂😂

andreaslinis
Автор

Philip is it safe to use compose multiplatform for production in this point or is it a bit risky with alpha version? (Jetbrains focus to release beta this year)

andreaslinis
Автор

If some one from subscriber knows how to login to account on pl-coding, please reply. I am not able to see a way to login on pl-coding. I want to access course that I enrolled for.

MrMindfullness