Skip to content

Commit

Permalink
[One .NET] Do not always preserve Android.Runtime.Extensions (#5365)
Browse files Browse the repository at this point in the history
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
	…
  • Loading branch information
radekdoulik authored Dec 4, 2020
1 parent 481b94a commit f58b96d
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<type fullname="Android.Runtime.AnnotationAttribute" />
<type fullname="Android.Runtime.CharSequence" />
<type fullname="Android.Runtime.ConstructorBuilder" />
<type fullname="Android.Runtime.Extensions" />
<type fullname="Android.Runtime.GeneratedDummyHost" />
<type fullname="Android.Runtime.GeneratedEnumAttribute" />
<type fullname="Android.Runtime.IJavaObject" />
Expand Down

0 comments on commit f58b96d

Please sign in to comment.