diff --git a/app/build.gradle b/app/build.gradle
index 54c41e27a..fd2435cb8 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -12,6 +12,12 @@ import com.github.spotbugs.snom.Confidence
import com.github.spotbugs.snom.Effort
import com.github.spotbugs.snom.SpotBugsTask
+plugins {
+ id "org.jetbrains.kotlin.plugin.compose" version "2.0.0"
+ id "org.jetbrains.kotlin.kapt"
+ id 'com.google.devtools.ksp' version '2.0.0-1.0.21'
+}
+
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
@@ -152,6 +158,7 @@ configurations.configureEach {
}
dependencies {
+ implementation("androidx.compose.runtime:runtime:1.6.8")
implementation 'androidx.preference:preference-ktx:1.2.1'
implementation 'androidx.datastore:datastore-core:1.1.1'
implementation 'androidx.datastore:datastore-preferences:1.1.1'
@@ -222,7 +229,7 @@ dependencies {
implementation "androidx.room:room-runtime:${roomVersion}"
implementation "androidx.room:room-rxjava2:${roomVersion}"
- kapt "androidx.room:room-compiler:${roomVersion}"
+ ksp "androidx.room:room-compiler:${roomVersion}"
implementation "androidx.room:room-ktx:${roomVersion}"
implementation "org.parceler:parceler-api:$parcelerVersion"
@@ -350,3 +357,7 @@ detekt {
config.setFrom("../detekt.yml")
source.setFrom("src/")
}
+
+ksp {
+ arg('room.schemaLocation', "$projectDir/schemas")
+}
\ No newline at end of file
diff --git a/app/src/main/java/com/nextcloud/talk/chat/data/io/AudioFocusRequestManager.kt b/app/src/main/java/com/nextcloud/talk/chat/data/io/AudioFocusRequestManager.kt
index 922475cb2..dd492daa3 100644
--- a/app/src/main/java/com/nextcloud/talk/chat/data/io/AudioFocusRequestManager.kt
+++ b/app/src/main/java/com/nextcloud/talk/chat/data/io/AudioFocusRequestManager.kt
@@ -82,7 +82,6 @@ class AudioFocusRequestManager(private val context: Context) {
audioManager.abandonAudioFocusRequest(focusRequest)
}
} else {
- @Deprecated("This method was deprecated in API level 26.")
if (shouldRequestFocus) {
audioManager.requestAudioFocus(audioFocusChangeListener, AudioManager.STREAM_MUSIC, duration)
} else {
diff --git a/build.gradle b/build.gradle
index 701c6770e..cfddba828 100644
--- a/build.gradle
+++ b/build.gradle
@@ -10,7 +10,7 @@
buildscript {
ext {
- kotlinVersion = '1.9.24'
+ kotlinVersion = '2.0.0'
}
repositories {
diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml
index ac97e921d..922895961 100644
--- a/gradle/verification-metadata.xml
+++ b/gradle/verification-metadata.xml
@@ -35,7 +35,10 @@
-
+
+
+
+
@@ -176,6 +179,7 @@
+
@@ -235,6 +239,11 @@
+
+
+
+
+
@@ -549,6 +558,14 @@
+
+
+
+
+
+
+
+
@@ -5036,6 +5053,11 @@
+
+
+
+
+
@@ -5056,6 +5078,11 @@
+
+
+
+
+