From c10cce1e2a2647942f1e94eab69952c81adac9cd Mon Sep 17 00:00:00 2001 From: LuanRT Date: Fri, 12 Aug 2022 00:30:14 -0300 Subject: [PATCH] chore: include `androidSdkVersion` param in Android requests --- src/core/Session.ts | 1 + src/utils/Constants.ts | 3 ++- src/utils/HTTPClient.ts | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/Session.ts b/src/core/Session.ts index ebd3328f..f5525efb 100644 --- a/src/core/Session.ts +++ b/src/core/Session.ts @@ -24,6 +24,7 @@ export interface Context { userAgent: string; clientName: string; clientVersion: string; + androidSdkVersion?: string; osName: string; osVersion: string; platform: string; diff --git a/src/utils/Constants.ts b/src/utils/Constants.ts index 7d41aea2..f322470d 100644 --- a/src/utils/Constants.ts +++ b/src/utils/Constants.ts @@ -41,7 +41,8 @@ export const CLIENTS = Object.freeze({ }, ANDROID: { NAME: 'ANDROID', - VERSION: '17.17.32' + VERSION: '17.17.32', + SDK_VERSION: '29' } }); export const STREAM_HEADERS = Object.freeze({ diff --git a/src/utils/HTTPClient.ts b/src/utils/HTTPClient.ts index 35a0a742..5270ac26 100644 --- a/src/utils/HTTPClient.ts +++ b/src/utils/HTTPClient.ts @@ -135,6 +135,7 @@ export default class HTTPClient { ctx.client.clientVersion = Constants.CLIENTS.ANDROID.VERSION; ctx.client.clientFormFactor = 'SMALL_FORM_FACTOR'; ctx.client.clientName = Constants.CLIENTS.ANDROID.NAME; + ctx.client.androidSdkVersion = Constants.CLIENTS.ANDROID.SDK_VERSION; break; default: break;