Skip to content
This repository was archived by the owner on May 1, 2024. It is now read-only.

Conversation

VladislavAntonyuk
Copy link
Contributor

Description of Bug

Automate MauiCompat generation, Update MauiCompat to preview 11

PR Checklist

  • Has a linked Issue, and the Issue has been approved
  • Has tests (if omitted, state reason in description)
  • Has samples (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Changes adhere to coding standard

@VladislavAntonyuk VladislavAntonyuk changed the title Automate MauiCompat build, Update MAUI Preview 11 Draft: Automate MauiCompat build, Update MAUI Preview 11 Dec 27, 2021
@VladislavAntonyuk VladislavAntonyuk changed the title Draft: Automate MauiCompat build, Update MAUI Preview 11 Automate MauiCompat build, Update MAUI Preview 11 Dec 27, 2021
Copy link
Contributor

@TheCodeTraveler TheCodeTraveler left a comment

Choose a reason for hiding this comment

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

Instead of creating a MauiCompatExists variable and ensuring it is True before attempting to do steps like Build Xamarin.CommunityToolkit.MauiCompat.csproj, should we instead fail the build?

I.e. What if we remove condition: eq (variables['MauiCompatExists'], True) on all of the MauiCompat steps and let the build fail when the MauiCompat steps don't work?

I think letting the build fail will ensure future PRs won't break MauiCompat. Am I understanding this correctly?

@VladislavAntonyuk
Copy link
Contributor Author

I thought MauiCompat remains optional if the script fails, but seems like it checks only for path exist, this validation can be removed

}
}"

sed -i '' 's/public class/using Xamarin.CommunityToolkit.MauiCompat; public class/g' ./src/CommunityToolkit/Xamarin.CommunityToolkit.MauiCompat/Effects/IconTintColor/IconTintColorEffectRouter.ios.cs
Copy link
Contributor Author

Choose a reason for hiding this comment

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

automate MauiColor extensions (ToAndroid, ToUIColor)


# Log

sed -i '' 's/using System;/using System;using Microsoft.Extensions.Logging;/g' ./src/CommunityToolkit/Xamarin.CommunityToolkit.MauiCompat/**/**.cs
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@VladislavAntonyuk
Copy link
Contributor Author

I will rework pipeline logic a bit. We need to skip script if MauiCompat exists ( for branch like 1.3.0-MauiCompat)

@TheCodeTraveler
Copy link
Contributor

Thanks Vlad!!

@TheCodeTraveler TheCodeTraveler merged commit 9716d94 into main Dec 31, 2021
@TheCodeTraveler TheCodeTraveler deleted the maui-compat-automation branch December 31, 2021 01:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants