Status Update
Comments
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?
tn...@google.com <tn...@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.
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
?
tn...@google.com <tn...@google.com> #5
It's unrelated, but it is possible that we move 8.0 to also only declare the namespace into the DSL. I would make it a separate refactoring because they are not tied at all.
pv...@gmail.com <pv...@gmail.com> #6
I would consider first adding the right new value to models (as a new property) and then, to avoid Studio interpreting manifests and build configurations, just update to whatever the synced value of this new property is.
Description
1. Create a layout that refers to an attr style
<TextView xmlns:android="
android:id="@id/text1"
style="?android:attr/listSeparatorTextViewStyle" />
2. Run lint
RESULTS
Actual: Lint reports that layout_width and layout_height are missing.
Expected: Lint shouldn't report that layout_width and layout_height are missing, as these are provided by the style.
NOTES
Reproduced with Eclipse 4.2.1, ADT 21 preview 10, tools 21 preview 10