diff --git a/app/build.gradle b/app/build.gradle index 61967bf..7bcf6d9 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -19,8 +19,8 @@ android { applicationId "in.sminnovations.hpostesting" minSdk 21 targetSdk 34 - versionCode 30 - versionName "2.1.30" + versionCode 35 + versionName "2.1.35" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } @@ -49,6 +49,9 @@ android { abortOnError false checkReleaseBuilds false } + packagingOptions { + exclude 'mockito-extensions/org.mockito.plugins.MockMaker' + } } dependencies { diff --git a/app/src/main/java/com/example/hpostesting/data/constant/Constants.kt b/app/src/main/java/com/example/hpostesting/data/constant/Constants.kt index 3212e10..40f1acf 100644 --- a/app/src/main/java/com/example/hpostesting/data/constant/Constants.kt +++ b/app/src/main/java/com/example/hpostesting/data/constant/Constants.kt @@ -80,34 +80,34 @@ object Constants { val DEVICE_CONFIGURATION: Map>> = mapOf>>( "HCV-000-3001" to listOf( - listOf(1.264817, -0.85965), // LED1, 435nm + listOf(1.313, -0.9191), // LED1, 435nm listOf(0.581462456, -0.58502), // LED2, 415nm - listOf(0.184991, 0.001704), // LED3, 555nm + listOf(0.2012, 0.0092), // LED3, 555nm listOf(1.0, 0.0) // LED4 ), "HCV-000-3002" to listOf( - listOf(1.264817, -0.85965), - listOf(0.581462456, -0.58502), - listOf(0.184991, 0.001704), - listOf(1.0, 0.0) + listOf(0.587389, 0.0), // LED1, 435nm + listOf(0.581462456, -0.58502), // LED2, 415nm + listOf(0.166459, 0.0), // LED3, 555nm + listOf(1.0, 0.0) // LED4 ), ) - const val INCUBATION_TIME_MIN = 15 - const val INCUBATION_TIME_MAX = 30 + const val INCUBATION_TIME_MIN = 0 + const val INCUBATION_TIME_MAX = 1400 val BUFFER_INTENSITY_THRESHOLDS: Map>> = mapOf>>( "HCV-000-3001" to listOf( - listOf(24000, 24500), - listOf(21000, 24500), - listOf(21000, 24500), - listOf(21000, 24500), + listOf(20000, 25074), + listOf(20000, 24596), + listOf(20000, 26065), + listOf(20000, 27093), ), "HCV-000-3002" to listOf( - listOf(21000, 24500), - listOf(21000, 24500), - listOf(21000, 24500), - listOf(21000, 24500), + listOf(24500, 26250), + listOf(24500, 26250), + listOf(24500, 26250), + listOf(24500, 26250), ) ) } \ No newline at end of file diff --git a/app/src/main/java/com/example/hpostesting/presentation/hemocube/HemoCubeFragment.kt b/app/src/main/java/com/example/hpostesting/presentation/hemocube/HemoCubeFragment.kt index d392a37..bb2f5d9 100644 --- a/app/src/main/java/com/example/hpostesting/presentation/hemocube/HemoCubeFragment.kt +++ b/app/src/main/java/com/example/hpostesting/presentation/hemocube/HemoCubeFragment.kt @@ -521,14 +521,14 @@ class HemoCubeFragment : Fragment() { } } - if (!validationError) { +// if (!validationError) { activity?.runOnUiThread { binding.btnSubmit.visibility = View.VISIBLE binding.btnSubmit.isEnabled = true binding.btnSubmit.isClickable = true binding.clParent.setBackgroundColor(Color.parseColor("#edfffd")) } - } +// } } catch (e: Exception) { Toast.makeText( requireContext(),