mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-09 07:16:04 -04:00
Updated to Android 14 & refactored some methods inorder to compile with the SDK 14
This commit is contained in:
parent
453c1d38ef
commit
88a83be01d
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
|||||||
name: Automated tests
|
name: Automated tests
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
api-level: [ 25, 30, 33 ]
|
api-level: [ 25, 30, 33, 34 ]
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
|
@ -22,9 +22,9 @@ object Config {
|
|||||||
|
|
||||||
// Here is a list of all Android versions with their corresponding API
|
// Here is a list of all Android versions with their corresponding API
|
||||||
// levels: https://apilevels.com/
|
// 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 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
|
val javaVersion = JavaVersion.VERSION_1_8
|
||||||
|
|
||||||
|
@ -51,6 +51,9 @@ open class OnSwipeTouchListener constructor(context: Context) : OnTouchListener
|
|||||||
return super.onSingleTapUp(event)
|
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(
|
override fun onFling(
|
||||||
e1: MotionEvent,
|
e1: MotionEvent,
|
||||||
e2: MotionEvent,
|
e2: MotionEvent,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user