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

    <!--
         The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
         Google Maps Android API v2, but you must specify either coarse or fine
         location permissions for the 'MyLocation' functionality. 
    -->
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:allowBackup="true"
        android:alwaysRetainTaskState="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity
            android:name=".LogInActivity"
            android:launchMode="singleInstance">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

        <service
            android:name=".MatchingService"
            android:enabled="true"
            android:exported="true" />

        <!-- android:launchMode="singleInstance" -->
        <activity
            android:name=".MainActivity"
            android:launchMode="singleInstance" />
        <activity android:name=".RegisterItem" />
        <activity android:name=".CoordsActivity" />
        <activity android:name=".ExtraInfoActivity" />
        <activity
            android:name=".ChatsActivity"
            android:launchMode="singleInstance" />
        <activity
            android:name=".ArchiveActivity"
            android:launchMode="singleInstance" />
        <activity android:name=".RegisterActivity" />
        <activity
            android:name=".NewCoordActivity"
            android:label="@string/title_activity_new_coord"
            android:launchMode="singleTop" />
        <activity android:name=".ItemViewActivity" />
        <activity android:name=".ChatActivity" />
        <!--
                <service
                    android:name="Services.MatchingChecker"
                    android:label="MatchingChecker"
                    android:enabled="true"
                    android:process="@string/accept"
                    android:singleUser="true"
                    android:permission="@string/accept"/>

                     The API key for Google Maps-based APIs is defined as a string resource.
                     (See the file "res/values/google_maps_api.xml").
                     Note that the API key is linked to the encryption key used to sign the APK.
                     You need a different API key for each encryption key, including the release key that is used to
                     sign the APK for publishing.
                     You can define the keys for the debug and release targets in src/debug/ and src/release/.
        -->
        <meta-data
            android:name="com.google.android.geo.API_KEY"
            android:value="@string/google_maps_key" />

        <activity android:name=".ItemMatchingActivity" />

        <service
            android:name=".ChatService"
            android:enabled="true"
            android:exported="true"></service>
    </application>

</manifest>