From aab1177b3437fddb4343e48829a3177dd28b0027 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Sun, 10 Jan 2021 19:06:47 +0100 Subject: [PATCH] Change libs cache directory --- src/main/java/it/tdlight/common/utils/LoadLibrary.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/main/java/it/tdlight/common/utils/LoadLibrary.java b/src/main/java/it/tdlight/common/utils/LoadLibrary.java index 177d120..2132218 100644 --- a/src/main/java/it/tdlight/common/utils/LoadLibrary.java +++ b/src/main/java/it/tdlight/common/utils/LoadLibrary.java @@ -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 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 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)) {