Skip to content

Commit

Permalink
[illink] Do not always preserve CharSequence
Browse files Browse the repository at this point in the history
Part of dotnet#5167

Added dynamic dependency where needed.

Removed API from `BuildReleaseArm64False` test:

    Type Android.Runtime.CharSequence
      -             Method public static SIGERR ToLocalJniHandle (System.Collections.Generic.IEnumerable`1<char>)
  • Loading branch information
radekdoulik committed Dec 3, 2020
1 parent fd8aa17 commit f8eb0fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<assembly fullname="Mono.Android">
<type fullname="Android.Runtime.AndroidEnvironment" />
<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" />
Expand Down
1 change: 1 addition & 0 deletions src/Mono.Android.Export/CallbackCode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class DynamicInvokeTypeInfo
// NewArray<T>(T[])
static readonly MethodInfo jnienv_newarray = GetTArrayToIntPtr<int> (JNIEnv.NewArray<int>);
static readonly MethodInfo jnienv_getarray = GetIntPtrToTArray<int> (JNIEnv.GetArray<int>);
[DynamicDependency ("ToLocalJniHandle", "Android.Runtime.CharSequence", "Mono.Android")]
static readonly MethodInfo charsequence_tojnihandle = GetEnumerableCharToIntPtrMethodInfo (CharSequence.ToLocalJniHandle);
static readonly MethodInfo jnienv_tojnihandle = GetObjectToIntPtrMethodInfo (JNIEnv.ToLocalJniHandle);
static readonly MethodInfo jnienv_newstring = GetStringToIntPtrMethodInfo (JNIEnv.NewString);
Expand Down

0 comments on commit f8eb0fa

Please sign in to comment.