Updated on 2026-08-14

This commit is contained in:
Tangem 2023-04-07 20:39:24 +08:00
parent 069605e151
commit 36516c900f
234 changed files with 902 additions and 1618 deletions

View file

@ -10,10 +10,7 @@ import timber.log.Timber
private const val COIL_LOG_TAG = "COIL"
fun createCoilImageLoader(
context: Context,
logEnabled: Boolean = false,
): ImageLoader {
fun createCoilImageLoader(context: Context, logEnabled: Boolean = false): ImageLoader {
return ImageLoader.Builder(context)
.apply {
if (!logEnabled) return@apply
@ -27,7 +24,7 @@ fun createCoilImageLoader(
}
.apply {
level = HttpLoggingInterceptor.Level.BODY
}
},
)
.build()
}