Updated to Android 14 & refactored some methods inorder to compile with the SDK 14

This commit is contained in:
MohitMaliFtechiz 2024-08-13 14:47:45 +05:30 committed by Kelson
parent 453c1d38ef
commit 88a83be01d
3 changed files with 6 additions and 3 deletions

View File

@ -12,7 +12,7 @@ jobs:
name: Automated tests
strategy:
matrix:
api-level: [ 25, 30, 33 ]
api-level: [ 25, 30, 33, 34 ]
fail-fast: true
runs-on: ubuntu-22.04
steps:

View File

@ -22,9 +22,9 @@ object Config {
// Here is a list of all Android versions with their corresponding API
// levels: https://apilevels.com/
const val compileSdk = 33 // SDK version used by Gradle to compile our app.
const val compileSdk = 34 // SDK version used by Gradle to compile our app.
const val minSdk = 25 // Minimum SDK (Minimum Support Device) is 25 (Android 7.1 Nougat).
const val targetSdk = 33 // Target SDK (Maximum Support Device) is 33 (Android 13).
const val targetSdk = 34 // Target SDK (Maximum Support Device) is 34 (Android 14).
val javaVersion = JavaVersion.VERSION_1_8

View File

@ -51,6 +51,9 @@ open class OnSwipeTouchListener constructor(context: Context) : OnTouchListener
return super.onSingleTapUp(event)
}
// See:- https://stackoverflow.com/questions/73463685/gesturedetector-ongesturelistener-overridden-methods-are-not-working-in-android
@Suppress("NOTHING_TO_OVERRIDE", "ACCIDENTAL_OVERRIDE")
@SuppressLint("NestedBlockDepth, ReturnCount")
override fun onFling(
e1: MotionEvent,
e2: MotionEvent,