Fixed
Status Update
Comments
ac...@google.com <ac...@google.com>
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?
ga...@linecorp.com <ga...@linecorp.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.
tn...@google.com <tn...@google.com> #4
OK! And, I think, this should happen at the same time as the namespace
declaration is migrated from AndroidManifest.xml
?
Description
DESCRIBE THE ISSUE IN DETAIL:
android.nonFinalResIds
property will beAnd lint checker provides
NonConstantResourceId
rule to prepare behavior changes.But
NonConstantResourceId
rule does not warning about constant value assign from resource ids.STEPS TO REPRODUCE:
Expected Result :
When
android.nonFinalResIds
is enabled, kotlin compiler raised error.So, lint check result should be
Actual result :
NonConstantResourceId
rule does not show warning about constants value assign from resource Ids.ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
IMPORTANT: Please readhttps://developer.android.com/studio/report-bugs.html carefully and supply
all required information.
Studio Build: 2021.3.1 Version of Gradle Plugin: 7.3.1
Version of Gradle: 7.5
Version of Java: OpenJDK 11/17
OS: Any