-
Notifications
You must be signed in to change notification settings - Fork 517
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
[Intents] Update bindings for Xcode 13.0 betas 1 through 5 #12771
[Intents] Update bindings for Xcode 13.0 betas 1 through 5 #12771
Conversation
❌ [PR Build] Tests failed on Build ❌Tests failed on Build. API diff✅ API Diff from stable View API diffAPI & Generator diffℹ️ API Diff (from PR only) (please review changes) GitHub pagesResults can be found in the following github pages (it might take some time to publish): Test results5 tests failed, 97 tests passed.Failed tests
Pipeline on Agent XAMBOT-1100.BigSur' |
src/Intents/INPerson.cs
Outdated
[SupportedOSPlatform ("macos12.0")] | ||
#endif //!NET | ||
public enum INPersonType { |
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.
The indentation is off here, and it looks like the indentation is spaces too (when it should be tabs).
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.
ahh thanks for catching!
src/intents.cs
Outdated
[iOS (10, 0)] | ||
[Watch (3, 2)] | ||
[NoTV, Mac (11,0)] | ||
[NoWatch] // it says it's now NoWatch, but not deprecated? (there was previous watch availability) |
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.
This is a breaking change, if the type was already present in an earlier version of Xamarin.iOS, we can't remove it now (we have to mark it as deprecated instead).
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.
makes sense, thanks!
src/Intents/INPerson.cs
Outdated
{ | ||
|
||
#if !NET | ||
[Introduced (PlatformName.iOS, 15,0)] |
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.
The indentation is still off for all the attributes in this file (looks like they should be indented one more level).
src/Intents/INPerson.cs
Outdated
#else | ||
[SupportedOSPlatform ("ios15.0")] | ||
[SupportedOSPlatform ("macos12.0")] | ||
#endif //!NET |
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.
Looks like extra indentation here
src/intents.cs
Outdated
|
||
[Watch (7,0), NoTV, NoMac, iOS (14,0)] | ||
interface INStartCallIntent : UNNotificationContentProviding { | ||
|
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.
extra whitespace
I know Sebastien explained a little to me why, but I think I am still a little confused about something. It makes sense to me to turn a 'NoMac' to a 'Mac 12,0' but why are we changing the already available Mac attributes (ie. Mac 11,3) to 'Mac 12,0' inside src/intents.cs? |
@tj-devel709 yeah, it's confusing! there are slightly different justifications based on the scenario, but for the most part, what happened was that the interface was originally NoMac and some properties inside of them appeared to have some earlier Mac availability. But if I understood Sebastien correctly, this was incorrect to begin with because "it should not exist in Xamarin.Mac if the type has [NoMac]" |
Ah I see now! Thanks for clearing that up for me, @rachelkang! |
❌ [PR Build] Tests failed on Build ❌Tests failed on Build. API diff✅ API Diff from stable View API diffAPI & Generator diffℹ️ API Diff (from PR only) (please review changes) GitHub pagesResults can be found in the following github pages (it might take some time to publish): Test results1 tests failed, 101 tests passed.Failed tests
Pipeline on Agent XAMBOT-1104.BigSur' |
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.
Awesome! Only minor things
@@ -6862,6 +6955,55 @@ interface INSetSeatSettingsInCarIntentResponse { | |||
INSetSeatSettingsInCarIntentResponseCode Code { get; } | |||
} | |||
|
|||
[Watch (8,0), NoTV, Mac (12,0), iOS (15,0), MacCatalyst (15,0)] | |||
[BaseType (typeof(INIntent))] |
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.
Probably you want a DisableDefaultCtor
here because there is no way to set FocusStatus
unless the provided ctor is used
src/intents.cs
Outdated
{ | ||
[Export ("initWithIsFocused:")] | ||
[DesignatedInitializer] | ||
IntPtr Constructor ([NullAllowed] NSNumber isFocused); |
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.
[DesignatedInitializer] | ||
IntPtr Constructor ([NullAllowed] NSNumber isFocused); | ||
|
||
[Export ("isFocused", ArgumentSemantic.Copy)] |
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, you can use BindAs to provide a better binding here
[Export ("isFocused", ArgumentSemantic.Copy)] | |
[Export ("isFocused", ArgumentSemantic.Copy)] | |
[BindAs (typeof (bool?))] |
❌ [PR Build] Tests failed on Build ❌Tests failed on Build. API diff✅ API Diff from stable View API diffAPI & Generator diffℹ️ API Diff (from PR only) (please review changes) GitHub pagesResults can be found in the following github pages (it might take some time to publish): Test results1 tests failed, 101 tests passed.Failed tests
Pipeline on Agent XAMBOT-1097.BigSur' |
Unrelated test failure |
/sudo backport xcode13-ios |
Backport Job to branch xcode13-ios Created! The magic is happening here |
Oh no! Backport failed! Please see https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=5233974 for more details. |
build and intro and xtro and I are all happy :)