From 62ed907335297426565afad16dd006a697f72dcf Mon Sep 17 00:00:00 2001 From: Tal Mirmelshtein Date: Wed, 20 Dec 2023 12:41:34 +0200 Subject: [PATCH 1/2] Version update for core 7.0.8 --- sdk-core/README.md | 2 +- sdk-core/build.gradle | 2 +- .../src/main/java/com/gigya/android/sdk/Gigya.java | 2 +- .../sdk/network/adapter/OkHttpNetworkAdapter.kt | 13 ++++--------- 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/sdk-core/README.md b/sdk-core/README.md index 49d5513f..77e5f06b 100644 --- a/sdk-core/README.md +++ b/sdk-core/README.md @@ -75,7 +75,7 @@ android:theme="@style/Theme.AppCompat.Translucent"> ### OKHttp Support The core SDK now supports using the OKHttp library to make network requests (which deprecates the use of the obsolete HttpUrlConnection & Volley). -To use the OKHttp library, please add the following to your application dependencies: +To use the OKHttp library, please add both of the following to your application dependencies: ``` implementation "com.squareup.okhttp3:okhttp:4.10.0" implementation "com.squareup.okhttp3:logging-interceptor:4.10.0" diff --git a/sdk-core/build.gradle b/sdk-core/build.gradle index effe5ff0..e793a3fc 100644 --- a/sdk-core/build.gradle +++ b/sdk-core/build.gradle @@ -1,7 +1,7 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' -def libVersion = "7.0.7" +def libVersion = "7.0.8" group = "com.sap.oss.gigya-android-sdk" diff --git a/sdk-core/src/main/java/com/gigya/android/sdk/Gigya.java b/sdk-core/src/main/java/com/gigya/android/sdk/Gigya.java index ed5c142e..5cffccf6 100644 --- a/sdk-core/src/main/java/com/gigya/android/sdk/Gigya.java +++ b/sdk-core/src/main/java/com/gigya/android/sdk/Gigya.java @@ -51,7 +51,7 @@ public class Gigya { //region static - public static final String VERSION = "7.0.7"; + public static final String VERSION = "7.0.8"; private static final String LOG_TAG = "Gigya"; diff --git a/sdk-core/src/main/java/com/gigya/android/sdk/network/adapter/OkHttpNetworkAdapter.kt b/sdk-core/src/main/java/com/gigya/android/sdk/network/adapter/OkHttpNetworkAdapter.kt index f40279f6..c3e9da9c 100644 --- a/sdk-core/src/main/java/com/gigya/android/sdk/network/adapter/OkHttpNetworkAdapter.kt +++ b/sdk-core/src/main/java/com/gigya/android/sdk/network/adapter/OkHttpNetworkAdapter.kt @@ -131,15 +131,10 @@ class NetworkClient { // Add network logging if set to allow (default set to false). if (GigyaLogger.isDebug()) { - try { - builder.addInterceptor( - HttpLoggingInterceptor() - .setLevel(HttpLoggingInterceptor.Level.BODY) - ) - } catch (ex: Exception) { - // OkHttp logger implementation might not be available. should not crash. - GigyaLogger.debug("RestAdapter", "missing implementation of OkHttp logger. optional") - } + builder.addInterceptor( + HttpLoggingInterceptor() + .setLevel(HttpLoggingInterceptor.Level.BODY) + ) } okHttpClient = builder.build() } From e0c9cc8138aa2309a86d8408df5573c95f94a9eb Mon Sep 17 00:00:00 2001 From: Tal Mirmelshtein Date: Wed, 20 Dec 2023 12:42:49 +0200 Subject: [PATCH 2/2] README update --- sdk-core/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk-core/README.md b/sdk-core/README.md index 77e5f06b..c16d7f2f 100644 --- a/sdk-core/README.md +++ b/sdk-core/README.md @@ -22,13 +22,13 @@ implementation 'com.google.code.gson:gson:2.8.9' ### Implement using binaries **Download the latest build and place the .aar file in your */libs* folder** ```gradle -implementation files('libs/gigya-android-sdk-core-v7.0.7.aar') +implementation files('libs/gigya-android-sdk-core-v7.0.8.aar') ``` ### Implement using **MavenCentral** **Add the latest build reference to your app *build.gradle* file** ```gradle -implementation 'com.sap.oss.gigya-android-sdk:sdk-core:7.0.7' +implementation 'com.sap.oss.gigya-android-sdk:sdk-core:7.0.8' ``` ### Implement using Jitpack (Will be soon deprecated - moving to Maven Central) @@ -43,7 +43,7 @@ allprojects { ``` **Add the latest build reference to your app *build.gradle* file** ```gradle -implementation 'com.github.SAP.gigya-android-sdk:sdk-core:core-v7.0.7' +implementation 'com.github.SAP.gigya-android-sdk:sdk-core:core-v7.0.8' ``` **Add a required style to your *styles.xml* file**