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

Upgrade to .NET MAUI #451

Merged
merged 140 commits into from
Oct 1, 2023
Merged

Upgrade to .NET MAUI #451

merged 140 commits into from
Oct 1, 2023

Conversation

matt-goldman
Copy link
Contributor

@matt-goldman matt-goldman commented Sep 28, 2023

Reason for change

SSW.Rewards was originally built with Xamarin.Forms in 2019. Xamarin.Forms is end of life after May 2024, so we needed to upgrade this to .NET MAUI to remain supported.

Relates to #169

As per my conversation with @adamcogan, the upgrade to .NET MAUI was approved and necessary.

Based on email thread, subject "SSW Rewards on MAUI" (from @william-liebenberg, cc @JackDevAU, @AntPolkanov, @adamcogan), we will collapse the 3 SSW Rewards repos (SSW.Rewards.Admin, SSW.Rewards.API, SSW.Rewards.Mobile) into a single repo (this one).

In preparation for this, this PR cleans up the repo and removes anything not related to the mobile app (as they will be brought in from the other repos).

SUMMARY OF CHANGES

  • Removes the src/SSW.Rewards.Android folder
  • Removes the src/SSW.Rewards.iOS folder
  • Updates the src/SSW.Rewards folder to be the new .NET MAUI single-project solution
  • Updates SSW.Rewards.sln to just include the single project

Note that this PR supersedes this one: #406

As this includes a significant change and required a substantial rebase, it's prudent to keep that draft PR and its corresponding branch (upgrade-to-maui-v2) for 6 months for reference in case we encounter any issues following this merge.

Tip for viewing the changed files

As this PR includes several hundred files, it is difficult to easily view the changes. Additionally, it can easily overwhelm your browser (see comment from @JackDevAU below). One way to get around this is to use the file filter:
image
Figure: The file filter let's you exclude certain file types from the comparison

My recommendation is to:

  • Unselect all image types (if you want to view these changes, you can select these and deselect everything else)
  • Unselect deleted files (again if you want to see which files have been deleted, select this and deselect everything else)

This should give you a good view of the material changes made to the code in this PR.

JackDevAU and others added 30 commits September 28, 2023 16:44
🚧 Replaced EventToCommand to use MCT
💚 First Successful build
Renaming Namespaces
Login Flow workaround
Added inits for SkiaSharp and BarcodeReader
Added Auth Handler
Refactored Services
Updated MauiProgram
More namespace renamed
Updated AndroidManifest
🚧Working on camera permissions
Change Camera stream to byte[]
Update Android Target framework
Changed messaging subscription in profile viewmodel
… at this time Maui.Graphics is still marked as experimental. Keeping commented control for reference for when MG leaves experimerntal status.
NOTE: Scrolling views (eg CollectionView or ScrollView) won't scroll inside a stack layout in .NET MAUI.
NOTE: Scrolling views (eg CollectionView or ScrollView) won't scroll inside a stack layout in .NET MAUI.
Fixed linksocial entry
Added white cursor to borderless entry on Android
Copy link
Member

@JackDevAU JackDevAU left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Viewing the files for the PR nearly crashed my Browser! 😅😅😅
Well done team! 🎊🎊

@matt-goldman matt-goldman mentioned this pull request Oct 1, 2023
61 tasks
@matt-goldman matt-goldman merged commit 3b05a87 into main Oct 1, 2023
@matt-goldman matt-goldman deleted the upgrade-to-maui-rebased branch October 1, 2023 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants