Skip to content

Commit

Permalink
Change sdk version and add mediaPlayback service type
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Apr 5, 2024
1 parent e6966a0 commit 9529800
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 6 additions & 2 deletions Snapcast/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 34
compileSdk 34

defaultConfig {
applicationId "de.badaix.snapcast"
minSdkVersion 21
targetSdkVersion 33
targetSdkVersion 34
versionCode 2700
versionName '0.27.0.0'
multiDexEnabled true
Expand Down Expand Up @@ -41,6 +41,10 @@ android {
disable 'MissingTranslation'
}
namespace 'de.badaix.snapcast'
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}

dependencies {
Expand Down
8 changes: 5 additions & 3 deletions Snapcast/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>

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

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
Expand Down Expand Up @@ -37,7 +38,8 @@

<service
android:name=".SnapclientService"
android:exported="true" />
android:exported="true"
android:foregroundServiceType="mediaPlayback" />

<!-- android:theme="@style/Theme.AppCompat.Light.DialogWhenLarge" -->
<activity
Expand Down

0 comments on commit 9529800

Please sign in to comment.