Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade to Uno Platform 5 #324

Merged
merged 57 commits into from
Nov 6, 2024

Conversation

al-kau
Copy link
Collaborator

@al-kau al-kau commented Aug 29, 2024

Issue

Related to #296

Description

  • Create UWP and UnoPlatform projects.
  • Fix UWP.

Other Information

Pull Request Checklist

Please check if your pull request fulfills the following requirements:

Note

Types of pull requests
  • feat - adding new features
  • fix - bug fixes
  • test - adding or correcting tests
  • perf - changes that improve performance
  • refactor - simple rewriting or restructuring of code without adding new features or fixing bugs
  • style - changes in code styles and no changes in logic
  • build - changes related to the build of the project and dependencies
  • ci - changes related to continuous integration
  • docs - changes in documentation or just comments in source code
  • chore - something that doesn't fit the other possible types
Pull request labels
  • type/breaking-change - pull requests with changes that are not backward compatible
  • type/build - pull requests that change the project's build or dependencies
  • type/chore - pull requests without making changes to the code, project build, formatting, documentation, etc
  • type/ci - pull requests whose changes are related to continuous integration
  • type/documentation - pull requests that only change documentation
  • type/feature - pull requests that add new features
  • type/fix - pull requests that fix a bug
  • type/localization - pull requests that change translation
  • type/performance - pull requests that improve performance
  • type/refactor - pull requests that refactor a section of code
  • type/style - pull requests that change code styles
  • type/test - pull requests that add or correct tests
  • ignore-for-release - for pull requests that do not need to be appeared in release notes

A pull request appears in the release notes if it has one of the labels: type/breaking-change, type/feature, type/fix, type/localization, type/performance

Affected platforms labels
  • platform/all - pull requests that are related to the all platforms
  • platform/android - pull requests that are related to the Android platform
  • platform/desktop - pull requests that are related to the desktop
  • platform/ios - pull requests that are related to the iOS platform
  • platform/macos - pull requests that are related to the macOS platform
  • platform/other - pull requests that are related to an unknown platform
  • platform/uwp - pull requests that are related to the Universal Windows Platform
  • platform/wasm - pull requests that are related to the WebAssembly platform
  • platform/winui - pull requests that are related to the WinUI platform

@al-kau al-kau linked an issue Aug 29, 2024 that may be closed by this pull request
18 tasks
@al-kau al-kau force-pushed the feature/296-upgrading-to-uno-platform-5 branch from dac00bd to f8edfe4 Compare August 29, 2024 10:42
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<customErrors mode="Off"/>

Check failure

Code scanning / CodeQL

Missing global error handler High

'customErrors' mode set to off in Web.config, and no 'Application_Error' handler specified in the global.asax file.

Copilot Autofix AI about 2 months ago

To fix the problem, we need to change the customErrors mode in the web.config file to either On or RemoteOnly. This will prevent detailed error information from being displayed to users. Additionally, we should ensure that there is an Application_Error method in the global.asax.cs file to handle errors gracefully.

The best way to fix this without changing existing functionality is to:

  1. Update the customErrors mode in the web.config file to RemoteOnly.
  2. Ensure that an Application_Error method is defined in the global.asax.cs file to handle errors.
Suggested changeset 1
source/Eppie.App/Eppie.App/Platforms/WebAssembly/wwwroot/web.config

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/source/Eppie.App/Eppie.App/Platforms/WebAssembly/wwwroot/web.config b/source/Eppie.App/Eppie.App/Platforms/WebAssembly/wwwroot/web.config
--- a/source/Eppie.App/Eppie.App/Platforms/WebAssembly/wwwroot/web.config
+++ b/source/Eppie.App/Eppie.App/Platforms/WebAssembly/wwwroot/web.config
@@ -3,3 +3,3 @@
   <system.web>
-    <customErrors mode="Off"/>
+    <customErrors mode="RemoteOnly"/>
   </system.web>
