mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-18 21:06:44 -06:00
[API] Disable API caching for signed builds.
This commit is contained in:
parent
e389e6c073
commit
72319a4613
@ -15,6 +15,7 @@ class ApiCacheInterceptor(val app: App) : Interceptor {
|
|||||||
val request = chain.request()
|
val request = chain.request()
|
||||||
if (request.url().host() == "api.szkolny.eu"
|
if (request.url().host() == "api.szkolny.eu"
|
||||||
&& Signing.appCertificate.md5() == app.config.apiInvalidCert
|
&& Signing.appCertificate.md5() == app.config.apiInvalidCert
|
||||||
|
&& !app.buildManager.isSigned
|
||||||
) {
|
) {
|
||||||
val response = ApiResponse<Unit>(
|
val response = ApiResponse<Unit>(
|
||||||
success = false,
|
success = false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user