Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Support custom library loader #10733

Merged
merged 1 commit into from
Jan 3, 2018
Merged

Support custom library loader #10733

merged 1 commit into from
Jan 3, 2018

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Dec 18, 2017

Follow up from #10732:

Allows API callers to set their own native library loader.
For example, can use https://github.com/facebook/SoLoader

cc @jaegs

@tobrun tobrun added the Android Mapbox Maps SDK for Android label Dec 18, 2017
@tobrun tobrun added this to the android-v6.0.0 milestone Dec 18, 2017
@tobrun tobrun self-assigned this Dec 18, 2017
@tobrun
Copy link
Member Author

tobrun commented Dec 18, 2017

Exposing this makes sense. Will add some javadoc and we can 🚢.

try {
System.loadLibrary(name);
} catch (UnsatisfiedLinkError error) {
Timber.e(error, "Failed to load native shared library.");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps the catching of the UnsatisfiedLinkError + logging should still happen in LibraryLoader.load() instead of just the DEFAULT implementation.

@tobrun tobrun merged commit c280974 into master Jan 3, 2018
@tobrun tobrun deleted the jaegs-LibraryLoader branch January 3, 2018 17:09
@tobrun tobrun mentioned this pull request Jan 26, 2018
23 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants