Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3f8e223f authored by Cole Faust's avatar Cole Faust
Browse files

Don't check project codename

project.minSdkVersion.codename is annotated @Nullable
in java, but here in kotlin code it's passed to
a non-null String. Soong is making a change that
will no longer pass the codename to android lint,
and cause it to have a null codename, and then
this checker would crash.

Checking the codename doesn't appear to be necessary
in this case, checking the featureLevel should be
enough. The difference between featureLevel and
apiLevel is that featureLevel will be apiLevel+1
if a codename is set, so it should already have the
codename logic built in.

Bug: 215567981
Test: m lint-check with aosp/2072628
Change-Id: I003390021f0badfea3a79c8cf87d089d65a58e34
parent cded73ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment