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

[CoreVideo] Add support for Xcode13 beta 1. #11997

Merged
merged 6 commits into from
Jun 23, 2021

Conversation

mandel-macaque
Copy link
Member

Added new APIs from Xcode13, add missing ones that have been added in
catalyst and enabled nullable in the manual code.

Added new APIs from Xcode13, add missing ones that have been added in
catalyst and enabled nullable in the manual code.
@mandel-macaque mandel-macaque added the note-highlight Worth calling out specifically in release notes label Jun 21, 2021
@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 Tests failed catastrophically on Build (no summary found). 🔥

Result file $(TEST_SUMMARY_PATH) not found.

Pipeline on Agent
Merge a62e1eb into 6ce5f80

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 Tests failed catastrophically on Build (no summary found). 🔥

Result file $(TEST_SUMMARY_PATH) not found.

Pipeline on Agent
Merge 5e629bf into 6ce5f80

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

1 tests failed, 85 tests passed.

Failed tests

  • introspection/Mac Catalyst/Debug: Failed (Tests run: 44 Passed: 38 Inconclusive: 0 Failed: 1 Ignored: 5)

Pipeline on Agent XAMBOT-1104.BigSur'
Merge ae6577e into 6ce5f80

src/CoreVideo/CVPixelBuffer.cs Outdated Show resolved Hide resolved
src/CoreVideo/CVTime.cs Outdated Show resolved Hide resolved
src/CoreVideo/CVPixelFormatType.cs Outdated Show resolved Hide resolved
src/CoreVideo/CVPixelFormatType.cs Outdated Show resolved Hide resolved
src/CoreVideo/CVPixelBuffer.cs Outdated Show resolved Hide resolved
[SupportedOSPlatform ("tvos15.0")]
[SupportedOSPlatform ("macos12.0")]
[UnsupportedOSPlatform ("maccatalyst")]
[UnsupportedOSPlatform ("watchos")]
Copy link
Contributor

Choose a reason for hiding this comment

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

^ for NET it's done at the assembly-level

@@ -159,7 +161,7 @@ public CVPixelBufferPool (NSDictionary poolAttributes, NSDictionary pixelBufferA
}

public CVPixelBufferPool (CVPixelBufferPoolSettings settings, CVPixelBufferAttributes pixelBufferAttributes)
: this (settings.GetDictionary (), pixelBufferAttributes.GetDictionary ())
: this (settings.GetDictionary () ?? new NSDictionary (), pixelBufferAttributes.GetDictionary () ?? new NSDictionary ())
Copy link
Contributor

Choose a reason for hiding this comment

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

why ?

x.GetHandle is an extension method that will return IntPtr.Zero if x is null

Also you're creating two instances of the same, immutable instance of NSDictionary.

if CVPixelBufferPoolCreate does not accept null then it's incorrect and should be using GetNonNullHandle extension method

#else
[Watch (8,0), TV (15,0), Mac (12,0), iOS (15,0), NoMacCatalyst]
#endif
[DllImport (Constants.CoreVideoLibrary)]
Copy link
Contributor

Choose a reason for hiding this comment

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

double check the native return type
you might need a [return: MarshalAs (UnmanagedType.I1)] to correctly convert the native bool

@vs-mobiletools-engineering-service2
Copy link
Collaborator

❌ [PR Build] Tests failed on Build ❌

Tests failed on Build.

API diff

✅ API Diff from stable

View API diff

API & Generator diff

ℹ️ API Diff (from PR only) (please review changes)
ℹ️ Generator Diff (please review changes)

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

Test results

1 tests failed, 85 tests passed.

Failed tests

  • monotouch-test/Mac Catalyst/Debug [dotnet]: TimedOut (Execution timed out after 1200 seconds.
    No test log file was produced)

Pipeline on Agent XAMBOT-1094.BigSur'
Merge 24b862b into 5417f2e

Comment on lines 97 to 101
[SupportedOSPlatform ("ios15.0")]
[SupportedOSPlatform ("tvos15.0")]
[SupportedOSPlatform ("macos12.0")]
[UnsupportedOSPlatform ("maccatalyst")]
[UnsupportedOSPlatform ("watchos")]
Copy link
Member Author

Choose a reason for hiding this comment

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

Like this?

Suggested change
[SupportedOSPlatform ("ios15.0")]
[SupportedOSPlatform ("tvos15.0")]
[SupportedOSPlatform ("macos12.0")]
[UnsupportedOSPlatform ("maccatalyst")]
[UnsupportedOSPlatform ("watchos")]
[assembly: SupportedOSPlatform ("ios15.0")]
[assembly: SupportedOSPlatform ("tvos15.0")]
[assembly: SupportedOSPlatform ("macos12.0")]
[assembly: UnsupportedOSPlatform ("maccatalyst")]

Copy link
Contributor

Choose a reason for hiding this comment

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

no, my comment was that watchos is already handled with an assembly-level attribute (no need to repeat it)

Copy link
Contributor

Choose a reason for hiding this comment

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

IOW those were fine

 		[SupportedOSPlatform ("ios15.0")]
 		[SupportedOSPlatform ("tvos15.0")]
 		[SupportedOSPlatform ("macos12.0")]
 		[UnsupportedOSPlatform ("maccatalyst")] 

Copy link
Member Author

Choose a reason for hiding this comment

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

ahhh see, I misunderstood, got it

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build] Tests passed on Build. ✅

Tests passed on Build.

API diff

✅ API Diff from stable

View API diff

GitHub pages

Results can be found in the following github pages (it might take some time to publish):

🎉 All 86 tests passed 🎉

Pipeline on Agent XAMBOT-1094.BigSur'
Merge f15aeac into 6898920

@mandel-macaque mandel-macaque merged commit d11852e into xamarin:main Jun 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
note-highlight Worth calling out specifically in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants