-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #671 from unoplatform/dev/lapr/single-samplecalc
SimpleCalc Sample App - Single Project Migration
- Loading branch information
Showing
339 changed files
with
1,787 additions
and
6,170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally> | ||
|
||
<!-- | ||
Adding NoWarn to remove build warnings | ||
NU1507: Warning when there are multiple package sources when using CPM with no source mapping | ||
NETSDK1201: Warning that specifying RID won't create self containing app | ||
PRI257: Ignore default language (en) not being one of the included resources (eg en-us, en-uk) | ||
--> | ||
<NoWarn>$(NoWarn);NU1507;NETSDK1201;PRI257</NoWarn> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<UnoExtensionsVersion>4.1.14</UnoExtensionsVersion> | ||
<UnoToolkitVersion>6.0.18</UnoToolkitVersion> | ||
<UnoThemesVersion>5.0.13</UnoThemesVersion> | ||
<UnoCSharpMarkupVersion>5.2.13</UnoCSharpMarkupVersion> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<Project> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<Project ToolsVersion="15.0"> | ||
<!-- | ||
To update the version of Uno, you should instead update the Sdk version in the global.json file. | ||
See https://aka.platform.uno/using-uno-sdk for more information. | ||
--> | ||
<ItemGroup> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageVersion Include="coverlet.collector" Version="6.0.2" /> | ||
<PackageVersion Include="FluentAssertions" Version="6.12.0" /> | ||
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.9.0" /> | ||
<PackageVersion Include="NUnit" Version="4.1.0" /> | ||
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0" /> | ||
</ItemGroup> | ||
</Project> |
113 changes: 113 additions & 0 deletions
113
reference/SimpleCalc/CSharp-MVUX/SimpleCalculator-CSharp-MVUX.sln
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.2.32210.308 | ||
MinimumVisualStudioVersion = 15.0.26124.0 | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SimpleCalculator", "SimpleCalculator\SimpleCalculator.csproj", "{054215D9-1AEB-4AB7-956B-B083419F4166}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{BADA71DC-7FFD-4EDC-9F28-FB74AEADC713}" | ||
ProjectSection(SolutionItems) = preProject | ||
.gitignore = .gitignore | ||
Directory.Build.props = Directory.Build.props | ||
Directory.Build.targets = Directory.Build.targets | ||
Directory.Packages.props = Directory.Packages.props | ||
global.json = global.json | ||
EndProjectSection | ||
EndProject | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SimpleCalculator.Tests", "SimpleCalculator.Tests\SimpleCalculator.Tests.csproj", "{FF6373AF-4A90-40C0-87E8-07B0907425BD}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Debug|ARM = Debug|ARM | ||
Debug|ARM64 = Debug|ARM64 | ||
Debug|iPhone = Debug|iPhone | ||
Debug|iPhoneSimulator = Debug|iPhoneSimulator | ||
Debug|x64 = Debug|x64 | ||
Debug|x86 = Debug|x86 | ||
Release|Any CPU = Release|Any CPU | ||
Release|ARM = Release|ARM | ||
Release|ARM64 = Release|ARM64 | ||
Release|iPhone = Release|iPhone | ||
Release|iPhoneSimulator = Release|iPhoneSimulator | ||
Release|x64 = Release|x64 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|Any CPU.Deploy.0 = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|ARM.ActiveCfg = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|ARM.Build.0 = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|ARM.Deploy.0 = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|ARM64.ActiveCfg = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|ARM64.Build.0 = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|ARM64.Deploy.0 = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|iPhone.ActiveCfg = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|iPhone.Build.0 = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|iPhone.Deploy.0 = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|iPhoneSimulator.Deploy.0 = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|x64.ActiveCfg = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|x64.Build.0 = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|x64.Deploy.0 = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|x86.ActiveCfg = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|x86.Build.0 = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Debug|x86.Deploy.0 = Debug|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|Any CPU.Deploy.0 = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|ARM.ActiveCfg = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|ARM.Build.0 = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|ARM.Deploy.0 = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|ARM64.ActiveCfg = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|ARM64.Build.0 = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|ARM64.Deploy.0 = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|iPhone.ActiveCfg = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|iPhone.Build.0 = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|iPhone.Deploy.0 = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|iPhoneSimulator.Build.0 = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|iPhoneSimulator.Deploy.0 = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|x64.ActiveCfg = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|x64.Build.0 = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|x64.Deploy.0 = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|x86.ActiveCfg = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|x86.Build.0 = Release|Any CPU | ||
{054215D9-1AEB-4AB7-956B-B083419F4166}.Release|x86.Deploy.0 = Release|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Debug|ARM.ActiveCfg = Debug|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Debug|ARM.Build.0 = Debug|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Debug|ARM64.ActiveCfg = Debug|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Debug|ARM64.Build.0 = Debug|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Debug|iPhone.ActiveCfg = Debug|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Debug|iPhone.Build.0 = Debug|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Debug|x64.ActiveCfg = Debug|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Debug|x64.Build.0 = Debug|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Debug|x86.ActiveCfg = Debug|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Debug|x86.Build.0 = Debug|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Release|ARM.ActiveCfg = Release|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Release|ARM.Build.0 = Release|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Release|ARM64.ActiveCfg = Release|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Release|ARM64.Build.0 = Release|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Release|iPhone.ActiveCfg = Release|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Release|iPhone.Build.0 = Release|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Release|iPhoneSimulator.Build.0 = Release|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Release|x64.ActiveCfg = Release|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Release|x64.Build.0 = Release|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Release|x86.ActiveCfg = Release|Any CPU | ||
{FF6373AF-4A90-40C0-87E8-07B0907425BD}.Release|x86.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {9D26FDA9-5EF0-43F9-84AF-B0ADC8EA2AB4} | ||
EndGlobalSection | ||
EndGlobal |
1 change: 1 addition & 0 deletions
1
...ml/SimpleCalculator.Tests/GlobalUsings.cs → ...UX/SimpleCalculator.Tests/GlobalUsings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
global using FluentAssertions; | ||
global using SimpleCalculator; | ||
global using NUnit.Framework; |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<Application x:Class="SimpleCalculator.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | ||
</Application> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
reference/SimpleCalc/CSharp-MVUX/SimpleCalculator/GlobalUsings.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
global using System.Collections.Immutable; | ||
global using Microsoft.Extensions.DependencyInjection; | ||
global using Microsoft.Extensions.Logging; | ||
global using ApplicationExecutionState = Windows.ApplicationModel.Activation.ApplicationExecutionState; | ||
global using Color = Windows.UI.Color; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions
22
reference/SimpleCalc/CSharp-MVUX/SimpleCalculator/Platforms/Desktop/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using Uno.UI.Runtime.Skia; | ||
|
||
namespace SimpleCalculator; | ||
|
||
public class Program | ||
{ | ||
[STAThread] | ||
public static void Main(string[] args) | ||
{ | ||
App.InitializeLogging(); | ||
|
||
var host = SkiaHostBuilder.Create() | ||
.App(() => new App()) | ||
.UseX11() | ||
.UseLinuxFrameBuffer() | ||
.UseMacOS() | ||
.UseWindows() | ||
.Build(); | ||
|
||
host.Run(); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
1 change: 0 additions & 1 deletion
1
...ml/SimpleCalculator.Wasm/LinkerConfig.xml → ...or/Platforms/WebAssembly/LinkerConfig.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...M-CSharp/SimpleCalculator.Wasm/Program.cs → ...lculator/Platforms/WebAssembly/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.