Google OAuth: fix manifest merging so that intent-filter for OAuth callback is included again (#367)

This commit is contained in:
Ricki Hirner 2023-07-27 18:13:57 +02:00 committed by GitHub
parent b7e00fac40
commit 7038bbf70a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 7 deletions

View file

@ -60,9 +60,10 @@ android {
// Java namespace for our classes (not to be confused with Android package ID)
namespace 'at.bitfire.davdroid'
flavorDimensions "distribution"
flavorDimensions = [ "distribution" ]
productFlavors {
ose {
dimension "distribution"
versionNameSuffix "-ose"
}
}

View file

@ -64,9 +64,9 @@
<service android:name=".ForegroundService"/>
<!-- Remove the node added by AppAuth -->
<!-- Remove the node added by AppAuth (remove only from net.openid.appauth library, not from our flavor manifest files) -->
<activity android:name="net.openid.appauth.RedirectUriReceiverActivity"
tools:node="remove"/>
tools:node="remove" tools:selector="net.openid.appauth"/>
<activity android:name=".ui.intro.IntroActivity" android:theme="@style/AppTheme.NoActionBar" />
<activity

View file

@ -2,16 +2,14 @@
~ Copyright © All Contributors. See LICENSE and AUTHORS in the root directory for details.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application>
<!-- AppAuth login flow redirect -->
<activity
android:name="net.openid.appauth.RedirectUriReceiverActivity"
android:exported="true"
tools:node="replace">
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>