:wave: Hello, team! I’m exploring KMM library for...
# multiplatform
d
👋 Hello, team! I’m exploring KMM library for our separate Android/iOS repos in a e-commerce app. Manual comparison of iOS (which lacks a clean architecture) to gauge shareable code is time-consuming. Is there a smarter, more automated way or recommended tools to know how much code we can realistically share and determine the potential ROI? Any suggestions or best practices would be super helpful!
s
Maybe I’m confused on the ask, but as far I’m aware, no there’s tool for such a thing, but I’m confused on what you’re asking for… if you’re looking to make a KMP app/library, none of your shareable code would come from the iOS side. You could potentially salvage some Android code for use across platforms, but that’s still a manual ask of grokking what can be used and refactoring it to KMP. Maybe think of it this way, in a KMP app you share Kotlin code between platforms. You can still have platform specific code, but that’s not shared across platforms, so you cannot share Swift/ObjC to non-Apple platforms.
👍 1
r
If I understand the question, I don't think there would be a purpose-built tool for comparing codebases of different languages/frameworks to find commonalities, but this is a use-case where AI tools like ChatGPT, GitHub Copilot Chat, Cursor, or JetBrains AI Assistant might shine.
👍 1