From a59587eb62ef921c43cac5cf56c8b4fe661f637a Mon Sep 17 00:00:00 2001
From: FineFindus <63370021+FineFindus@users.noreply.github.com>
Date: Sun, 9 Apr 2023 15:46:30 +0200
Subject: [PATCH] fix(auth): use BuildType depended redirect uri
---
mastodon/build.gradle | 3 +++
mastodon/src/main/AndroidManifest.xml | 2 +-
.../android/api/session/AccountSessionManager.java | 13 ++++++++++++-
3 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/mastodon/build.gradle b/mastodon/build.gradle
index 76754943f..32fb5ef62 100644
--- a/mastodon/build.gradle
+++ b/mastodon/build.gradle
@@ -5,6 +5,7 @@ plugins {
android {
compileSdk 33
defaultConfig {
+ manifestPlaceholders = [oAuthScheme:"moshidon-android-auth"]
archivesBaseName = "moshidon"
applicationId "org.joinmastodon.android.moshinda"
minSdk 23
@@ -34,6 +35,7 @@ android {
debuggable true
versionNameSuffix '-debug'
applicationIdSuffix '.debug'
+ manifestPlaceholders = [oAuthScheme:"moshidon-android-debug-auth"]
}
githubRelease{
initWith release
@@ -43,6 +45,7 @@ android {
versionNameSuffix '-nightly'
applicationIdSuffix '.nightly'
signingConfig signingConfigs.nightly
+ manifestPlaceholders = [oAuthScheme:"moshidon-android-nightly-auth"]
}
playRelease{
initWith release
diff --git a/mastodon/src/main/AndroidManifest.xml b/mastodon/src/main/AndroidManifest.xml
index f225dff03..aa9161bbf 100644
--- a/mastodon/src/main/AndroidManifest.xml
+++ b/mastodon/src/main/AndroidManifest.xml
@@ -41,7 +41,7 @@
-
+