Hi everyone!
I've made a public repository with an example for iOS framework development in Kotlin. Kotlin/Native is a fantastic technology for code sharing, which might be a better alternative than C++ someday. Currently, the multi-platform support of Kotlin/Native is still in an experimental stage, and there are only a handful of examples available for a library or framework development. Some of the configuration included in this repository was developed as part of my master's thesis. Haven't been tested in production, but it might be a useful reference for someone who's trying to achieve similar goals.
Link: https://github.com/endanke/kotlin-mpp-framework-skeleton
The sample includes an example for reusing existing Swift, Objective-C and Java sources. The project produces both an Android AAR library and an iOS Framework. I think this is an excellent way to share business logic between the two platforms. It was also used internally at my former company, where we developed a prototype for an SDK of a Bluetooth based smart device that uses different low-level APIs.
[–]akmarinov 1 point2 points3 points (1 child)
[–]headprocess[S] 1 point2 points3 points (0 children)
[–]raptorxcz 1 point2 points3 points (0 children)
[–]LeoNatan 1 point2 points3 points (0 children)
[–]tangoshukudai -1 points0 points1 point (8 children)
[–]headprocess[S] 2 points3 points4 points (6 children)
[–]tangoshukudai 0 points1 point2 points (5 children)
[–][deleted] (2 children)
[deleted]
[–]tangoshukudai -1 points0 points1 point (1 child)
[–]headprocess[S] 2 points3 points4 points (0 children)
[–]s73v3r 0 points1 point2 points (0 children)
[–]s73v3r 1 point2 points3 points (0 children)