Skip to content

ShazamKit macOS xcode14.0 rc

Israel Soto edited this page Sep 7, 2022 · 1 revision

#ShazamKit.framework

diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHCatalog.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHCatalog.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHCatalog.h	2022-08-05 12:41:43.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHCatalog.h	2022-08-03 21:07:30.000000000 -0500
@@ -8,7 +8,7 @@
 #import <Foundation/Foundation.h>
 #import <ShazamKit/SHDefines.h>
 
-NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+NS_ASSUME_NONNULL_BEGIN
 
 /// @brief An abstract base class for storing signatures
 ///
@@ -34,4 +34,4 @@
 
 @end
 
-NS_HEADER_AUDIT_END(nullability, sendability)
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHCustomCatalog.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHCustomCatalog.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHCustomCatalog.h	2022-08-05 12:41:43.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHCustomCatalog.h	2022-08-03 21:07:30.000000000 -0500
@@ -11,7 +11,7 @@
 #import <ShazamKit/SHMediaItem.h>
 #import <ShazamKit/SHCatalog.h>
 
-NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+NS_ASSUME_NONNULL_BEGIN
 
 /// @brief Configure a custom catalog of @c SHSignature objects to match against
 /// @discussion Use a custom catalog if you intend to search against reference signatures that you have provided yourself. All matches will be performed locally on the device against the signatures added to this Catalog.
@@ -24,16 +24,14 @@
 /// @param signature The reference to match against
 /// @param mediaItems The metadata associated with the @c SHSignature
 /// @discussion Once the @c SHCatalog had been added to a @c SHSession further calls to this method will be ignored
-/// @return YES if the data was successfully added, NO on failure with a populated error parameter
 - (BOOL)addReferenceSignature:(SHSignature *)signature representingMediaItems:(NSArray<SHMediaItem *> *)mediaItems error:(NSError **)error;
 
-/// Load a `shazamcatalog` file from a file path URL
-/// @param customCatalogURL The path to the `shazamcatalog` file.
-/// @param error An error if the catalog could not be loaded
-/// @return YES if the data was successfully added, NO on failure with a populated error parameter
+/// Load a pre made Custom catalog from disk
+/// @param customCatalogURL The path to the assets
+/// @param error An error if the bundle could not be loaded
 - (BOOL)addCustomCatalogFromURL:(NSURL *)customCatalogURL error:(NSError **)error;
 
-/// Write this Catalog to a URL
+/// Write this Catalog to disk
 /// @discussion A Catalog can safely be shared among devices
 /// @note If the `destinationURL` is a directory, a file named Signatures.shazamcatalog will be created
 /// @param destinationURL The location to write to
@@ -46,4 +44,5 @@
 
 @end
 
-NS_HEADER_AUDIT_END(nullability, sendability)
+
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHError.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHError.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHError.h	2022-08-05 12:41:43.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHError.h	2022-08-03 21:07:30.000000000 -0500
@@ -49,10 +49,6 @@
     /// Failed to sync some content to the user's library
     /// @discussion Failed to add some items to the user's library, trying again may result in success
     /// Underlying error may contain more details about the failure
-    SHErrorCodeMediaLibrarySyncFailed = 400,
-    
-    /// Internal Error
-    /// @discussion ShazamKit encountered an internal error
-    SHErrorCodeInternalError API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0)) = 500
+    SHErrorCodeMediaLibrarySyncFailed = 400
        
 };
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMatch.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMatch.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMatch.h	2022-08-05 12:41:43.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMatch.h	2022-08-03 21:07:29.000000000 -0500
@@ -10,14 +10,12 @@
 #import <ShazamKit/SHSignature.h>
 #import <ShazamKit/SHMatchedMediaItem.h>
 
-NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+NS_ASSUME_NONNULL_BEGIN
 
 /// @brief A @c SHMatch indicates that a Signature matched a reference Signature in the target @c SHCatalog
 /// @discussion A @c SHSignature can match many reference Signatures in a catalog and in turn a Signature can map to
 /// many @c SHMediaItem. Therefore a match encapsulates the query signature and all of the various @c SHMediaItem it matched
