https://kotlinlang.org logo
#moko
Title
# moko
l

ludOS

01/09/2021, 6:55 PM
hello hello, Soon I'll resume work trying to get moko working on the iOS part of this project that was setup pre kotlin 1.4. First order of business will probably be to relaunch the new project wizard and put files in a proper hierarchy. Anyway, if anyone wants to have a look, code is LGPL: https://github.com/f8full/herdr
a

alex009

01/10/2021, 6:41 AM
what exactly not working with mvvm?
l

ludOS

01/10/2021, 12:15 PM
I think I could never get the correct "compilation" (I'm a noob) from Kotlin to the library used by the iOS app. Note I'm also new to iOS dev but I could get the new project wizard output project to function correctly. Then I could never get the podsec to export the common thing moko needs with a specific name + the app pod. In X Code, i could never reference the types of moko to retrieve what I needed. Also, the moko livedata is kinda funky but I didn't explore. Don't hesitate if I can provide more info
👍 1
Oh yeah if I may add, there seemed to be some kind of situaiton wereas there are different flavors of KMM gradle plugins that are configured and doing things slightly differently. I found those PRs that represent failed attemps The moko way: https://github.com/f8full/herdr/pull/12 The kampkit way: https://github.com/f8full/herdr/pull/11 Maybe I missed something when I switched from Groovy syntax to Kotlin Script one (kts). It's really possible back then the gradle configuration in the project was still groovy, unfortunately, adding one layer of things. I do think I tried in kts to none avail. That's all I have top of my head but I'll get back to it in the coming weeks and months. Thks again @alex009 for your interest 🙂
a

alex009

01/11/2021, 2:31 AM
i will check later this requests and comment it or apply required changes to fix
🤩 1
l

ludOS

01/11/2021, 12:19 PM
Thank you so much.
oh @alex009 I found this PR which I think was the last attempt at the iOS client. I'm not sure if I tried with icerock gradle plugin though. Just putting it there https://github.com/f8full/herdr/pull/29
In ref to MVVNLiveData issue encountered https://github.com/f8full/herdr/pull/23
Not that I want to pile them on, but if that can be useful information, the moko mvvn livedat also broke at some point in the sens it couldn't be referenced directly in the xml layout file. this commit show the changes that had to be made to revert it back to the old way in the Fragment class https://github.com/f8full/herdr/pull/25/commits/fa9b827cd27a28037ac63e4fae629dd7d9ca51fb
oh yeah @alex009, switching to the mokomvvn objects with eventdispatcher broke some things, could never use it on iOS I remember vaguely. This PR mentions it https://github.com/f8full/herdr/pull/8
a

alex009

01/24/2021, 5:33 PM
@ludOS here PR with my changes - https://github.com/f8full/herdr/pull/33
❤️ 1
l

ludOS

01/25/2021, 12:01 PM
Wow, thank you! I will get to it asap 🙂
It looks awesome, will compile and test on Mac super soon. Thks again.
2 Views