From 07acc4dc1f76f41dfa761ac9ef43ea59aad88faa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Mi=C5=9B?= Date: Tue, 11 Oct 2022 15:47:14 +0200 Subject: [PATCH] build: update Kotlin and SDKs (#173) --- app/build.gradle.kts | 6 +++--- .../controller/gesture/ClassicSwipeController.kt | 4 ++-- build.gradle.kts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 1d5cf7b4..11783ce9 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -7,14 +7,14 @@ plugins { } android { - compileSdk = 32 - buildToolsVersion = "32.0.0" + compileSdk = 33 + buildToolsVersion = "33.0.0" namespace = "app.revanced.integrations" defaultConfig { applicationId = "app.revanced.integrations" minSdk = 23 - targetSdk = 32 + targetSdk = 33 versionCode = 1 versionName = "1.0" multiDexEnabled = false diff --git a/app/src/main/java/app/revanced/integrations/swipecontrols/controller/gesture/ClassicSwipeController.kt b/app/src/main/java/app/revanced/integrations/swipecontrols/controller/gesture/ClassicSwipeController.kt index 7e218578..52f937d6 100644 --- a/app/src/main/java/app/revanced/integrations/swipecontrols/controller/gesture/ClassicSwipeController.kt +++ b/app/src/main/java/app/revanced/integrations/swipecontrols/controller/gesture/ClassicSwipeController.kt @@ -70,7 +70,7 @@ class ClassicSwipeController( return false } - override fun onDoubleTapEvent(motionEvent: MotionEvent?): Boolean { + override fun onDoubleTapEvent(motionEvent: MotionEvent): Boolean { MotionEvent.obtain(motionEvent).let { controller.dispatchDownstreamTouchEvent(it) it.recycle() @@ -79,7 +79,7 @@ class ClassicSwipeController( return super.onDoubleTapEvent(motionEvent) } - override fun onLongPress(motionEvent: MotionEvent?) { + override fun onLongPress(motionEvent: MotionEvent) { MotionEvent.obtain(motionEvent).let { controller.dispatchDownstreamTouchEvent(it) it.recycle() diff --git a/build.gradle.kts b/build.gradle.kts index 21ece099..3f6f91c3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -6,7 +6,7 @@ buildscript { } dependencies { classpath("com.android.tools.build:gradle:7.3.0") - classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10") + classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20") // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files