-///
-/// @note @c SHMatch is not intended to be subclassed
-SH_EXPORT NS_SWIFT_SENDABLE API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
+SH_EXPORT API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 @interface SHMatch : NSObject <NSSecureCoding>
 
 /// @brief The @c SHMatchedMediaItem belonging to the instance of @c SHSignature that we matched
@@ -35,4 +33,4 @@
 
 @end
 
-NS_HEADER_AUDIT_END(nullability, sendability)
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMatchedMediaItem.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMatchedMediaItem.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMatchedMediaItem.h	2022-08-05 12:41:43.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMatchedMediaItem.h	2022-08-03 21:07:30.000000000 -0500
@@ -7,23 +7,19 @@
 
 #import <ShazamKit/SHMediaItem.h>
 
-NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+NS_ASSUME_NONNULL_BEGIN
 
 /// How far in seconds is this match from the start of the reference audio
-API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 SH_EXPORT SHMediaItemProperty const SHMediaItemMatchOffset;
 
 /// How much the match differs in frequency from reference material
-API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 SH_EXPORT SHMediaItemProperty const SHMediaItemFrequencySkew;
 
 /// @brief @c SHMatchedMediaItem represents metadata that has been matched against a @c SHCatalog
 /// @discussion Extra information is presented that can only be generated from a match. The properties provided here
 /// that are not available on @c SHMediaItem are ephemeral and can differ each time there is a match of the @c SHSignature that this
 /// object represents
-///
-/// @note @c SHMatchedMediaItem is not intended to be subclassed
-SH_EXPORT NS_SWIFT_SENDABLE API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
+SH_EXPORT API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 @interface SHMatchedMediaItem : SHMediaItem <NSSecureCoding>
 
 /// The frequency difference between the reference and sample audio
@@ -40,4 +36,4 @@
 
 @end
 
-NS_HEADER_AUDIT_END(nullability, sendability)
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaItem.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaItem.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaItem.h	2022-08-06 02:29:28.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaItem.h	2022-08-03 21:07:29.000000000 -0500
@@ -7,76 +7,56 @@
 
 #import <Foundation/Foundation.h>
 #import <ShazamKit/SHDefines.h>
-#import <ShazamKit/SHRange.h>
 
-NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+NS_ASSUME_NONNULL_BEGIN
 
 API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 typedef NSString * SHMediaItemProperty NS_TYPED_EXTENSIBLE_ENUM;
 
 /// The Shazam media ID
-API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 SH_EXPORT SHMediaItemProperty const SHMediaItemShazamID;
 
 /// Title
-API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 SH_EXPORT SHMediaItemProperty const SHMediaItemTitle;
 
 /// Subtitle
-API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 SH_EXPORT SHMediaItemProperty const SHMediaItemSubtitle;
 
 /// Artist
-API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 SH_EXPORT SHMediaItemProperty const SHMediaItemArtist;
 
 /// A web URL representing this result
-API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 SH_EXPORT SHMediaItemProperty const SHMediaItemWebURL;
 
 /// The AppleMusic ID
-API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 SH_EXPORT SHMediaItemProperty const SHMediaItemAppleMusicID;
 
 /// A link to this media on Apple Music
-API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 SH_EXPORT SHMediaItemProperty const SHMediaItemAppleMusicURL;
 
 /// A URL to the artwork
-API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 SH_EXPORT SHMediaItemProperty const SHMediaItemArtworkURL;
 
 /// A URL for a Video associated with the media
-API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 SH_EXPORT SHMediaItemProperty const SHMediaItemVideoURL;
 
 /// Is this content explicit
-API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 SH_EXPORT SHMediaItemProperty const SHMediaItemExplicitContent;
 
 /// An array of strings representing the genres of the media item
-API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 SH_EXPORT SHMediaItemProperty const SHMediaItemGenres;
 
 /// The International Standard Recording Code
