Commit 9377d62
committed
[build] r8 now builds on both Windows & MacOS
Context: http://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html
Overview of changes:
- Fixed tab characters, formatting, spacing
- To get `depot_tools`, we now just use the download on all
platforms--not using a submodule anymore
- Use the `UnzipDirectoryChildren` task from `xa-prep-tasks`, so
`r8.csproj` doesn't depend on `Xamarin.Android.Build.Tasks`
- `_BootstrapDepotTools` runs the `gclient` command, which *on first
run* downloads all dependencies required for `depot_tools`, such as
gradle. This was a hard requirement for Windows especially, since it
downloads python.
- Use the `SetEnvironmentVariable` task to configure `PATH`.
`depot_tools` has an odd requirement of being in `PATH`, but the
`EnvironmentVariables` property on the `<Exec />` task was not
sufficient. On Windows, the way `external\r8\tools\gradle.py`
invokes `.bat` files in `depot_tools`--I could not get things to
work unless doing it this way.
- Various targets for `depot_tools` use Inputs/Outputs so they aren't
running every time.
- Removed `depot_tools.tpnitems`, since it is no longer a submodule
and we don't redistribute it. Is that correct?
- Set `JAVA_HOME` for calls to `gradle.py`
- Removed extraneous log messages from the `<Proguard />` and `<R8 />`
tasks
- Added R8 usage to the `BuildApplicationWithSpacesInPath` test
- Should pass proper path for
`<R8 OutputDirectory="$(IntermediateOutputPath)android\bin" />`
`classes.dex` was missing from the APK!
- Updated tests related to D8/R8, to also verify `MonoRuntimeProvider`
is in the dex file1 parent 4e59a0a commit 9377d62
File tree
11 files changed
+115
-94
lines changed- Documentation/guides
- external
- src
- Mono.Android/Test
- Xamarin.Android.Build.Tasks
- Tasks
- Tests/Xamarin.Android.Build.Tests
- r8
- tests/Xamarin.Forms-Performance-Integration/Droid
11 files changed
+115
-94
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | 44 | | |
48 | 45 | | |
49 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
213 | 219 | | |
214 | 220 | | |
215 | 221 | | |
| |||
423 | 429 | | |
424 | 430 | | |
425 | 431 | | |
426 | | - | |
| 432 | + | |
427 | 433 | | |
428 | 434 | | |
429 | 435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| 127 | + | |
127 | 128 | | |
128 | 129 | | |
129 | 130 | | |
| |||
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 59 | | |
88 | 60 | | |
89 | 61 | | |
| |||
119 | 91 | | |
120 | 92 | | |
121 | 93 | | |
122 | | - | |
123 | 94 | | |
124 | 95 | | |
125 | 96 | | |
| |||
Lines changed: 15 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
671 | 671 | | |
672 | 672 | | |
673 | 673 | | |
674 | | - | |
| 674 | + | |
675 | 675 | | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
676 | 681 | | |
677 | 682 | | |
678 | 683 | | |
| |||
2141 | 2146 | | |
2142 | 2147 | | |
2143 | 2148 | | |
2144 | | - | |
| 2149 | + | |
2145 | 2150 | | |
2146 | 2151 | | |
2147 | 2152 | | |
2148 | 2153 | | |
2149 | 2154 | | |
| 2155 | + | |
2150 | 2156 | | |
2151 | 2157 | | |
2152 | 2158 | | |
| |||
2178 | 2184 | | |
2179 | 2185 | | |
2180 | 2186 | | |
2181 | | - | |
| 2187 | + | |
2182 | 2188 | | |
2183 | 2189 | | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
2184 | 2195 | | |
2185 | 2196 | | |
2186 | 2197 | | |
| |||
3124 | 3135 | | |
3125 | 3136 | | |
3126 | 3137 | | |
| 3138 | + | |
3127 | 3139 | | |
3128 | 3140 | | |
3129 | 3141 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2648 | 2648 | | |
2649 | 2649 | | |
2650 | 2650 | | |
2651 | | - | |
| 2651 | + | |
2652 | 2652 | | |
2653 | 2653 | | |
2654 | 2654 | | |
| |||
2665 | 2665 | | |
2666 | 2666 | | |
2667 | 2667 | | |
2668 | | - | |
| 2668 | + | |
2669 | 2669 | | |
2670 | 2670 | | |
2671 | | - | |
| 2671 | + | |
2672 | 2672 | | |
2673 | 2673 | | |
2674 | 2674 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | | - | |
9 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
10 | 26 | | |
11 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
12 | 31 | | |
13 | | - | |
14 | 32 | | |
15 | | - | |
| 33 | + | |
| 34 | + | |
16 | 35 | | |
17 | 36 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 37 | + | |
22 | 38 | | |
23 | | - | |
24 | | - | |
| 39 | + | |
| 40 | + | |
25 | 41 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 42 | | |
31 | 43 | | |
32 | | - | |
33 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
34 | 57 | | |
35 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
36 | 63 | | |
37 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
38 | 70 | | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 71 | + | |
47 | 72 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
54 | 96 | | |
55 | 97 | | |
56 | 98 | | |
57 | 99 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
61 | 103 | | |
62 | 104 | | |
63 | | - | |
64 | | - | |
65 | | - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
66 | 108 | | |
67 | 109 | | |
68 | 110 | | |
69 | 111 | | |
70 | 112 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
74 | 116 | | |
75 | 117 | | |
76 | 118 | | |
| |||
0 commit comments