fix: ClassLoader not working with Java 9+

This commit is contained in:
danthe1st
2022-05-07 21:05:09 +02:00
parent 7a6025a278
commit 3a11e1135b
6 changed files with 26 additions and 37 deletions

View File

@@ -12,10 +12,7 @@ internal class FileSystemUtils(
private var fileSystem: FileSystem
init {
fileSystem = FileSystems.newFileSystem(
file.toPath(),
null
)
fileSystem = FileSystems.newFileSystem(file.toPath(), null as ClassLoader?)
}
private fun deleteDirectory(dirPath: String) {

View File

@@ -91,7 +91,7 @@ object Signer {
(keyStore.getKey(alias, PASSWORD) as PrivateKey)
)
val zip = FileSystems.newFileSystem(apkFile.toPath(), null)
val zip = FileSystems.newFileSystem(apkFile.toPath(), null as ClassLoader?)
val dig = MessageDigest.getInstance("SHA1")
val digests: MutableMap<String, String> = LinkedHashMap()