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

[ShazamKit] Add support for Xcode 15 #19005

Merged
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/shazamkit.cs
Expand Up @@ -23,6 +23,7 @@ public enum SHErrorCode : long {
CustomCatalogInvalidURL = 301,
MediaLibrarySyncFailed = 400,
InternalError = 500,
MediaItemFetchFailed = 600,
}

[iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)]
Expand Down Expand Up @@ -62,6 +63,9 @@ enum SHMediaItemProperty {
[Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)]
[Field ("SHMediaItemFrequencySkewRanges")]
FrequencySkewRanges,
[Watch (10, 0), TV (17, 0), Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
[Field ("SHMediaItemCreationDate")]
SHMediaItemCreationDate,
mandel-macaque marked this conversation as resolved.
Show resolved Hide resolved
}

[iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)]
Expand Down Expand Up @@ -190,9 +194,17 @@ interface SHMediaItem : NSSecureCoding, NSCopying {
[Watch (9, 0), TV (16, 0), Mac (13, 0), iOS (16, 0), MacCatalyst (16, 0)]
[Export ("frequencySkewRanges", ArgumentSemantic.Strong)]
SHRange [] FrequencySkewRanges { get; }

[Watch (10, 0), TV (17, 0), Mac (14, 0), iOS (17, 0), MacCatalyst (17, 0)]
[NullAllowed, Export ("creationDate", ArgumentSemantic.Strong)]
NSDate CreationDate { get; }
}

[iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)]
[Deprecated (PlatformName.MacOSX, 12, 0, message: "Use SHLibrary instead.")]
[Deprecated (PlatformName.iOS, 15, 0, message: "Use SHLibrary instead.")]
[Deprecated (PlatformName.TvOS, 15, 0, message: "Use SHLibrary instead.")]
[Deprecated (PlatformName.WatchOS, 8, 0, message: "Use SHLibrary instead.")]
mandel-macaque marked this conversation as resolved.
Show resolved Hide resolved
[BaseType (typeof (NSObject))]
[DisableDefaultCtor]
interface SHMediaLibrary {
Expand Down

This file was deleted.

4 changes: 0 additions & 4 deletions tests/xtro-sharpie/api-annotations-dotnet/iOS-ShazamKit.todo

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions tests/xtro-sharpie/api-annotations-dotnet/tvOS-ShazamKit.todo

This file was deleted.

4 changes: 0 additions & 4 deletions tests/xtro-sharpie/iOS-ShazamKit.todo

This file was deleted.

4 changes: 0 additions & 4 deletions tests/xtro-sharpie/macOS-ShazamKit.todo

This file was deleted.

4 changes: 0 additions & 4 deletions tests/xtro-sharpie/tvOS-ShazamKit.todo

This file was deleted.

@@ -1,3 +1,4 @@
## xtro being not recognizing
!unknown-field! SHErrorDomain bound
!unknown-field! SHMediaItemAppleMusicID bound
!unknown-field! SHMediaItemAppleMusicURL bound
Expand Down Expand Up @@ -27,3 +28,4 @@
!unknown-type! SHSession bound
!unknown-type! SHSignature bound
!unknown-type! SHSignatureGenerator bound
!unknown-field! SHMediaItemCreationDate bound
mandel-macaque marked this conversation as resolved.
Show resolved Hide resolved