Change libs cache directory

This commit is contained in:
Andrea Cavalli 2021-01-10 19:06:47 +01:00
parent b431a6335a
commit aab1177b34

View File

@ -31,11 +31,10 @@ import it.tdlight.jni.ObjectsUtils;
* The class to load the libraries needed to run Tdlib * The class to load the libraries needed to run Tdlib
*/ */
public class LoadLibrary { public class LoadLibrary {
private static ConcurrentHashMap<String, Boolean> libraryLoaded = new ConcurrentHashMap<>(); private static final ConcurrentHashMap<String, Boolean> libraryLoaded = new ConcurrentHashMap<>();
private static Path librariesPath = Paths.get("." + LibraryVersion.IMPLEMENTATION_NAME private static final Path librariesPath = Paths.get(".cache");
+ "-" + LibraryVersion.NATIVES_VERSION.replace('.', '-') private static final String libsVersion = LibraryVersion.IMPLEMENTATION_NAME
+ "-libs-cache"); + "-" + LibraryVersion.VERSION + "-" + LibraryVersion.NATIVES_VERSION;
private static final String libsVersion = LibraryVersion.VERSION;
static { static {
if (Files.notExists(librariesPath)) { if (Files.notExists(librariesPath)) {