Skip to content

Latest commit

 

History

History
99 lines (75 loc) · 3.73 KB

File metadata and controls

99 lines (75 loc) · 3.73 KB

Change Log

Version 4.0.1

  • Fix: Ensure auth progress is preserved across configuration changes, preventing cases where a headless activity remains open and blocks user input.

Version 4.0.0

  • Breaking Change: Added new AuthorizationResponse.Type.CANCELLED to differentiate user-initiated cancellations from technical errors.
    • User cancellations (browser closed, back button pressed) now return Type.CANCELLED with RESULT_CANCELED
    • Technical errors (malformed responses, missing data) return Type.EMPTY with RESULT_OK
    • OAuth errors (e.g., access_denied) continue to return Type.ERROR with RESULT_OK
    • Client applications should update their authorization result handling to account for the new CANCELLED type and RESULT_CANCELED result code.

Version 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.

Version 2.2.0

  • Requesting token now uses PKCE when:
    • There is an installed Spotify app that supports PKCE.
    • When web fallback is used.
  • Token requests may return a refresh token if PKCE was used.

Version 2.1.2

  • Propagate tracking parameters when opening the native login flow

Version 2.1.1

  • Introduced RedirectUriReceiverActivity for web based auth flow
  • Restructured web based flow, removed LoginDialog class
  • Made AuthorizationClient final
  • Bumped to Gradle 7.5, AGP 7.4.2
  • Bumped targetSdkVersion to 33
  • Bumped androidx.browser to 1.5.0 and test dependencies

Version 2.1.0

  • Introduce a new flavour store to generate a library called auth-store that default to the play store instead of CustomTabsIntent
  • Expose method to check if the Spotify application is installed

Version 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

Version 2.0.1

  • Removed unused code related to WebView

Version 2.0.0

  • Replaced WebView usage with Custom Tabs since Google and Facebook Login no longer support WebViews for authenticating users.
  • Removed AuthorizationClient#clearCookies method from the API. Custom Tabs use the cookies from the browser.
  • Bumped targetSdkVersion to 31

Version 1.2.6

  • Fixes an issue related to package visibility changes in API 30

Version 1.2.5

  • Updated targetSdkVersion (API 30), buildTools and Gradle plugin
  • Removed unused jcenter repository
  • Conform to package visibility restrictions when targeting Android 11 (API 30)

Version 1.2.3

  • Fixed a few issues with the webview based redirect

Version 1.2.2

  • Remove custom-tabs handling due to issues

Version 1.2.1

  • Fixes an issue that produced a redirect error when the redirect uri contains CAPS.

Version 1.2.0

  • Breaking changes: Rename classes from AuthenticationClassName to AuthorizationClassName
  • Pass state parameter in AuthorizationResponse

2019-08-12

  • Add method to clear Spotify and Facebook cookies to AuthenticationClient
  • Upgrade buildToolsVersion to 27.0.3
  • Replace deprecated compile keyword in gradle files

Version 1.1.0

2018-02-28

  • Upgrade target and compile SDKs to 27
  • Upgrade android support libraries to 27.0.2