Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/azure-static-webapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ on:
jobs:
build_and_deploy_job:
env:
DIST_PATH: Uno.Gallery/bin/Release/net9.0-browserwasm/publish/wwwroot
DotnetVersion: '9.0.300'
DIST_PATH: Uno.Gallery/bin/Release/net10.0-browserwasm/publish/wwwroot
DotNetVersion: '10.0.100'

if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
Expand Down Expand Up @@ -56,14 +56,14 @@ jobs:
cache-name: cache-dotnet-install
with:
path: ${{ github.workspace }}/.dotnet
key: ${{ runner.os }}-build-dotnet-${{ env.DotnetVersion }}
key: ${{ runner.os }}-build-dotnet-${{ env.DotNetVersion }}
restore-keys: |
${{ runner.os }}-build-dotnet-${{ env.DotnetVersion }}
${{ runner.os }}-build-dotnet-${{ env.DotNetVersion }}

- name: Setup .NET
uses: actions/[email protected]
with:
dotnet-version: ${{ env.DotnetVersion }}
dotnet-version: ${{ env.DotNetVersion }}
include-prerelease: true

- run: |
Expand All @@ -79,7 +79,7 @@ jobs:

- run: |
cd Uno.Gallery
dotnet publish -c Release -f net9.0-browserwasm "/p:PackageVersion=${{ steps.nbgv.outputs.SemVer2 }}" /bl:../binlogs/output.binlog
dotnet publish -c Release -f net10.0-browserwasm "/p:PackageVersion=${{ steps.nbgv.outputs.SemVer2 }}" /bl:../binlogs/output.binlog
name: Build Gallery

- uses: actions/upload-artifact@v4
Expand Down
3 changes: 3 additions & 0 deletions .run/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# About the `.run` folder

