Change libs cache directory
This commit is contained in:
parent
b431a6335a
commit
aab1177b34
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user