3 ms·
Didn't have any problems either. I mean, writing JNI code by hand is hell, sure. Just… don't do it. javacpp automates all that crap. https://github.com/myfreew
by floatboth 10y ago
Didn't have any problems either. I mean, writing JNI code by hand is hell, sure. Just… don't do it. javacpp automates all that crap.
https://github.com/myfreeweb/freepass/blob/fad2a1fd592cbe6a9d8388a5fb7e8b4703ebeccd/android/app/src/main/kotlin/technology/unrelenting/freepass/Vault.kt#L9-L10 https://github.com/myfreeweb/freepass/blob/fad2a1fd592cbe6a9...
- pjmlp 10y agoThe point is calling Framework APIs from C++. Of course there are workarounds like Swig, Djini, JNICpp, but those are just that, workarounds for the lack of support from the Android team. iOS and UWP devs support C++ use via Objective-C++ and C++/CX (to be eventually replaced by C++/WinRT), even if C++ isn't the main platform language, instead of leaving the community alone to sort out the FFI issues. Since Android is anyway a fork of Java, they could either provide C++ Frameworks that wrap Android APIs or provide something like gcj CNI.