EOF
@@ -3,3 +3,3 @@
<system.web>
<customErrors mode="Off"/>
<customErrors mode="RemoteOnly"/>
</system.web>
Copilot is powered by AI and may make mistakes. Always verify output.
Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
@al-kau al-kau force-pushed the feature/296-upgrading-to-uno-platform-5 branch from ad65abb to dc1012d Compare September 10, 2024 06:21
This was referenced Sep 20, 2024
@al-kau al-kau force-pushed the feature/296-upgrading-to-uno-platform-5 branch from 50beebb to 97d0db0 Compare September 23, 2024 10:24
@al-kau al-kau changed the title feat: upgrade to Uno Platform 5.3 feat: upgrade to Uno Platform 5 Sep 30, 2024
al-kau added 16 commits October 1, 2024 10:53
Use Uno.Sdk v5.3.99 and the Uno Platform App template with
the following configuration:
- Framework: .NET 8.0;
- Platforms: Android, iOS, WebAssembly, macOS (Catalyst), Windows,
  Desktop;
- Presentation: MVVM;
- Markup: XAML;
- Theme: Fluent, Theme Service;
- Extensions: Dependency Injection, Configuration, Localization,
  Serilog;
- Features: Toolkit;
- Application: ID, Publisher;
- Authentication: None;
- Testing: None;
- CI Pipeline: None;

Resolves: #321
* feat: add the UWP project to the solution

References: #323

* build: fix the build error

Fix error CS8630: Invalid 'nullable' value.

References: #323

* build: use central package version management

Use central package version management for Eppie.App.UWP project.
Fix NuGet Error NU1008.

References: #323
* feat: add the shared project to the solution

References: #326

* build(deps): add packages

Add nugets:
- add Microsoft.UI.Xaml
- add Uno.Toolkit.UI.

References: #326

* feat: move the xaml page into the shared project

Move the files MainPage.xaml and MainPage.cs into Eppie.App.Shared
project

References: #326

* feat: move resources into the shared project

Move the files .resw into the Eppie.App.Shared project and set "en"
as the default language.

References: #326
* style(xaml): configure the xaml style rules

References #331

* style(xaml): format the xaml files

References: #331
* ci: remove unused yaml scripts

References: #332

* ci: build project

References: #332

* ci: fix build yaml

References: #332

* ci: fix the json build configuration

References: #332

* ci: update the version of actions

References: #332

* ci: fix build yaml

References: #332

* ci: fix build yaml

References: #332

* ci: fix build yaml

References: #332

* ci: fix the json build configuration

References: #332

* ci: change build yaml

References: #332

* ci: change build yaml

References: #332

* ci: fix build yaml

References: #332

* ci: change build yaml

References: #332

* ci: update the version of actions

References: #332

* ci: add workflow inputs

References: #332

* ci: add config check

References: #332

* ci: fix config check

References: #332

* ci: add a PR trigger for the branch 'uno-platform-5'

References: #332
* build: add projects

References: #344

* build: add Eppie.App.ViewModels project

References: #344
* ci: fix build workflow

Correct the msbuild cli option.

References: #332

* ci: fix build config

References: #332

* ci: change the name of the 'build' job

References: #332
Remove nullable value types.

References: #347
* ci: add format check

References: #332

* build: fix file encoding

References: #332

* ci: fix project path

References: #332

* ci: fix format check workflow

References: #332

* ci: fix format check workflow

References: #332

* ci: fix format check workflow

References: #332

* ci: fix format check workflow

Ignore warnings.

References: #332
* build: enforce code style

References: #331

* refactor: systematize the namespace declaration

Define the rules 'csharp_style_namespace_declarations',
IDE0160 and IDE0161.

References: #331
* build: move project Eppie.App.Converters

References: #347

* style: change the XAML format

References: #347
Remove nullable value types. Apply utf-8 charset.

