Dough Git

clove/apps

email/app/src/main/AndroidManifest.xml

back to email/app/src/main

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.POST_NOTIFICATIONS" />

    <!-- Custom Tabs for signing in: lets us find a browser that supports them. -->
    <queries>
        <intent>
            <action android:name="android.support.customtabs.action.CustomTabsService" />
        </intent>
    </queries>

    <application
        android:name=".InboxApp"
        android:allowBackup="false"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/Theme.Inbox">

        <activity
            android:name=".MainActivity"
            android:exported="true"
            android:launchMode="singleTask"
            android:theme="@style/Theme.Inbox.Starting"
            android:windowSoftInputMode="adjustResize">

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>

            <!-- Where the server sends the browser tab after SSO sign-in. -->
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="gay.doughmination.mail" android:host="auth" />
            </intent-filter>

            <!-- Links to mail open in the app. Only these paths: claiming
                 /auth would pull the sign-in redirect out of the browser tab. -->
            <intent-filter android:autoVerify="true">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="https" android:host="mail.doughmination.gay" />
                <data android:pathPrefix="/inbox" />
                <data android:pathPrefix="/starred" />
                <data android:pathPrefix="/sent" />
                <data android:pathPrefix="/drafts" />
                <data android:pathPrefix="/bin" />
            </intent-filter>
        </activity>

        <!-- New-mail notifications from the Worker, through Firebase. -->
        <service
            android:name=".PushService"
            android:exported="false">
            <intent-filter>
                <action android:name="com.google.firebase.MESSAGING_EVENT" />
            </intent-filter>
        </service>
    </application>
</manifest>