Lint Report: 5 warnings
Issue Types

Overview

Correctness
1warning UnusedAttribute: Attribute unused on older versions
1warning DiscouragedApi: Using discouraged APIs
Security
1warning DataExtractionRules: Missing data extraction rules
Performance
1warning ObsoleteSdkInt: Obsolete SDK_INT Version Check
Usability:Icons
1warning MonochromeLauncherIcon: Monochrome icon is not defined
Disabled Checks (40)

Attribute unused on older versions

../../src/main/AndroidManifest.xml:17: Attribute enableOnBackInvokedCallback is only used in API level 33 and higher (current min is 30)
 14             android:exported="true"
 15             android:screenOrientation="sensorLandscape"
 16             android:configChanges="orientation|screenSize|keyboardHidden"
 17             android:enableOnBackInvokedCallback="false"                                             
 18             android:windowSoftInputMode="adjustResize">
 19             <intent-filter>
 20                 <action android:name="android.intent.action.MAIN" />
UnusedAttribute Correctness Warning Priority 6/10

Using discouraged APIs

../../src/main/AndroidManifest.xml:15: Fixed screen orientations will be ignored in most cases, starting from Android 16. Android is moving toward a model where apps are expected to adapt to various orientations, display sizes, and aspect ratios.
 12         <activity
 13             android:name="sg.selfservice.bigbait.kitchen.MainActivity"
 14             android:exported="true"
 15             android:screenOrientation="sensorLandscape"                                             
 16             android:configChanges="orientation|screenSize|keyboardHidden"
 17             android:enableOnBackInvokedCallback="false"
 18             android:windowSoftInputMode="adjustResize">
DiscouragedApi Correctness Warning Priority 2/10

Missing data extraction rules

../../src/main/AndroidManifest.xml:9: The attribute android:allowBackup is deprecated from Android 12 and higher and may be removed in future versions. Consider adding the attribute android:dataExtractionRules specifying an @xml resource which configures cloud backups and device transfers on Android 12 and higher.
  6         android:icon="@mipmap/ic_launcher"
  7         android:roundIcon="@mipmap/ic_launcher"
  8         android:theme="@style/KitchenTheme"
  9         android:allowBackup="false"                                                                 
 10         android:usesCleartextTraffic="false"
 11         android:supportsRtl="true">
 12         <activity
DataExtractionRules Security Warning Priority 3/10

Obsolete SDK_INT Version Check

../../src/main/res/mipmap-anydpi-v26: This folder configuration (v26) is unnecessary; minSdkVersion is 30. Merge all the resources in this folder into mipmap-anydpi.
ObsoleteSdkInt Performance Warning Priority 6/10

Monochrome icon is not defined

../../src/main/res/mipmap-anydpi-v26/ic_launcher.xml:2: The application adaptive icon is missing a monochrome tag
 1 <?xml version="1.0" encoding="utf-8"?>
 2 <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">                          
 3     <background android:drawable="@color/icon_background" />
 4     <foreground android:drawable="@drawable/ic_kitchen" />
 5 </adaptive-icon>
MonochromeLauncherIcon Icons Usability Warning Priority 6/10

Disabled Checks

One or more issues were not run by lint, either because the check is not enabled by default, or because it was disabled with a command line flag or via one or more lint.xml configuration files in the project directories.

Suppressing Warnings and Errors

Lint errors can be suppressed in a variety of ways:

1. With a @SuppressLint annotation in the Java code
2. With a tools:ignore attribute in the XML file
3. With a //noinspection comment in the source code
4. With ignore flags specified in the build.gradle file, as explained below
5. With a lint.xml configuration file in the project
6. With a lint.xml configuration file passed to lint via the --config flag
7. With the --ignore flag passed to lint.

To suppress a lint warning with an annotation, add a @SuppressLint("id") annotation on the class, method or variable declaration closest to the warning instance you want to disable. The id can be one or more issue id's, such as "UnusedResources" or {"UnusedResources","UnusedIds"}, or it can be "all" to suppress all lint warnings in the given scope.

To suppress a lint warning with a comment, add a //noinspection id comment on the line before the statement with the error.

To suppress a lint warning in an XML file, add a tools:ignore="id" attribute on the element containing the error, or one of its surrounding elements. You also need to define the namespace for the tools prefix on the root element in your document, next to the xmlns:android declaration:
xmlns:tools="http://schemas.android.com/tools"

To suppress a lint warning in a build.gradle file, add a section like this:
android {
    lintOptions {
        disable 'TypographyFractions','TypographyQuotes'
    }
}

Here we specify a comma separated list of issue id's after the disable command. You can also use warning or error instead of disable to change the severity of issues.

To suppress lint warnings with a configuration XML file, create a file named lint.xml and place it at the root directory of the module in which it applies.

The format of the lint.xml file is something like the following:
<?xml version="1.0" encoding="UTF-8"?>
<lint>
    <!-- Ignore everything in the test source set -->
    <issue id="all">
        <ignore path="\*/test/\*" />
    </issue>

    <!-- Disable this given check in this project -->
    <issue id="IconMissingDensityFolder" severity="ignore" />

    <!-- Ignore the ObsoleteLayoutParam issue in the given files -->
    <issue id="ObsoleteLayoutParam">
        <ignore path="res/layout/activation.xml" />
        <ignore path="res/layout-xlarge/activation.xml" />
        <ignore regexp="(foo|bar)\.java" />
    </issue>

    <!-- Ignore the UselessLeaf issue in the given file -->
    <issue id="UselessLeaf">
        <ignore path="res/layout/main.xml" />
    </issue>

    <!-- Change the severity of hardcoded strings to "error" -->
    <issue id="HardcodedText" severity="error" />
</lint>

To suppress lint checks from the command line, pass the --ignore flag with a comma separated list of ids to be suppressed, such as:
$ lint --ignore UnusedResources,UselessLeaf /my/project/path

For more information, see https://developer.android.com/studio/write/lint.html#config