Fixed
Status Update
Comments
tn...@google.com <tn...@google.com>
tn...@google.com <tn...@google.com> #2
As I understand it, we need to migrate namespace definitions both from AndroidManifest.xml
and from implicit definitions from applicationId
/ testApplicationId
? Is that right? So an 8.0 project would have a
namespace <n>
testNamespace <tn>
where <n> is taken from AndroidManifest.xml
package
definitions if present, and applicationId
if not, and <tn>
is testApplicationId
if present and <n>.test
if not?
se...@google.com <se...@google.com> #3
Sorry for the confusion. AGP would change how it computes the namespace for the androidTest variant. All the Upgrade assistant would need to do is update the source code for the import of the R
class.
Description
I ran lint on a test project and got some API errors. It turns out that the code is properly checking for the SDK_INT level, but it stores this in an intermediate local variable.
Lint looks for SDK_INTs stored in fields and checked by utility methods, but not intermediate local variables.
Example: the "dynamicColor" variable inhttps://github.com/code-with-the-italians/bundel/blob/main/app/src/main/java/dev/sebastiano/bundel/ui/Theme.kt#L23