Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Verified Commit 7f6da1a1 authored by Fahim M. Choudhury's avatar Fahim M. Choudhury
Browse files

refactor: fix appVersion value on CachingInterceptor

parent 855094ff
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
package foundation.e.apps.data.playstore.utils

import com.jakewharton.disklrucache.DiskLruCache
import foundation.e.apps.BuildConfig
import okhttp3.Interceptor
import okhttp3.Protocol
import okhttp3.Response
@@ -30,7 +31,7 @@ class CachingInterceptor(cacheDirectory: File) : Interceptor {
    private val diskCache: DiskLruCache =
        DiskLruCache.open(
            cacheDirectory,
            /* appVersion = */ 1,
            /* appVersion = */ BuildConfig.VERSION_CODE,
            /* valueCount = */ 1,
            /* maxSize = */ 30L * 1024L * 1024L, // 30 MB
        )