-
Notifications
You must be signed in to change notification settings - Fork 549
ShazamKit iOS xcode16.0 b2
Rolf Bjarne Kvinge edited this page Jun 26, 2024
·
2 revisions
#ShazamKit.framework
diff -ruN /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHDefines.h /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHDefines.h
--- /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHDefines.h 2024-05-30 11:11:25
+++ /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHDefines.h 2024-06-15 15:23:44
@@ -11,9 +11,25 @@
#define SHDEFINES_H
#ifdef __cplusplus
+
#define SH_EXPORT extern "C" __attribute__((visibility ("default")))
+
+#ifndef SH_EXPORT_WITH_FULL_SDK
+
+#define SH_EXPORT_WITH_FULL_SDK extern "C" __attribute__((visibility ("default")))
+
+#endif
+
#else
+
#define SH_EXPORT extern __attribute__((visibility ("default")))
+
+#ifndef SH_EXPORT_WITH_FULL_SDK
+
+#define SH_EXPORT_WITH_FULL_SDK extern __attribute__((visibility ("default")))
+
+#endif
+
#endif
#endif /* SHDEFINES_H */
diff -ruN /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaItem.h /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaItem.h
--- /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaItem.h 2024-05-30 08:41:24
+++ /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHMediaItem.h 2024-06-15 10:43:17
@@ -147,9 +147,11 @@
/// @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;
+#if !0
/// @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
+ (void)fetchMediaItemWithShazamID:(NSString *)shazamID completionHandler:(void (NS_SWIFT_SENDABLE ^)(SHMediaItem * __nullable mediaItem, NSError * __nullable error))completionHandler NS_SWIFT_NAME(fetch(shazamID:completionHandler:));
+#endif
/// Retrieve a value using a known key
/// @param property The `SHMediaItemProperty` for a value
diff -ruN /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSignatureGenerator.h /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSignatureGenerator.h
--- /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSignatureGenerator.h 2024-05-30 11:11:26
+++ /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/SHSignatureGenerator.h 2024-06-15 15:23:45
@@ -6,7 +6,12 @@
//
#import <Foundation/Foundation.h>
+#if __has_include(<AVFoundation/AVFoundation.h>)
#import <AVFoundation/AVFoundation.h>
+#else
+#import <AVFAudio/AVFAudio.h>
+#endif
+
#import <ShazamKit/SHSignature.h>
NS_HEADER_AUDIT_BEGIN(nullability, sendability)
@@ -15,12 +20,14 @@
SH_EXPORT API_AVAILABLE(macos(12.0), ios(15.0), tvos(15.0), watchos(8.0))
@interface SHSignatureGenerator : NSObject
+#if __has_include(<AVFoundation/AVFoundation.h>)
/// 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:));
+#endif
/// @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
diff -ruN /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/ShazamKit.h /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/ShazamKit.h
--- /Applications/Xcode_16.0.0-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/ShazamKit.h 2024-05-30 11:11:25
+++ /Applications/Xcode_16.0.0-beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/System/Library/Frameworks/ShazamKit.framework/Headers/ShazamKit.h 2024-06-15 15:23:44
@@ -18,9 +18,15 @@
#import <ShazamKit/SHMatch.h>
#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>
+
+#if !0
+#import <ShazamKit/SHMediaLibrary.h>
+#endif
+
+#if __has_include(<UniformTypeIdentifiers/UniformTypeIdentifiers.h>)
#import <ShazamKit/UTType+SHShazamAdditions.h>
+#endif