patzly / grocy-android

ERP beyond your fridge, now on your phone – An awesome companion app for grocy
https://patrickzedler.com/grocy/
GNU General Public License v3.0
893 stars 85 forks source link

Consider KMP #891

Closed Nailik closed 1 week ago

Nailik commented 1 week ago

Hi,

did you ever consider converting it to a KMP (Kotlin Multiplatform) to bring it to iOS?

I know there would be loads to do like

  1. Java to Kotlin
  2. XML to Compose
  3. Extracting all Android specific code and implementing iOS equavialents

So as a small first step, what do you think about switching to Kotlin?

patzly commented 1 week ago

Hi, sadly there are tons of reasons that speak agains that:

I hope you now understand why that's not an option for me, despite that I really like Kotlin and Compose, too.

Nailik commented 1 week ago

I understand - actually i was baffled to see everything is Kotlin and XML because the ui looks pretty much like Material3 and i wasn't expecting that at all. Keep up the great work!

patzly commented 1 week ago

There is the great MDC Android library project which is in Java and only for Views/XML, and that's always the most up-to-date version of Material Design, so I'm kinda glad I still use views because Compose still hasn't every component available and Views are a bit more customizable and easier to animate :)