-API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 SH_EXPORT SHMediaItemProperty const SHMediaItemISRC;
 
-/// The time ranges in the represented media that are described by this @c SHMediaItem
-SH_EXPORT SHMediaItemProperty const SHMediaItemTimeRanges API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0)) NS_REFINED_FOR_SWIFT;
-
-/// The frequency skew ranges that are described by this @c SHMediaItem
-SH_EXPORT SHMediaItemProperty const SHMediaItemFrequencySkewRanges API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0)) NS_REFINED_FOR_SWIFT;
-
 /// @brief @c SHMediaItem represents metadata associated with a @c SHSignature
 /// @discussion A @c SHMediaItem is used in two distinct ways
-///     1. As the base class of a @c SHMatchedMediaItem, and therefore as the result of a match
+///        1. As the base class of a @c SHMatchedMedia item, and therefore as the result of a match
 ///     2. As a way of associating metadata with reference signatures in a @c SHCustomCatalog
 ///
 /// A SHMediaItem contains no required fields and may be entirely blank, they can also contain custom data set with custom keys when making a @c SHCustomCatalog.
-/// 
-/// @note @c SHMediaItem  is not intended to be subclassed further.
-SH_EXPORT NS_SWIFT_SENDABLE API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
+///
+SH_EXPORT API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 @interface SHMediaItem : NSObject <NSSecureCoding, NSCopying>
 
 /// The Shazam Media ID
@@ -129,16 +109,9 @@
 /// @note This may be fetched using the key @c SHMediaItemISRC
 @property (NS_NONATOMIC_IOSONLY, copy, readonly, nullable) NSString *isrc;
 
-/// @brief An array of @c SHRange that indicate the offsets within the reference signature that this media item describes
-@property (NS_NONATOMIC_IOSONLY, strong, readonly, nonnull) NSArray<SHRange *> *timeRanges API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0)) NS_REFINED_FOR_SWIFT;
-
-/// @brief An array of @c SHRange that indicate the frequency skews in the reference signature that this media item describes
-@property (NS_NONATOMIC_IOSONLY, strong, readonly, nonnull) NSArray<SHRange *> *frequencySkewRanges API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0)) NS_REFINED_FOR_SWIFT;
-
 /// Construct a new instance with the provided dictionary
-/// @param properties A dictionary of @c SHMediaItemProperty and their values
 /// @discussion You may add your own keys here to return custom data, custom data should conform to NSCoding
-+ (instancetype)mediaItemWithProperties:(NSDictionary<SHMediaItemProperty, id> *)properties NS_REFINED_FOR_SWIFT;
++ (instancetype)mediaItemWithProperties:(NSDictionary<SHMediaItemProperty, id> *)properties;
 
 /// @brief Fetch a @c SHMediaItem by Shazam ID
 /// @discussion The completionHandler will contain a @c SHMediaItem if the ShazamID is valid, otherwise nil and an error
@@ -157,4 +130,4 @@
 
 @end
 
-NS_HEADER_AUDIT_END(nullability, sendability)
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaLibrary.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaLibrary.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaLibrary.h	2022-08-05 12:41:43.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaLibrary.h	2022-08-03 21:07:30.000000000 -0500
@@ -9,7 +9,7 @@
 #import <ShazamKit/SHDefines.h>
 #import <ShazamKit/SHMediaItem.h>
 
-NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+NS_ASSUME_NONNULL_BEGIN
 
 /// @brief @c SHMediaLibrary represents the user's synced Shazam library.
 /// @discussion You can add new @c SHMediaItem instances to the user's library.
@@ -38,4 +38,4 @@
 
 @end
 
