Skip to content

Commit

Permalink
move service & receiver elements to package's AndroidManifest.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
mehayhe committed Dec 20, 2021
1 parent 6c29b4c commit 5827ff9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
13 changes: 13 additions & 0 deletions audio_service/android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ryanheise.audioservice">
<application>
<service android:name="com.ryanheise.audioservice.AudioService" android:exported="true">
<intent-filter>
<action android:name="android.media.browse.MediaBrowserService" />
</intent-filter>
</service>

<receiver android:name="com.ryanheise.audioservice.MediaButtonReceiver" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
</receiver>
</application>
</manifest>
12 changes: 0 additions & 12 deletions audio_service/example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,6 @@
</intent-filter>
</activity>

<service android:name="com.ryanheise.audioservice.AudioService" android:exported="true">
<intent-filter>
<action android:name="android.media.browse.MediaBrowserService" />
</intent-filter>
</service>

<receiver android:name="com.ryanheise.audioservice.MediaButtonReceiver" android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
</intent-filter>
</receiver>

<meta-data
android:name="flutterEmbedding"
android:value="2" />
Expand Down

0 comments on commit 5827ff9

Please sign in to comment.