|
1 | | -<manifest xmlns:android="http://schemas.android.com/apk/res/android"> |
2 | | - <uses-permission android:name="android.permission.INTERNET"/> |
3 | | - <uses-permission android:name="android.permission.WAKE_LOCK"/> |
4 | | - <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/> |
5 | | - <uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK"/> |
6 | | - |
| 1 | +<manifest |
| 2 | + xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | + xmlns:tools="http://schemas.android.com/tools" |
| 4 | +> |
| 5 | + <uses-permission android:name="android.permission.INTERNET" /> |
| 6 | + <uses-permission android:name="android.permission.WAKE_LOCK" /> |
| 7 | + <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> |
| 8 | + <uses-permission |
| 9 | + android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" |
| 10 | + /> |
| 11 | + |
7 | 12 | <application |
8 | 13 | android:label="Bassdrive Radio" |
9 | 14 | android:name="${applicationName}" |
10 | | - android:icon="@mipmap/ic_launcher"> |
| 15 | + android:icon="@mipmap/ic_launcher" |
| 16 | + > |
11 | 17 | <activity |
12 | 18 | android:name=".MainActivity" |
13 | 19 | android:exported="true" |
|
16 | 22 | android:theme="@style/LaunchTheme" |
17 | 23 | android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" |
18 | 24 | android:hardwareAccelerated="true" |
19 | | - android:windowSoftInputMode="adjustResize"> |
| 25 | + android:windowSoftInputMode="adjustResize" |
| 26 | + > |
20 | 27 | <!-- Specifies an Android theme to apply to this Activity as soon as |
21 | 28 | the Android process has started. This theme is visible to the user |
22 | 29 | while the Flutter UI initializes. After that, this theme continues |
23 | 30 | to determine the Window background behind the Flutter UI. --> |
24 | 31 | <meta-data |
25 | | - android:name="io.flutter.embedding.android.NormalTheme" |
26 | | - android:resource="@style/NormalTheme" |
27 | | - /> |
| 32 | + android:name="io.flutter.embedding.android.NormalTheme" |
| 33 | + android:resource="@style/NormalTheme" |
| 34 | + /> |
28 | 35 | <intent-filter> |
29 | | - <action android:name="android.intent.action.MAIN"/> |
30 | | - <category android:name="android.intent.category.LAUNCHER"/> |
| 36 | + <action android:name="android.intent.action.MAIN" /> |
| 37 | + <category android:name="android.intent.category.LAUNCHER" /> |
31 | 38 | </intent-filter> |
32 | 39 | </activity> |
33 | 40 | <!-- Don't delete the meta-data below. |
34 | 41 | This is used by the Flutter tool to generate GeneratedPluginRegistrant.java --> |
35 | | - <meta-data |
36 | | - android:name="flutterEmbedding" |
37 | | - android:value="2" /> |
| 42 | + <meta-data android:name="flutterEmbedding" android:value="2" /> |
38 | 43 | <service |
39 | 44 | android:name="com.ryanheise.audioservice.AudioService" |
40 | 45 | android:foregroundServiceType="mediaPlayback" |
41 | | - android:exported="true"> |
| 46 | + android:exported="true" |
| 47 | + tools:ignore="Instantiatable" |
| 48 | + > |
42 | 49 | <intent-filter> |
43 | | - <action android:name="android.media.browse.MediaBrowserService" /> |
| 50 | + <action |
| 51 | + android:name="android.media.browse.MediaBrowserService" |
| 52 | + /> |
44 | 53 | </intent-filter> |
45 | 54 | </service> |
| 55 | + <receiver |
| 56 | + android:name="com.ryanheise.audioservice.MediaButtonReceiver" |
| 57 | + android:exported="true" |
| 58 | + tools:ignore="Instantiatable" |
| 59 | + > |
| 60 | + <intent-filter> |
| 61 | + <action android:name="android.intent.action.MEDIA_BUTTON" /> |
| 62 | + </intent-filter> |
| 63 | + </receiver> |
46 | 64 | </application> |
47 | 65 | <!-- Required to query activities that can process text, see: |
48 | 66 | https://developer.android.com/training/package-visibility and |
|
51 | 69 | In particular, this is used by the Flutter engine in io.flutter.plugin.text.ProcessTextPlugin. --> |
52 | 70 | <queries> |
53 | 71 | <intent> |
54 | | - <action android:name="android.intent.action.PROCESS_TEXT"/> |
55 | | - <data android:mimeType="text/plain"/> |
| 72 | + <action android:name="android.intent.action.PROCESS_TEXT" /> |
| 73 | + <data android:mimeType="text/plain" /> |
56 | 74 | </intent> |
57 | 75 | </queries> |
58 | 76 | </manifest> |
0 commit comments