Commit 4d719e1
Merge the desugar globals classes into the final APK in a standalone dex shard.
This treats it similarly to the Java 8 legacy dex. Adding the globals during dexmerging was incorrect. It attempted to merge the globals into each shard. The shards are carefully crafted by the DexFileSplitter to avoid going over dex method limits. This led to build failures where we exceeded the limits. It also meant we were merging the globals into every shard instead of just once per APK.
A nice side effect is that this removes the dependency on Bazel 7.4.0+ since we do not need the additional parameter in the android_common.create_dex_merger_actions call.
PiperOrigin-RevId: 691179644
Change-Id: Idd994c1a59286febbfd4398d1e1cd5721198793d1 parent f0de7b9 commit 4d719e1
2 files changed
+16
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
406 | 406 | | |
407 | 407 | | |
408 | 408 | | |
409 | | - | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
410 | 414 | | |
411 | 415 | | |
412 | 416 | | |
413 | | - | |
| 417 | + | |
414 | 418 | | |
415 | 419 | | |
416 | 420 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
193 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
200 | | - | |
201 | | - | |
202 | 201 | | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | 202 | | |
209 | 203 | | |
210 | 204 | | |
| |||
379 | 373 | | |
380 | 374 | | |
381 | 375 | | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
| 376 | + | |
388 | 377 | | |
389 | 378 | | |
390 | | - | |
| 379 | + | |
391 | 380 | | |
392 | | - | |
| 381 | + | |
393 | 382 | | |
394 | 383 | | |
395 | 384 | | |
396 | 385 | | |
397 | | - | |
| 386 | + | |
398 | 387 | | |
399 | 388 | | |
400 | | - | |
401 | 389 | | |
402 | | - | |
| 390 | + | |
| 391 | + | |
403 | 392 | | |
404 | 393 | | |
405 | 394 | | |
| |||
842 | 831 | | |
843 | 832 | | |
844 | 833 | | |
845 | | - | |
| 834 | + | |
846 | 835 | | |
847 | 836 | | |
848 | 837 | | |
| |||
0 commit comments