Guys how to migrate the existing Android XML Views...
# multiplatform
p
Guys how to migrate the existing Android XML Views to KMP/CMP, especially the file structure?
c
what do you mean with “migrate” - Compose works totally different than a XML View? 🤔
p
Like we have an Android Android project built using traditional XML views and now we want to use KMP/CMP to support multiplatform for the same project and as we can see the project file structure of kmp/cmp is quite different from the normal android project, so I don't have much idea on how to change the current project to KMP/CMP.
c
look at examples like https://github.com/android/nowinandroid and see how they structured their code.
t
There's this tool that promises to migrate a Android project to KMP but I've never used. Maybe you can give it a try: https://github.com/MahmoudRH/kmpify
c
automates the conversion of Android Compose projects to KMP
OP does not have a Compose project yet 😅
t
Ooops, I've missed this part 😅