Merge "Prepare for @RequiresApi class retention" into main
This commit is contained in:
commit
b19fd5414b
4 changed files with 27 additions and 5 deletions
|
|
@ -1,6 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<issues format="6" by="lint 8.4.0-alpha01" type="baseline" client="" dependencies="true" name="" variant="all" version="8.4.0-alpha01">
|
||||
|
||||
<issue
|
||||
id="NewApi"
|
||||
message="Call requires API level 33 (current min is 30): `getUidRule`"
|
||||
errorLine1=" return BpfNetMapsReader.getUidRule(sUidOwnerMap, childChain, uid);"
|
||||
errorLine2=" ~~~~~~~~~~">
|
||||
<location
|
||||
file="packages/modules/Connectivity/service/src/com/android/server/BpfNetMaps.java"
|
||||
line="643"
|
||||
column="33"/>
|
||||
</issue>
|
||||
|
||||
<issue
|
||||
id="NewApi"
|
||||
message="Call requires API level 31 (current min is 30): `BpfBitmap`"
|
||||
|
|
|
|||
|
|
@ -248,7 +248,7 @@ java_library {
|
|||
"//apex_available:platform",
|
||||
],
|
||||
lint: {
|
||||
strict_updatability_linting: true,
|
||||
baseline_filename: "lint-baseline.xml",
|
||||
error_checks: ["NewApi"],
|
||||
},
|
||||
}
|
||||
|
|
|
|||
15
staticlibs/lint-baseline.xml
Normal file
15
staticlibs/lint-baseline.xml
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<issues format="6" by="lint 8.4.0-alpha04" type="baseline" client="" dependencies="true" name="" variant="all" version="8.4.0-alpha04">
|
||||
|
||||
<issue
|
||||
id="NewApi"
|
||||
message="Call requires API level 31 (current min is 30): `makeNetlinkSocketAddress`"
|
||||
errorLine1=" Os.bind(fd, makeNetlinkSocketAddress(0, mBindGroups));"
|
||||
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
|
||||
<location
|
||||
file="packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/ip/NetlinkMonitor.java"
|
||||
line="111"
|
||||
column="25"/>
|
||||
</issue>
|
||||
|
||||
</issues>
|
||||
|
|
@ -38,7 +38,6 @@ android_library {
|
|||
"//packages/modules/NetworkStack/tests/integration",
|
||||
],
|
||||
lint: {
|
||||
strict_updatability_linting: true,
|
||||
test: true,
|
||||
},
|
||||
}
|
||||
|
|
@ -56,7 +55,4 @@ android_test {
|
|||
],
|
||||
jarjar_rules: "jarjar-rules.txt",
|
||||
test_suites: ["device-tests"],
|
||||
lint: {
|
||||
strict_updatability_linting: true,
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue