Skip to content

Commit a74fe4a

Browse files
authored
[One .NET] Do not always preserve Android.Runtime.CharSequence (#5363)
Context: #5167 The `Android.Runtime.CharSequence` type is not accessed via reflection. Allowing `CharSequence` to be linked allows unreferenced members to be removed by the linker (yay!), e.g. when comparing the `.apk` built from the `BuildReleaseArm64False` test: $ apkdiff before.apk after.apk … Type Android.Runtime.CharSequence - Method public static SIGERR ToLocalJniHandle (System.Collections.Generic.IEnumerable`1<char>) … The `Android.Runtime.CharSequence.ToLocalJniHandle()` is removed.
1 parent f58b96d commit a74fe4a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Microsoft.Android.Sdk.ILLink/PreserveLists/Mono.Android.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<assembly fullname="Mono.Android">
44
<type fullname="Android.Runtime.AndroidEnvironment" />
55
<type fullname="Android.Runtime.AnnotationAttribute" />
6-
<type fullname="Android.Runtime.CharSequence" />
76
<type fullname="Android.Runtime.ConstructorBuilder" />
87
<type fullname="Android.Runtime.GeneratedDummyHost" />
98
<type fullname="Android.Runtime.GeneratedEnumAttribute" />

0 commit comments

Comments
 (0)