HTTP Requests in Kotlin Multiplatform With Ktor - KMP for Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 พ.ย. 2024

ความคิดเห็น • 51

  • @NATAR160
    @NATAR160 3 หลายเดือนก่อน

    I'm new to this ecosystem. I want to recognize ur consistency in giving out stuffs to keep us glued to this amazing technology. Thanks

  • @stasleonov5196
    @stasleonov5196 4 หลายเดือนก่อน +2

    Phillip, thank you very much for everything you do. You're like a rock star in the android world)

  • @Vatk4LI
    @Vatk4LI 4 หลายเดือนก่อน +3

    man ktor is a life saver.

  • @ntikomathaba2662
    @ntikomathaba2662 4 หลายเดือนก่อน +1

    Thanks Phillip 🙏🏾
    Loving KMP so far!

  • @KellyMalaki
    @KellyMalaki 2 หลายเดือนก่อน +1

    Amazing! Could you make one that just covers logging generally in KMP

  • @Kusumiofficial
    @Kusumiofficial 4 หลายเดือนก่อน +27

    Write an application using clean architecture and compose multi-platform and DI , Thanks

  • @axifimrofficial
    @axifimrofficial 4 หลายเดือนก่อน

    Hats off to you for amazing tutorials and informative videos.

    • @PhilippLackner
      @PhilippLackner  4 หลายเดือนก่อน

      @@axifimrofficial thank you!

  • @arezoonazerdeylami7703
    @arezoonazerdeylami7703 3 หลายเดือนก่อน

    Thanks for sharing this amazing tutorial! Is there any chance you could make a video on implementing gRPC for KMP?

  • @markocicak4004
    @markocicak4004 2 หลายเดือนก่อน +2

    Thanks!

  • @DimaJP
    @DimaJP หลายเดือนก่อน

    Very nice. And fast)))

  • @comicsans1230
    @comicsans1230 4 หลายเดือนก่อน

    Great video as always. Would it be a good idea to use expect/actual approach to initialize engine for each platform?

  • @احمدعبدالمولىحسن-ذ7خ
    @احمدعبدالمولىحسن-ذ7خ 4 หลายเดือนก่อน +1

    Please make vedio about how handle with files in kmp, or how get image from gallery in kmp.
    Thanks.

  • @kanishkarkanish6121
    @kanishkarkanish6121 4 หลายเดือนก่อน +1

    Hi Phillip, can you provide tutorials for symbolicating KMM crashes on the iOS app side

  • @strok777
    @strok777 4 หลายเดือนก่อน

    Could you make a video on how to test ViewModel in kmp? I used to use Junit dependencies to set some rules for Coroutines, but I'm not succeeding on importing Junit on commonTest.dependencies. Therefore, perhaps there are better ways to test the ViewModel in kmp

  • @joeybasile545
    @joeybasile545 4 หลายเดือนก่อน

    Just what the fuck I needed, Phillip. Thanks homie G

  • @h4ktbtw
    @h4ktbtw 4 หลายเดือนก่อน

    Ktor Client can auto detect the engine on the classpath, so no need to pass it manually

  • @andreaslinis1586
    @andreaslinis1586 4 หลายเดือนก่อน

    Hello Philip I prefer interfaces that are more "object oriented" way to implement specific logic per platform. Would it be wise to use interfaces instead of actual/expect methanism?

    • @PhilippLackner
      @PhilippLackner  4 หลายเดือนก่อน +1

      @@andreaslinis1586 it's only equivalent for expect/actual classes. For top level functions and variables it's unnecessary bloat since you'll need a class wrapper around them

    • @andreaslinis1586
      @andreaslinis1586 4 หลายเดือนก่อน

      ​@@PhilippLackneryes that is totally true. But came handy to me to write specific logic for Android workmanager equivalent iOS class. It had lot of functionality so had to be a class

  • @ASTAppLab
    @ASTAppLab 4 หลายเดือนก่อน

    In the jetpack compose using MVVM how to use the drawer in multiple screens ?

  • @GiorgiGvichiani-pw6ht
    @GiorgiGvichiani-pw6ht 11 วันที่ผ่านมา

    For android side had to create a custom Logger. For some reason it isn't working with default ktor Logger for Android.

  • @panagiotismargaritis3531
    @panagiotismargaritis3531 4 หลายเดือนก่อน

    Why don't you try with the Network Inspector for Android? :)

  • @suchizgames4748
    @suchizgames4748 4 หลายเดือนก่อน

    Why would you not use CIO Engine as a unique client for all 3 platformes ?

  • @AnwarSaadaoui-y9v
    @AnwarSaadaoui-y9v 4 หลายเดือนก่อน

    bro which is the best in cross-platforms flutter or kotlin mutltiplatform

    • @abdelrahmankhaled7575
      @abdelrahmankhaled7575 4 หลายเดือนก่อน

      no striaghtforward answer you will get , it depends on a lot factors ! , check Phillip videos about this topic

    • @joeybasile545
      @joeybasile545 4 หลายเดือนก่อน

      My brother in Christ, I'd say you should hurry up and make your choice if you're stuck at such a stage. My money is on KMP given Google's support. Of course there are maximums and you need to think about things, I get it. But, I'll push you. Make your choice. You're not making any progress in this direction with your presence in the limbo

    • @deepakbisht4957
      @deepakbisht4957 4 หลายเดือนก่อน

      ​@joeybasile1572 I have a theory. When Google and Oracle had issue with android and Java. Then Google know that they are dependent on java as the primary language and they need to start replacing it with a new one.
      So in parallel they did two things.
      One thing was to replace java with another Jvm based language in native android as it will be hard for them to completely replace android codebase with completely different language.
      But even with Kotlin they can face problem as kotlin is also jvm based and had dependencies on java.
      So they also worked in completely new language that should be similar to java but not jvm based so they come up with Dart.
      But now kotlin became huge and it was first made android first language and then they added Jetpack with koltin with multiple features like Hilt, compose, Flows, coroutine and all.
      And when the kotlin because matured and many developer switched to kotlin from java they saw the opportunity to work on KMM just like their project Flutter to support multiple platforms.
      And now kotlin can target not just jvm. You can target Assembly , Js for browsers, linux, iOS and android was already supported and you can use kotlin in backend too in multiple platforms.
      So now they see kotlin become independent and it don't really much dependent on java so now they are trying to scrap their Flutter project as it is hard to make a budget for two different project that provide similar things.
      So that's why my money is in kotlin as it is already a native android first language and also it is promising in KMM they are making things stable from alpha, beta and experimental apis for different platforms...

    • @joeybasile545
      @joeybasile545 4 หลายเดือนก่อน

      ​@@deepakbisht4957 well said. I didn't know all of that. Thanks.

  • @hozeq
    @hozeq หลายเดือนก่อน

    How can we hide our APIs in multiplatform?

  • @taiebslama
    @taiebslama 4 หลายเดือนก่อน

    How we can add certificate to our client ?

  • @Anolcera
    @Anolcera 3 หลายเดือนก่อน

    why didn't you use the view model?

  • @taiebslama
    @taiebslama 4 หลายเดือนก่อน

    how we can add certificate to our client

  • @kaletsugas
    @kaletsugas 4 หลายเดือนก่อน +1

    Why the logging does not work for Android? How to fix?

    • @bologahoratiu
      @bologahoratiu หลายเดือนก่อน

      Did you find a fix?

  • @mohyddineal-lahham7620
    @mohyddineal-lahham7620 4 หลายเดือนก่อน

    Try ktorfit

  • @rokiAichannel
    @rokiAichannel 4 หลายเดือนก่อน

    Github code missing

  • @OsamaMohsen-f1g
    @OsamaMohsen-f1g 4 หลายเดือนก่อน

    Thanks Phillip

  • @prathivar6721
    @prathivar6721 3 หลายเดือนก่อน

    title mentioned as KMM but ur video is for CMP, I agree many things are common but even tho please don't do like this

  • @PrathivAR-f7l
    @PrathivAR-f7l 3 หลายเดือนก่อน

    it's CMP not KMP

    • @PhilippLackner
      @PhilippLackner  3 หลายเดือนก่อน

      @@PrathivAR-f7l will be hard to use CMP without KMP ;)

    • @PrathivAR-f7l
      @PrathivAR-f7l 3 หลายเดือนก่อน

      @@PhilippLackner Thanks for your reply , i'm looking u as my bro who teaches every topic so good,
      if possible can you make a dedicated video on KMM , as of now it's looking more better and stable than CMP or KMP .
      CMP can be feature of cross-platform which has potential to replace all platforms - but a long way to go :)

    • @PhilippLackner
      @PhilippLackner  3 หลายเดือนก่อน

      @@PrathivAR-f7l I'd recommend to research a bit about these terms. KMP == KMM :)

    • @PrathivAR-f7l
      @PrathivAR-f7l 3 หลายเดือนก่อน

      @@PhilippLackner Hi bro, KMM -> ios & android . KMP -> all platform . So KMM is part of KMP , Thanks :) By chance do u hv any plans for KMP

  • @AndrewDChristie
    @AndrewDChristie หลายเดือนก่อน

    Thanks!

  • @ASTAppLab
    @ASTAppLab 4 หลายเดือนก่อน

    In the jetpack compose using MVVM how to use the drawer in multiple screens ?

  • @AndrewDChristie
    @AndrewDChristie หลายเดือนก่อน

    Thanks!