File tree Expand file tree Collapse file tree 4 files changed +26
-3
lines changed
Expand file tree Collapse file tree 4 files changed +26
-3
lines changed Original file line number Diff line number Diff line change 11Change Log
22==========
33
4+ ## Version 3.0.0
5+ - Add mandatory redirect path pattern.
6+
7+ You can now define the path pattern in your app's build.gradle file as follows:
8+ ``` gradle
9+ defaultConfig {
10+ manifestPlaceholders = [
11+ redirectSchemeName: "your-redirect-scheme",
12+ redirectHostName: "your-redirect-host",
13+ redirectPathPattern: "your/redirect/path/pattern" // New mandatory field
14+ ]
15+ ...
16+ }
17+ ```
18+
19+ If you want to retain the previous behavior (accepting any path), use .* as the path pattern.
20+ For more details, see the [ Google documentation] ( https://developer.android.com/guide/topics/manifest/data-element#path ) .
21+
422## Version 2.2.0
523- Requesting token now uses PKCE when:
624 - There is an installed Spotify app that supports PKCE.
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ apply plugin: 'com.android.library'
2323
2424project. group = ' com.spotify.android'
2525project. archivesBaseName = ' auth'
26- project. version = ' 2.2 .0'
26+ project. version = ' 3.0 .0'
2727
2828android {
2929 compileSdk 33
Original file line number Diff line number Diff line change 4141 <category android : name =" android.intent.category.BROWSABLE" />
4242 <data
4343 android : host =" ${redirectHostName}"
44- android : scheme =" ${redirectSchemeName}" />
44+ android : scheme =" ${redirectSchemeName}"
45+ android : pathPattern =" ${redirectPathPattern}" />
4546 </intent-filter >
4647 </activity >
4748
Original file line number Diff line number Diff line change @@ -41,7 +41,11 @@ android {
4141 versionCode 1
4242 versionName " 1.0"
4343
44- manifestPlaceholders = [redirectSchemeName : " spotify-sdk" , redirectHostName : " auth" ]
44+ manifestPlaceholders = [
45+ redirectSchemeName : " spotify-sdk" ,
46+ redirectHostName : " auth" ,
47+ redirectPathPattern : " .*"
48+ ]
4549
4650 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
4751 }
You can’t perform that action at this time.
0 commit comments