Skip to content

Commit

Permalink
[ShazamKit] Implement Xcode 16.0 beta 1-6 changes. (#21051)
Browse files Browse the repository at this point in the history
Note: there were no changes in beta 2, beta 3, beta 4, beta 5 or beta 6.
  • Loading branch information
rolfbjarne authored Aug 22, 2024
1 parent 9e58a82 commit 510d872
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 24 deletions.
13 changes: 13 additions & 0 deletions src/shazamkit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,19 +82,32 @@ interface SHCatalog {
[iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)]
[BaseType (typeof (SHCatalog))]
interface SHCustomCatalog {
[Watch (11, 0), TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
[Export ("initWithDataRepresentation:error:")]
NativeHandle Constructor (NSData data, out NSError error);

[Export ("addReferenceSignature:representingMediaItems:error:")]
bool Add (SHSignature signature, SHMediaItem [] mediaItems, [NullAllowed] out NSError error);

[Export ("addCustomCatalogFromURL:error:")]
bool Add (NSUrl url, [NullAllowed] out NSError error);

[Deprecated (PlatformName.MacOSX, 14, 0, message: "Use 'DataRepresentation' instead.")]
[Deprecated (PlatformName.iOS, 17, 0, message: "Use 'DataRepresentation' instead.")]
[Deprecated (PlatformName.TvOS, 17, 0, message: "Use 'DataRepresentation' instead.")]
[Deprecated (PlatformName.WatchOS, 10, 0, message: "Use 'DataRepresentation' instead.")]
[Deprecated (PlatformName.MacCatalyst, 17, 0, message: "Use 'DataRepresentation' instead.")]
[Export ("writeToURL:error:")]
bool Write (NSUrl url, [NullAllowed] out NSError error);

[Static]
[Export ("new")]
[return: Release]
SHCustomCatalog Create ();

[Watch (11, 0), TV (18, 0), Mac (15, 0), iOS (18, 0), MacCatalyst (18, 0)]
[Export ("dataRepresentation", ArgumentSemantic.Strong)]
NSData DataRepresentation { get; }
}

[iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)]
Expand Down
2 changes: 2 additions & 0 deletions tests/cecil-tests/Documentation.KnownFailures.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45906,6 +45906,7 @@ M:SharedWithYouCore.SWUpdateCollaborationParticipantsAction.Copy(Foundation.NSZo
M:SharedWithYouCore.SWUpdateCollaborationParticipantsAction.EncodeTo(Foundation.NSCoder)
M:ShazamKit.ISHSessionDelegate.DidFindMatch(ShazamKit.SHSession,ShazamKit.SHMatch)
M:ShazamKit.ISHSessionDelegate.DidNotFindMatch(ShazamKit.SHSession,ShazamKit.SHSignature,Foundation.NSError)
M:ShazamKit.SHCustomCatalog.#ctor(Foundation.NSData,Foundation.NSError@)
M:ShazamKit.SHCustomCatalog.Add(Foundation.NSUrl,Foundation.NSError@)
M:ShazamKit.SHCustomCatalog.Add(ShazamKit.SHSignature,ShazamKit.SHMediaItem[],Foundation.NSError@)
M:ShazamKit.SHCustomCatalog.Create
Expand Down Expand Up @@ -73735,6 +73736,7 @@ P:SharedWithYouCore.SWCollaborationOption.Selected
P:SharedWithYouCore.SWCollaborationOptionsGroup.TypeIdentifier
P:ShazamKit.SHCatalog.MaximumQuerySignatureDuration
P:ShazamKit.SHCatalog.MinimumQuerySignatureDuration
P:ShazamKit.SHCustomCatalog.DataRepresentation
P:ShazamKit.SHMatch.MediaItems
P:ShazamKit.SHMatch.QuerySignature
P:ShazamKit.SHMatchedMediaItem.FrequencySkew
Expand Down

This file was deleted.

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

This file was deleted.

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

3 changes: 0 additions & 3 deletions tests/xtro-sharpie/watchOS-ShazamKit.todo

This file was deleted.

8 comments on commit 510d872

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.