- Notifications
You must be signed in to change notification settings - Fork548
[xcode11] [AVKit] bindings for all platforms#6748
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[xcode11] [AVKit] bindings for all platforms#6748
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
spouliot commentedAug 12, 2019
build |
monojenkins commentedAug 12, 2019
Build failure 🔥Build failed 🔥 |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
spouliot commentedAug 16, 2019
build |
monojenkins commentedAug 16, 2019
Build failure Test results1 tests failed, 90 tests passed.Failed tests
|
- Personal preference but I like `[TV (13,0)]` better than `[TV (13, 0)]` (more concise).- As much as possible try to minize diff changes. For instance if there was a `[NoTV]` and now new availability attributes are needed, add them on a new line. This was the original `[NoTV]` is unchanged, not critical in this case but we'd still be able to blame the original author, finally that reduces the amount of changes to review in the PR.- Fix some { that go on the same line for types (mono coding guideline).- Fix Mac introspection test (one inline .ctor was incorrectly marked as !MONOMAC)- Use and abuse of using statements to avoid !MONOMAC ifdefs at all costs. These ifdefs are just painful and make the code hard to read (very error prone). It is much simpler to add [NoMac] everywhere and have the right using in place.
Type Changed: AVKit.AVRoutePickerViewModified properties:public ~virtual~ IAVRoutePickerViewDelegate Delegate { get; set; }This reverts commit755822e.
VincentDondain commentedAug 26, 2019
build |
monojenkins commentedAug 27, 2019
Build success |
src/avkit.cs Outdated
| [TV(13,0),NoiOS,NoWatch,NoMac] | ||
| [Export("nextChannelInterstitialViewControllerForPlayerViewController:")] | ||
| UIViewControllerNextChannelInterstitialViewController(AVPlayerViewControllerplayerViewController); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
lack of verb/action: prefix withGet
| [iOS(12,0),NoTV,NoWatch,NoMac] | ||
| [Export("playerViewController:willBeginFullScreenPresentationWithAnimationCoordinator:"),EventArgs("AVPlayerViewFullScreenPresentationWillBegin")] | ||
| voidWillBeginFullScreenPresentation(AVPlayerViewControllerplayerViewController,IUIViewControllerTransitionCoordinatorcoordinator); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
please check/test if12,0 is correct (a bit tricker for delegates)
| [iOS(12,0),NoTV,NoWatch,NoMac] | ||
| [Export("playerViewController:willEndFullScreenPresentationWithAnimationCoordinator:"),EventArgs("AVPlayerViewFullScreenPresentationWillEnd")] | ||
| voidWillEndFullScreenPresentation(AVPlayerViewControllerplayerViewController,IUIViewControllerTransitionCoordinatorcoordinator); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
same
src/avkit.cs Outdated
| [TV(13,0),NoiOS,NoWatch,NoMac] | ||
| [Export("previousChannelInterstitialViewControllerForPlayerViewController:")] | ||
| UIViewControllerPreviousChannelInterstitialViewController(AVPlayerViewControllerplayerViewController); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
prefix withGet
- Play it safe and don't use [iOS (12,0] availability. After all it was added in Xcode 11, sounds like it was private in Xcode 10. People can still use the API on earlier versions if they really need to and changing this later wouldn't be a breaking change.- Use verbs where we missed them.
VincentDondain commentedAug 27, 2019
build |
monojenkins commentedAug 27, 2019
Build success |
dalexsoto left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
LGTM 👍
joconte commentedAug 28, 2019
@VincentDondain Thanks a lot |
VincentDondain commentedAug 28, 2019
Thank you@joconte I had nothing to do, it was all there 😊 All green, merging |
Uh oh!
There was an error while loading.Please reload this page.
diff :
https://github.com/xamarin/xamarin-macios/wiki/AVKit-iOS-xcode11-beta1
https://github.com/xamarin/xamarin-macios/wiki/AVKit-iOS-xcode11-beta2
https://github.com/xamarin/xamarin-macios/wiki/AVKit-macOS-xcode11-beta1
https://github.com/xamarin/xamarin-macios/wiki/AVKit-tvOS-xcode11-beta1
I had to refactor some of the actual code because of the fact that some interfaces are now available to macOS and were inside a
if !MONOMACblock.I don't know which names I should choose for the events.
It builds 😄