<?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="com.ivalentin.margolariak"
    android:versionCode="21"
    android:versionName="3" >

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
    
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> 
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    
    <uses-permission android:name="android.permission.VIBRATE"/>

    <uses-feature
        android:glEsVersion="0x00020000"
        android:required="true"/>

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/Theme.AppBaseTheme"
        android:supportsRtl="true"
        android:isGame="false"
        android:fullBackupContent="@xml/backup"
        android:hardwareAccelerated="true"
        android:allowClearUserData="true"
        tools:ignore="UnusedAttribute"
        android:name="android.support.multidex.MultiDexApplication">
        
        <meta-data
    		android:name="com.google.android.gms.version"
    		android:value="@integer/google_play_services_version" />
        
        <meta-data
    		android:name="com.google.android.geo.API_KEY"
    		android:value="AIzaSyC6DgCJRiBkYiNUivE0VH9fsTZDbfVDpS0"/>
        
        <activity
            android:name="com.ivalentin.margolariak.MainActivity"
            android:windowSoftInputMode="stateHidden|adjustResize"
            android:configChanges="orientation"
            android:screenOrientation="portrait"
            android:label="@string/app_name">
            
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
				<category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <activity
            android:name=".SettingsActivity"
            android:windowSoftInputMode="stateHidden|adjustResize"
            android:configChanges="orientation"
            android:screenOrientation="portrait"
            android:label="@string/app_name">
        </activity>
        <activity android:name=".SponsorActivity"/>
        <activity android:name=".UsActivity"/>

        <receiver
            android:process=":remote"
            android:name="com.ivalentin.margolariak.AlarmReceiver"/>
        
        <receiver
            android:name="com.ivalentin.margolariak.BootReceiver"
			android:enabled="false">
		    <intent-filter>
		        <action android:name="android.intent.action.BOOT_COMPLETED"></action>
		    </intent-filter>
		</receiver>
    </application>

</manifest>
