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

[iTunesLibrary] Update bindings for Xcode 13.0 beta 1 #12038

Merged
merged 10 commits into from
Jul 9, 2021
7 changes: 6 additions & 1 deletion src/iTunesLibrary/Enums.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,15 @@ public enum ITLibPlaylistProperty {
AllItemsPlaylist,
[Field ("ITLibPlaylistPropertyDistinguisedKind")]
DistinguisedKind,
[Introduced (PlatformName.MacOSX, 10, 6, message: "Use 'ITLibPlaylistPropertyPrimary' instead.")]
[Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'ITLibPlaylistPropertyPrimary' instead.")]
Copy link
Member

@dalexsoto dalexsoto Jun 30, 2021

Choose a reason for hiding this comment

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

This one is also not needed

Suggested change
[Introduced (PlatformName.MacOSX, 10, 6, message: "Use 'ITLibPlaylistPropertyPrimary' instead.")]
[Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'ITLibPlaylistPropertyPrimary' instead.")]
[Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'Primary' instead.")]

[Field ("ITLibPlaylistPropertyMaster")]
Master,
[Field ("ITLibPlaylistPropertyParentPersistentID")]
ParentPersistentId,
[Mac (12, 0)]
[Field ("ITLibPlaylistPropertyPrimary")]
Primary,
[Field ("ITLibPlaylistPropertyVisible")]
Visible,
[Field ("ITLibPlaylistPropertyItems")]
Expand All @@ -318,4 +323,4 @@ public enum ITLibMediaEntityProperty {
[Field ("ITLibMediaEntityPropertyPersistentID")]
PersistentId,
}
}
}
8 changes: 7 additions & 1 deletion src/ituneslibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,15 @@ interface ITLibPlaylist
[Export ("name")]
string Name { get; }

[Introduced (PlatformName.MacOSX, 10, 6, message: "Use 'isPrimary' instead.")]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
[Introduced (PlatformName.MacOSX, 10, 6, message: "Use 'isPrimary' instead.")]
[Introduced (PlatformName.MacOSX, 10, 6, message: "Use 'Primary' instead.")]

[Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'isPrimary' instead.")]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
[Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'isPrimary' instead.")]
[Deprecated (PlatformName.MacOSX, 12, 0, message: "Use 'Primary' instead.")]

[Export ("master")]
bool Master { [Bind ("isMaster")] get; }

[Mac (12,0)]
[Export ("primary")]
bool Primary { [Bind ("isPrimary")] get; }

[NullAllowed, Export ("parentID", ArgumentSemantic.Retain)]
NSNumber ParentId { get; }

Expand Down Expand Up @@ -389,4 +395,4 @@ interface ITLibrary
void UnloadData ();
}

}
}
3 changes: 0 additions & 3 deletions tests/xtro-sharpie/macOS-iTunesLibrary.todo
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
!deprecated-attribute-missing! ITLibPlaylist::isMaster missing a [Deprecated] attribute
!missing-field! ITLibPlaylistPropertyPrimary not bound
!missing-selector! ITLibPlaylist::isPrimary not bound