Skip to content

Generate specific platforms for NotImplemented types - #6866

Merged
jeromelaban merged 2 commits into
unoplatform:feature/api-alignmentsfrom
Youssef1313:issues/4893
Nov 5, 2021
Merged

jeromelaban merged 2 commits into
unoplatform:feature/api-alignmentsfrom
Youssef1313:issues/4893

Conversation

@Youssef1313

@Youssef1313 Youssef1313 commented Aug 26, 2021 •

Copy link
Copy Markdown
Member

GitHub Issue (If applicable): closes #4893

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

NotImplemented attribute doesn't have platforms when applied to a type.

What is the new behavior?

Correctly generate platforms.

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@gitpod-io

gitpod-io Bot commented Aug 26, 2021

Copy link
Copy Markdown

@Youssef1313 Youssef1313 changed the title Issues/4893 Generate specific platforms for NotImplemented types Aug 26, 2021
@Youssef1313
Youssef1313 force-pushed the issues/4893 branch 3 times, most recently from bf0c85b to 86c1b4a Compare August 26, 2021 08:39
@Youssef1313 Youssef1313 mentioned this pull request Aug 26, 2021
6 tasks
@Youssef1313
Youssef1313 marked this pull request as ready for review August 26, 2021 14:19
@Youssef1313
Youssef1313 requested a review from a team August 26, 2021 14:19
@Youssef1313

Copy link
Copy Markdown
Member Author

@jeromelaban This is ready for review.

@jeromelaban

jeromelaban commented Sep 2, 2021 •

Copy link
Copy Markdown
Member

It looks like there are breaking changes introduced by this PR: https://github.com/unoplatform/uno/pull/6866/checks?check_run_id=3446252603

GitHub
GitHub Issue (If applicable): closes #4893

PR Type
What kind of change does this PR introduce?

Bugfix

What is the current behavior?
NotImplemented attribute doesn't have platforms when appli...

@jeromelaban
jeromelaban marked this pull request as draft September 2, 2021 12:57
@Youssef1313

Youssef1313 commented Sep 2, 2021 •

Copy link
Copy Markdown
Member Author

@jeromelaban Fixed. Looks like there are more APIs 😨 Will take a look to see what's going on.

@Youssef1313
Youssef1313 marked this pull request as ready for review September 2, 2021 15:43
@Youssef1313
Youssef1313 marked this pull request as draft September 2, 2021 18:57
@Youssef1313
Youssef1313 changed the base branch from master to feature/api-alignments October 12, 2021 12:07
Comment on lines +321 to +324
IsNotDefinedByUno(WasmSymbol) &&
IsNotDefinedByUno(SkiaSymbol) &&
IsNotDefinedByUno(NetStdReferenceSymbol) &&
MacOSSymbol == null;

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Why MacOSSymbol is different than others? I don't know. I followed what's done in

public void AppendIf(IndentedStringBuilder b)
{
var defines = new[] {
IsNotDefinedByUno(AndroidSymbol) ? AndroidDefine : "false",
IsNotDefinedByUno(IOSSymbol) ? iOSDefine : "false",
IsNotDefinedByUno(net461ymbol) ? net461Define : "false",
IsNotDefinedByUno(WasmSymbol) ? WasmDefine : "false",
IsNotDefinedByUno(SkiaSymbol) ? SkiaDefine : "false",
IsNotDefinedByUno(NetStdReferenceSymbol) ? NetStdReferenceDefine : "false",
MacOSSymbol == null ? MacDefine : "false",
};
b.AppendLineInvariant($"#if {defines.JoinBy(" || ")}");
}

@Youssef1313
Youssef1313 marked this pull request as ready for review October 12, 2021 12:17
@Youssef1313

Copy link
Copy Markdown
Member Author

@ebariche Can you please take a look?

@jeromelaban

Copy link
Copy Markdown
Member

/azp run

@jeromelaban jeromelaban added the ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met label Oct 25, 2021
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@jeromelaban

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@jeromelaban
jeromelaban merged commit 5776d7f into unoplatform:feature/api-alignments Nov 5, 2021
@jeromelaban

Copy link
Copy Markdown
Member

Thanks for your contribution!

@Youssef1313
Youssef1313 deleted the issues/4893 branch November 5, 2021 11:57
@Youssef1313

Copy link
Copy Markdown
Member Author

@jeromelaban This was merged into api-alignments. I suppose the branch is no longer active and this should have re-targeted master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generated NotImplementedAttribute does not contain specific platform on types

2 participants