mirror of
https://github.com/szkolny-eu/szkolny-android.git
synced 2025-01-18 12:56:45 -06:00
[Api] Add sending app build type and flavor headers.
This commit is contained in:
parent
cce47ed472
commit
1f6da2babe
@ -26,6 +26,8 @@ class SignatureInterceptor(val app: App) : Interceptor {
|
|||||||
.header("X-AppVersion", BuildConfig.VERSION_CODE.toString())
|
.header("X-AppVersion", BuildConfig.VERSION_CODE.toString())
|
||||||
.header("X-Timestamp", timestamp.toString())
|
.header("X-Timestamp", timestamp.toString())
|
||||||
.header("X-Signature", sign(timestamp, body, url))
|
.header("X-Signature", sign(timestamp, body, url))
|
||||||
|
.header("X-AppBuild", BuildConfig.BUILD_TYPE)
|
||||||
|
.header("X-AppFlavor", BuildConfig.FLAVOR)
|
||||||
.build())
|
.build())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user