-NS_HEADER_AUDIT_END(nullability, sendability)
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHRange.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHRange.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHRange.h	2022-08-05 12:41:43.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHRange.h	1969-12-31 18:00:00.000000000 -0600
@@ -1,40 +0,0 @@
-//
-//  SHRange.h
-//  ShazamKit
-//
-//  Copyright © 2022 Apple Inc. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import <ShazamKit/SHDefines.h>
-
-NS_HEADER_AUDIT_BEGIN(nullability, sendability)
-
-/// A half-open interval from a lower bound up to, but not including, an upper bound.
-SH_EXPORT NS_SWIFT_SENDABLE API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0)) NS_REFINED_FOR_SWIFT
-@interface SHRange : NSObject <NSSecureCoding, NSCopying>
-
-/// The lowerBound of this time range
-@property (NS_NONATOMIC_IOSONLY, assign, readonly) double lowerBound;
-
-/// The upperBound of this time range, not included in this range
-@property (NS_NONATOMIC_IOSONLY, assign, readonly) double upperBound;
-
-/// Convenience constructor for creating a range
-/// @param lowerBound The lower bound of this range
-/// @param upperBound The upper bound of this range
-/// @note lowerBound should be less than or equal to upperBound
-+ (instancetype)rangeWithLowerBound:(double)lowerBound upperBound:(double)upperBound;
-
-/// Convenience constructor for creating a range
-/// @param lowerBound The lower bound of this range
-/// @param upperBound The upper bound of this range
-/// @note lowerBound should be less than or equal to upperBound
-- (instancetype)initWithLowerBound:(double)lowerBound upperBound:(double)upperBound NS_DESIGNATED_INITIALIZER;
-
-- (instancetype)init NS_UNAVAILABLE;
-+ (instancetype)new NS_UNAVAILABLE;
-
-@end
-
-NS_HEADER_AUDIT_END(nullability, sendability)
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSession.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSession.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSession.h	2022-08-06 02:27:41.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSession.h	2022-08-03 21:07:29.000000000 -0500
@@ -12,7 +12,7 @@
 #import <ShazamKit/SHSignature.h>
 #import <ShazamKit/SHMatch.h>
 
-NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+NS_ASSUME_NONNULL_BEGIN
 
 @class SHSession;
 
@@ -63,7 +63,7 @@
 - (instancetype)initWithCatalog:(SHCatalog *)catalog;
 
 /// @brief Flow audio buffers for matching into the session
-/// @discussion Audio will be converted into signatures and matched against the @c SHCatalog. Results are communicated through the delegate.
+/// @discussion Audio will be converted into signatures and matched against the store. Results are communicated through the delegate.
 /// The initial buffer specifies the @c AVAudioFormat and all subsequent buffers must contain the same format otherwise an error will be communicated through
 /// the delegate.
 ///
@@ -80,4 +80,4 @@
 
 @end
 
-NS_HEADER_AUDIT_END(nullability, sendability)
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSignature.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSignature.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSignature.h	2022-08-05 12:41:42.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSignature.h	2022-08-03 21:07:29.000000000 -0500
@@ -8,7 +8,7 @@
 #import <Foundation/Foundation.h>
 #import <ShazamKit/SHDefines.h>
 
-NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+NS_ASSUME_NONNULL_BEGIN
 
 /// @brief The @c SHSignature class is an opaque data container that can be used to store recognition data.
 /// @discussion Signatures are a compact lossy representation of the original audio. The original audio cannot
@@ -21,8 +21,7 @@
 ///
 /// There are exceptions to the requirement for exactly matching audio, a signature is robust against slight changes in frequency and speed.
 ///
-/// @note @c SHSignature is not intended to be subclassed
-SH_EXPORT NS_SWIFT_SENDABLE API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
+SH_EXPORT API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 @interface SHSignature : NSObject <NSSecureCoding, NSCopying>
 
 /// @brief The duration of the input audio that this signature is derived from
@@ -48,4 +47,4 @@
 
 @end
 
-NS_HEADER_AUDIT_END(nullability, sendability)
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSignatureGenerator.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSignatureGenerator.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSignatureGenerator.h	2022-08-05 12:41:43.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSignatureGenerator.h	2022-08-03 21:07:30.000000000 -0500
@@ -6,22 +6,15 @@
 //
 
 #import <Foundation/Foundation.h>
