Change all namespaces to `SDL` (from `SDL3`)

The only real issue with this is Android, as the `SDL3` namespace shadows
the `SDL.SDL3` static class.
This commit is contained in:
Susko3 2024-04-19 19:02:22 +02:00
parent 7ee4e91d60
commit 3d1b5059b6
12 changed files with 12 additions and 15 deletions

View File

@ -2,7 +2,7 @@
<PropertyGroup> <PropertyGroup>
<TargetFramework>net8.0-android</TargetFramework> <TargetFramework>net8.0-android</TargetFramework>
<SupportedOSPlatformVersion>21</SupportedOSPlatformVersion> <SupportedOSPlatformVersion>21</SupportedOSPlatformVersion>
<RootNamespace>SDL3.Android</RootNamespace> <RootNamespace>SDL.Android</RootNamespace>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup> </PropertyGroup>

View File

@ -3,7 +3,7 @@
using System; using System;
namespace SDL3.SourceGeneration namespace SDL.SourceGeneration
{ {
[Flags] [Flags]
public enum Changes public enum Changes

View File

@ -9,7 +9,7 @@ using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace SDL3.SourceGeneration namespace SDL.SourceGeneration
{ {
[Generator] [Generator]
public class FriendlyOverloadGenerator : ISourceGenerator public class FriendlyOverloadGenerator : ISourceGenerator

View File

@ -3,7 +3,7 @@
using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace SDL3.SourceGeneration namespace SDL.SourceGeneration
{ {
public record GeneratedMethod public record GeneratedMethod
{ {

View File

@ -7,7 +7,7 @@ using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace SDL3.SourceGeneration namespace SDL.SourceGeneration
{ {
public static class Helper public static class Helper
{ {

View File

@ -9,7 +9,7 @@
<EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules> <EnforceExtendedAnalyzerRules>true</EnforceExtendedAnalyzerRules>
<IsRoslynComponent>true</IsRoslynComponent> <IsRoslynComponent>true</IsRoslynComponent>
<RootNamespace>SDL3.SourceGeneration</RootNamespace> <RootNamespace>SDL.SourceGeneration</RootNamespace>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>

View File

@ -9,7 +9,7 @@ using Microsoft.CodeAnalysis;
using Microsoft.CodeAnalysis.CSharp; using Microsoft.CodeAnalysis.CSharp;
using Microsoft.CodeAnalysis.CSharp.Syntax; using Microsoft.CodeAnalysis.CSharp.Syntax;
namespace SDL3.SourceGeneration namespace SDL.SourceGeneration
{ {
public class UnfriendlyMethodFinder : ISyntaxReceiver public class UnfriendlyMethodFinder : ISyntaxReceiver
{ {

View File

@ -3,10 +3,9 @@
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using SDL;
using static SDL.SDL3; using static SDL.SDL3;
namespace SDL3.Tests namespace SDL.Tests
{ {
public sealed unsafe class MyWindow : IDisposable public sealed unsafe class MyWindow : IDisposable
{ {

View File

@ -5,7 +5,7 @@
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace SDL3.Tests namespace SDL.Tests
{ {
/// <summary> /// <summary>
/// Wrapper on <see cref="GCHandle" /> that supports the <see cref="IDisposable" /> pattern. /// Wrapper on <see cref="GCHandle" /> that supports the <see cref="IDisposable" /> pattern.

View File

@ -3,10 +3,9 @@
using System.Diagnostics; using System.Diagnostics;
using System.Text; using System.Text;
using SDL;
using static SDL.SDL3; using static SDL.SDL3;
namespace SDL3.Tests namespace SDL.Tests
{ {
public static class Program public static class Program
{ {

View File

@ -3,7 +3,7 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework> <TargetFramework>net8.0</TargetFramework>
<RootNamespace>SDL3.Tests</RootNamespace> <RootNamespace>SDL.Tests</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>

View File

@ -2,9 +2,8 @@
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using NUnit.Framework; using NUnit.Framework;
using SDL;
namespace SDL3.Tests namespace SDL.Tests
{ {
[TestFixture] [TestFixture]
public class TestUtf8String public class TestUtf8String