How to Setup a Room DB for Kotlin Multiplatform Compose

  Рет қаралды 8,770

Philipp Lackner

Philipp Lackner

29 күн бұрын

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:
pl-coding.com/drop-table-ment...
⭐ Courses with real-life practices
⭐ Save countless hours of time
⭐ 100% money back guarantee for 30 days
⭐ Become a professional Android developer now:
pl-coding.com/premium-courses...
Get my FREE PDF about 20 things you should never do in Jetpack Compose:
pl-coding.com/jetpack-compose...
Regular programming advice on my Instagram page: / _philipplackner_
Join my Discord server:
/ discord
Get the source code for this video on GitHub:
github.com/philipplackner/Roo...

Пікірлер: 50
@Fo0nT
@Fo0nT 28 күн бұрын
There it is, nice! Next video suggestions: - Preparing for Kotlin 2.0 - Compose Preview Screenshot testing
@gerardosanchez7548
@gerardosanchez7548 27 күн бұрын
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!!!
@stasleonov5196
@stasleonov5196 27 күн бұрын
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
@PhilippLackner
@PhilippLackner 27 күн бұрын
Glad I could help!
@peterpaniccc
@peterpaniccc 27 күн бұрын
Thank you Philipp, extremely helpful content. I'll stick to realm, but good to know room is now also supported.
@andreaslinis1586
@andreaslinis1586 28 күн бұрын
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 😂😂😂
@vinupolly3558
@vinupolly3558 20 күн бұрын
For Kotlin 2.0.0, there seems to be an issue syncing 'Cannot change attributes of configuration ':composeApp:debugFrameworkIosX64' 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?
@ZAKIALAM
@ZAKIALAM 19 күн бұрын
Philips this error is emerged from Kotlin 2.0.0 and KSP 2.0.0. Could you please help ?
@kocur-pl
@kocur-pl 15 күн бұрын
i have same error
@bardeebooboo
@bardeebooboo 14 күн бұрын
same...
@panagiotismargaritis3531
@panagiotismargaritis3531 11 күн бұрын
I had the same issue. Replace (for now) : dependencies { //room //Replace it with -> ksp(libs.room.compiler) when it is stable add("kspCommonMainMetadata", libs.room.compiler) } tasks.withType().configureEach { if (name != "kspCommonMainKotlinMetadata" ) { dependsOn("kspCommonMainKotlinMetadata") } } I think they will notice and they will come up with a change.
@MrBeskem
@MrBeskem 7 күн бұрын
Danke man, ich liebe deine Videos.
@AravindhAthmanathan
@AravindhAthmanathan 24 күн бұрын
Hi Philipp, Can we use Room for Desktop also ?
@sijanneupane
@sijanneupane 28 күн бұрын
damn Philipp! you're speeding up! ❤
@m.fatihyldz8159
@m.fatihyldz8159 25 күн бұрын
damn i feel like u read my mind, thats what i was looking for :)
@mohammadhosein8378
@mohammadhosein8378 24 күн бұрын
please create a playlist for KMP videos on your channel for better access 🙏
@user-vs9ey3bd4t
@user-vs9ey3bd4t 27 күн бұрын
Ive foudn th best kotlin youtuber.
@tmjromao
@tmjromao 27 күн бұрын
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
@PhilippLackner
@PhilippLackner 27 күн бұрын
Check my recent video on how to share ViewModels and then connect these two :)
@o_zz
@o_zz 28 күн бұрын
Could you make Playlist for KMP?
@Joshdevelopsdaily
@Joshdevelopsdaily 27 күн бұрын
Can you pre-populate the DB in the ios main similar to how its done in android?
@ALEX54402
@ALEX54402 28 күн бұрын
🎉🎉🎉 keep going
@MahmoudBashir-dd4or
@MahmoudBashir-dd4or 26 күн бұрын
Could you please integrating it with koin in kmm
@betterboyfilms
@betterboyfilms 25 күн бұрын
Hi, whats your theme in Android Studio?
@andreaslinis1586
@andreaslinis1586 28 күн бұрын
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)
@PhilippLackner
@PhilippLackner 27 күн бұрын
I wouldn't yet
@khanhNguyen-ts6gj
@khanhNguyen-ts6gj 24 күн бұрын
How can you have code suggestion on kotlin files of iosMain package? Mine Android studio only treated like a plain text files :(
@nishantaanjaneyjalan8583
@nishantaanjaneyjalan8583 12 күн бұрын
Hey Philipp, great video! However, I noticed that you did all of your code in :composeApp. Why did you take this approach and not in the :shared module? I was under the impression that :shared is used for business logic...
@deriarmanda7807
@deriarmanda7807 10 күн бұрын
composeApp is a shared module. Right now, they shipped android and kmm together into one module named composeApp by default if you create project from kmp wizard.
@nishantaanjaneyjalan8583
@nishantaanjaneyjalan8583 8 күн бұрын
@@deriarmanda7807 Yeah that was quite confusing for me. Now I use `shared/` module for stuff that is shared between the app the server like serializing request/response bodies and type-safe routing.
@user-vs9ey3bd4t
@user-vs9ey3bd4t 25 күн бұрын
How to add dao on wasm and desktop app
@MrMarv37
@MrMarv37 28 күн бұрын
Would this be the same way to implement room in an intellij desktop project?
@LassNoches
@LassNoches 28 күн бұрын
I want to know this too
@PhilippLackner
@PhilippLackner 27 күн бұрын
Yes for Desktop it works as well
@MrMarv37
@MrMarv37 27 күн бұрын
​@@PhilippLacknerthank you. And how do you create an instance of a room db in an intellij desktop only project?
@MrMindfullness
@MrMindfullness 28 күн бұрын
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.
@abada-s
@abada-s 27 күн бұрын
I hope to create a video about migrate from android project to kmp project
@PhilippLackner
@PhilippLackner 27 күн бұрын
Already done
@abada-s
@abada-s 27 күн бұрын
@@PhilippLackner I don't think that I missed a video for you, I mean if there is an existing android project, how to migrate its settings and configurations to be a kmp one
@MrMindfullness
@MrMindfullness 28 күн бұрын
How to login to my account on pl-coding website?
@PhilippLackner
@PhilippLackner 27 күн бұрын
After the purchase you got an email with instructions to set a password on Memberspot. Then you just need to log in there with the link in the email :)
@MrMindfullness
@MrMindfullness 27 күн бұрын
@@PhilippLackner Thanks for reply! I was searching in emails by your name. Now I got it.
@RajeshJaswalPune
@RajeshJaswalPune 22 күн бұрын
error: Unresolved reference 'instantiateImpl'
@arozendojr
@arozendojr 28 күн бұрын
I would like to see compose-ios, using a simple Android and ios webview
@PhilippLackner
@PhilippLackner 27 күн бұрын
Already have a 3h course here on KZfaq :)
@johnkenedy
@johnkenedy 18 күн бұрын
@frank4pickerson
@frank4pickerson 28 күн бұрын
Why not use mongodb?
@fernandobatista3528
@fernandobatista3528 27 күн бұрын
Coisa de mongol
@alexbecar977
@alexbecar977 24 күн бұрын
Because its trash for most use cases
The Top 3 State Management Mistakes On Android
14:30
Philipp Lackner
Рет қаралды 21 М.
Climbing to 18M Subscribers 🎉
00:32
Matt Larose
Рет қаралды 22 МЛН
When someone reclines their seat ✈️
00:21
Adam W
Рет қаралды 27 МЛН
We Got Expelled From Scholl After This...
00:10
Jojo Sim
Рет қаралды 33 МЛН
Как быстро замутить ЭлектроСамокат
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 13 МЛН
KMP vs. Flutter - Who Will Win The Cross-Platform Battle?
16:19
Philipp Lackner
Рет қаралды 25 М.
Kotlin Multiplatform vs Flutter: Which should we use?
4:42
Kei Fujikawa
Рет қаралды 12 М.
Releasing Faster with Kotlin Multiplatform
32:24
Gradle
Рет қаралды 9 М.
Performance Optimization with @Stable and @Immutable in Jetpack Compose
16:47
Should You Use Compose State or StateFlow in Your ViewModels?
13:59
Philipp Lackner
Рет қаралды 69 М.
MVVM vs. MVI - Understand the Difference Once and for All
18:40
Philipp Lackner
Рет қаралды 29 М.
Everything you need to know about Kotlin 2.0 🟣
11:05
Stevdza-San
Рет қаралды 46 М.
Хотела заскамить на Айфон!😱📱(@gertieinar)
0:21
Взрывная История
Рет қаралды 1,3 МЛН
China 🇨🇳 Phone 📱 Charger
0:42
Edit Zone 1.8M views
Рет қаралды 382 М.
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 6 МЛН
WWDC 2024 Recap: Is Apple Intelligence Legit?
18:23
Marques Brownlee
Рет қаралды 5 МЛН
DC Fast 🏃‍♂️ Mobile 📱 Charger
0:42
Tech Official
Рет қаралды 481 М.
сюрприз
1:00
Capex0
Рет қаралды 1,3 МЛН