From dfbf4b272bf38f168369b7e1e701af0e829032c9 Mon Sep 17 00:00:00 2001 From: Salman Alshamrani Date: Wed, 11 Dec 2024 04:53:02 -0500 Subject: [PATCH] Name it `Program` and make it non-top-level to appease CFS --- SampleGame.iOS/Main.cs | 7 ------- SampleGame.iOS/Program.cs | 15 +++++++++++++++ .../template-empty/TemplateGame.iOS/Main.cs | 4 ---- .../template-empty/TemplateGame.iOS/Program.cs | 16 ++++++++++++++++ .../template-flappy/FlappyDon.iOS/Main.cs | 4 ---- .../template-flappy/FlappyDon.iOS/Program.cs | 16 ++++++++++++++++ osu.Framework.Tests.iOS/Main.cs | 7 ------- osu.Framework.Tests.iOS/Program.cs | 15 +++++++++++++++ 8 files changed, 62 insertions(+), 22 deletions(-) delete mode 100644 SampleGame.iOS/Main.cs create mode 100644 SampleGame.iOS/Program.cs delete mode 100644 osu.Framework.Templates/templates/template-empty/TemplateGame.iOS/Main.cs create mode 100644 osu.Framework.Templates/templates/template-empty/TemplateGame.iOS/Program.cs delete mode 100644 osu.Framework.Templates/templates/template-flappy/FlappyDon.iOS/Main.cs create mode 100644 osu.Framework.Templates/templates/template-flappy/FlappyDon.iOS/Program.cs delete mode 100644 osu.Framework.Tests.iOS/Main.cs create mode 100644 osu.Framework.Tests.iOS/Program.cs diff --git a/SampleGame.iOS/Main.cs b/SampleGame.iOS/Main.cs deleted file mode 100644 index 1ea3a5900..000000000 --- a/SampleGame.iOS/Main.cs +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. -// See the LICENCE file in the repository root for full licence text. - -using SampleGame.iOS; -using UIKit; - -UIApplication.Main(args, null, typeof(AppDelegate)); diff --git a/SampleGame.iOS/Program.cs b/SampleGame.iOS/Program.cs new file mode 100644 index 000000000..b5dbf419e --- /dev/null +++ b/SampleGame.iOS/Program.cs @@ -0,0 +1,15 @@ +// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. +// See the LICENCE file in the repository root for full licence text. + +using UIKit; + +namespace SampleGame.iOS +{ + public static class Program + { + public static void Main(string[] args) + { + UIApplication.Main(args, null, typeof(AppDelegate)); + } + } +} diff --git a/osu.Framework.Templates/templates/template-empty/TemplateGame.iOS/Main.cs b/osu.Framework.Templates/templates/template-empty/TemplateGame.iOS/Main.cs deleted file mode 100644 index dde4fe059..000000000 --- a/osu.Framework.Templates/templates/template-empty/TemplateGame.iOS/Main.cs +++ /dev/null @@ -1,4 +0,0 @@ -using TemplateGame.iOS; -using UIKit; - -UIApplication.Main(args, null, typeof(AppDelegate)); diff --git a/osu.Framework.Templates/templates/template-empty/TemplateGame.iOS/Program.cs b/osu.Framework.Templates/templates/template-empty/TemplateGame.iOS/Program.cs new file mode 100644 index 000000000..66bdcb5ce --- /dev/null +++ b/osu.Framework.Templates/templates/template-empty/TemplateGame.iOS/Program.cs @@ -0,0 +1,16 @@ +using UIKit; + +namespace TemplateGame.iOS +{ + /// + /// + public static class Program + { + /// + /// + public static void Main(string[] args) + { + UIApplication.Main(args, null, typeof(AppDelegate)); + } + } +} diff --git a/osu.Framework.Templates/templates/template-flappy/FlappyDon.iOS/Main.cs b/osu.Framework.Templates/templates/template-flappy/FlappyDon.iOS/Main.cs deleted file mode 100644 index a3620d860..000000000 --- a/osu.Framework.Templates/templates/template-flappy/FlappyDon.iOS/Main.cs +++ /dev/null @@ -1,4 +0,0 @@ -using FlappyDon.iOS; -using UIKit; - -UIApplication.Main(args, null, typeof(AppDelegate)); diff --git a/osu.Framework.Templates/templates/template-flappy/FlappyDon.iOS/Program.cs b/osu.Framework.Templates/templates/template-flappy/FlappyDon.iOS/Program.cs new file mode 100644 index 000000000..b7e7de184 --- /dev/null +++ b/osu.Framework.Templates/templates/template-flappy/FlappyDon.iOS/Program.cs @@ -0,0 +1,16 @@ +using UIKit; + +namespace FlappyDon.iOS +{ + /// + /// + public static class Program + { + /// + /// + public static void Main(string[] args) + { + UIApplication.Main(args, null, typeof(AppDelegate)); + } + } +} diff --git a/osu.Framework.Tests.iOS/Main.cs b/osu.Framework.Tests.iOS/Main.cs deleted file mode 100644 index d8bb8495b..000000000 --- a/osu.Framework.Tests.iOS/Main.cs +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. -// See the LICENCE file in the repository root for full licence text. - -using osu.Framework.Tests; -using UIKit; - -UIApplication.Main(args, null, typeof(AppDelegate)); diff --git a/osu.Framework.Tests.iOS/Program.cs b/osu.Framework.Tests.iOS/Program.cs new file mode 100644 index 000000000..717b5e161 --- /dev/null +++ b/osu.Framework.Tests.iOS/Program.cs @@ -0,0 +1,15 @@ +// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. +// See the LICENCE file in the repository root for full licence text. + +using UIKit; + +namespace osu.Framework.Tests +{ + public static class Program + { + public static void Main(string[] args) + { + UIApplication.Main(args, null, typeof(AppDelegate)); + } + } +}