Commit ce0eabb
committed
Copy styles for supported Android versions
Inside tns-android resources, there are values-v<API_LEVEL> directories. Currently we were copying only values-v21 in case the current project targets API_LEVEL 21. Instead we should copy it when the project targets API_LEVEL 21 or upper (in case there's no newer directory, for example values-v22).
For example:
* `$ tns platform add android --sdk 22` - should copy values and values-v21 in your platforms/android/res dir
* `$ tns platform add android --sdk 21` - should copy values and values-v21 in your platforms/android/res dir
* `$ tns platform add android --sdk MNC` - should copy values and values-v21 in your platforms/android/res dir
* `$ tns platform add android --sdk 17` - should copy values in your platforms/android/res dir1 parent c292e80 commit ce0eabb
1 file changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
111 | 125 | | |
112 | 126 | | |
113 | 127 | | |
| |||
0 commit comments