chromium/android_webview/tools/system_webview_shell/lint-baseline.xml

<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.7.0-alpha03" type="baseline" client="" dependencies="true" name="" variant="all" version="8.7.0-alpha03">

    <issue
        id="NewApi"
        message="Call requires API level 23 (current min is 21): `canGrant`"
        errorLine1="            if (!canGrant(webkitPermission)) {"
        errorLine2="                 ~~~~~~~~">
        <location
            file="../../android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserFragment.java"
            line="512"
            column="18"/>
    </issue>

    <issue
        id="RequiresFeature"
        message="`getInstance` should only be called if the feature `TRACING_CONTROLLER_BASIC_USAGE` is present; to check call `androidx.webkit.WebViewFeature#isFeatureSupported`"
        errorLine1="                TracingController tracingController = TracingController.getInstance();"
        errorLine2="                                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="../../android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java"
            line="226"
            column="55"/>
    </issue>

    <issue
        id="RequiresFeature"
        message="`setForceDark` should only be called if the feature `FORCE_DARK` is present; to check call `androidx.webkit.WebViewFeature#isFeatureSupported`"
        errorLine1="            WebSettingsCompat.setForceDark("
        errorLine2="            ^">
        <location
            file="../../android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java"
            line="249"
            column="13"/>
    </issue>

    <issue
        id="RequiresFeature"
        message="`setForceDark` should only be called if the feature `FORCE_DARK` is present; to check call `androidx.webkit.WebViewFeature#isFeatureSupported`"
        errorLine1="            WebSettingsCompat.setForceDark("
        errorLine2="            ^">
        <location
            file="../../android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java"
            line="254"
            column="13"/>
    </issue>

    <issue
        id="RequiresFeature"
        message="`setForceDark` should only be called if the feature `FORCE_DARK` is present; to check call `androidx.webkit.WebViewFeature#isFeatureSupported`"
        errorLine1="            WebSettingsCompat.setForceDark(mWebView.getSettings(), WebSettingsCompat.FORCE_DARK_ON);"
        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="../../android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewBrowserActivity.java"
            line="259"
            column="13"/>
    </issue>

    <issue
        id="RequiresFeature"
        message="`getInstance` should only be called if the feature `TRACING_CONTROLLER_BASIC_USAGE` is present; to check call `androidx.webkit.WebViewFeature#isFeatureSupported`"
        errorLine1="        final TracingController tracingController = TracingController.getInstance();"
        errorLine2="                                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="../../android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/WebViewTracingActivity.java"
            line="102"
            column="53"/>
    </issue>

    <issue
        id="UnclosedTrace"
        message="The `beginSection()` call is not always closed with a matching `endSection()` because the code in between may return early"
        errorLine1="        Trace.beginSection(startUpAndLoadUrlTraceTag);"
        errorLine2="              ~~~~~~~~~~~~">
        <location
            file="../../android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/TelemetryActivity.java"
            line="56"
            column="15"/>
    </issue>

    <issue
        id="UnclosedTrace"
        message="The `beginSection()` call is not always closed with a matching `endSection()` because the code in between may return early"
        errorLine1="        Trace.beginSection(loadUrlTraceTag);"
        errorLine2="              ~~~~~~~~~~~~">
        <location
            file="../../android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/TelemetryActivity.java"
            line="104"
            column="15"/>
    </issue>

    <issue
        id="UnclosedTrace"
        message="The `beginSection()` call is not always closed with a matching `endSection()` because the code in between may return early"
        errorLine1="        Trace.beginSection(placeholderTraceTag);"
        errorLine2="              ~~~~~~~~~~~~">
        <location
            file="../../android_webview/tools/system_webview_shell/apk/src/org/chromium/webview_shell/TelemetryActivity.java"
            line="112"
            column="15"/>
    </issue>

    <issue
        id="HardcodedDebugMode"
        message="Avoid hardcoding the debug mode; leaving it out allows debug and release builds to automatically assign one"
        errorLine1="  &lt;application android:icon=&quot;@drawable/ic_launcher&quot; android:label=&quot;@string/app_name&quot; android:theme=&quot;@style/ShellTheme&quot; android:enableOnBackInvokedCallback=&quot;true&quot; android:networkSecurityConfig=&quot;@xml/network_security_config&quot; android:debuggable=&quot;true&quot;>"
        errorLine2="                                                                                                                                                                                                                               ~~~~~~~~~~~~~~~~~~~~~~~~~">
        <location
            file="gen/android_webview/tools/system_webview_shell/system_webview_shell_apk__lint/AndroidManifest.xml"
            line="67"
            column="224"/>
    </issue>

    <issue
        id="IconMissingDensityFolder"
        message="Missing density variation folders in `../../android_webview/tools/system_webview_shell/apk/res`: drawable-hdpi, drawable-xhdpi, drawable-xxhdpi">
        <location
            file="../../android_webview/tools/system_webview_shell/apk/res"/>
    </issue>

</issues>