Releases: spotify/android-auth
Releases · spotify/android-auth
Spotify Android Auth lib 4.0.0
- Breaking Change: Added new
AuthorizationResponse.Type.CANCELLEDto differentiate user-initiated cancellations from technical errors.- User cancellations (browser closed, back button pressed) now return
Type.CANCELLEDwithRESULT_CANCELED - Technical errors (malformed responses, missing data) return
Type.EMPTYwithRESULT_OK - OAuth errors (e.g.,
access_denied) continue to returnType.ERRORwithRESULT_OK - Client applications should update their authorization result handling to account for the new
CANCELLEDtype andRESULT_CANCELEDresult code.
- User cancellations (browser closed, back button pressed) now return
Spotify Android Auth lib 3.1.0
Migrate to kotlin. Should be no breaks except that some exceptions have gone from IllegalArgument to NullPointer
Spotify Android Auth lib 3.0.0
- Add mandatory redirect path pattern.
You can now define the path pattern in your app's build.gradle file as follows:
defaultConfig {
manifestPlaceholders = [
redirectSchemeName: "your-redirect-scheme",
redirectHostName: "your-redirect-host",
redirectPathPattern: "your/redirect/path/pattern" // New mandatory field
]
...
}If you want to retain the previous behavior (accepting any path), use .* as the path pattern.
For more details, see the Google documentation.
Spotify Android Auth lib 2.2.0
- Requesting token now uses PKCE when:
- There is an installed Spotify app that supports PKCE.
- When web fallback is used.
- Propagate tracking parameters when opening the native login flow
- Token requests may return a refresh token if PKCE was used.
Spotify Android Auth lib 2.1.1
- Introduced
RedirectUriReceiverActivityfor web based auth flow - Restructured web based flow, removed
LoginDialogclass - Made
AuthorizationClientfinal - Bumped to Gradle 7.5, AGP 7.4.2
- Bumped targetSdkVersion to 33
- Bumped androidx.browser to 1.5.0 and test dependencies
Spotify Android Auth lib 2.1.0
- Introduced a new flavour store to generate a library called auth-store that default to the play store instead of
CustomTabsIntent - Exposed method to check if the Spotify application is installed
Spotify Android Auth lib 2.0.2
- Fixed StackOverflowError at com.spotify.sdk.android.auth.browser.LoginDialog.onServiceDisconnected
- Fixed NullPointerException when creating CustomTabsIntent in LoginDialog
- Set LoginActivity launch mode to singleTask to avoid launching CustomTabs in a separate task
Spotify Android Auth lib 2.0.1
- Removed unused code related to WebView and updated documentation
Spotify Android Auth lib 2.0.0
- Replaced WebView usage with Custom Tabs since Google and Facebook Login no longer support WebViews for authenticating users.
- Removed
AuthorizationClient#clearCookiesmethod from the API. Custom Tabs use the cookies from the browser. - Bumped targetSdkVersion to 31
Spotify Android Auth lib 1.2.6
Contains a fix for an issue related to package visibility changes in API 30 - spotify/android-sdk#307