Open PatrykMis opened 2 years ago
May be the following warnings should be fixed first:
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\FullScreenViewActivity.kt: (77, 107): Parameter 'which' is never used, could be renamed to _
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\FullScreenViewActivity.kt: (81, 106): Parameter 'which' is never used, could be renamed to _
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\FullScreenViewActivity.kt: (137, 87): Parameter 'which' is never used, could be renamed to _
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\GalleryGridActivity.kt: (11, 27): 'PreferenceManager' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\GalleryGridActivity.kt: (162, 23): 'PreferenceManager' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\GalleryGridActivity.kt: (162, 41): 'getDefaultSharedPreferences(Context!): SharedPreferences!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\GalleryGridActivity.kt: (182, 107): Parameter 'which' is never used, could be renamed to _
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\GalleryGridActivity.kt: (186, 106): Parameter 'which' is never used, could be renamed to _
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (13, 25): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (14, 25): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (19, 27): 'PreferenceManager' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (56, 33): 'PictureCallback' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (56, 50): 'PreviewCallback' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (85, 26): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (112, 23): 'PreferenceManager' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (112, 41): 'getDefaultSharedPreferences(Context!): SharedPreferences!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (190, 30): 'getter for parameters: Camera.Parameters!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (191, 17): 'setter for flashMode: String!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (191, 45): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (191, 52): 'Parameters' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (191, 63): 'FLASH_MODE_TORCH: String' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (191, 85): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (191, 92): 'Parameters' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (191, 103): 'FLASH_MODE_OFF: String' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (192, 20): 'setter for parameters: Camera.Parameters!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (223, 24): 'setType(Int): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (223, 46): 'SURFACE_TYPE_PUSH_BUFFERS: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (362, 30): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (362, 37): 'Size' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (365, 27): 'getter for parameters: Camera.Parameters!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (365, 38): 'getter for supportedPreviewSizes: (Mutable)List<Camera.Size!>!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (367, 31): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (367, 38): 'Size' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (372, 25): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (372, 32): 'Size' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (373, 20): 'lock(): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (375, 23): 'width: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (376, 69): 'width: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (376, 85): 'height: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (377, 34): 'width: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (383, 37): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (383, 44): 'Size' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (386, 27): 'getter for parameters: Camera.Parameters!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (386, 38): 'getter for supportedPictureSizes: (Mutable)List<Camera.Size!>!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (389, 55): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (389, 62): 'Size' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (392, 28): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (392, 35): 'Size' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (393, 33): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (393, 40): 'Size' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (395, 34): 'width: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (395, 54): 'height: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (396, 61): 'width: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (396, 77): 'height: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (397, 38): 'width: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (397, 48): 'height: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (408, 32): 'equals(Any?): Boolean' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (410, 42): 'width: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (410, 75): 'height: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (420, 31): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (420, 38): 'getNumberOfCameras(): Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (424, 24): 'constructor CameraInfo()' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (424, 24): 'CameraInfo' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (425, 13): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (425, 20): 'getCameraInfo(Int, Camera.CameraInfo!): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (426, 22): 'facing: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (426, 32): 'CameraInfo' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (426, 43): 'CAMERA_FACING_BACK: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (437, 20): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (437, 27): 'Parameters' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (437, 47): 'getter for parameters: Camera.Parameters!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (441, 24): 'setAutoFocusMoveCallback(Camera.AutoFocusMoveCallback!): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (448, 19): 'setter for focusMode: String!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (448, 31): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (448, 38): 'Parameters' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (448, 49): 'FOCUS_MODE_CONTINUOUS_PICTURE: String' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (450, 40): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (450, 47): 'Area' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (451, 29): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (451, 36): 'constructor Area(Rect!, Int)' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (451, 36): 'Area' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (453, 19): 'setter for focusAreas: (Mutable)List<Camera.Area!>!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (454, 19): 'setter for meteringAreas: (Mutable)List<Camera.Area!>!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (455, 20): 'setter for parameters: Camera.Parameters!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (466, 13): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (466, 20): 'open(Int): Camera!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (466, 38): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (472, 20): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (472, 27): 'Parameters' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (473, 24): 'getParameters(): Camera.Parameters!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (475, 15): 'setPreviewSize(Int, Int): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (475, 38): 'width: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (475, 51): 'height: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (476, 34): 'width: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (476, 58): 'height: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (516, 20): 'equals(Any?): Boolean' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (517, 19): 'setPictureSize(Int, Int): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (517, 41): 'width: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (517, 55): 'height: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (518, 70): 'width: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (518, 91): 'height: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (522, 19): 'setter for flashMode: String!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (522, 47): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (522, 54): 'Parameters' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (522, 65): 'FLASH_MODE_TORCH: String' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (522, 87): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (522, 94): 'Parameters' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (522, 105): 'FLASH_MODE_OFF: String' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (524, 16): 'setParameters(Camera.Parameters!): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (527, 20): 'setDisplayOrientation(Int): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (529, 20): 'setDisplayOrientation(Int): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (549, 20): 'stopPreview(): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (553, 20): 'setPreviewDisplay(SurfaceHolder!): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (554, 20): 'startPreview(): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (555, 20): 'setPreviewCallback(Camera.PreviewCallback!): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (562, 16): 'stopPreview(): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (563, 16): 'setPreviewCallback(Camera.PreviewCallback!): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (564, 16): 'release(): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (568, 58): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (569, 34): 'getter for parameters: Camera.Parameters!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (569, 45): 'getter for previewSize: Camera.Size!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (570, 69): 'width: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (570, 95): 'height: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (574, 44): 'width: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (574, 74): 'height: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (576, 44): 'width: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (576, 74): 'height: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (600, 20): 'takePicture(Camera.ShutterCallback!, Camera.PictureCallback!, Camera.PictureCallback!): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (606, 58): 'Camera' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (609, 34): 'getter for parameters: Camera.Parameters!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (609, 45): 'getter for pictureSize: Camera.Size!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (610, 69): 'width: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (610, 95): 'height: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (611, 36): 'width: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (611, 66): 'height: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (665, 43): 'getExternalStorageDirectory(): File!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (732, 33): 'getExternalStorageDirectory(): File!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (769, 92): Parameter 'which' is never used, could be renamed to _
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (774, 91): Parameter 'which' is never used, could be renamed to _
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerActivity.kt: (779, 93): Parameter 'which' is never used, could be renamed to _
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerApplication.kt: (4, 27): 'PreferenceManager' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerApplication.kt: (38, 27): 'PreferenceManager' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\OpenNoteScannerApplication.kt: (38, 45): 'getDefaultSharedPreferences(Context!): SharedPreferences!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsActivity.kt: (4, 27): 'Preference' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsActivity.kt: (5, 27): 'Preference' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsActivity.kt: (5, 38): 'OnPreferenceClickListener' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsActivity.kt: (6, 27): 'PreferenceCategory' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsActivity.kt: (16, 18): 'getter for fragmentManager: FragmentManager!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsActivity.kt: (17, 21): 'beginTransaction(): FragmentTransaction!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsActivity.kt: (19, 12): 'replace(Int, Fragment!): FragmentTransaction!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsActivity.kt: (20, 12): 'commit(): Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsActivity.kt: (25, 34): 'findPreference(CharSequence!): Preference!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsActivity.kt: (26, 25): 'setter for onPreferenceClickListener: Preference.OnPreferenceClickListener!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsActivity.kt: (26, 53): 'OnPreferenceClickListener((Preference!) -> Boolean): Preference.OnPreferenceClickListener' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsActivity.kt: (26, 81): Parameter 'preference' is never used, could be renamed to _
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsActivity.kt: (26, 93): 'Preference' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsActivity.kt: (32, 33): 'findPreference(CharSequence!): Preference!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsActivity.kt: (32, 75): 'PreferenceCategory' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsActivity.kt: (33, 30): 'findPreference(CharSequence!): Preference!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsActivity.kt: (35, 28): 'removePreference(Preference!): Boolean' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (11, 26): 'constructor PreferenceFragment()' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (11, 26): 'PreferenceFragment' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (13, 15): 'onCreate(Bundle?): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (14, 9): 'addPreferencesFromResource(Int): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (15, 9): 'getter for preferenceScreen: PreferenceScreen!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (15, 26): 'getter for sharedPreferences: SharedPreferences!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (19, 15): 'onResume(): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (20, 32): 'getter for preferenceScreen: PreferenceScreen!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (23, 48): 'PreferenceScreen' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (24, 34): 'getter for preferenceCount: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (25, 37): 'getPreference(Int): Preference!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (26, 31): 'PreferenceGroup' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (27, 46): 'getter for preferenceCount: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (28, 49): 'getPreference(Int): Preference!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (29, 61): 'getter for key: String!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (32, 57): 'getter for key: String!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (38, 26): 'findPreference(CharSequence!): Preference!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (41, 46): 'Preference' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (43, 27): 'ListPreference' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (45, 28): 'setter for summary: CharSequence!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (45, 53): 'getter for entry: CharSequence!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (48, 27): 'EditTextPreference' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (49, 31): 'getter for preferenceManager: PreferenceManager!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (49, 49): 'getter for sharedPreferences: SharedPreferences!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (50, 24): 'setSummary(CharSequence!): Unit' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\SettingsFragment.kt: (52, 27): 'PreferenceScreen' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\CustomOpenCVLoader.kt: (34, 13): Variable 'pm' is never used
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\CustomOpenCVLoader.kt: (51, 27): Parameter 'Version' is never used
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\CustomOpenCVLoader.kt: (73, 106): 'INSTALL_NON_MARKET_APPS: String' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\CustomOpenCVLoader.kt: (92, 61): 'getExternalStorageDirectory(): File!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\CustomOpenCVLoader.kt: (107, 105): Parameter 'which1' is never used, could be renamed to _
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\CustomOpenCVLoader.kt: (121, 100): Parameter 'which' is never used, could be renamed to _
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\CustomOpenCVLoader.kt: (133, 104): Parameter 'which' is never used, could be renamed to _
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\CustomOpenCVLoader.kt: (163, 44): Type mismatch: inferred type is String? but String was expected
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\CustomOpenCVLoader.kt: (169, 63): 'ACTION_INSTALL_PACKAGE: String' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\PdfHelper.kt: (5, 27): 'PreferenceManager' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\PdfHelper.kt: (33, 33): 'PreferenceManager' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\PdfHelper.kt: (33, 51): 'getDefaultSharedPreferences(Context!): SharedPreferences!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\PdfHelper.kt: (35, 29): 'getExternalStorageDirectory(): File!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (11, 27): 'PreferenceManager' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (24, 50): 'PreferenceManager' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (24, 68): 'getDefaultSharedPreferences(Context!): SharedPreferences!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (33, 33): 'getExternalStorageDirectory(): File!' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (40, 29): Type mismatch: inferred type is Array<(out) File!>? but Array<(out) File!> was expected
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (43, 21): Unsafe use of a nullable receiver of type Array<(out) File!>?
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (46, 31): Unsafe use of a nullable receiver of type Array<(out) File!>?
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (49, 40): Unsafe use of a nullable receiver of type Array<(out) File!>?
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (70, 55): 'toLowerCase(Locale): String' is deprecated. Use lowercase() instead.
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (86, 35): 'getter for width: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (87, 35): 'getter for height: Int' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (137, 44): Type mismatch: inferred type is String? but String was expected
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (138, 44): Type mismatch: inferred type is String? but CharSequence was expected
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (146, 31): Variable 'bm' initializer is redundant
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (182, 48): 'DATA: String' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (189, 45): 'DATA: String' is deprecated. Deprecated in Java
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (198, 33): Variable 'app_installed' initializer is redundant
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (200, 46): Type mismatch: inferred type is String? but String was expected
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\helpers\Utils.kt: (202, 17): Condition 'label != null' is always 'true'
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\views\TagEditorFragment.kt: (46, 44): Parameter 'v' is never used, could be renamed to _
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\views\TagEditorFragment.kt: (65, 34): Type mismatch: inferred type is String? but String was expected
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\views\TagEditorFragment.kt: (71, 31): Unsafe use of a nullable receiver of type String?
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\views\TagEditorFragment.kt: (78, 34): Type mismatch: inferred type is String? but String was expected
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\views\TagEditorFragment.kt: (84, 37): Unsafe use of a nullable receiver of type String?
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\views\TagEditorFragment.kt: (85, 17): Unsafe use of a nullable receiver of type String?
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\views\TagEditorFragment.kt: (86, 44): Unsafe use of a nullable receiver of type String?
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\views\TagEditorFragment.kt: (87, 17): Unsafe use of a nullable receiver of type String?
w: C:\OpenNoteScanner\app\src\main\java\com\todobom\opennotescanner\views\TagEditorFragment.kt: (115, 9): 'setter for retainInstance: Boolean' is deprecated. Deprecated in Java
Steps to reproduce
in
app/build.gradle
change compileSdkVersion to at least 30 and run./gradlew build
or./gradlew assembleDebug assembleRelease
.Expected behaviour
"Build successful".
Actual behaviour
"Build failed", errors above.
Would you like to work on the issue?
Yes of course, but it's out of my knowledge.