![]() Jetbrains makes excellent tools, and if you understand that the UI will be "native", then there's a lot of efficiencies you can leverage here. It's an entirely different world, which bad IDE support for most of it's history. Why Xamarin wasn't great here is you need to do EVERYTHING in Xamarin, and write custom bridge code when not. Kotlin Multiplatform will be great for sharing logic and architecture. If you are looking for a framework that will do 1 codebase for all logic and UI, without sacrificing any UX or capabilities, you'll probably be let down. Part of the issue when evaluating frameworks is expectations and not understand the plusses/minuses. That lets you share tested logic and architecture, and do so optionally. As in, you can expose an iOS Framework and call it from swift/Objc just like any other library. They're different because you don't need to deal with a complex abstraction layer to share logic. Or would we eventually see libraries that would abstract this layer out, similar to react native?Įdit: Another thought.I haven't done much iOS development but the whole async nature of Android apps with the UI thread and background threads also seems like it would be a nightmare to deal with in a cross platform way. Any lower level API provided by the platform would still need to be written twice, right? Accessing the camera, the devices GPS location, or anything hardware related still needs an implementation for both platforms. ![]() Would we have to roll our own persistence layer in a cross platform application? Or would we share business logic but still write a persistence layer using platform specific code? ![]() Obviously if we build it to be cross platform we wouldn't be able to use a Room database or LiveData objects on an iOS device. I recently built a kotlin Android app for work, and our architecture is tightly coupled to Android's Room database and LiveData objects. ![]() The thing that I still don't know about are how would things like data persistence be handled in a cross platform manner? ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |