How to Setup a Room DB for Kotlin Multiplatform Compose

Sdílet
Vložit
  • čas přidán 18. 05. 2024
  • 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...
  • Věda a technologie

Komentáře • 45

  • @Fo0nT
    @Fo0nT Před 14 dny +14

    There it is, nice! Next video suggestions:
    - Preparing for Kotlin 2.0
    - Compose Preview Screenshot testing

  • @gerardosanchez7548
    @gerardosanchez7548 Před 14 dny +5

    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 Před 14 dny

    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

  • @peterpaniccc
    @peterpaniccc Před 14 dny

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

  • @sijanneupane
    @sijanneupane Před 14 dny

    damn Philipp!
    you're speeding up! ❤

  • @andreaslinis1586
    @andreaslinis1586 Před 14 dny +4

    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 😂😂😂

  • @user-vs9ey3bd4t
    @user-vs9ey3bd4t Před 13 dny

    Ive foudn th best kotlin youtuber.

  • @mohammadhosein8378
    @mohammadhosein8378 Před 10 dny +1

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

  • @m.fatihyldz8159
    @m.fatihyldz8159 Před 12 dny

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

  • @andreaslinis1586
    @andreaslinis1586 Před 14 dny

    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)

  • @AravindhAthmanathan
    @AravindhAthmanathan Před 10 dny

    Hi Philipp, Can we use Room for Desktop also ?

  • @tmjromao
    @tmjromao Před 13 dny

    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  Před 13 dny

      Check my recent video on how to share ViewModels and then connect these two :)

  • @Joshdevelopsdaily
    @Joshdevelopsdaily Před 13 dny

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

  • @o_zz
    @o_zz Před 14 dny

    Could you make Playlist for KMP?

  • @ALEX54402
    @ALEX54402 Před 14 dny

    🎉🎉🎉 keep going

  • @khanhNguyen-ts6gj
    @khanhNguyen-ts6gj Před 10 dny

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

  • @betterboyfilms
    @betterboyfilms Před 11 dny

    Hi, whats your theme in Android Studio?

  • @MahmoudBashir-dd4or
    @MahmoudBashir-dd4or Před 13 dny

    Could you please integrating it with koin in kmm

  • @vinupolly3558
    @vinupolly3558 Před 7 dny +1

    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 Před 5 dny

      Philips this error is emerged from Kotlin 2.0.0 and KSP 2.0.0.
      Could you please help ?

    • @kocur-pl
      @kocur-pl Před 2 dny

      i have same error

    • @bardeebooboo
      @bardeebooboo Před dnem

      same...

  • @MrMarv37
    @MrMarv37 Před 14 dny

    Would this be the same way to implement room in an intellij desktop project?

    • @LassNoches
      @LassNoches Před 14 dny

      I want to know this too

    • @PhilippLackner
      @PhilippLackner  Před 14 dny +1

      Yes for Desktop it works as well

    • @MrMarv37
      @MrMarv37 Před 14 dny

      ​@@PhilippLacknerthank you. And how do you create an instance of a room db in an intellij desktop only project?

  • @user-vs9ey3bd4t
    @user-vs9ey3bd4t Před 12 dny

    How to add dao on wasm and desktop app

  • @MrMindfullness
    @MrMindfullness Před 14 dny

    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.

  • @RajeshJaswalPune
    @RajeshJaswalPune Před 8 dny

    error: Unresolved reference 'instantiateImpl'

  • @MrMindfullness
    @MrMindfullness Před 14 dny

    How to login to my account on pl-coding website?

    • @PhilippLackner
      @PhilippLackner  Před 14 dny

      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 Před 14 dny

      @@PhilippLackner Thanks for reply! I was searching in emails by your name. Now I got it.

  • @abada-s
    @abada-s Před 14 dny

    I hope to create a video about migrate from android project to kmp project

    • @PhilippLackner
      @PhilippLackner  Před 14 dny +1

      Already done

    • @abada-s
      @abada-s Před 14 dny

      @@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

  • @johnkenedy
    @johnkenedy Před 4 dny

  • @arozendojr
    @arozendojr Před 14 dny

    I would like to see compose-ios, using a simple Android and ios webview

  • @frank4pickerson
    @frank4pickerson Před 14 dny

    Why not use mongodb?