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

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

    <application
        android:name=".App"
        android:allowBackup="true"
        android:hardwareAccelerated="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:theme="@style/Theme.Tachiyomi" >
        <activity
            android:name=".ui.main.MainActivity"
            android:theme="@style/Theme.BrandedLaunch">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".ui.manga.MangaActivity"
            android:parentActivityName=".ui.main.MainActivity" >
        </activity>
        <activity
            android:name=".ui.reader.ReaderActivity"
            android:theme="@style/Theme.Reader">
        </activity>
        <activity
            android:name=".ui.setting.SettingsActivity"
            android:label="@string/label_settings"
            android:parentActivityName=".ui.main.MainActivity" >
        </activity>
        <activity
            android:name=".ui.category.CategoryActivity"
            android:label="@string/label_categories"
            android:parentActivityName=".ui.main.MainActivity">
        </activity>
        <activity
            android:name=".ui.setting.SettingsDownloadsFragment$CustomLayoutPickerActivity"
            android:label="@string/app_name"
            android:theme="@style/FilePickerTheme">
        </activity>

        <service android:name=".data.library.LibraryUpdateService"
            android:exported="false"/>

        <service android:name=".data.download.DownloadService"
            android:exported="false"/>

        <service android:name=".data.mangasync.UpdateMangaSyncService"
            android:exported="false"/>

        <receiver
            android:name=".data.library.LibraryUpdateService$SyncOnConnectionAvailable"
            android:enabled="false">
            <intent-filter>
                <action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
            </intent-filter>
        </receiver>

        <receiver
            android:name=".data.library.LibraryUpdateService$SyncOnPowerConnected"
            android:enabled="false">
            <intent-filter>
                <action android:name="android.intent.action.ACTION_POWER_CONNECTED" />
            </intent-filter>
        </receiver>

        <receiver
            android:name=".data.library.LibraryUpdateService$CancelUpdateReceiver">
        </receiver>

        <receiver
            android:name=".data.updater.UpdateDownloader$InstallOnReceived">
        </receiver>

        <receiver
            android:name=".data.library.LibraryUpdateAlarm">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED"/>
                <action android:name="eu.kanade.UPDATE_LIBRARY" />
            </intent-filter>
        </receiver>

        <receiver
            android:name=".data.updater.UpdateDownloaderAlarm">
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED"/>
                <action android:name="eu.kanade.CHECK_UPDATE"/>
            </intent-filter>
        </receiver>


        <meta-data
            android:name="eu.kanade.tachiyomi.data.glide.AppGlideModule"
            android:value="GlideModule" />

    </application>

</manifest>