This folder is present to add support for the [Rider IDE](https://aka.platform.uno/rider-getstarted). You can remove this folder safely if you're not using Rider.
19 changes: 19 additions & 0 deletions .run/Uno.Gallery (WebAssembly IIS Express).run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Uno.Gallery (WebAssembly IIS Express)" type="LaunchSettings" factoryName=".NET Launch Settings Profile">
<option name="LAUNCH_PROFILE_PROJECT_FILE_PATH" value="$PROJECT_DIR$/Uno.Gallery/Uno.Gallery.csproj" />
<option name="LAUNCH_PROFILE_TFM" value="net10.0-browserwasm" />
<option name="LAUNCH_PROFILE_NAME" value="Gallery (WebAssembly IIS Express)" />
<option name="USE_MONO" value="0" />
<option name="RUNTIME_ARGUMENTS" value="" />
<browser name="98ca6316-2f89-46d9-a9e5-fa9e2b0625b3" />
<option name="GENERATE_APPLICATIONHOST_CONFIG" value="1" />
<option name="SHOW_IIS_EXPRESS_OUTPUT" value="0" />
<option name="SEND_DEBUG_REQUEST" value="1" />
<option name="ADDITIONAL_IIS_EXPRESS_ARGUMENTS" value="" />
<option name="AUTO_ATTACH_CHILDREN" value="0" />
<option name="MIXED_MODE_DEBUG" value="0" />
<method v="2">
<option name="Build" />
</method>
</configuration>
</component>
19 changes: 19 additions & 0 deletions .run/Uno.Gallery (WebAssembly).run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Uno.Gallery (WebAssembly)" type="LaunchSettings" factoryName=".NET Launch Settings Profile">
<option name="LAUNCH_PROFILE_PROJECT_FILE_PATH" value="$PROJECT_DIR$/Uno.Gallery/Uno.Gallery.csproj" />
<option name="LAUNCH_PROFILE_TFM" value="net10.0-browserwasm" />
<option name="LAUNCH_PROFILE_NAME" value="Gallery (WebAssembly)" />
<option name="USE_MONO" value="0" />
<option name="RUNTIME_ARGUMENTS" value="" />
<browser name="98ca6316-2f89-46d9-a9e5-fa9e2b0625b3" />
<option name="GENERATE_APPLICATIONHOST_CONFIG" value="1" />
<option name="SHOW_IIS_EXPRESS_OUTPUT" value="0" />
<option name="SEND_DEBUG_REQUEST" value="1" />
<option name="ADDITIONAL_IIS_EXPRESS_ARGUMENTS" value="" />
<option name="AUTO_ATTACH_CHILDREN" value="0" />
<option name="MIXED_MODE_DEBUG" value="0" />
<method v="2">
<option name="Build" />
</method>
</configuration>
</component>
18 changes: 18 additions & 0 deletions .run/Uno.Gallery.run.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Uno.Gallery (Desktop)" type="LaunchSettings" factoryName=".NET Launch Settings Profile">
<option name="LAUNCH_PROFILE_PROJECT_FILE_PATH" value="$PROJECT_DIR$/Uno.Gallery/Uno.Gallery.csproj" />
<option name="LAUNCH_PROFILE_TFM" value="net10.0-desktop" />
<option name="LAUNCH_PROFILE_NAME" value="Gallery (Desktop)" />
<option name="USE_MONO" value="0" />
<option name="RUNTIME_ARGUMENTS" value="" />
<option name="GENERATE_APPLICATIONHOST_CONFIG" value="1" />
<option name="SHOW_IIS_EXPRESS_OUTPUT" value="0" />
<option name="SEND_DEBUG_REQUEST" value="1" />
<option name="ADDITIONAL_IIS_EXPRESS_ARGUMENTS" value="" />
<option name="AUTO_ATTACH_CHILDREN" value="0" />
<option name="MIXED_MODE_DEBUG" value="0" />
<method v="2">
<option name="Build" />
</method>
</configuration>
</component>
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"unoplatform.vscode"
],
}
77 changes: 77 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"version": "0.2.0",
"configurations": [
{
"name": "Uno Platform Mobile Debug",
"type": "Uno",
"request": "launch",
// any Uno* task will do, this is simply to satisfy vscode requirement when a launch.json is present
"preLaunchTask": "Uno: android | Debug | android-x64"
},
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"name": "Uno Platform WebAssembly Debug (Chrome)",
"type": "chrome",
"request": "launch",
"url": "http://localhost:5000",
"webRoot": "${workspaceFolder}/Uno.Gallery",
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"timeout": 30000,
"preLaunchTask": "build-wasm",
"server": {
"runtimeExecutable": "dotnet",
"program": "run",
"args": ["--no-build","-f","net10.0-browserwasm","--launch-profile", "Gallery (WebAssembly)"],
"outputCapture": "std",
"timeout": 30000,
"cwd": "${workspaceFolder}/Uno.Gallery"
}
},
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"name": "Uno Platform WebAssembly Debug (Edge)",
"type": "msedge",
"request": "launch",
"url": "http://localhost:5000",
"webRoot": "${workspaceFolder}/Uno.Gallery",
"inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}",
"timeout": 30000,
"preLaunchTask": "build-wasm",
"server": {
"runtimeExecutable": "dotnet",
"program": "run",
"args": ["--no-build","-f","net10.0-browserwasm","--launch-profile", "Gallery (WebAssembly)"],
"outputCapture": "std",
"timeout": 30000,
"cwd": "${workspaceFolder}/Uno.Gallery"
}
},
{
// Use IntelliSense to find out which attributes exist for C# debugging
// Use hover for the description of the existing attributes
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
"name": "Uno Platform Desktop Debug",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-desktop",
// If you have changed target frameworks, make sure to update the program path.
"program": "${workspaceFolder}/Uno.Gallery/bin/Debug/net10.0-desktop/Uno.Gallery.dll",
"args": [],
"launchSettingsProfile": "Gallery (Desktop)",
"env": {
"DOTNET_MODIFIABLE_ASSEMBLIES": "debug"
},
"cwd": "${workspaceFolder}/Uno.Gallery",
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
"console": "internalConsole",
"stopAtEntry": false
},
]
}
11 changes: 9 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{
"dotnet.defaultSolution": "Uno.Gallery.sln"
}
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.expand": false,
"explorer.fileNesting.patterns": {
"*.xaml": "$(capture).xaml.cs"
},
Comment thread
agneszitte marked this conversation as resolved.
"files.associations": {
"global.json": "jsonc"
}
Comment thread
agneszitte marked this conversation as resolved.
Comment thread
agneszitte marked this conversation as resolved.
}
57 changes: 57 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "build-wasm",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/Uno.Gallery/Uno.Gallery.csproj",
"/property:GenerateFullPaths=true",
"/property:TargetFramework=net10.0-browserwasm",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish-wasm",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/Uno.Gallery/Uno.Gallery.csproj",
"/property:GenerateFullPaths=true",
"/property:TargetFramework=net10.0-browserwasm",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "build-desktop",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/Uno.Gallery/Uno.Gallery.csproj",
"/property:GenerateFullPaths=true",
"/property:TargetFramework=net10.0-desktop",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "publish-desktop",
"command": "dotnet",
"type": "process",
"args": [
"publish",
"${workspaceFolder}/Uno.Gallery/Uno.Gallery.csproj",
"/property:GenerateFullPaths=true",
"/property:TargetFramework=net10.0-desktop",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
}
]
}
6 changes: 6 additions & 0 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
PRI257: Ignore default language (en) not being one of the included resources (eg en-us, en-uk)
-->
<NoWarn>$(NoWarn);NU1507;NETSDK1201;PRI257</NoWarn>

