INNER CODE UNIT · Java
getWorkaroundLibDir
KeepSafe/ReLinker · relinker/src/main/java/com/getkeepsafe/relinker/ReLinkerInstance.java:216
protected File getWorkaroundLibDir(final Context context) {
return context.getDir(LIB_DIR, Context.MODE_PRIVATE);
}
/**
* @param context {@link Context} to retrieve the workaround directory from
* @param library The name of the library to load
* @param version The version of the library to load or {@code null}
* @return A {@link File} locating the workaround library file to load
*/
protected File getWorkaroundLibFile(final Context context,
final String library,
final String version) {
final String libName = libraryLoader.mapLibraryName(library);
if (TextUtils.isEmpty(version)) {
return new File(getWorkaroundLibDir(context), libName);
}