Update pom.xml and LoadLibrary.java

This commit is contained in:
Andrea Cavalli 2020-10-08 01:31:17 +02:00
parent 6f978de63e
commit d016890d2a
2 changed files with 3 additions and 5 deletions

View File

@ -51,13 +51,11 @@
<artifactId>tdlight-natives-linux-aarch64</artifactId>
<version>2.0.2</version>
</dependency>
<!-- Currently unsupported platform
<dependency>
<groupId>it.tdlight</groupId>
<artifactId>tdlight-natives-windows-amd64</artifactId>
<version>2.0.1-SNAPSHOT</version>
<version>2.0.2</version>
</dependency>
-->
<!-- Currently unsupported platform
<dependency>
<groupId>it.tdlight</groupId>

View File

@ -111,19 +111,19 @@ public class LoadLibrary {
break;
}
break;
// Unsupported platforms:
// Unsupported platform:
/*
case osx:
if (arch == Arch.amd64) {
classForResource = it.tdlight.tdlight.osx.amd64.LoadLibrary.class;
}
break;
*/
case win:
if (arch == Arch.amd64) {
classForResource = it.tdlight.tdlight.win.amd64.LoadLibrary.class;
}
break;
*/
}
if (classForResource == null) {
throw new IOException("Native libraries for platform " + os + "-" + arch + " not found!");