diff --git a/.all-contributorsrc b/.all-contributorsrc
index d0c7fd6..e16909a 100644
--- a/.all-contributorsrc
+++ b/.all-contributorsrc
@@ -147,6 +147,15 @@
"contributions": [
"code"
]
+ },
+ {
+ "login": "wwdrew",
+ "name": "Drew Miller",
+ "avatar_url": "https://avatars.githubusercontent.com/u/49833875?v=4",
+ "profile": "https://github.com/wwdrew",
+ "contributions": [
+ "maintenance"
+ ]
}
],
"contributorsPerLine": 7
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9bdefc6..ea65b20 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
+### Update
+
+- Upgrade Android Auth library to 2.0.2
+
### Gradle Change
- Updated gradle to import sdks using sourceSets
diff --git a/README.md b/README.md
index f0cf21f..b6c16df 100644
--- a/README.md
+++ b/README.md
@@ -261,7 +261,7 @@ Please do not open issues about getting the module to work unless you have tried
Big thanks to [@lufinkey](https://github.com/lufinkey) and all of the great work that he has done in the [react-native-spotify](https://github.com/lufinkey/react-native-spotify) repo which was the original source of inspiration and some useful patterns for this package.
-[![All Contributors](https://img.shields.io/badge/all_contributors-15-orange.svg?style=flat-square)](#contributors-)
+[![All Contributors](https://img.shields.io/badge/all_contributors-16-orange.svg?style=flat-square)](#contributors-)
@@ -269,31 +269,31 @@ Big thanks to [@lufinkey](https://github.com/lufinkey) and all of the great work
-
+
-
## Projects using this library
diff --git a/android/build.gradle b/android/build.gradle
index d46cd21..2374099 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -67,9 +67,11 @@ repositories {
}
dependencies {
- implementation (files("external/SpotifySDK/auth-lib/spotify-auth-release-1.2.3.aar"))
+ implementation "com.spotify.android:auth:2.0.2"
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
+ implementation "com.google.code.gson:gson:2.8.9" // needed by spotify-app-remote
+ implementation "androidx.browser:browser:1.4.0"
+
//noinspection GradleDynamicVersion
implementation "com.facebook.react:react-native:+" // From node_modules
}
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);