<?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="org.kiwix.kiwixmobile.custom">


  <application
    android:name=".CustomApp"
    android:extractNativeLibs="false"
    android:icon="@mipmap/ic_launcher"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    tools:targetApi="m">

    <activity
      android:name=".main.CustomMainActivity"
      android:configChanges="orientation|keyboardHidden|screenSize|locale"
      android:theme="@style/KiwixTheme.Launcher"
      android:label="@string/app_name"
      android:windowSoftInputMode="adjustPan">
      <meta-data
        android:name="android.app.shortcuts"
        android:resource="@xml/shortcuts" />

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

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

      <intent-filter>
        <action android:name="android.intent.action.VIEW" />

        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />

        <data
          android:host="search"
          android:scheme="kiwix" />
      </intent-filter>
      <intent-filter android:label="@string/app_search_string">
        <action android:name="android.intent.action.PROCESS_TEXT" />

        <category android:name="android.intent.category.DEFAULT" />

        <data android:mimeType="text/plain" />
      </intent-filter>
      <intent-filter>
        <action android:name="org.kiwix.kiwixmobile.core.main.CoreMainActivity" />
        <category android:name="android.intent.category.DEFAULT" />
      </intent-filter>
    </activity>

    <receiver android:name=".main.CustomSearchWidget">
      <intent-filter>
        <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
        <action android:name="KiwixSearchWidget.TEXT_CLICKED" />
        <action android:name="KiwixSearchWidget.ICON_CLICKED" />
        <action android:name="KiwixSearchWidget.MIC_CLICKED" />
        <action android:name="KiwixSearchWidget.STAR_CLICKED" />
      </intent-filter>

      <meta-data
        android:name="android.appwidget.provider"
        android:resource="@xml/kiwix_widget_provider_info" />
    </receiver>

  </application>
</manifest>