-#import <AVFoundation/AVFoundation.h>
+#import <AVFAudio/AVFAudio.h>
 #import <ShazamKit/SHSignature.h>
 
-NS_HEADER_AUDIT_BEGIN(nullability, sendability)
+NS_ASSUME_NONNULL_BEGIN
 
 /// @brief @c SHSignatureGenerator provides a way to convert audio data into instances of @c SHSignature
 SH_EXPORT API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
 @interface SHSignatureGenerator : NSObject
 
-/// Create a `SHSignature` from an @c AVAsset.
-/// @param asset An AVAsset that contains audio you would like to convert to a Signature
-/// @discussion The asset can be any type of media that has audio tracks. If the asset has multiple tracks, they
-/// will be mixed into one @c SHSignature
-/// @param completionHandler A block called with the created @c SHSignature or nil and a populated error parameter if a signature could not be created.
-+ (void)generateSignatureFromAsset:(AVAsset *)asset completionHandler:(void (^)(SHSignature * __nullable signature, NSError * __nullable error))completionHandler API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0)) NS_SWIFT_ASYNC_NAME(signature(from:));
-
 /// @brief Add audio to the generator
 /// @discussion Audio passed to the generator should be contiguous, passing non contiguous data will affect the quality of the @c SHSignature
 /// produced. Passing the @c AVAudioTime is not required but recommended, it allows the generator to detect when the audio is not contiguous.
@@ -38,4 +31,4 @@
 
 @end
 
-NS_HEADER_AUDIT_END(nullability, sendability)
+NS_ASSUME_NONNULL_END
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/ShazamKit.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/ShazamKit.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/ShazamKit.h	2022-08-01 09:15:50.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/ShazamKit.h	2022-02-17 04:30:21.000000000 -0600
@@ -19,8 +19,6 @@
 #import <ShazamKit/SHMatchedMediaItem.h>
 #import <ShazamKit/SHMediaItem.h>
 #import <ShazamKit/SHMediaLibrary.h>
-#import <ShazamKit/SHRange.h>
 #import <ShazamKit/SHSession.h>
 #import <ShazamKit/SHSignature.h>
 #import <ShazamKit/SHSignatureGenerator.h>
-#import <ShazamKit/UTType+SHShazamAdditions.h>
diff -ruN /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/UTType+SHShazamAdditions.h /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/UTType+SHShazamAdditions.h
--- /Applications/Xcode_14.0.0-beta6.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/UTType+SHShazamAdditions.h	2022-08-05 12:41:42.000000000 -0500
+++ /Applications/Xcode_14.0.0-rc.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/UTType+SHShazamAdditions.h	1969-12-31 18:00:00.000000000 -0600
@@ -1,25 +0,0 @@
-//
-//  UTType+SHShazamAdditions.h
-//  ShazamKit
-//
-//  Copyright © 2022 Apple Inc. All rights reserved.
-//
-
-#import <Foundation/Foundation.h>
-#import <ShazamKit/SHDefines.h>
-#import <UniformTypeIdentifiers/UniformTypeIdentifiers.h>
-
-NS_HEADER_AUDIT_BEGIN(nullability)
-
-SH_EXPORT API_AVAILABLE(macos(13.0), ios(16.0), tvos(16.0), watchos(9.0))
-@interface UTType (SHShazamAdditions)
-
-/// A type representing the @c SHSignature file format with the .shazamsignature extension
-@property (NS_NONATOMIC_IOSONLY, strong, readonly, class) UTType *SHSignatureContentType  NS_REFINED_FOR_SWIFT;
-
-/// A type representing the @c SHCustomCatalog file format with the .shazamcatalog extension
-@property (NS_NONATOMIC_IOSONLY, strong, readonly, class) UTType *SHCustomCatalogContentType NS_REFINED_FOR_SWIFT;
-
-@end
-
-NS_HEADER_AUDIT_END(nullability)
Clone this wiki locally