Commit 15269f6
authored
[One .NET] Do not preserve entire collection types (dotnet#5445)
Context: dotnet#5167
Context: dotnet#5206
Instead of preserving the `Android.Runtime.Java*` collection types
unconditionally, use the new dynamic dependency attributes from
7083eba.
`.apk` size impact on BuildReleaseArm64False test:
> lapkdiff -f -e dll$ before.apk after.apk
Size difference in bytes ([*1] apk1 only, [*2] apk2 only):
- 477 assemblies/Java.Interop.dll
- 603 assemblies/System.Collections.Concurrent.dll
- 1,388 assemblies/System.Private.CoreLib.dll
- 30,291 assemblies/Mono.Android.dll
Summary:
- 32,759 Assemblies -4.19% (of 781,837)
- 32,768 Package size difference -0.43% (of 7,645,409)1 parent 1b7d73b commit 15269f6
File tree
3 files changed
+11
-9
lines changed- src
- Microsoft.Android.Sdk.ILLink/PreserveLists
- Mono.Android.Export
- Mono.Android/Properties
3 files changed
+11
-9
lines changedLines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 19 | | |
29 | 20 | | |
30 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
406 | 407 | | |
407 | 408 | | |
408 | 409 | | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
409 | 419 | | |
410 | 420 | | |
411 | 421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
0 commit comments