mohamed rejeb
05/09/2023, 10:51 AMCasey Brooks
05/09/2023, 5:00 PMactual
implementation, which would probably introduce more overhead than running everything in pure Kotlin.
And that’s not to mention the maintenance overhead. It’s going to be difficult to ensure the library works the same on all platforms if it’s heavily dependent upon native libraries. The library will perform more consistently and be easier to develop when everything’s done in common code. In general, it’s much more common to see libraries re-implemented in pure Kotlin, with only the most minimally-necessary bridge to the target platform implemented with expect/actual declarations, rather than attempting to build a common API among disparate libraries for each platform.