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

Change library loader to soloader #14890

Merged
merged 1 commit into from
Jun 11, 2019
Merged

Change library loader to soloader #14890

merged 1 commit into from
Jun 11, 2019

Conversation

tobrun
Copy link
Member

@tobrun tobrun commented Jun 11, 2019

This PR changes our library loader from relinker to soloader. We initially switched to relinker based on advice given by Google in their NDK changelog. Now with getting feeedback as #14888 and #14428. Let's move forward using soloader from Facebook. It should be more stable.

Closes #14428
Closes #14888

Copy link
Member

@zugaldia zugaldia left a comment

Choose a reason for hiding this comment

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

Two small comments - I don't think either is blocking.

} catch (MapboxConfigurationException exception) {
Logger.e(LibraryLogger.TAG, "Couldn't load so file with relinker, application context missing, "
Logger.e(TAG, "Couldn't load so file with relinker, application context missing, "
Copy link
Member

Choose a reason for hiding this comment

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

relinker -> soloader


@Override
public void load(String name) {
try {
Context context = Mapbox.getApplicationContext();
ReLinker.log(new LibraryLogger()).loadLibrary(context, name);
init(Mapbox.getApplicationContext(),false);
Copy link
Member

Choose a reason for hiding this comment

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

What does false mean in this context? could its value bring any regressions? I'd add a comment or add a named variable.

Copy link
Member Author

Choose a reason for hiding this comment

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

this references to exoPackage which is used when building with Buck.
Added a small comment with a link to exopackage.

@@ -23,36 +24,26 @@
*/
@Override
public LibraryLoader getDefaultLibraryLoader() {
return new ReLinkerLibraryLoader();
return new SoLibraryLoader();
}

/**
* Concrete implementation of a LibraryLoader using ReLinker.
Copy link

Choose a reason for hiding this comment

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

nit: ReLinker

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
3 participants