<!--
.NET 10 SDK defaults to runtime pack version 10.0.0, but dotnet10-transport feed
only contains servicing builds (10.0.1-servicing.*).
Runtime pack version override is now in before.Uno.Gallery.sln.targets for early evaluation.
-->
</PropertyGroup>

</Project>
2 changes: 1 addition & 1 deletion Uno.Gallery.UITests/Uno.Gallery.UITests.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<IsTestProject>true</IsTestProject>
</PropertyGroup>
<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions Uno.Gallery/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ private void OnLaunchedOrActivated()

if (isFirstLaunch)
{
#if __IOS__ && USE_UITESTS && !__MACCATALYST__ && !DEBUG
#if __IOS__ && USE_UITESTS && !DEBUG
// requires Xamarin Test Cloud Agent
Xamarin.Calabash.Start();
#endif

InitializeWindow(MainWindow);
}

// Ensure the current window is active
MainWindow.Activate();
}
Expand Down
12 changes: 12 additions & 0 deletions Uno.Gallery/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Project>
<!-- Import the root Directory.Build.props to preserve CPM and other settings -->
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />

<PropertyGroup>
<!-- .NET 10 SDK defaults to runtime pack version 10.0.0, but dotnet10-transport feed
only contains servicing builds. The MicrosoftNETCoreAppRuntimeVersion property
is set in the root Directory.Build.props and should apply to all frameworks. -->
<SelfContained>true</SelfContained>
<DisableImplicitFrameworkReferences>false</DisableImplicitFrameworkReferences>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- App Sandbox (required for Mac App Store distribution) -->
<key>com.apple.security.app-sandbox</key>
<true/>

<!-- Network access (for web content, APIs, etc.) -->
<key>com.apple.security.network.client</key>
<true/>

<!-- Disable library validation (allows loading of unsigned dylibs from Uno/Skia) -->
<key>com.apple.security.cs.disable-library-validation</key>
<true/>
</dict>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,10 @@
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>UIDeviceFamily</key>
<array>
<integer>2</integer>
</array>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>This app requires location for the Geolocator sample to work. The data is not shared.</string>
<key>NSMotionUsageDescription</key>
<string>This app requires motion tracking for the Pedometer sample to work.</string>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>XSAppIconAssets</key>
<string>Assets.xcassets/icon.appiconset</string>
<key>UIAppFonts</key>
Expand All @@ -38,5 +26,7 @@
<false/>
<key>LSApplicationCategoryType</key>
<string>public.app-category.utilities</string>
<key>LSMinimumSystemVersion</key>
<string>15.0</string>
</dict>
</plist>
25 changes: 0 additions & 25 deletions Uno.Gallery/Platforms/MacCatalyst/Main.maccatalyst.cs

This file was deleted.

Loading
Loading