diff --git a/WordPress/build.gradle b/WordPress/build.gradle index e39b689be549..c227a67d93d7 100644 --- a/WordPress/build.gradle +++ b/WordPress/build.gradle @@ -209,6 +209,7 @@ android { buildConfigField "String", "PUSH_NOTIFICATIONS_APP_KEY", '"org.wordpress.android"' buildConfigField "boolean", "ENABLE_QRCODE_AUTH_FLOW", "false" buildConfigField "boolean", "ENABLE_OPEN_WEB_LINKS_WITH_JP_FLOW", "true" + buildConfigField "String", "WPCOM_REDIRECT_URI", '"wordpress://wpcom-authorize"' manifestPlaceholders = [magicLinkScheme:"wordpress"] } @@ -229,6 +230,7 @@ android { buildConfigField "String", "PUSH_NOTIFICATIONS_APP_KEY", '"com.jetpack.android"' buildConfigField "boolean", "ENABLE_QRCODE_AUTH_FLOW", "true" buildConfigField "boolean", "ENABLE_OPEN_WEB_LINKS_WITH_JP_FLOW", "false" + buildConfigField "String", "WPCOM_REDIRECT_URI", '"jetpack://wpcom-authorize"' manifestPlaceholders = [magicLinkScheme:"jetpack"] diff --git a/WordPress/src/main/java/org/wordpress/android/modules/AppConfigModule.java b/WordPress/src/main/java/org/wordpress/android/modules/AppConfigModule.java index b71f2adcd2ba..2b0d1d4e898e 100644 --- a/WordPress/src/main/java/org/wordpress/android/modules/AppConfigModule.java +++ b/WordPress/src/main/java/org/wordpress/android/modules/AppConfigModule.java @@ -2,6 +2,7 @@ import android.content.Context; import android.util.Base64; + import androidx.annotation.NonNull; import com.goterl.lazysodium.utils.Key; @@ -26,7 +27,7 @@ public class AppConfigModule { @NonNull @Provides public AppSecrets provideAppSecrets() { - return new AppSecrets(BuildConfig.OAUTH_APP_ID, BuildConfig.OAUTH_APP_SECRET, BuildConfig.OAUTH_REDIRECT_URI); + return new AppSecrets(BuildConfig.OAUTH_APP_ID, BuildConfig.OAUTH_APP_SECRET, BuildConfig.WPCOM_REDIRECT_URI); } @Singleton