sdk
sdk copied to clipboard
Import from a proprietary library in Java bindings for Android
Hi,
I'm trying to use the java bindings in an Android App. To make it work, I have to patch AndroidGfxProcessor.java manually because it imports a utility function from the MEGA Android app. This Android app is proprietary software that I am not allowed to include in my bundles.
I can see many solutions:
- Include this utility function into the SDK itself
- Use
Log.dfunction from Android framework directly - Make the Android App free software (which is a bad solution IMO, but would be a good thing to do in any case because I'm working on stuff that I could definitely contribute directly to the Android App)
Some other issues I came across while building JNIs:
- Still have to use an outdated version of the NDK
- Unlike what is stated in README,
NDK_ROOTenvironment variable is ignored and the NDK is assumed to be located in${HOME}/android-ndkinbuild.shscript. - Pretty much every dependency in the JNI are outdated and got a lot of security patches since then.
Let me know if you want me to open new issues for this.