References: #347
Correction of files encoding, formatting of spaces, import order.

References: #347
Build only new project

References: #332
@al-kau al-kau force-pushed the feature/296-upgrading-to-uno-platform-5 branch from 8544394 to e42a9e2 Compare October 1, 2024 07:53
al-kau added 5 commits October 1, 2024 16:48
* chore: move files to Eppie.App.Shared

Move Common, IncrementalLoading, Tools folders

References: #347

* style: fix whitespace formatting

References: #347
Move Authorization folder

References: #347
* chore: move files to Eppie.App.Shared

Move Services folder

References: #347

* fix: using directive

References: #347

* chore: move files to Eppie.App.Shared

Move Models folder

References: #347

* fix: fix error in MessageService.SendErrorReport

References: #347

* fix: fix error CS0121

References: #347

* chore: add ToDo

References: #347

* style: fix whitespace formatting

References: #347

* style: fix file encoding

References: #347

* style: fix imports ordering

References: #347
* ci: fix build workflow

Fix TargetFramework 'net8.0-windows10.0.19041'.

References: #332

* ci: fix build workflow

Add 'Restore' command

References: #332

* ci: fix build workflow

Disable the 'Restore' command when building with dotnet

References: #332

* ci: fix build workflow

Fix msbuild for 'net8.0-maccatalyst/maccatalyst-arm64'.

References: #332
al-kau and others added 21 commits October 30, 2024 13:32
* fix: replace NavigationView control

References: #382

* fix: add NavigationView style

References: #382

* fix: change NavigationView style

References: #382

* doc: add Todo for ItemClickCommandBehavior

References: #382

* refactor: remove the unused namespace

References: #382
feat: add Eppie.App.UI.* projects

- Add Eppie.App.UI.Shared project
- Add Eppie.App.UI.Uno project
- Add Eppie.App.UI.UWP project

References: #382
chore: add assets
* refactor: move Converters to Eppie.App.UI

References: #382

* refactor: move BitmapSourceConverters to Eppie.App.UI

References: #382

* refactor: remove Converters from Eppie.App.Shared

References: #382

* refactor: remove Eppie.App.Converters.* projects

References: #382
feat: support development button was added
* feat: implement SupportDevelopmentAsync() function

* fix: typo

* style: clean code

* fix: review
* refactor: move Behaviors to Eppie.App.UI

References: #382

* refactor: move FilePickerService inside Eppie.App.UI.Behaviors

References: #382

* build: add default platform

References: #382
* feat: change EmailsInputControl

References: #382

* feat: replace TokenizingTextBox control

