digitalfabrik/integreat-app

View on GitHub
native/android/app/src/main/AndroidManifest.xml

Summary

Maintainability
Test Coverage
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          xmlns:tools="http://schemas.android.com/tools">

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

<application
        tools:replace="android:label"
        android:name=".MainApplication"
        android:label="@string/BUILD_CONFIG_APP_NAME"
        android:icon="@mipmap/${icon}"
        android:roundIcon="@mipmap/${icon}_round"
        android:allowBackup="false"
        android:theme="@style/Theme.App"
        android:usesCleartextTraffic="true">
    <meta-data android:name="firebase_analytics_collection_deactivated" android:value="true" />
    <activity
            android:name=".MainActivity"
            android:label="@string/BUILD_CONFIG_APP_NAME"
            android:exported="true"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|uiMode"
            android:launchMode="singleTask"
            android:windowSoftInputMode="adjustResize">

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

        <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="integreat" />

            <data android:host="@string/BUILD_CONFIG_HOST_NAME" />
        </intent-filter>

        <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" />

            <data android:host="@string/BUILD_CONFIG_HOST_NAME" />
        </intent-filter>
    </activity>
    <provider
            android:name="androidx.core.content.FileProvider"
            android:authorities="${applicationId}.provider"
            android:grantUriPermissions="true"
            android:exported="false"
            tools:replace="android:authorities">
        <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/filepaths"
                tools:replace="android:resource" />
    </provider>
</application>
<queries>
    <intent>
        <action android:name="android.intent.action.VIEW" />
        <data android:scheme="tel"/>
    </intent>
    <intent>
        <action android:name="android.intent.action.VIEW" />
        <data android:scheme="mailto"/>
    </intent>
    <intent>
        <action android:name="android.intent.action.VIEW" />
        <data android:scheme="geo"/>
    </intent>
</queries>
</manifest>