You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should pack the external libraries located in the PACKAGE_ROOT/libs into the output APK, and provide an API compatible with System.loadLibrary to dynamically load them.
The text was updated successfully, but these errors were encountered:
Does dynamic loading work on darwin? What will portability look like?
Without solving the portability story, I consider the actual packaging and loading of a dynamic package to be the easy part. The hard part is linking, and right now we have nothing better (and maybe cannot?) than dlsym.
I also don't know the use case. I understand audio, but it is a one-off we want to build into the standard mobile packages (and only needs a library loaded on android), so it would not use such an interface. Without seeing how it would be used I don't want to build it.
crawshaw
changed the title
mobile: allow external libraries to be loaded dynamically
mobile: portable package interface for dynamically loading C libraries
Feb 24, 2015
Closing this issue, since dynamic loading doesn't work on iOS if the library is not by Apple. We may have a hard requirement for external libraries to be linked statically only.
Dynamic linking is useful if you want to fallback to another library depending on some condition you can evaluate only during runtime.
(For the audio package's use-case, the implementation details doesn't have to be known. I haven't filed the issue because of my experience with the audio package.)
mikioh
changed the title
mobile: portable package interface for dynamically loading C libraries
x/mobile: portable package interface for dynamically loading C libraries
Aug 5, 2015
We should pack the external libraries located in the PACKAGE_ROOT/libs into the output APK, and provide an API compatible with System.loadLibrary to dynamically load them.
The text was updated successfully, but these errors were encountered: