From ddc5b10d553a15ae679cef90c6882f368b5dc9c9 Mon Sep 17 00:00:00 2001 From: Pouya Heydari Date: Fri, 9 Dec 2022 10:05:14 +0100 Subject: [PATCH] Upgraded dependencies to the latest version --- app/build.gradle.kts | 9 ++++----- .../features/callreceiver/IncomingCallPhoneState.kt | 6 ++++-- build.gradle.kts | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 3dfbc0f..f50d6e6 100755 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -1,7 +1,7 @@ plugins { id("com.android.application") id("kotlin-android") - id("com.google.devtools.ksp").version("1.7.10-1.0.6") + id("com.google.devtools.ksp").version("1.7.20-1.0.6") } android { compileSdk = 33 @@ -9,8 +9,8 @@ android { applicationId = "ir.apptune.antispam" minSdk = 23 targetSdk = 33 - versionCode = 605 - versionName = "6.0.5" + versionCode = 610 + versionName = "6.1.0" } buildTypes { release { @@ -42,13 +42,12 @@ dependencies { // ViewModel + LiveData implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1") implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.5.1") - implementation("androidx.lifecycle:lifecycle-extensions:2.2.0") // Room implementation("androidx.room:room-runtime:2.4.3") - implementation("androidx.legacy:legacy-support-v4:1.0.0") ksp("androidx.room:room-compiler:2.4.3") implementation("androidx.room:room-ktx:2.4.3") + implementation("androidx.legacy:legacy-support-v4:1.0.0") // Koin for Android implementation("io.insert-koin:koin-android:3.3.0") diff --git a/app/src/main/java/ir/apptune/antispam/features/callreceiver/IncomingCallPhoneState.kt b/app/src/main/java/ir/apptune/antispam/features/callreceiver/IncomingCallPhoneState.kt index c14f521..17bcf34 100644 --- a/app/src/main/java/ir/apptune/antispam/features/callreceiver/IncomingCallPhoneState.kt +++ b/app/src/main/java/ir/apptune/antispam/features/callreceiver/IncomingCallPhoneState.kt @@ -16,8 +16,10 @@ import kotlinx.coroutines.launch * @property repository * @property context */ -class IncomingCallPhoneState(private val repository: Repository, private val context: Context) : PhoneStateListener() { +class IncomingCallPhoneState(private val repository: Repository, private val context: Context) : + PhoneStateListener() { + @Deprecated("Deprecated in Java") override fun onCallStateChanged(state: Int, phoneNumber: String?) { when (state) { CALL_STATE_RINGING, CALL_STATE_OFFHOOK -> phoneNumber?.let { showInfoByToast(it) } @@ -33,4 +35,4 @@ class IncomingCallPhoneState(private val repository: Repository, private val con } } } -} \ No newline at end of file +} diff --git a/build.gradle.kts b/build.gradle.kts index 75f8613..dfbbcbb 100755 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ buildscript { } dependencies { classpath("com.android.tools.build:gradle:7.3.1") - classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10") + classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20") } }