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

    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.CAMERA"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

    <application
        android:name=".utils.BitsyApplication"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/Theme.Bitsy"
        tools:ignore="GoogleAppIndexingWarning">

        <meta-data
            android:name="com.google.android.geo.API_KEY"
            android:value="@string/google_maps_key"/>
        <!-- Avoid Crashlytics crash collection for all users/builds -->
        <meta-data
                android:name="firebase_crashlytics_collection_enabled"
                android:value="false" />
        <!-- Avoid crashes with Google maps in SDK 28 (Android 9 [Pie]) -->
        <uses-library android:name="org.apache.http.legacy" android:required="false"/>
        <activity
            android:name=".activities.SplashActivity"
            android:theme="@style/SplashTheme">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <activity
            android:name=".activities.MainActivity"
            android:screenOrientation="portrait"
            android:theme="@style/Theme.Bitsy"
            android:windowSoftInputMode="adjustPan">

            <nav-graph android:value="@navigation/mobile_navigation" />
        </activity>
        <!-- Used to share Images like the QR code and the eReceipt -->
        <provider
            android:name="androidx.core.content.FileProvider"
            android:authorities="cy.agorise.bitsybitshareswallet.FileProvider"
            android:grantUriPermissions="true"
            android:exported="false">
            <meta-data
                android:name="android.support.FILE_PROVIDER_PATHS"
                android:resource="@xml/tmp_image_path" />
        </provider>
    </application>

</manifest>