Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Fix login due to Trakt and TargetSdk 30 changes #690

Merged
merged 1 commit into from
Sep 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,16 @@

</application>

<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="https" />
</intent>

<intent>
<action android:name="android.support.customtabs.action.CustomTabsService" />
</intent>
</queries>

</manifest>
5 changes: 4 additions & 1 deletion trakt-auth/src/main/java/app/tivi/trakt/TraktAuthModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ object TraktAuthModule {
clientId,
ResponseTypeValues.CODE,
redirectUri.toUri()
).build()
).apply {
// Disable PKCE since Trakt does not support it
setCodeVerifier(null)
}.build()
}

@Singleton
Expand Down