Migrate to Android 29

Re-Added Cache clear to prevent deleting downloading images
This commit is contained in:
tom5079
2019-06-23 00:23:17 +09:00
parent f303e49e97
commit 6d1505241e
30 changed files with 420 additions and 119 deletions

View File

@@ -1,15 +1,24 @@
package xyz.quaver.hitomi
import org.junit.Test
import java.io.File
import java.net.URL
import java.net.InetAddress
import java.net.UnknownHostException
class UnitTest {
@Test
fun test() {
val galleries = getGalleryIDsForQuery("series:touhou_project")
println(galleries.size)
}
private fun getByIp(host: String): InetAddress {
try {
return InetAddress.getByName(host)
} catch (e: UnknownHostException) {
// unlikely
throw RuntimeException(e)
}
}
@Test