From 7c84b72ca500752490dd5eb362150cc1907389c8 Mon Sep 17 00:00:00 2001 From: Jigar Dafda Date: Mon, 6 May 2024 15:57:53 +0000 Subject: [PATCH] [Auto Generated] 1.4.4 --- README.md | 2 +- build.gradle | 2 +- src/main/java/com/sdk/common/AccessTokenInterceptor.kt | 2 +- src/main/java/com/sdk/common/ApplicationHeaderInterceptor.kt | 2 +- src/main/java/com/sdk/common/PublicHeaderInterceptor.kt | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 98bbd4bf..d3ebe34f 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Get started with the Kotlin Development SDK for Fynd Platform # Usage -1. Add the dependency in your app build.gradle `implementation 'com.github.gofynd:fdk-client-kotlin:1.4.3'` in your app build.gradle +1. Add the dependency in your app build.gradle `implementation 'com.github.gofynd:fdk-client-kotlin:1.4.4'` in your app build.gradle 2. Add it in your root build.gradle at the end of repositories: allprojects { repositories { diff --git a/build.gradle b/build.gradle index bf53f7ff..b3e85701 100644 --- a/build.gradle +++ b/build.gradle @@ -26,7 +26,7 @@ android { minSdkVersion 21 targetSdkVersion 31 versionCode 2 - versionName "1.4.3" + versionName "1.4.4" multiDexEnabled true vectorDrawables.useSupportLibrary = true diff --git a/src/main/java/com/sdk/common/AccessTokenInterceptor.kt b/src/main/java/com/sdk/common/AccessTokenInterceptor.kt index ef21560d..1f89697f 100644 --- a/src/main/java/com/sdk/common/AccessTokenInterceptor.kt +++ b/src/main/java/com/sdk/common/AccessTokenInterceptor.kt @@ -13,7 +13,7 @@ class AccessTokenInterceptor( val builder = original.newBuilder().apply { header("User-Agent", platformConfig?.userAgent ?: "") header("Authorization", "Bearer ${platformConfig?.oauthClient?.token?.token}") - header("x-fp-sdk-version", "1.4.3") + header("x-fp-sdk-version", "1.4.4") header("x-currency-code", platformConfig?.currencyCode ?: "INR") platformConfig?.locationDetail?.let { header("x-location-detail", HttpClient.gson.toJson(it)) diff --git a/src/main/java/com/sdk/common/ApplicationHeaderInterceptor.kt b/src/main/java/com/sdk/common/ApplicationHeaderInterceptor.kt index eb57a0b0..d8becf30 100644 --- a/src/main/java/com/sdk/common/ApplicationHeaderInterceptor.kt +++ b/src/main/java/com/sdk/common/ApplicationHeaderInterceptor.kt @@ -27,7 +27,7 @@ class ApplicationHeaderInterceptor( header("x-location-detail", HttpClient.gson.toJson(it)) } header("x-currency-code", currencyCode) - header("x-fp-sdk-version", "1.4.3") + header("x-fp-sdk-version", "1.4.4") val bearerToken = Base64.encodeToString( "$applicationId:$applicationToken".toByteArray(), diff --git a/src/main/java/com/sdk/common/PublicHeaderInterceptor.kt b/src/main/java/com/sdk/common/PublicHeaderInterceptor.kt index b94c2100..ce83582e 100644 --- a/src/main/java/com/sdk/common/PublicHeaderInterceptor.kt +++ b/src/main/java/com/sdk/common/PublicHeaderInterceptor.kt @@ -11,7 +11,7 @@ class PublicHeaderInterceptor( val original = chain.request() val builder = original.newBuilder() - .header("x-fp-sdk-version", "1.4.3") + .header("x-fp-sdk-version", "1.4.4") publicConfig?.extraHeaders?.let { for ((key, value) in it) { builder.header(key,value)