Merge pull request #206 from esensar/sdk-34-migration

Update targetSdkVersion to 34
This commit is contained in:
Tibor Kaputa 2023-07-31 18:12:46 +02:00 committed by GitHub
commit 904c40d27d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View file

@ -9,12 +9,12 @@ if (keystorePropertiesFile.exists()) {
}
android {
compileSdkVersion 33
compileSdkVersion 34
defaultConfig {
applicationId "com.simplemobiletools.voicerecorder"
minSdkVersion 23
targetSdkVersion 33
targetSdkVersion 34
versionCode 37
versionName "5.11.4"
setProperty("archivesBaseName", "voice-recorder")

View file

@ -7,6 +7,7 @@
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
@ -106,6 +107,7 @@
<service
android:name=".services.RecorderService"
android:foregroundServiceType="microphone"
android:exported="false">
<intent-filter>
<action android:name="com.simplemobiletools.voicerecorder.action.GET_RECORDER_INFO" />

View file

@ -273,7 +273,7 @@ class RecorderService : Service() {
visibility = NotificationCompat.VISIBILITY_SECRET
}
val builder = NotificationCompat.Builder(this)
val builder = NotificationCompat.Builder(this, channelId)
.setContentTitle(title)
.setContentText(text)
.setSmallIcon(icon)
@ -283,7 +283,6 @@ class RecorderService : Service() {
.setSound(null)
.setOngoing(true)
.setAutoCancel(true)
.setChannelId(channelId)
return builder.build()
}