Vaani/android/app/src/main/AndroidManifest.xml

68 lines
3.3 KiB
XML
Raw Normal View History

2024-05-17 11:04:20 -04:00
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<!-- Required to fetch data from the internet. -->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
2024-08-20 08:36:39 -04:00
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />
2024-05-08 05:03:49 -04:00
<application
android:label="Vaani"
2024-05-08 05:03:49 -04:00
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
2024-05-17 11:04:20 -04:00
<!-- android:name=".MainActivity" -->
2024-05-08 05:03:49 -04:00
<activity
2024-05-17 11:04:20 -04:00
android:name="com.ryanheise.audioservice.AudioServiceActivity"
2024-05-08 05:03:49 -04:00
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
2024-05-17 11:04:20 -04:00
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
2024-05-08 05:03:49 -04:00
<intent-filter>
2024-05-17 11:04:20 -04:00
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
2024-05-08 05:03:49 -04:00
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
2024-05-17 11:04:20 -04:00
<!-- ADD THIS "SERVICE" element -->
<service android:name="com.ryanheise.audioservice.AudioService"
android:foregroundServiceType="mediaPlayback"
android:exported="true" tools:ignore="Instantiatable">
<intent-filter>
<action android:name="android.media.browse.MediaBrowserService" />
</intent-filter>
</service>
<!-- ADD THIS "RECEIVER" element -->
<receiver android:name="com.ryanheise.audioservice.MediaButtonReceiver"
android:exported="true" tools:ignore="Instantiatable">
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
</receiver>
2024-05-08 05:03:49 -04:00
</application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility?hl=en and
https://developer.android.com/reference/android/content/Intent#ACTION_PROCESS_TEXT.
In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. -->
<queries>
<intent>
2024-05-17 11:04:20 -04:00
<action android:name="android.intent.action.PROCESS_TEXT" />
<data android:mimeType="text/plain" />
2024-05-08 05:03:49 -04:00
</intent>
</queries>
2024-05-17 11:04:20 -04:00
</manifest>