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
*/
public class LoadLibrary {
private static ConcurrentHashMap<String, Boolean> libraryLoaded = new ConcurrentHashMap<>();
private static Path librariesPath = Paths.get("." + LibraryVersion.IMPLEMENTATION_NAME
+ "-" + LibraryVersion.NATIVES_VERSION.replace('.', '-')
+ "-libs-cache");
private static final String libsVersion = LibraryVersion.VERSION;
private static final ConcurrentHashMap<String, Boolean> libraryLoaded = new ConcurrentHashMap<>();
private static final Path librariesPath = Paths.get(".cache");
private static final String libsVersion = LibraryVersion.IMPLEMENTATION_NAME
+ "-" + LibraryVersion.VERSION + "-" + LibraryVersion.NATIVES_VERSION;
static {
if (Files.notExists(librariesPath)) {