From 1f6da2babee4d938dffb17c4cea4c4bca2d9aa9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kuba=20Szczodrzy=C5=84ski?= Date: Mon, 29 Mar 2021 10:32:59 +0200 Subject: [PATCH] [Api] Add sending app build type and flavor headers. --- .../data/api/szkolny/interceptor/SignatureInterceptor.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/data/api/szkolny/interceptor/SignatureInterceptor.kt b/app/src/main/java/pl/szczodrzynski/edziennik/data/api/szkolny/interceptor/SignatureInterceptor.kt index 8d2becf4..30d0ec7e 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/data/api/szkolny/interceptor/SignatureInterceptor.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/data/api/szkolny/interceptor/SignatureInterceptor.kt @@ -26,6 +26,8 @@ class SignatureInterceptor(val app: App) : Interceptor { .header("X-AppVersion", BuildConfig.VERSION_CODE.toString()) .header("X-Timestamp", timestamp.toString()) .header("X-Signature", sign(timestamp, body, url)) + .header("X-AppBuild", BuildConfig.BUILD_TYPE) + .header("X-AppFlavor", BuildConfig.FLAVOR) .build()) }