Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using ObjCRuntime;
using UIKit;
using Microsoft.Maui.Controls;
using PreserveAttribute = Microsoft.Maui.Controls.Internals.PreserveAttribute;

namespace Microsoft.Maui.Controls.Platform.iOS;

Expand Down Expand Up @@ -33,7 +32,7 @@ public CustomPressGestureRecognizer(Action<UIGestureRecognizer> action)
/// </summary>
public UIEvent CurrentEvent => _currentEvent;

[Register("__UIGestureRecognizer")]
[Register("Microsoft_Maui_Controls_Platform_iOS_CustomPressGestureRecognizer_Callback")]
class Callback : Token
{
Action<UIGestureRecognizer> action;
Expand All @@ -44,7 +43,6 @@ internal Callback(Action<UIGestureRecognizer> action)
}

[Export("target:")]
[Preserve(Conditional = true)]
public void Activated(UIGestureRecognizer sender)
{
if (OperatingSystem.IsIOSVersionAtLeast(13))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,9 @@ public static void AssertWarnings(this List<WarningsPerFile> actualWarnings, Lis
Code = "IL3050",
Messages = new List<string>
{
"Microsoft.Android.Runtime.ManagedTypeManager.<GetInvokerTypeCore>g__MakeGenericType|4_1(Type,Type[]): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime.",
"Microsoft.Android.Runtime.AndroidReflectionJniValueManager.AndroidReflectionJniValueManager(): Using member 'Java.Interop.JniRuntime.ReflectionJniValueManager.ReflectionJniValueManager()' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. This JniValueManager implementation is not compatible with Native AOT. Use a different JniValueManager implementation that supports Native AOT.",
"Microsoft.Android.Runtime.ManagedTypeManager.ManagedTypeManager(): Using member 'Java.Interop.JniRuntime.ReflectionJniTypeManager.ReflectionJniTypeManager()' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. This JniTypeManager implementation is not compatible with Native AOT. Use a different JniTypeManager implementation that supports Native AOT.",
"Microsoft.Android.Runtime.ManagedTypeManager.<GetInvokerTypeCore>g__MakeGenericType|5_1(Type,Type[]): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime.",
"Android.Runtime.JNIEnv.MakeArrayType(Type): Using member 'System.Type.MakeArrayType()' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The code for an array of the specified type might not be available.",
"Android.Runtime.JNINativeWrapper.CreateDelegate(Delegate): Using member 'System.Reflection.Emit.DynamicMethod.DynamicMethod(String,Type,Type[],Type,Boolean)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Creating a DynamicMethod requires dynamic code.",
"Java.Interop.JavaConvert.<GetJniHandleConverter>g__MakeGenericType|2_0(Type,Type[]): Using member 'System.Type.MakeGenericType(Type[])' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. The native code for this instantiation might not be available at runtime.",
Expand Down
Loading