Yokan / rebuild
Course 1 8624561

ImageLoaderSetup.nonWeb.kt

composeApp/src/nonWebMain/kotlin/eu/friedcutlet/yokan/ui/image/ImageLoaderSetup.nonWeb.kt

implementation8 lines
1package eu.friedcutlet.yokan.ui.image23import coil3.disk.DiskCache4import okio.Path.Companion.toPath56// Only the singleton ImageLoader calls this: Coil forbids two caches on one directory.7internal actual fun imageDiskCache(cacheRoot: String): DiskCache? =8    DiskCache.Builder().directory(cacheRoot.toPath() / "image_cache").build()9

Search chapters, reference and source filenames.