From 61cffcb80cc6196fddcdbe4bf4712ac35c73aebe Mon Sep 17 00:00:00 2001 From: Drew Miller <49833875+wwdrew@users.noreply.github.com> Date: Fri, 12 Aug 2022 12:30:08 +0100 Subject: [PATCH] feat: upgrade Android Auth library to 2.0.1 --- android/build.gradle | 2 +- android/external/SpotifySDK | 2 +- .../main/java/com/reactlibrary/RNSpotifyRemoteAuthModule.java | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/android/build.gradle b/android/build.gradle index d46cd21..ea8c0b7 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -67,7 +67,7 @@ repositories { } dependencies { - implementation (files("external/SpotifySDK/auth-lib/spotify-auth-release-1.2.3.aar")) + implementation (files("external/SpotifySDK/auth-lib/spotify-auth-release-2.0.1.aar")) implementation (files("external/SpotifySDK/app-remote-lib/spotify-app-remote-release-0.7.2.aar")) implementation "com.google.code.gson:gson:2.8.5" // needed by spotify-app-remote //noinspection GradleDynamicVersion diff --git a/android/external/SpotifySDK b/android/external/SpotifySDK index cfd6b68..66b95f5 160000 --- a/android/external/SpotifySDK +++ b/android/external/SpotifySDK @@ -1 +1 @@ -Subproject commit cfd6b68a47440a7db8afac1983d92d324a1c0015 +Subproject commit 66b95f5c16d9d74d0ec711c105c52361e471c796 diff --git a/android/src/main/java/com/reactlibrary/RNSpotifyRemoteAuthModule.java b/android/src/main/java/com/reactlibrary/RNSpotifyRemoteAuthModule.java index 6668798..6a6ebe4 100644 --- a/android/src/main/java/com/reactlibrary/RNSpotifyRemoteAuthModule.java +++ b/android/src/main/java/com/reactlibrary/RNSpotifyRemoteAuthModule.java @@ -120,8 +120,6 @@ public void endSession(Promise promise) { mConnectionParamsBuilder = null; mConfig = null; - AuthorizationClient.clearCookies(this.getReactApplicationContext()); - RNSpotifyRemoteAppModule remoteModule = reactContext.getNativeModule(RNSpotifyRemoteAppModule.class); if (remoteModule != null) { remoteModule.disconnect(promise);