Commit a638773
authored
[Xamarin.Android.Build.Task] Handle res-auto headerLayout (#3531)
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/969915
Certain android resource items can make use of the following
namespace
xmlns:app=""http://schemas.android.com/apk/res-auto""
this provides additional extension attributes which need
to be fixed up. Some examples are `actionLayout`, `rectLayout`
and `roundLayout`. The values for these attributes should
be lowercased as they refer to a `@layout` item.
It seems however that this list is always expanding. A new
item `headerLayout` seems to have appeared. Rather than handcoding
each of these items, the code here changes to check for `Layout`
in the attrbiute and will then lowercase the value. This should
protect us from future "additions", and help our customers since
they won't have to work around casing problems for attributes we
do not support.1 parent 9ee2d2b commit a638773
File tree
2 files changed
+32
-4
lines changed- src/Xamarin.Android.Build.Tasks
- Tests/Xamarin.Android.Build.Tests/Tasks
- Utilities
2 files changed
+32
-4
lines changedLines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
16 | 47 | | |
17 | 48 | | |
18 | 49 | | |
| |||
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
| 204 | + | |
208 | 205 | | |
209 | 206 | | |
210 | 207 | | |
| |||
0 commit comments