feat: add weather card response and clean up code

This commit is contained in:
2024-09-14 14:52:37 +08:00
parent cbde7e0554
commit 7998857853
77 files changed
+57 -17

No files matched your search

@@ -13,4 +13,9 @@ object Resources {
fun loadFromResources(filename: String): InputStream {
return this::class.java.classLoader.getResourceAsStream(filename)
}
fun loadFromResourcesAsBytes(filename: String): ByteArray? {
val inputStream = this::class.java.classLoader.getResourceAsStream(filename)
return inputStream?.use { it.readBytes() }
}
}