File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed
sources/Windowing/Windowing Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1
1
namespace Silk . NET . Windowing ;
2
2
3
- using System . Runtime . Versioning ;
4
-
5
3
/// <summary>
6
4
/// Represents an application running within a surface.
7
5
/// </summary>
@@ -22,7 +20,6 @@ static abstract void Initialize<TSurface>(TSurface surface)
22
20
/// Runs an application using the reference implementation of Silk.NET.Windowing.
23
21
/// </summary>
24
22
/// <typeparam name="T">The application.</typeparam>
25
- [ UnsupportedOSPlatform ( "android" ) ]
26
23
public static sealed partial void Run < T > ( )
27
24
where T : ISurfaceApplication ;
28
25
}
Original file line number Diff line number Diff line change
1
+ // Licensed to the .NET Foundation under one or more agreements.
2
+ // The .NET Foundation licenses this file to you under the MIT license.
3
+
4
+ #if ANDROID
5
+ using Org . Libsdl . App ;
6
+
7
+ namespace Silk . NET . Windowing . SDL3 ;
8
+
9
+ public abstract class SilkActivity < T > : SDLActivity
10
+ where T : ISurfaceApplication
11
+ {
12
+ protected override void Main ( ) => ISurfaceApplication . Run < T > ( ) ;
13
+ }
14
+ #endif
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFrameworks >net8.0;net9.0</TargetFrameworks >
4
+ <TargetFrameworks >net8.0;net9.0;net8.0-android;net9.0-android;net8.0-ios;net9.0-ios </TargetFrameworks >
5
5
<ImplicitUsings >enable</ImplicitUsings >
6
6
<Nullable >enable</Nullable >
7
7
<NoWarn >0067</NoWarn > <!-- TODO -->
You can’t perform that action at this time.
0 commit comments