Creating Your First Hello World KMM App (Kotlin Multiplatform Mobile) - KMM for Beginners

Поделиться
HTML-код
  • Опубликовано: 28 янв 2025

Комментарии • 253

  • @TheTuxtrons
    @TheTuxtrons 2 года назад +6

    I deliver my first project as a freelancer past week, couldn't take the second one cause client require also an iOs app. This came in perfect time.

  • @aakashr79
    @aakashr79 Год назад +11

    Hey Phillip. An OG supporter of your content here. A video on building a KMM library would be sooo massive. This is the best time to be getting into sdk dev for KMM where devs could be adding huge value for the future. A production level tutorial for a library would definitely be a first on RUclips and soooo helpful. Hope this reaches you and we see a video on that soon. Cheers!

  • @EmanNollase
    @EmanNollase 2 года назад +7

    thanks Philipp! this is just in time. i am also exploring KMM. btw, i am a android and ios native developer. But i was grateful for your videos about jetpack compose. thanks again!

    • @osisuper98
      @osisuper98 2 года назад +1

      How easy is it to go native on both platforms? Would you recommend it or it’s just better to use KMM for anything iOS related? I am a native Android developer who loves Kotlin and Java so much. The issue is I am quite unsure about choosing between learning iOS native or just sticking with KMM.

    • @EmanNollase
      @EmanNollase 2 года назад +1

      @@osisuper98 when developing app using KMM, you should have at least a basic knowledge of iOS native or learn iOS development. Because it defeats the purpose of KMM if you want to develop the app on android only. Might as well do a regular android project.

  • @arturolatorre371
    @arturolatorre371 2 года назад +5

    This series is gonna be the bomb! I'm all in! Thank you Philipp ❤

  • @anudeepananth
    @anudeepananth 2 года назад +2

    Cant tell you how incredibly excited I am for this....

  • @shelarsameer
    @shelarsameer 2 года назад +3

    Great for me, I just started learning KMM so that I can work on a project at my org. Please release more videos in this playlist.

  • @davidrauca
    @davidrauca 2 года назад +7

    Hey Philipp,
    Great work with all of these videos. Keep doing that!
    It would be nice to see a tutorial in which the KMM part is a library imported in existing Android & iOS projects.
    I think that would be very interesting and helpful!

  • @ezefrancatube
    @ezefrancatube 2 года назад +1

    Thank you for your video. It's more updated than official Kotlin docs.

  • @osisuper98
    @osisuper98 2 года назад +8

    Thank you Philipp! We can’t wait to follow through your KMM series and learn cross platform with you.

  • @MCStarYT
    @MCStarYT 2 года назад +1

    Great introductory video. Can't wait for the next one. Keep up the good work 👏

  • @devOmarAZ
    @devOmarAZ 2 года назад

    We are all waiting. Thx Philipp ♥

  • @original_anu
    @original_anu 2 года назад

    Great stuff. I'm very excited for this series

  • @mr.getrighhttt3433
    @mr.getrighhttt3433 2 года назад

    I wonder how many times you have said “actually” in this video. Lol great tutorial btw. I Have to create a KMM project for my job, and this helped.
    Thanks.

  • @vedx
    @vedx 2 года назад +1

    Finally the wait is over ♥️

  • @DevRodMastria
    @DevRodMastria 2 года назад

    Great video! I'm also a RUclipsr so I would recommend you to edit the closed captions via RUclips Studio > Content > video Details > Subtitles > Duplicate and Edit the Automatic Subtitles > Edit incorrect words like Japan vs Jetpack > Publish > Thanks for the excellent video!

  • @ahmednashwan8111
    @ahmednashwan8111 2 года назад

    😍😍😍😍 please continue I am very happy to see that.

  • @anonymousgaming1194
    @anonymousgaming1194 2 года назад

    Perfect timing! Thanks and looking forward to it.

  • @afixithei.V
    @afixithei.V 2 года назад

    Wow... I haven't given KMM a try before but I so much love the logic behind it. I currently want to build a chat app with it and in the process will learn Swift

  • @chegekamau3870
    @chegekamau3870 2 года назад

    Thanks a lot, have been waiting for this.

  • @thierrynkubito8580
    @thierrynkubito8580 2 года назад

    I've have learned a lot of of skills from you. be blessed and keep moving forward.

  • @amirrezaashouri
    @amirrezaashouri 2 года назад +12

    What a magical timing !!!
    Thanks a lot for the KMM series.
    I'm currently working on a big project which we want to migrate the business logic and data logic (if it's possible even VMs) into a KMM shared module, I would appreciate if you could dedicate an episode for implementing KMM with existing projects (android and iOS).

    • @salvadorjohndeniel
      @salvadorjohndeniel 2 года назад +1

      Me too it's for my thesis 😅

    • @maskedredstonerproz
      @maskedredstonerproz 2 года назад +2

      seeing as how viewmodels usually contain conpose states, that might be...difficult, you'd have to have a dedicated viewmodel for the logic, and one for the compose states, something like MainViewModel for the logic(the one you will share), and a MainStateViewModel(the one for compose state you won't share), I personally think that's too much effort for no benefit because viewmodels are more associated with the ui than anything, and ui is something you don't share, besides, viewmodels tend to be specific to the way things are shown in the ui, which may not be the same on every platform

  • @smreha
    @smreha 2 года назад

    I am so glad that JetBrains have improved the tooling. Look forward for more videos.

  • @theophilus494
    @theophilus494 2 года назад

    thank you soooooooooooooooo much... at least hope is rising gradually.. cos that's one of the reason I embraced Kotlin

  • @baijusharma6027
    @baijusharma6027 2 года назад

    That's going to be very interesting 👏👏👏👏

  • @giovanni_siciliano_ivano
    @giovanni_siciliano_ivano 2 года назад +2

    Really Happy you did this video. When the best Android coach in the world does this video the community think over (with the time) on making KMM better, and we will see compose IOS as flutter with a dedicated library

  • @Sc2MooDy
    @Sc2MooDy 2 года назад

    Really interested in KMM, please continue with the playlist 🥰

  • @MatiasTesio
    @MatiasTesio 7 месяцев назад +1

    Thank you for the video Phillip!
    Can you do a video about how to create and publish a KMP library that we can then use in an existing Android and iOS native apps?
    Thanks!

    • @Subratsss
      @Subratsss 6 месяцев назад

      Even same things i want

  • @Soulcybering
    @Soulcybering 2 года назад +1

    KMM is so interesting.
    Sharing viemodels is the most difficult and interesting topic. I just hope that compose ui will be released soon with iOS support

    • @ChrisAthanas
      @ChrisAthanas 2 года назад +1

      Dont hold you breath.... Apple is being very stubborn about any kind of cross platform tooling. They are literally like Internet Explorer from Microsoft from 2000-2016

  • @tmjromao
    @tmjromao 2 года назад

    Excelent Philipp! Will try to follow your insightnments and put mac mini to use :)

  • @nadilyt
    @nadilyt 2 года назад

    waiting over 😁

  • @ak9tgaming714
    @ak9tgaming714 9 месяцев назад +1

    Experienced folks, you can skip to the part 05:06 to get started with KMM.

  • @yashjani99
    @yashjani99 2 года назад

    first!! but at office, will learn this later when i get back home 😅👌

  • @TheThornTech
    @TheThornTech 2 года назад

    Thank you so much! I'm waiting for the next lesson.

  • @John-qt6qk
    @John-qt6qk 2 года назад

    This is Awesome 💪🏾

  • @ngolian
    @ngolian 2 года назад +4

    Thanks for all your excellent videos. I'm really looking forward to watching the rest of this series. However, I think cocoapods is going to be a problem. I can't get cocoapods-generate installed, it's just dependency hell. I've had much better experiences with Swift Packages (SPM), and there seems to be a general trend of deprecating cocoapods in favour of SPM. There are some plugins to integrate SPM into KMM, so I'll be trying those instead. Perhaps you could investigate that and make some videos about it? I think that would be helpful to anyone interested in this series.

  • @mahmoudh3sham
    @mahmoudh3sham 2 года назад

    Awesome Keep it up ♥

  • @akashkumardas6521
    @akashkumardas6521 2 года назад +1

    Thank you so much, you just make it simple.

  • @denizbutandroid
    @denizbutandroid 2 года назад

    exciting!

  • @moldovanpeter5123
    @moldovanpeter5123 2 года назад +2

    Will you add also KotlinRedux? or it will be basic KMM tutorials?

  • @sovrinfo
    @sovrinfo 2 года назад

    Thanks! Cool video!

  • @siracseyidov1597
    @siracseyidov1597 2 года назад

    Waitong for next part

  • @stankodujakovic3935
    @stankodujakovic3935 2 года назад +2

    I've got a problem with cocoapods, had to instal ruby 2.7, but didn't solve the problem. Now i have ruby 2.7 installed but still getting the error that i have to install it

    • @TheFabiaWRC
      @TheFabiaWRC 2 года назад

      Same problem…

    • @julianasouza9158
      @julianasouza9158 2 года назад +1

      You need to rollback the version of your xcode or try to do some script in rosseta terminal

    • @stankodujakovic3935
      @stankodujakovic3935 2 года назад +1

      Turned out that i had to use -rvm use 2.7.2

    • @ArturoDevA
      @ArturoDevA 2 года назад

      @@stankodujakovic3935 how solved?
      command please

  • @myselferbumba
    @myselferbumba 2 года назад

    Wow! Nice 👌🏿

  • @charlitowashere5906
    @charlitowashere5906 2 года назад +2

    do you think this will become a standard?? like some big companies launching huge apps for both platforms using KMM? competing with flutter? sounds amazing..

    • @krystianwiewior8725
      @krystianwiewior8725 2 года назад

      It could be. KMM is improved. Flutter is very popular nowadays and it is really easy to build in both. One code.

  • @mustafaammar551
    @mustafaammar551 2 года назад

    Very Cool 👍👍👍👍

  • @gabrielbronzattimoro7953
    @gabrielbronzattimoro7953 Год назад

    That is awesome my friend! Thanks for sharing!

  • @karthikgaddam1146
    @karthikgaddam1146 2 года назад +1

    I request you to please maintain a playlist will be very useful for later. Thanks in advance.

  • @abdallawanjusi
    @abdallawanjusi 2 года назад +1

    Kdoctors says I need to run first build with xcode. Done that but I don't seem to get a pass in kdoctor

  • @nitinnegi9343
    @nitinnegi9343 2 года назад +1

    Hey I am getting this error -> ✖ Xcode requires to perform the First Launch tasks
    Launch Xcode or execute 'xcodebuild -runFirstLaunch' in terminal.
    Any help?

  • @rohanr4783
    @rohanr4783 2 года назад +1

    Brother can you please teach how to install Mac OS in windows so we can use it to develop apps ios and android

  • @realcrys
    @realcrys 2 года назад

    I had the brilliant idea of using a - in my shared module name :D That was the only hiccup. - translates to _ in the Swift import

  • @yossimaskin1393
    @yossimaskin1393 2 года назад +1

    Would you focus on the Swift UI part on this Playlist?
    I think it's the powerful part of KMM but also a big disadvantage for Android or IOS developers to stay up to date with all the newest things of Jetpack compose and Swift UI

    • @vibovitold
      @vibovitold Год назад

      How is SwitfUI a part of KMM?

  • @mikeshilovski1512
    @mikeshilovski1512 2 года назад

    At work we have 3 kmm projects and it's pain in the *** supporting it, and it still requires 2 developers to work on it. But I heard now ios part can be written in compose which is probably going to make it much easier

  • @NithinVargheseChalakkal
    @NithinVargheseChalakkal 2 года назад +1

    thanks for the video ❤️
    KMM or RN or FLUTTR ?
    Which one will be the preferred one in future? Jus a thought 💭

    • @moldovanpeter5123
      @moldovanpeter5123 2 года назад +1

      Each have their own pros and cons :) do a research about this topic, and don't forget Xamarin which is still a thing but lacks devs and a good community.

    • @deviantstudio
      @deviantstudio 2 года назад +1

      we did such research a year ago and chose kmm. never regret.
      btw we even didn't consider RN as an option. it's not relevant in 2022

    • @NithinVargheseChalakkal
      @NithinVargheseChalakkal 2 года назад

      Seems like many companies moved to RN. Hope Kotlin will come back with KMM in future with support of 🍏.

  • @anudeepananth
    @anudeepananth Год назад

    Hey Philipp, does jetpack compose lazy column support data from sql delight?

  • @flowzk921
    @flowzk921 2 года назад

    Awesome!

  • @harik5591
    @harik5591 2 года назад +1

    I was using xcode14.0.1 and macos Monterey; when I run kdoctor, I get the message: * Xcode requires to perform the First Launch tasks
    Launch Xcode or execute 'xcodebuild -runFirstLaunch' in terminal
    However, I have launched the xcode and ran the startup app; I still get the same message; i can. not find xcodebuuild on my mac ...

  • @EntropicTroponin
    @EntropicTroponin 2 года назад +58

    What bothers me the most is that you need an Apple PC to be able to develop for apple. Seriously Apple: why do you think a monopoly is okay when you do it?

    • @deviantstudio
      @deviantstudio 2 года назад +3

      i think initial reason was to save some cash. their crappy ide works only in their environment and they decided implementing cross-platform version from scratch would be expensive and technically complicated. then they converted this fail into marketing feature.

    • @AIejandroide
      @AIejandroide 2 года назад +19

      @@deviantstudio no, it's because they are greedy, and want you to buy their computers.

    • @Yazon2006
      @Yazon2006 2 года назад +14

      It's because people consume Apple shit with huge enthusiasm and say that this shit is extremely tasty.

    • @afixithei.V
      @afixithei.V 2 года назад +4

      It annoys me too.. at least they should let devs install a paid version of macos

    • @avwie132
      @avwie132 2 года назад +1

      There are tons of cloud services which provide compiling and creating iOS artifacts for Apple.

  • @SiamakAshrafi
    @SiamakAshrafi Год назад

    XCode 15 review does not have UIKit so, cocopods is old .... not sure if this is a good idea for the future.
    We build with Swift / SwiftUI / Swift structured concurrency / Swift package manager and know our iOS app will always be supported ...

  • @sumit180288
    @sumit180288 2 года назад +4

    Flutter is a better choice

  • @skydandelion2560
    @skydandelion2560 Год назад

    What about job market for these implementation? Do you have any idea?

  • @David-im1fp
    @David-im1fp 2 года назад

    Thanks for great video. I have been using windows for java development. For using android studio with kotlin and intellij IDE, which os (iOS or windows) should I choose for a new computer? Do these IDEs run on iOS as good as on windows? Thanks for advice.

  • @SaifaldeenSAH
    @SaifaldeenSAH 2 года назад

    So good video of KMM thanks

  • @Daaaaaaavid
    @Daaaaaaavid 2 года назад +1

    I wonder about the target of KMM, I mean nobody wants to write an app twice but needing two IDEs and at the end needing iOS and Android knowledge to build the app doesn't sound really compeling, don't know how it is supposed to gain market share against for example Flutter.

    • @PhilippLackner
      @PhilippLackner  2 года назад

      Flutter isn't native, kmm is. You therefore can't fully compare them

    • @Daaaaaaavid
      @Daaaaaaavid 2 года назад

      @@PhilippLackner I know, but if you prioritize quality or have the resources I would stick with native iOS and Android, won't even use KMM, if I must prioritize resources then I won't go with KMM, I would go with Flutter.

    • @deviantstudio
      @deviantstudio 2 года назад +1

      in case of flutter you have to force your devs learn all the stuff from scratch. new framework, new libs, new (and crappy) language. also interop with native is a nightmare.
      while choosing kmm you continue to do mostly the same things. except business logic now shared and written in kotlin (which is a win itself). and coroutines! also data models layer could be shared with backend. also you can use jetpack compose which will be ported to ios in near 2 years, and already works fine on desktops.

  • @deviantstudio
    @deviantstudio 2 года назад +1

    KMM and compose multiplatform is the future!

    • @redhotbits
      @redhotbits 2 года назад

      future of garbage maybe

  • @Mohamed_sanoob
    @Mohamed_sanoob 2 года назад

    ❤️❤️🔥

  • @kevinwestrom4775
    @kevinwestrom4775 7 месяцев назад

    Is there a similar tool to Brew/Homebrew for the Windows OS?

  • @4ytonly
    @4ytonly 2 года назад +1

    Wait! Does this mean, you can code swift in android studio????????

  • @drummerviswa
    @drummerviswa 2 года назад

    Hi Phillip, Can you please make a crash course from scratch about Android development through kotlin

  • @LaughTale1993
    @LaughTale1993 2 года назад

    Hey Philipp, i am new with Kotlin i was wondered if its possible build a full functional app using only kotlin programming language...if possible as kotlin multiplatform mobile application...thanks

  • @siracseyidov1597
    @siracseyidov1597 2 года назад

    So Cool

  • @Denis-gf6iq
    @Denis-gf6iq 2 года назад +1

    Yep all nice and good and thank you for the video, but in terms of cross platform anything beyond Hello World and or getting stuff from the web and displaying it on screen, any hardware integration like Bluetooth will quickly transform these cross platform projects into a huge pain. Native all the way.

    • @PhilippLackner
      @PhilippLackner  2 года назад +1

      KMM is pretty much native but you need less code to write it. You have 2 separate code bases for native specific things that don't affect each

  • @TheCodingRaconteur
    @TheCodingRaconteur Год назад

    I got this error when running kdoctor: Xcode requires to perform the First Launch tasks. I am not sure why though and I have accepted all licenses for xcode.

  • @Dragonboh1
    @Dragonboh1 2 года назад

    for me kdoctor on my mac don't see plugins. It tell me that everything is ok but i don't have kmm plugin installed

  • @testchannel3103
    @testchannel3103 2 года назад

    plz make video on sync adapter with roomdatabase

  • @daviderwin2808
    @daviderwin2808 Год назад

    Hey general question here, what is the best way to go about testing my iOS app if im on windows 10

  • @kamertonaudiophileplayer847
    @kamertonaudiophileplayer847 2 года назад

    I have an Android project with library written in Java. Should I convert the Java libraries to Kotlin before run the project on iOS?

  • @jorgegasparramirezsegura3266
    @jorgegasparramirezsegura3266 8 месяцев назад

    Thank you Philipp but I got this error when I try to run on IOS PhaseScriptExecution failed with a nonzero exit code

  • @argahutama
    @argahutama 2 года назад

    Cool!

  • @MrPool-yu6op
    @MrPool-yu6op 7 месяцев назад

    Is it possible to use KMM in Intellij Ultimate for Windows?

  • @asapbrianjr
    @asapbrianjr 2 года назад +2

    KMM vs Flutter??

    • @yossimaskin1393
      @yossimaskin1393 2 года назад

      In my opinion,
      Just like cross platform is not THE solution and people keep choosing to develop Native apps, KMM is a solution for who wants the advantage of cross platform that is shared code while getting native UI, it will be another option.
      It's could potentially be the last nail in the Native coffin

  • @high_hopes27
    @high_hopes27 6 месяцев назад

    I don't have a Macbook I hope I can do this in my windows, any suggestion?

  • @figurich
    @figurich 2 года назад

    I would like to see one day jetpack compose or swiftui can do web app perfect. Why bother too much between too very different company's native private garden? Most of the big app have their own shared cloud backend, so the ui part is the most cumbersome.

  • @makremismael5765
    @makremismael5765 2 года назад

    Would it be possible to install Xcode ide if i run a linux vm on a window pc?

    • @PhilippLackner
      @PhilippLackner  2 года назад

      You'd need a macos VM

    • @osisuper98
      @osisuper98 2 года назад

      @@PhilippLackner This isn’t legal if used on a Windows device right?

  • @HamidZaeri
    @HamidZaeri 2 года назад

    Hi
    May I ask how much was apk file size and ipa file also?

  • @faizanbasri1457
    @faizanbasri1457 2 года назад

    Hi Philipp how are you brother how can i develop KMM project on window system

    • @Pefredo
      @Pefredo 2 года назад

      Hello! For Windows (and Android only) you just need to install plugin: Kotlin Multiplatform Mobile, restart Android Studio and create new project (Kotlin Multiplatform App). If you want both (iOS and Android) you will need to install virtual machine (like VMware ) to use XCode.

  • @srikanthmacha7990
    @srikanthmacha7990 2 года назад

    Is there any way to run compose for IOS UI? Can we make compose widgets work on iOS?

    • @PedroBarbosaRoman
      @PedroBarbosaRoman 2 года назад

      For the time being the frontier ends in view model logic being shared, the rest such as UI can only be done in iOS

    • @deviantstudio
      @deviantstudio 2 года назад

      compose for ios is under development as I know

    • @PedroBarbosaRoman
      @PedroBarbosaRoman 2 года назад

      @@deviantstudio How do you know this? Inside info?

    • @deviantstudio
      @deviantstudio 2 года назад

      @@PedroBarbosaRoman i guess i saw some demos from the compose multiplatform repo. check the kotlin slack for more info

  • @zhanyshmasirov4611
    @zhanyshmasirov4611 2 года назад

    Hallo Philipp konntest du mir bitte antworten, damit KMM app machen die laptop muss MacBook Sein? weil, wir sind benutzen Ios auch , sondern Ios geht nicht mit windows systesm. Konntest du antworten damit, herzlichen Danke dir zu vor

  • @original_anu
    @original_anu 2 года назад

    If I have an android app already built with Compose, does it make sense to use KMM to create the ios version?

  • @ИгорьВялков-я1ф
    @ИгорьВялков-я1ф 2 года назад

    Thank you so much

  • @vitorvti
    @vitorvti 2 года назад +1

    I have a M1 mac mini 2020. No matter what i do, can`t install cocoapods-generate, always "cocoapods-generate plugin not found". tried to "sudo gem install cocoapods-generate" and nothing.

    • @thomaswaldorf2829
      @thomaswaldorf2829 2 года назад

      I know its a bit old but 'brew install cocoapods' in your terminal got me thought this portion :) hope this helps someone!

  • @HerrThomasE
    @HerrThomasE Год назад

    Hello, i have had problems to install cocoapods. The solution was: not to install by 'gem install ...', instead do 'brew install cocoapods'

  • @anon3118
    @anon3118 2 года назад

    is it possible to use flutter for UI layer and KMM for data layer?

  • @abhisheksaxena8331
    @abhisheksaxena8331 2 года назад

    is there a way to use firebase realtime database in KMM?

  • @btarg1
    @btarg1 2 года назад

    Using Java to make iOS apps seems like it would really ease development

  • @MithileshSingh-bg8gz
    @MithileshSingh-bg8gz 4 месяца назад

    Which platform is best to coding kotlin

  • @ahmadiyoussef2121
    @ahmadiyoussef2121 2 года назад

    good joob

  • @k4ba
    @k4ba 2 года назад

    There is hope for Kotlin against Dart and Flutter multi platform.
    So far I like more Flutter, I wish we had Kotlin instead of Dart :c

  • @kamal-i7d1m
    @kamal-i7d1m 2 года назад

    can I do KMM project in android studio and give it a run in an ios device ? Will it work ?

  • @rileyfarro6801
    @rileyfarro6801 2 года назад

    Finally!!!!