-
Notifications
You must be signed in to change notification settings - Fork 515
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into protocol-static-members
- Loading branch information
Showing
8 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
msbuild/Xamarin.Localization.MSBuild/Properties/AssemblyInfo.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
using System.Reflection; | ||
using System.Runtime.CompilerServices; | ||
|
||
[assembly: AssemblyCompanyAttribute ("Microsoft Corp.")] | ||
[assembly: AssemblyFileVersionAttribute (VersionConstants.XamarinIOSVersion)] | ||
[assembly: AssemblyInformationalVersionAttribute (VersionConstants.XamarinIOSVersion + "." + VersionConstants.NuGetPrereleaseIdentifier + "+" + VersionConstants.NuGetBuildMetadata)] | ||
[assembly: AssemblyProductAttribute ("Xamarin.Localization.MSBuild")] | ||
[assembly: AssemblyTitleAttribute ("Xamarin.Localization.MSBuild")] | ||
[assembly: AssemblyVersionAttribute (VersionConstants.XamarinIOSVersion)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#nullable enable | ||
|
||
using System; | ||
using System.ComponentModel; | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
using ObjCRuntime; | ||
using Foundation; | ||
|
||
namespace GameController { | ||
|
||
#if !XAMCORE_5_0 | ||
// The GCMouse doesn't conform to NSCoding/NSSecureCoding, but it probably did in an early beta, which is why we declared it as such. | ||
public partial class GCMouse : INSCoding, INSSecureCoding { | ||
[BindingImpl (BindingImplOptions.Optimizable)] | ||
[EditorBrowsable (EditorBrowsableState.Never)] | ||
public GCMouse (NSCoder coder) : base (NSObjectFlag.Empty) | ||
{ | ||
if (IsDirectBinding) { | ||
InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:"); | ||
} else { | ||
InitializeHandle (global::ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("initWithCoder:"), coder.Handle), "initWithCoder:"); | ||
} | ||
} | ||
|
||
#if NET | ||
[SupportedOSPlatform ("ios14.0")] | ||
[SupportedOSPlatform ("macos")] | ||
[SupportedOSPlatform ("tvos14.0")] | ||
[SupportedOSPlatform ("maccatalyst")] | ||
#endif | ||
[BindingImpl (BindingImplOptions.Optimizable)] | ||
[EditorBrowsable (EditorBrowsableState.Never)] | ||
public virtual void EncodeTo (NSCoder encoder) | ||
{ | ||
var encoder__handle__ = encoder!.GetNonNullHandle (nameof (encoder)); | ||
#if NET | ||
if (IsDirectBinding) { | ||
global::ObjCRuntime.Messaging.void_objc_msgSend_NativeHandle (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__); | ||
} else { | ||
global::ObjCRuntime.Messaging.void_objc_msgSendSuper_NativeHandle (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__); | ||
} | ||
#else | ||
if (IsDirectBinding) { | ||
global::ObjCRuntime.Messaging.void_objc_msgSend_IntPtr (this.Handle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__); | ||
} else { | ||
global::ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr (this.SuperHandle, Selector.GetHandle ("encodeWithCoder:"), encoder__handle__); | ||
} | ||
#endif | ||
} | ||
} | ||
#endif // !XAMCORE_5_0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters