This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add SoLoader indirection to Spectrum's FbJni
Summary: @public This is in addition to the previous changes in commit 233ed53 . It also make the FbJni module use the new indirection for the SoLoader allowing to use the platform's SoLoader. Reviewed By: erikandre Differential Revision: D15414876 fbshipit-source-id: 8ca1efe6686ed160bfcadde2cc8294bfc3aec662
- Loading branch information
1 parent
4d9ed16
commit 1fbd80e
Showing
6 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
androidLibs/fbjni/java/com/facebook/jni/FbJniSoLoader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package com.facebook.jni; | ||
|
||
/** SoLoader delegate to allow making FbJni use the SpectrumSoLoader */ | ||
public final class FbJniSoLoader { | ||
|
||
public static SoLoaderWrapper delegate = null; | ||
|
||
private FbJniSoLoader() {} | ||
|
||
public static void loadLibrary(final String shortName) { | ||
delegate.loadLibrary(shortName); | ||
} | ||
|
||
public interface SoLoaderWrapper { | ||
void loadLibrary(final String shortName); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters