diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a177223f..4928d9b06 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/buildSrc/src/main/kotlin/Config.kt b/buildSrc/src/main/kotlin/Config.kt index 97a669492..3044cefc3 100644 --- a/buildSrc/src/main/kotlin/Config.kt +++ b/buildSrc/src/main/kotlin/Config.kt @@ -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 diff --git a/core/src/main/java/org/kiwix/kiwixmobile/core/main/OnSwipeTouchListener.kt b/core/src/main/java/org/kiwix/kiwixmobile/core/main/OnSwipeTouchListener.kt index f975f1024..951c647c4 100644 --- a/core/src/main/java/org/kiwix/kiwixmobile/core/main/OnSwipeTouchListener.kt +++ b/core/src/main/java/org/kiwix/kiwixmobile/core/main/OnSwipeTouchListener.kt @@ -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,