This PR addresses a better structure for adding native code
Java examples have been improved since the existing ones do not work.
How to enable Kotlin has also been fixed and better explained.
Now there is also a page for iOS, which for now only has swift code, the importance of @objc has also been briefly explained. I tried objective-c but I don't understand how it works, I have left the section commented, if anyone wants to help here they are welcome.
On the 'adding native code' page you can now see at a glance that NS supports Java, Kotlin, Objective-C, Swift, SwiftUI and Compose
The code example that currently exists is this
Java/Kotlin. Neither java nor kotlin works. The examples in this PR are tested, copied and pasted.
Swift/Objective-C. This only mentions how to make an extension with Objective-C. As I said in this PR, Objective-C has been eliminated because I can't make it work and I think we should not put examples that don't work (as I said, I have left the section commented, if anyone wants to help, go ahead).
This PR addresses a better structure for adding native code
The code example that currently exists is this Java/Kotlin. Neither java nor kotlin works. The examples in this PR are tested, copied and pasted.
Swift/Objective-C. This only mentions how to make an extension with Objective-C. As I said in this PR, Objective-C has been eliminated because I can't make it work and I think we should not put examples that don't work (as I said, I have left the section commented, if anyone wants to help, go ahead).