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

[AVFoundation] Simplify code behind + api definition for AVCaptureConnection. #14199

Merged
merged 4 commits into from
Feb 21, 2022

Conversation

rolfbjarne
Copy link
Member

  • Remove the code behind for AVCaptureConnection.SupportsVideoMinFrameDuration
    and AVCaptureConnection.SupportsVideoMaxFrameDuration. The codebehind looks like
    a workaround for Apple renaming the selector, but from history it looks like that
    happened before the earliest version of iOS we support today, so this can be expressed
    in an api definition now without any code behind.
  • Add these fields to macOS, where they're not even deprecated (like they are on
    other platforms).
  • Remove conditional code in api definition, and distribute [No*] attributes as
    required.
  • Remove the AVCaptureConnection.AudioChannels property from .NET, it doesn't do
    anything useful.

* Remove the code behind for AVCaptureConnection.SupportsVideoMinFrameDuration
  and AVCaptureConnection.SupportsVideoMaxFrameDuration. The codebehind looks like
  a workaround for Apple renaming the selector, but from history it looks like that
  happened before the earliest version of iOS we support today, so this can be expressed
  in an api definition now without any code behind.
* Add these fields to macOS, where they're not even deprecated (like they are on
  other platforms).
* Remove conditional code in api definition, and distribute [No*] attributes as
  required.
* Remove the AVCaptureConnection.AudioChannels property from .NET, it doesn't do
  anything useful.
@rolfbjarne rolfbjarne added not-notes-worthy Ignore for release notes run-dotnet-tests Run all the .NET tests labels Feb 18, 2022
@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
View dotnet API diff
View dotnet legacy API diff
View dotnet iOS-MacCatalayst API diff

API Current PR diff

View API diff
View dotnet API diff
View dotnet legacy API diff
View dotnet iOS-MacCatalayst API diff
  • ⚠️ Generator diff comments have not been provided.

GitHub pages

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

Test results

9 tests failed, 139 tests passed.

Failed tests

  • introspection/Mac Catalyst [dotnet]/Debug [dotnet]: Failed (Test run failed.
    Tests run: 44 Passed: 42 Inconclusive: 0 Failed: 1 Ignored: 1)
  • monotouch-test/Mac [dotnet]/Debug [dotnet]: Failed (Test run failed.
    Tests run: 2570 Passed: 2486 Inconclusive: 6 Failed: 1 Ignored: 83)
  • monotouch-test/Mac [dotnet]/Debug (static registrar) [dotnet]: Failed (Test run failed.
    Tests run: 2567 Passed: 2484 Inconclusive: 6 Failed: 1 Ignored: 82)
  • monotouch-test/Mac Catalyst [dotnet]/Debug [dotnet]: Failed (Test run failed.
    Tests run: 2708 Passed: 2593 Inconclusive: 10 Failed: 1 Ignored: 114)
  • xammac tests/Mac Modern/Debug: Failed (Test run failed.
    Tests run: 2640 Passed: 2555 Inconclusive: 10 Failed: 2 Ignored: 83)
  • xammac tests/Mac Modern/Release: Failed (Test run failed.
    Tests run: 2637 Passed: 2551 Inconclusive: 10 Failed: 2 Ignored: 84)
  • xammac tests/Mac Modern/Release (all optimizations): Failed (Test run failed.
    Tests run: 2637 Passed: 2551 Inconclusive: 10 Failed: 1 Ignored: 85)
  • Xtro/Legacy Xamarin: BuildFailure
  • Xtro/.NET: BuildFailure

Pipeline on Agent XAMBOT-1107.Monterey'
Merge c805a6f into 72aa449

@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
View dotnet API diff
View dotnet legacy API diff
View dotnet iOS-MacCatalayst API diff

API Current PR diff

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

View API diff
View dotnet API diff
View dotnet legacy API diff
View dotnet iOS-MacCatalayst API diff

Generator diff

ℹ️ Generator Diff (please review changes)

GitHub pages

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

🎉 All 148 tests passed 🎉

Pipeline on Agent XAMBOT-1100.BigSur'
Merge 97199f2 into 188a35d

@rolfbjarne rolfbjarne merged commit 66dcb94 into dotnet:main Feb 21, 2022
@rolfbjarne rolfbjarne deleted the avfoundation-improvements branch February 21, 2022 19:58
tj-devel709 pushed a commit to tj-devel709/xamarin-macios that referenced this pull request Mar 8, 2022
…nection. (dotnet#14199)

* Remove the code behind for AVCaptureConnection.SupportsVideoMinFrameDuration
  and AVCaptureConnection.SupportsVideoMaxFrameDuration. The codebehind looks like
  a workaround for Apple renaming the selector, but from history it looks like that
  happened before the earliest version of iOS we support today, so this can be expressed
  in an api definition now without any code behind.
* Add these fields to macOS, where they're not even deprecated (like they are on
  other platforms).
* Remove conditional code in api definition, and distribute [No*] attributes as
  required.
* Remove the AVCaptureConnection.AudioChannels property from .NET, it doesn't do
  anything useful.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not-notes-worthy Ignore for release notes run-dotnet-tests Run all the .NET tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants