Skip to content

Commit

Permalink
fix(foregroundServiceType): specify foregroundServiceType for media s…
Browse files Browse the repository at this point in the history
…ervice
  • Loading branch information
mcatta committed Oct 22, 2023
1 parent 4d20f55 commit 16f10de
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ android {

defaultConfig {
applicationId = "dev.marcocattaneo.sleep"
versionCode = 8
versionName = "1.2.4"
versionCode = 9
versionName = "1.2.5"
}

buildFeatures {
Expand Down
33 changes: 18 additions & 15 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,38 @@
~ limitations under the License.
-->

<manifest xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />

<application
android:name="dev.marcocattaneo.sleep.di.SleepifyApplication"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/Theme.SleepApp">
<activity
android:name="dev.marcocattaneo.sleep.MainActivity"
android:exported="true"
android:name="dev.marcocattaneo.sleep.di.SleepifyApplication"
android:allowBackup="false"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.SleepApp.NoActionBar">
android:roundIcon="@mipmap/ic_launcher"
android:supportsRtl="true"
android:theme="@style/Theme.SleepApp">
<activity
android:name="dev.marcocattaneo.sleep.MainActivity"
android:exported="true"
android:label="@string/app_name"
android:theme="@style/Theme.SleepApp.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

<service android:name="dev.marcocattaneo.sleep.ui.notification.PlayerNotificationService" />
<service
android:exported="false"
android:enabled="true"
android:foregroundServiceType="mediaPlayback"
android:name="dev.marcocattaneo.sleep.ui.notification.PlayerNotificationService" />
</application>

</manifest>

0 comments on commit 16f10de

Please sign in to comment.