Skip to content

Commit

Permalink
Target sdk 34
Browse files Browse the repository at this point in the history
  • Loading branch information
cemrich committed Jul 21, 2023
1 parent 7397c94 commit beb5228
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ apply plugin: 'koin'
apply plugin: 'androidx.navigation.safeargs.kotlin'

android {
compileSdkVersion 33
buildToolsVersion '33.0.2'
compileSdkVersion 34
buildToolsVersion '34.0.0'

defaultConfig {
applicationId "de.christinecoenen.code.zapp"
minSdkVersion 26
targetSdkVersion 33
targetSdkVersion 34
versionCode 67
versionName "8.3.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK" />

<uses-feature
android:name="android.hardware.touchscreen"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,18 @@ class SwipeablePlayerView @JvmOverloads constructor(
return super.onDown(e)
}

// removing this leads to a compilation error with sdk 33
@Suppress("NOTHING_TO_OVERRIDE")
override fun onScroll(
e1: MotionEvent,
e1: MotionEvent?,
e2: MotionEvent,
distanceX: Float,
distanceY: Float
): Boolean {
if (e1 == null) {
return false
}

if (!canUseWipeControls || e1.y <= forbiddenAreaSizeTop) {
return super.onScroll(e1, e2, distanceX, distanceY)
}
Expand Down

0 comments on commit beb5228

Please sign in to comment.