[API] Disable API caching for signed builds.

This commit is contained in:
Kuba Szczodrzyński 2021-04-05 21:52:38 +02:00
parent e389e6c073
commit 72319a4613
No known key found for this signature in database
GPG Key ID: 70CB8A85BA1633CB

View File

@ -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,