Skip to content

Commit f58b96d

Browse files
authored
[One .NET] Do not always preserve Android.Runtime.Extensions (#5365)
Context: #5167 The `Android.Runtime.Extensions` type is not accessed via reflection. It *is* preserved by the linker when needed, e.g.: $ illinkanalyzer -r Android.Runtime.Extensions linker-dependencies.xml.gz … --- Method:TResult Android.Runtime.Extensions::JavaCast(Android.Runtime.IJavaObject) dependencies --- Dependency #1 Method:TResult Android.Runtime.Extensions::JavaCast(Android.Runtime.IJavaObject) | MethodSpec:TResult Android.Runtime.Extensions::JavaCast<T>(Android.Runtime.IJavaObject) [1 deps] | Method:T Android.App.Activity::FindViewById(System.Int32) [1 deps] | MethodSpec:!!0 Android.App.Activity::FindViewById<Android.Widget.Button>(System.Int32) [1 deps] | Method:System.Void UnnamedProject.MainActivity::OnCreate(Android.OS.Bundle) [2 deps] | Assembly:UnnamedProject, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null [1 deps] | Other:Copy …
1 parent 481b94a commit f58b96d

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

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<type fullname="Android.Runtime.AnnotationAttribute" />
66
<type fullname="Android.Runtime.CharSequence" />
77
<type fullname="Android.Runtime.ConstructorBuilder" />
8-
<type fullname="Android.Runtime.Extensions" />
98
<type fullname="Android.Runtime.GeneratedDummyHost" />
109
<type fullname="Android.Runtime.GeneratedEnumAttribute" />
1110
<type fullname="Android.Runtime.IJavaObject" />

0 commit comments

Comments
 (0)