diff --git a/app/build.gradle b/app/build.gradle index 90cfbdd935..ba680d4ca4 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -28,14 +28,15 @@ buildscript { } plugins { + id "org.jetbrains.kotlin.plugin.compose" version "2.0.0" id "com.diffplug.spotless" version "6.20.0" - id 'com.google.devtools.ksp' version '1.9.23-1.0.20' apply false + id "org.jetbrains.kotlin.kapt" version "2.0.0" + id 'com.google.devtools.ksp' version '2.0.0-1.0.21' apply false } apply plugin: 'com.android.application' apply plugin: 'kotlin-android' -apply plugin: 'kotlin-kapt' apply plugin: 'kotlin-parcelize' apply plugin: 'checkstyle' apply plugin: 'pmd' @@ -261,10 +262,6 @@ android { // Adds exported schema location as test app assets. androidTest.assets.srcDirs += files("$projectDir/schemas".toString()) } - - composeOptions { - kotlinCompilerExtensionVersion = "1.5.13" - } } dependencies { diff --git a/app/src/main/java/com/owncloud/android/operations/RemoveRemoteEncryptedFileOperation.kt b/app/src/main/java/com/owncloud/android/operations/RemoveRemoteEncryptedFileOperation.kt index 150447a922..5c85d0a5b2 100644 --- a/app/src/main/java/com/owncloud/android/operations/RemoveRemoteEncryptedFileOperation.kt +++ b/app/src/main/java/com/owncloud/android/operations/RemoveRemoteEncryptedFileOperation.kt @@ -52,7 +52,7 @@ class RemoveRemoteEncryptedFileOperation internal constructor( @Deprecated("Deprecated in Java") @Suppress("TooGenericExceptionCaught") override fun run(client: OwnCloudClient): RemoteOperationResult { - val result: RemoteOperationResult + var result: RemoteOperationResult var delete: DeleteMethod? = null var token: String? = null val e2eVersion = CapabilityUtils.getCapability(context).endToEndEncryptionApiVersion diff --git a/app/src/main/java/com/owncloud/android/ui/trashbin/TrashbinActivity.kt b/app/src/main/java/com/owncloud/android/ui/trashbin/TrashbinActivity.kt index 5803aa812e..1e25961b04 100644 --- a/app/src/main/java/com/owncloud/android/ui/trashbin/TrashbinActivity.kt +++ b/app/src/main/java/com/owncloud/android/ui/trashbin/TrashbinActivity.kt @@ -150,9 +150,9 @@ class TrashbinActivity : recyclerView.setHasFooter(true) recyclerView.layoutManager = LinearLayoutManager(this) - viewThemeUtils.androidx.themeSwipeRefreshLayout(binding.swipeContainingList) + viewThemeUtils?.androidx?.themeSwipeRefreshLayout(binding.swipeContainingList) binding.swipeContainingList.setOnRefreshListener { loadFolder() } - viewThemeUtils.material.colorMaterialTextButton(findViewById(R.id.sort_button)) + viewThemeUtils?.material?.colorMaterialTextButton(findViewById(R.id.sort_button)) findViewById(R.id.sort_button).setOnClickListener { DisplayUtils.openSortingOrderDialogFragment( diff --git a/build.gradle b/build.gradle index 70a2cd0420..943af6d67b 100644 --- a/build.gradle +++ b/build.gradle @@ -21,7 +21,7 @@ buildscript { espressoVersion = "3.5.1" fidoVersion = "4.1.0-patch2" jacoco_version = '0.8.12' - kotlin_version = '1.9.23' + kotlin_version = '2.0.0' markwonVersion = "4.6.2" mockitoVersion = "4.11.0" mockitoKotlinVersion = "4.1.0" diff --git a/gradle/verification-metadata.xml b/gradle/verification-metadata.xml index 119b788e29..c5d0a9c419 100644 --- a/gradle/verification-metadata.xml +++ b/gradle/verification-metadata.xml @@ -135,8 +135,10 @@ - - + + + + @@ -170,6 +172,7 @@ + @@ -1010,6 +1013,9 @@ + + + @@ -1023,6 +1029,9 @@ + + + @@ -1897,6 +1906,11 @@ + + + + + @@ -2891,6 +2905,9 @@ + + + @@ -6436,6 +6453,11 @@ + + + + + @@ -6468,6 +6490,14 @@ + + + + + + + + @@ -9247,6 +9277,11 @@ + + + + + @@ -9279,6 +9314,11 @@ + + + + + @@ -9287,6 +9327,11 @@ + + + + + @@ -9362,6 +9407,11 @@ + + + + + @@ -9831,6 +9881,16 @@ + + + + + + + + + +