3 ms·
Well Flutter does provide for a way to call into existing native code so I think that mitigates the code-reuse concern. The other thing to consider is that thi
by vlovich123 9y ago
Well Flutter does provide for a way to call into existing native code so I think that mitigates the code-reuse concern. The other thing to consider is that this advantage of code reuse was never realized to iOS. Writing apps for iOS & Android always meant having a C/C++ core with platform-specific shims; J2Objc more recently let you write it in Java but again that just lets you write the core in Java with 2 platform-specific independent frontend implementations. A lot of developers just wound up writing the app twice & shifting as much logic server-side as possible (which hurts battery too). This is the first time you can write the app once & run on both iOS & Android. AFAIK Dart is also only a requirement for the front-end. You are still free to use whatever language you want for your business logic. I'm not 100% clear yet on how good the bridging story is but I suspect it's not bad.
- greenhouse_gas 9y ago>Well Flutter does provide for a way to call into existing native code so I think that mitigates the code-reuse concern. Is it like calling Java from Kotlin (pretty) or C from Java (ugly)? > The other thing to consider is that this advantage of code reuse was never realized to iOS. iOS does interact well with C.
- xster 9y agoDisclaimer: I work on Flutter You can call into Android libraries or SDK code from Java or Kotlin code via plugins on Android. You can call into iOS libraries or SDK code from Objective-C or Swift (as of 12 days ago https://github.com/flutter/flutter/issues/10968 https://github.com/flutter/flutter/issues/10968) code via plugins on iOS.
- snovv_crash 9y agoYou could also use a C++ core with Qt/QML to target not only iOS and Android but also Windows, macOS and Linux, all from the same codebase.
- BatFastard 9y agoWow, let me stick the hot pokers in my eyes first! Qt/QML in a mobile app is something only a masochist could love.
- snovv_crash 9y agoIt depends if you're trying to make your UI consistent with other apps on the platform, or consistent across platforms.