File tree Expand file tree Collapse file tree 2 files changed +22
-3
lines changed
src/main/kotlin/com/ninecraft/booket Expand file tree Collapse file tree 2 files changed +22
-3
lines changed Original file line number Diff line number Diff line change @@ -49,15 +49,17 @@ dependencies {
4949
5050 projects.feature.home,
5151 projects.feature.library,
52- projects.feature.main,
5352 projects.feature.login,
53+ projects.feature.main,
54+ projects.feature.screens,
5455 projects.feature.search,
5556 projects.feature.settings,
5657
5758 libs.androidx.activity.compose,
5859 libs.androidx.startup,
59- libs.logger ,
60+ libs.coil.compose ,
6061 libs.kakao.auth,
62+ libs.logger,
6163
6264 libs.bundles.circuit,
6365 )
Original file line number Diff line number Diff line change 11package com.ninecraft.booket
22
33import android.app.Application
4+ import coil.ImageLoader
5+ import coil.ImageLoaderFactory
6+ import coil.disk.DiskCache
7+ import coil.util.DebugLogger
48import dagger.hilt.android.HiltAndroidApp
59
610@HiltAndroidApp
7- class BooketApplication : Application ()
11+ class BooketApplication : Application () , ImageLoaderFactory {
12+ override fun newImageLoader (): ImageLoader {
13+ return ImageLoader .Builder (this )
14+ .diskCache {
15+ DiskCache .Builder ()
16+ .directory(cacheDir.resolve(" image_cache" ))
17+ .maxSizeBytes(10 * 1024 * 1024 )
18+ .build()
19+ }
20+ .logger(DebugLogger ())
21+ .respectCacheHeaders(false )
22+ .build()
23+ }
24+ }
You can’t perform that action at this time.
0 commit comments