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

Merge the PublicAPI checker into main #7339

Merged
merged 26 commits into from
Jun 1, 2022
Merged

Merge the PublicAPI checker into main #7339

merged 26 commits into from
Jun 1, 2022

Conversation

mattleibow
Copy link
Member

@mattleibow mattleibow commented May 19, 2022

Description of Change

Errors at the moment:

  • src\Core\src\Platform\iOS\MauiUIApplicationDelegate.cs(118,23,118,36):
    error RS0016: Symbol 'DidDisconnect' is not part of the declared API
  • src\Core\src\Graphics\MauiDrawable.Android.cs(224,15,224,34):
    error RS0016: Symbol 'SetEmptyBorderBrush' is not part of the declared API
  • src\Core\src\PublicAPI\net6.0-windows\PublicAPI.Shipped.txt(1504,1,1504,34):
    error RS0017: Symbol 'Microsoft.Maui.Platform.RootPanel' is part of the declared API, but is either not public or could not be found
  • src\Core\src\PublicAPI\net6.0-windows\PublicAPI.Shipped.txt(1505,1,1505,54):
    error RS0017: Symbol 'Microsoft.Maui.Platform.RootPanel.RootPanel() -> void' is part of the declared API, but is either not public or could not be found

Issues Fixed

Fixes #

@Eilon Eilon added the area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions label May 19, 2022
@mattleibow mattleibow self-assigned this May 19, 2022
@mattleibow mattleibow added this to the 6.0.3xx-sr1 milestone May 19, 2022
@mattleibow mattleibow added the p/0 Work that we can't release without label May 19, 2022
@mattleibow mattleibow marked this pull request as ready for review May 19, 2022 23:09
@jsuarezruiz
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@mattleibow
Copy link
Member Author

Now a new one:

error RS0016: Symbol 'Auto' is not part of the declared API
error RS0016: Symbol 'FlowDirectionTypeConverter' is not part of the declared API
error RS0016: Symbol 'implicit constructor for 'FlowDirectionTypeConverter'' is not part of the declared API
error RS0016: Symbol 'CanConvertFrom' is not part of the declared API
error RS0016: Symbol 'CanConvertTo' is not part of the declared API
error RS0016: Symbol 'ConvertFrom' is not part of the declared API
error RS0016: Symbol 'ConvertTo' is not part of the declared API
error RS0016: Symbol 'MeasureOverride' is not part of the declared API
error RS0016: Symbol 'ArrangeOverride' is not part of the declared API
error RS0017: Symbol 'static Microsoft.Maui.Layouts.FlexBasis.Auto -> Microsoft.Maui.Layouts.FlexBasis' is part of the declared API, but is either not public or could not be found

public static SpannableString ToSpannableString(
this FormattedString formattedString,
IFontManager fontManager,
TextPaint? textPaint = null,
Copy link
Member Author

Choose a reason for hiding this comment

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

Using TextPaint was incorrect as it did not represent the span size but the label. So the label would have a tiny font size and the span huge, but then layouts would measure line heights using the tine label size.

Copy link
Member Author

Choose a reason for hiding this comment

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

Same as Windows. The above overload is the correct one.

double defaultLineHeight = -1d,
double defaultLineHeight = 0d, // TODO: should be -1, but too late to change for net6
Copy link
Member Author

Choose a reason for hiding this comment

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

Not super essential as this is just the default value and was passed in via the call above. This overload really should have been internal.

double defaultLineHeight = -1d,
double defaultLineHeight = 0d, // TODO: should be -1, but too late to change for net6
Copy link
Member Author

Choose a reason for hiding this comment

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

Same as Windows. The above overload is the correct one.

Comment on lines +2 to +4
override Microsoft.Maui.Controls.ContentView.OnApplyTemplate() -> void
override Microsoft.Maui.Controls.Grid.OnBindingContextChanged() -> void
~override Microsoft.Maui.Controls.Handlers.Compatibility.ViewCellRenderer.DisconnectHandler(Android.Views.View platformView) -> void
Copy link
Member Author

Choose a reason for hiding this comment

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

Are overrides really breaking?

Copy link
Member

Choose a reason for hiding this comment

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

Good question, i wouldn't think so.

@mattleibow mattleibow merged commit 7d5daaf into main Jun 1, 2022
@mattleibow mattleibow deleted the dev/pub-api branch June 1, 2022 18:06
mattleibow added a commit that referenced this pull request Jun 2, 2022
This corrects a mistake in the #7339
@github-actions github-actions bot locked and limited conversation to collaborators Dec 21, 2023
@samhouts samhouts added the fixed-in-6.0.400 Look for this fix in 6.0.400! label Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions fixed-in-6.0.400 Look for this fix in 6.0.400! p/0 Work that we can't release without
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants