updating kotlin, common, gradle and target SDK to 33

This commit is contained in:
tibbi
2022-09-21 12:36:35 +02:00
parent 729c47a513
commit 75a8a0de76
5 changed files with 12 additions and 12 deletions

View File

@ -9,12 +9,12 @@ if (keystorePropertiesFile.exists()) {
}
android {
compileSdkVersion 31
compileSdkVersion 33
defaultConfig {
applicationId "com.simplemobiletools.camera"
minSdkVersion 29
targetSdkVersion 31
targetSdkVersion 33
versionCode 77
versionName "5.3.1"
setProperty("archivesBaseName", "camera")
@ -63,7 +63,7 @@ android {
}
dependencies {
implementation 'com.github.SimpleMobileTools:Simple-Commons:7c48da6bef'
implementation 'com.github.SimpleMobileTools:Simple-Commons:e93092b380'
implementation 'androidx.documentfile:documentfile:1.0.1'
implementation "androidx.exifinterface:exifinterface:1.3.3"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:2.5.0"

View File

@ -271,9 +271,9 @@ class CameraXPreview(
private fun setupZoomAndFocus() {
val scaleGesture = camera?.let { ScaleGestureDetector(activity, PinchToZoomOnScaleGestureListener(it.cameraInfo, it.cameraControl)) }
val gestureDetector = GestureDetector(activity, object : SimpleOnGestureListener() {
override fun onDown(e: MotionEvent?): Boolean {
override fun onDown(event: MotionEvent): Boolean {
listener.onTouchPreview()
return super.onDown(e)
return super.onDown(event)
}
override fun onSingleTapConfirmed(event: MotionEvent): Boolean {

View File

@ -117,9 +117,9 @@ class CameraPreview : ViewGroup, TextureView.SurfaceTextureListener, MyPreview {
mediaSoundHelper.loadSounds()
val gestureDetector = GestureDetector(context, object : GestureDetector.SimpleOnGestureListener() {
override fun onSingleTapConfirmed(e: MotionEvent?): Boolean {
if (e != null && mIsFocusSupported && mCaptureSession != null) {
focusArea(e.rawX, e.rawY, true)
override fun onSingleTapConfirmed(event: MotionEvent): Boolean {
if (mIsFocusSupported && mCaptureSession != null) {
focusArea(event.rawX, event.rawY, true)
}
return true
}