Skip to content

Commit

Permalink
mediaplyer: Moved service declaration to package
Browse files Browse the repository at this point in the history
Signed-off-by: Gabriel Fontán <gabilessto@gmail.com>
  • Loading branch information
BobbyESP committed May 16, 2024
1 parent 933b9b7 commit 73d2945
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
19 changes: 18 additions & 1 deletion app/mediaplayer/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />

<application>
<service
android:name=".service.MediaplayerService"
android:exported="true"
android:foregroundServiceType="mediaPlayback"
tools:ignore="ExportedService">
<intent-filter>
<action android:name="androidx.media3.session.MediaSessionService" />
<action android:name="android.media.browse.MediaBrowserService" />
</intent-filter>
</service>
</application>

</manifest>
11 changes: 0 additions & 11 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,6 @@
android:launchMode="singleTask"
android:theme="@style/Theme.Metadator" />

<service
android:name="com.bobbyesp.mediaplayer.service.MediaplayerService"
android:exported="true"
android:foregroundServiceType="mediaPlayback">
<intent-filter>
<action android:name="androidx.media3.session.MediaSessionService" />
<action android:name="androidx.media3.session.MediaLibraryService" />
<action android:name="android.media.browse.MediaBrowserService" />
</intent-filter>
</service>

</application>

</manifest>

0 comments on commit 73d2945

Please sign in to comment.