build: update Kotlin and SDKs (#173)

This commit is contained in:
Patryk Miś 2022-10-11 15:47:14 +02:00 committed by GitHub
parent 34a6829aaf
commit 07acc4dc1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -7,14 +7,14 @@ plugins {
} }
android { android {
compileSdk = 32 compileSdk = 33
buildToolsVersion = "32.0.0" buildToolsVersion = "33.0.0"
namespace = "app.revanced.integrations" namespace = "app.revanced.integrations"
defaultConfig { defaultConfig {
applicationId = "app.revanced.integrations" applicationId = "app.revanced.integrations"
minSdk = 23 minSdk = 23
targetSdk = 32 targetSdk = 33
versionCode = 1 versionCode = 1
versionName = "1.0" versionName = "1.0"
multiDexEnabled = false multiDexEnabled = false

View File

@ -70,7 +70,7 @@ class ClassicSwipeController(
return false return false
} }
override fun onDoubleTapEvent(motionEvent: MotionEvent?): Boolean { override fun onDoubleTapEvent(motionEvent: MotionEvent): Boolean {
MotionEvent.obtain(motionEvent).let { MotionEvent.obtain(motionEvent).let {
controller.dispatchDownstreamTouchEvent(it) controller.dispatchDownstreamTouchEvent(it)
it.recycle() it.recycle()
@ -79,7 +79,7 @@ class ClassicSwipeController(
return super.onDoubleTapEvent(motionEvent) return super.onDoubleTapEvent(motionEvent)
} }
override fun onLongPress(motionEvent: MotionEvent?) { override fun onLongPress(motionEvent: MotionEvent) {
MotionEvent.obtain(motionEvent).let { MotionEvent.obtain(motionEvent).let {
controller.dispatchDownstreamTouchEvent(it) controller.dispatchDownstreamTouchEvent(it)
it.recycle() it.recycle()

View File

@ -6,7 +6,7 @@ buildscript {
} }
dependencies { dependencies {
classpath("com.android.tools.build:gradle:7.3.0") 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 // NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files // in the individual module build.gradle files