Skip to content

Commit 01a12c0

Browse files
MartinZikmundclaude
andcommitted
Add license headers to Uno head platform files
The new Uno.Sdk head platform entry-point files (Desktop/WebAssembly/ Android/iOS) were missing the standard .NET Foundation license header. Consumers that enforce IDE0073 (file header required) as an error — like CommunityToolkit/Windows — fail to build the Uno head without them. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent ed352f7 commit 01a12c0

10 files changed

Lines changed: 50 additions & 10 deletions

File tree

ProjectHeads/AllComponents/Uno/Platforms/Android/Main.Android.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
// See the LICENSE file in the project root for more information.
4+
15
using Android.App;
26
using Android.Runtime;
37

@@ -16,4 +20,4 @@ public Application(IntPtr javaReference, JniHandleOwnership transfer)
1620
: base(() => new CommunityToolkit.App.Shared.App(), javaReference, transfer)
1721
{
1822
}
19-
}
23+
}

ProjectHeads/AllComponents/Uno/Platforms/Android/MainActivity.Android.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
// See the LICENSE file in the project root for more information.
4+
15
using Android.App;
26
using Android.Content.PM;
37
using Android.OS;
@@ -13,4 +17,4 @@ namespace CommunityToolkit.App.Uno;
1317
)]
1418
public class MainActivity : Microsoft.UI.Xaml.ApplicationActivity
1519
{
16-
}
20+
}

ProjectHeads/AllComponents/Uno/Platforms/Desktop/Program.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
// See the LICENSE file in the project root for more information.
4+
15
using Uno.UI.Hosting;
26
using CommunityToolkit.App.Shared;
37

@@ -16,4 +20,4 @@ public static void Main(string[] args)
1620

1721
host.Run();
1822
}
19-
}
23+
}

ProjectHeads/AllComponents/Uno/Platforms/WebAssembly/Program.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
// See the LICENSE file in the project root for more information.
4+
15
using Uno.UI.Hosting;
26
using CommunityToolkit.App.Shared;
37

@@ -12,4 +16,4 @@ public static async Task Main(string[] args)
1216

1317
await host.RunAsync();
1418
}
15-
}
19+
}

ProjectHeads/AllComponents/Uno/Platforms/iOS/Main.iOS.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
// See the LICENSE file in the project root for more information.
4+
15
using Uno.UI.Hosting;
26
using CommunityToolkit.App.Shared;
37

@@ -14,4 +18,4 @@ public static void Main(string[] args)
1418

1519
host.Run();
1620
}
17-
}
21+
}

ProjectHeads/SingleComponent/Uno/Platforms/Android/Main.Android.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
// See the LICENSE file in the project root for more information.
4+
15
using Android.App;
26
using Android.Runtime;
37

@@ -16,4 +20,4 @@ public Application(IntPtr javaReference, JniHandleOwnership transfer)
1620
: base(() => new CommunityToolkit.App.Shared.App(), javaReference, transfer)
1721
{
1822
}
19-
}
23+
}

ProjectHeads/SingleComponent/Uno/Platforms/Android/MainActivity.Android.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
// See the LICENSE file in the project root for more information.
4+
15
using Android.App;
26
using Android.Content.PM;
37
using Android.OS;
@@ -13,4 +17,4 @@ namespace CommunityToolkit.App.Uno;
1317
)]
1418
public class MainActivity : Microsoft.UI.Xaml.ApplicationActivity
1519
{
16-
}
20+
}

ProjectHeads/SingleComponent/Uno/Platforms/Desktop/Program.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
// See the LICENSE file in the project root for more information.
4+
15
using Uno.UI.Hosting;
26
using CommunityToolkit.App.Shared;
37

@@ -16,4 +20,4 @@ public static void Main(string[] args)
1620

1721
host.Run();
1822
}
19-
}
23+
}

ProjectHeads/SingleComponent/Uno/Platforms/WebAssembly/Program.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
// See the LICENSE file in the project root for more information.
4+
15
using Uno.UI.Hosting;
26
using CommunityToolkit.App.Shared;
37

@@ -12,4 +16,4 @@ public static async Task Main(string[] args)
1216

1317
await host.RunAsync();
1418
}
15-
}
19+
}

ProjectHeads/SingleComponent/Uno/Platforms/iOS/Main.iOS.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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+
// See the LICENSE file in the project root for more information.
4+
15
using Uno.UI.Hosting;
26
using CommunityToolkit.App.Shared;
37

@@ -14,4 +18,4 @@ public static void Main(string[] args)
1418

1519
host.Run();
1620
}
17-
}
21+
}

0 commit comments

Comments
 (0)