Skip to content

Commit

Permalink
[ShazamKit] Add support for Xcode 15 (#19005)
Browse files Browse the repository at this point in the history
WatchOS todo/xtro was weird, so added it to the ignore for now..all
intro tests look good though

---------

Co-authored-by: GitHub Actions Autoformatter <github-actions-autoformatter@xamarin.com>
Co-authored-by: Manuel de la Pena <mandel@microsoft.com>
Co-authored-by: Rolf Bjarne Kvinge <rolf@xamarin.com>
  • Loading branch information
4 people committed Sep 18, 2023
1 parent ff805d1 commit 8d7b3f8
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 34 deletions.
13 changes: 13 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")]
CreationDate,
}

[iOS (15, 0), Mac (12, 0), Watch (8, 0), TV (15, 0), MacCatalyst (15, 0)]
Expand Down Expand Up @@ -190,9 +194,18 @@ 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, 14, 0, message: "Use SHLibrary instead.")]
[Deprecated (PlatformName.iOS, 17, 0, message: "Use SHLibrary instead.")]
[Deprecated (PlatformName.TvOS, 17, 0, message: "Use SHLibrary instead.")]
[Deprecated (PlatformName.WatchOS, 10, 0, message: "Use SHLibrary instead.")]
[Deprecated (PlatformName.MacCatalyst, 17, 0, message: "Use SHLibrary instead.")]
[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

6 comments on commit 8d7b3f8

@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.