References: #382
* refactor: create Eppie.App.Resources library (#412)

feat: create Eppie.App.Resources library

References: #411

* refactor: move resw files to Eppie.App.Resources library (#414)

References: #411

* fix: fix loading of string resources in code (#415)

* feat: create StringProvider

References: #411

* refactor: use StringProvider

References: #411

* fix: correct x:Uid keys (#416)

References: #411
# Conflicts:
#	.github/workflows/build.yml
#	.github/workflows/codeql.yml
…-5 (#419)

<!--
Please read the following before submitting:
- Keep your pull request as small as possible
- Name this pull request according the format: <type>(optional scope):
<description>
- Please label this pull request
- Specify affected platforms
-->

## Issue

Related to #296

## Description

Fix Conflicts:
- .github/workflows/build.yml
- .github/workflows/codeql.yml

## Other Information
<!-- Please provide any additional information if necessary. -->

## Pull Request Checklist

Please check if your pull request fulfills the following requirements:

- [x] The pull request is named according to the format:
_[\<type\>](#types-of-pull-requests)(optional scope): \<description\>_
- [x] The pull request is associated with a GitHub issue. Note: if
possible use the [automatic close
keywords](https://help.github.com/en/github/managing-your-work-on-github/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword)
- [x] [The pull request is labeled](#pull-request-labels)
- [x] [Affected platforms are labeled](#platform-labels)
- [x] Commits follow the [Conventional Commits
specification](https://www.conventionalcommits.org/en/v1.0.0/#summary)
- [x] There are no difficult to understand places left without comments
- [x] The changes do not generate new warnings

> [!NOTE]
>
> <details><summary><strong id="types-of-pull-requests">Types of pull
requests</strong></summary>
>
> - `feat` - adding **new features**
> - `fix` - **bug** fixes
> - `test` - adding or correcting **tests**
> - `perf` - changes that improve **performance**
> - `refactor` - simple **rewriting** or **restructuring** of code
without adding new features or fixing bugs
> - `style` - changes in **code styles** and no changes in logic
> - `build` - changes related to **the build of the project** and
**dependencies**
> - `ci` - changes related to **continuous integration**
> - `docs` - changes in **documentation** or just **comments** in source
code
> - `chore` - something that **doesn't fit** the other possible types
>
> </details>
>
> <details><summary><strong id="pull-request-labels">Pull request
labels</strong></summary>
>
> - **`type/breaking-change`** - pull requests with changes that are
**not backward compatible**
> - `type/build` - pull requests that change the **project's build** or
**dependencies**
> - `type/chore` - pull requests **without** making **changes** to the
code, project build, formatting, documentation, etc
> - `type/ci` - pull requests whose changes are related to **continuous
integration**
> - `type/documentation` - pull requests that only change
**documentation**
> - **`type/feature`** - pull requests that add **new features**
> - **`type/fix`** - pull requests that fix a **bug**
> - **`type/localization`** - pull requests that change **translation**
> - **`type/performance`** - pull requests that improve **performance**
> - `type/refactor` - pull requests that **refactor** a section of code
> - `type/style` - pull requests that change **code styles**
> - `type/test` - pull requests that add or correct **tests**
> - **`ignore-for-release`** - for pull requests that do **not need** to
be appeared in **release notes**
>
> ---
> A pull request appears in the release notes if it has one of the
labels: `type/breaking-change`, `type/feature`, `type/fix`,
`type/localization`, `type/performance`
>
> </details>
>
> <details><summary><strong id="platform-labels">Affected platforms
labels</strong></summary>
>
> - `platform/all` - pull requests that are related to the all platforms
> - `platform/android` - pull requests that are related to the Android
platform
> - `platform/desktop` - pull requests that are related to the desktop
> - `platform/ios` - pull requests that are related to the iOS platform
> - `platform/macos` - pull requests that are related to the macOS
platform
> - `platform/other` - pull requests that are related to an unknown
platform
> - `platform/uwp` - pull requests that are related to the Universal
Windows Platform
> - `platform/wasm` - pull requests that are related to the WebAssembly
platform
> - `platform/winui` - pull requests that are related to the WinUI
platform
>
> </details>
>
@al-kau al-kau added platform/all Categorizes an issue or PR as relevant to the all platforms type/chore Pull requests without making changes to code, project build, formatting, documentation, etc ignore-for-release Do not include in the release changelog labels Nov 6, 2024
@al-kau al-kau requested a review from ValeraFinebits November 6, 2024 15:49
@al-kau al-kau marked this pull request as ready for review November 6, 2024 15:49
@ValeraFinebits ValeraFinebits merged commit a26eb36 into main Nov 6, 2024
13 checks passed
@ValeraFinebits ValeraFinebits deleted the feature/296-upgrading-to-uno-platform-5 branch November 6, 2024 16:07
@al-kau al-kau changed the title feat: upgrade to Uno Platform 5 chore: upgrade to Uno Platform 5 Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ignore-for-release Do not include in the release changelog platform/all Categorizes an issue or PR as relevant to the all platforms type/chore Pull requests without making changes to code, project build, formatting, documentation, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Task] Upgrading to Uno Platform 5
2 participants