Skip to content

Commit 4665242

Browse files
authored
Merge pull request #21556 from ajpinedam/chore/add.generators.skiamobile
chore: add generators skiamobile
2 parents c86db06 + 466eabd commit 4665242

File tree

8 files changed

+9
-10
lines changed

8 files changed

+9
-10
lines changed

src/Uno.UI.Runtime.Skia.Android/ApplicationActivity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
namespace Microsoft.UI.Xaml
3131
{
3232
[Activity(ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize | ConfigChanges.UiMode, WindowSoftInputMode = SoftInput.AdjustPan | SoftInput.StateHidden)]
33-
public class ApplicationActivity : Controls.NativePage
33+
public partial class ApplicationActivity : Controls.NativePage
3434
{
3535
private static UnoSKCanvasView? _skCanvasView;
3636
private static ClippedRelativeLayout? _nativeLayerHost;
@@ -450,7 +450,7 @@ public static string GetTypeAssemblyFullName(string type) =>
450450
public static string GetTypeAssemblyFullName(string type) => Type.GetType(type)?.Assembly.FullName!;
451451
#endif // !NET10_0_OR_GREATER
452452

453-
internal class ClippedRelativeLayout : RelativeLayout
453+
internal partial class ClippedRelativeLayout : RelativeLayout
454454
{
455455
private SKPath _path = new SKPath();
456456
private Path _androidPath = new Path();

src/Uno.UI.Runtime.Skia.Android/Rendering/UnoSKCanvasView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
namespace Uno.UI.Runtime.Skia.Android;
2424

25-
internal sealed class UnoSKCanvasView : GLSurfaceView
25+
internal sealed partial class UnoSKCanvasView : GLSurfaceView
2626
{
2727
private readonly SkiaRenderHelper.FpsHelper _fpsHelper = new();
2828
private SKPicture? _picture;

src/Uno.UI.Runtime.Skia.Android/Uno.UI.Runtime.Skia.Android.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<Nullable>enable</Nullable>
66
</PropertyGroup>
77

8+
<Import Project="../SourceGenerators/Uno.UI.SourceGenerators/Content/Uno.UI.SourceGenerators.props" />
89
<Import Project="../targetframework-override.props" />
910

1011
<PropertyGroup>

src/Uno.UI.Runtime.Skia.AppleUIKit/Devices/Input/TopViewLayer.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ namespace Uno.WinUI.Runtime.Skia.AppleUIKit.UI.Xaml;
1313
/// Input handling must be in a layer (compared to override RootViewController.TouchesXXX methods)
1414
/// in order to be able to properly get the multitouch events.
1515
/// </summary>
16-
[Register("TopViewLayer")]
17-
internal class TopViewLayer : UIView
16+
internal partial class TopViewLayer : UIView
1817
{
1918
#if __IOS__
2019
public TopViewLayer()

src/Uno.UI.Runtime.Skia.AppleUIKit/Native/NativeOverlayLayer.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111

1212
namespace Uno.WinUI.Runtime.Skia.AppleUIKit.UI.Xaml;
1313

14-
[Register("NativeOverlayLayer")]
15-
internal class NativeOverlayLayer : UIView
14+
internal partial class NativeOverlayLayer : UIView
1615
{
1716
public NativeOverlayLayer()
1817
{

src/Uno.UI.Runtime.Skia.AppleUIKit/Rendering/UnoSKMetalView.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818

1919
namespace Uno.UI.Runtime.Skia.AppleUIKit
2020
{
21-
[Register(nameof(UnoSKMetalView))]
22-
internal sealed class UnoSKMetalView : MTKView, IMTKViewDelegate
21+
internal sealed partial class UnoSKMetalView : MTKView, IMTKViewDelegate
2322
{
2423
private readonly SkiaRenderHelper.FpsHelper _fpsHelper = new();
2524
private readonly GRContext? _context;

src/Uno.UI.Runtime.Skia.AppleUIKit/UI/Xaml/Window/AppleUIKitWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
namespace Uno.UI.Runtime.Skia.AppleUIKit.UI.Xaml;
1414

15-
internal class AppleUIKitWindow : UIWindow
15+
internal partial class AppleUIKitWindow : UIWindow
1616
{
1717
internal event Action? FrameChanged;
1818

src/Uno.UI.Runtime.Skia.AppleUIKit/Uno.UI.Runtime.Skia.AppleUIKit.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<Nullable>enable</Nullable>
66
</PropertyGroup>
77

8+
<Import Project="../SourceGenerators/Uno.UI.SourceGenerators/Content/Uno.UI.SourceGenerators.props" />
89
<Import Project="../targetframework-override.props" />
910

1011
<PropertyGroup>

0 commit comments

Comments
 (0)