diff --git a/app/src/androidTest/java/com/paulrybitskyi/docskanner/ExampleInstrumentedTest.kt b/app/src/androidTest/java/com/paulrybitskyi/docskanner/ExampleInstrumentedTest.kt index d1b3853..fd9311a 100644 --- a/app/src/androidTest/java/com/paulrybitskyi/docskanner/ExampleInstrumentedTest.kt +++ b/app/src/androidTest/java/com/paulrybitskyi/docskanner/ExampleInstrumentedTest.kt @@ -1,13 +1,11 @@ package com.paulrybitskyi.docskanner -import androidx.test.platform.app.InstrumentationRegistry import androidx.test.ext.junit.runners.AndroidJUnit4 - +import androidx.test.platform.app.InstrumentationRegistry +import org.junit.Assert.assertEquals import org.junit.Test import org.junit.runner.RunWith -import org.junit.Assert.* - /** * Instrumented test, which will execute on an Android device. * diff --git a/app/src/test/java/com/paulrybitskyi/docskanner/ExampleUnitTest.kt b/app/src/test/java/com/paulrybitskyi/docskanner/ExampleUnitTest.kt index 5a9db6d..d48af5e 100644 --- a/app/src/test/java/com/paulrybitskyi/docskanner/ExampleUnitTest.kt +++ b/app/src/test/java/com/paulrybitskyi/docskanner/ExampleUnitTest.kt @@ -1,9 +1,8 @@ package com.paulrybitskyi.docskanner +import org.junit.Assert.assertEquals import org.junit.Test -import org.junit.Assert.* - /** * Example local unit test, which will execute on the development machine (host). * diff --git a/core/src/androidTest/java/com/paulrybitskyi/docskanner/core/ExampleInstrumentedTest.kt b/core/src/androidTest/java/com/paulrybitskyi/docskanner/core/ExampleInstrumentedTest.kt index 867b0b9..e4f2dde 100644 --- a/core/src/androidTest/java/com/paulrybitskyi/docskanner/core/ExampleInstrumentedTest.kt +++ b/core/src/androidTest/java/com/paulrybitskyi/docskanner/core/ExampleInstrumentedTest.kt @@ -16,14 +16,12 @@ package com.paulrybitskyi.docskanner.core -import androidx.test.platform.app.InstrumentationRegistry import androidx.test.ext.junit.runners.AndroidJUnit4 - +import androidx.test.platform.app.InstrumentationRegistry +import org.junit.Assert.* import org.junit.Test import org.junit.runner.RunWith -import org.junit.Assert.* - /** * Instrumented test, which will execute on an Android device. * diff --git a/core/src/test/java/com/paulrybitskyi/docskanner/core/ExampleUnitTest.kt b/core/src/test/java/com/paulrybitskyi/docskanner/core/ExampleUnitTest.kt index a920450..c70b22e 100644 --- a/core/src/test/java/com/paulrybitskyi/docskanner/core/ExampleUnitTest.kt +++ b/core/src/test/java/com/paulrybitskyi/docskanner/core/ExampleUnitTest.kt @@ -16,9 +16,8 @@ package com.paulrybitskyi.docskanner.core -import org.junit.Test - import org.junit.Assert.* +import org.junit.Test /** * Example local unit test, which will execute on the development machine (host). diff --git a/data/src/androidTest/java/com/paulrybitskyi/docskanner/data/ExampleInstrumentedTest.kt b/data/src/androidTest/java/com/paulrybitskyi/docskanner/data/ExampleInstrumentedTest.kt index c6d4002..b835be0 100644 --- a/data/src/androidTest/java/com/paulrybitskyi/docskanner/data/ExampleInstrumentedTest.kt +++ b/data/src/androidTest/java/com/paulrybitskyi/docskanner/data/ExampleInstrumentedTest.kt @@ -16,14 +16,12 @@ package com.paulrybitskyi.docskanner.data -import androidx.test.platform.app.InstrumentationRegistry import androidx.test.ext.junit.runners.AndroidJUnit4 - +import androidx.test.platform.app.InstrumentationRegistry +import org.junit.Assert.* import org.junit.Test import org.junit.runner.RunWith -import org.junit.Assert.* - /** * Instrumented test, which will execute on an Android device. * diff --git a/data/src/test/java/com/paulrybitskyi/docskanner/data/ExampleUnitTest.kt b/data/src/test/java/com/paulrybitskyi/docskanner/data/ExampleUnitTest.kt index 09acd43..b6dd999 100644 --- a/data/src/test/java/com/paulrybitskyi/docskanner/data/ExampleUnitTest.kt +++ b/data/src/test/java/com/paulrybitskyi/docskanner/data/ExampleUnitTest.kt @@ -16,9 +16,8 @@ package com.paulrybitskyi.docskanner.data -import org.junit.Test - import org.junit.Assert.* +import org.junit.Test /** * Example local unit test, which will execute on the development machine (host). diff --git a/domain/src/androidTest/java/com/paulrybitskyi/docskanner/domain/ExampleInstrumentedTest.kt b/domain/src/androidTest/java/com/paulrybitskyi/docskanner/domain/ExampleInstrumentedTest.kt index 4a54a72..766dbe2 100644 --- a/domain/src/androidTest/java/com/paulrybitskyi/docskanner/domain/ExampleInstrumentedTest.kt +++ b/domain/src/androidTest/java/com/paulrybitskyi/docskanner/domain/ExampleInstrumentedTest.kt @@ -16,14 +16,12 @@ package com.paulrybitskyi.docskanner.domain -import androidx.test.platform.app.InstrumentationRegistry import androidx.test.ext.junit.runners.AndroidJUnit4 - +import androidx.test.platform.app.InstrumentationRegistry +import org.junit.Assert.* import org.junit.Test import org.junit.runner.RunWith -import org.junit.Assert.* - /** * Instrumented test, which will execute on an Android device. * diff --git a/domain/src/test/java/com/paulrybitskyi/docskanner/domain/ExampleUnitTest.kt b/domain/src/test/java/com/paulrybitskyi/docskanner/domain/ExampleUnitTest.kt index 6d96edd..70eca7d 100644 --- a/domain/src/test/java/com/paulrybitskyi/docskanner/domain/ExampleUnitTest.kt +++ b/domain/src/test/java/com/paulrybitskyi/docskanner/domain/ExampleUnitTest.kt @@ -16,9 +16,8 @@ package com.paulrybitskyi.docskanner.domain -import org.junit.Test - import org.junit.Assert.* +import org.junit.Test /** * Example local unit test, which will execute on the development machine (host). diff --git a/image-processing/src/main/java/com/paulrybitskyi/docskanner/imageprocessing/detector/DocShapeDetector.kt b/image-processing/src/main/java/com/paulrybitskyi/docskanner/imageprocessing/detector/DocShapeDetector.kt index f68ab0d..51b8772 100644 --- a/image-processing/src/main/java/com/paulrybitskyi/docskanner/imageprocessing/detector/DocShapeDetector.kt +++ b/image-processing/src/main/java/com/paulrybitskyi/docskanner/imageprocessing/detector/DocShapeDetector.kt @@ -19,7 +19,6 @@ package com.paulrybitskyi.docskanner.imageprocessing.detector import android.graphics.Bitmap import android.graphics.PointF import com.paulrybitskyi.docskanner.imageprocessing.utils.* -import com.paulrybitskyi.docskanner.imageprocessing.utils.toMat import com.paulrybitskyi.docskanner.imageprocessing.utils.toPointF import org.opencv.core.* import org.opencv.imgproc.Imgproc diff --git a/image-processing/src/main/java/com/paulrybitskyi/docskanner/imageprocessing/di/ImageProcessingModule.kt b/image-processing/src/main/java/com/paulrybitskyi/docskanner/imageprocessing/di/ImageProcessingModule.kt index bacc503..a4ef777 100644 --- a/image-processing/src/main/java/com/paulrybitskyi/docskanner/imageprocessing/di/ImageProcessingModule.kt +++ b/image-processing/src/main/java/com/paulrybitskyi/docskanner/imageprocessing/di/ImageProcessingModule.kt @@ -22,8 +22,9 @@ import com.paulrybitskyi.docskanner.imageprocessing.crop.ImagePerspectiveTransfo import com.paulrybitskyi.docskanner.imageprocessing.crop.OpenCvImagePerspectiveTransformer import com.paulrybitskyi.docskanner.imageprocessing.crop.transform.CropTransformationFactory import com.paulrybitskyi.docskanner.imageprocessing.crop.transform.CropTransformationFactoryImpl -import com.paulrybitskyi.docskanner.imageprocessing.detector.* +import com.paulrybitskyi.docskanner.imageprocessing.detector.DocCoordsOrderer import com.paulrybitskyi.docskanner.imageprocessing.detector.DocCoordsOrdererImpl +import com.paulrybitskyi.docskanner.imageprocessing.detector.DocShapeDetector import com.paulrybitskyi.docskanner.imageprocessing.detector.OpenCvDocShapeDetector import com.paulrybitskyi.docskanner.imageprocessing.effects.ImageEffectTransformationFactory import com.paulrybitskyi.docskanner.imageprocessing.effects.ImageEffectTransformationFactoryImpl diff --git a/image-processing/src/main/java/com/paulrybitskyi/docskanner/imageprocessing/effects/ImageEffectApplier.kt b/image-processing/src/main/java/com/paulrybitskyi/docskanner/imageprocessing/effects/ImageEffectApplier.kt index dff1e9e..9cb0ab6 100644 --- a/image-processing/src/main/java/com/paulrybitskyi/docskanner/imageprocessing/effects/ImageEffectApplier.kt +++ b/image-processing/src/main/java/com/paulrybitskyi/docskanner/imageprocessing/effects/ImageEffectApplier.kt @@ -19,9 +19,6 @@ package com.paulrybitskyi.docskanner.imageprocessing.effects import android.graphics.Bitmap import com.paulrybitskyi.docskanner.imageprocessing.utils.* import com.paulrybitskyi.docskanner.imageprocessing.utils.applyGrayscaleEffect -import com.paulrybitskyi.docskanner.imageprocessing.utils.createCopy -import com.paulrybitskyi.docskanner.imageprocessing.utils.toBitmap -import com.paulrybitskyi.docskanner.imageprocessing.utils.toMat import org.opencv.core.CvType import org.opencv.core.Mat import org.opencv.imgproc.Imgproc diff --git a/image-processing/src/main/java/com/paulrybitskyi/docskanner/imageprocessing/effects/ImageEffectTransformationFactory.kt b/image-processing/src/main/java/com/paulrybitskyi/docskanner/imageprocessing/effects/ImageEffectTransformationFactory.kt index 3247a6b..61e7158 100644 --- a/image-processing/src/main/java/com/paulrybitskyi/docskanner/imageprocessing/effects/ImageEffectTransformationFactory.kt +++ b/image-processing/src/main/java/com/paulrybitskyi/docskanner/imageprocessing/effects/ImageEffectTransformationFactory.kt @@ -17,9 +17,9 @@ package com.paulrybitskyi.docskanner.imageprocessing.effects import com.paulrybitskyi.docskanner.imageloading.Transformation -import com.paulrybitskyi.docskanner.imageprocessing.effects.transforms.SimpleThresholdTransformation -import com.paulrybitskyi.docskanner.imageprocessing.effects.transforms.GrayscaleTransformation import com.paulrybitskyi.docskanner.imageprocessing.effects.transforms.AdaptiveThresholdTransformation +import com.paulrybitskyi.docskanner.imageprocessing.effects.transforms.GrayscaleTransformation +import com.paulrybitskyi.docskanner.imageprocessing.effects.transforms.SimpleThresholdTransformation import javax.inject.Inject import javax.inject.Provider