-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
There was a problem hiding this 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, " |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: ReLinker
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