Skip to content

CoreSpotlight tvOS xcode15.0 b6

Manuel de la Pena edited this page Sep 3, 2023 · 3 revisions

#CoreSpotlight.framework https://github.com/xamarin/xamarin-macios/pull/18918

diff -ruN /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchQuery.h /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchQuery.h
--- /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchQuery.h	2023-07-15 00:22:05
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchQuery.h	2023-07-30 23:27:00
@@ -9,14 +9,14 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-CORESPOTLIGHT_EXPORT NSErrorDomain const CSSearchQueryErrorDomain API_AVAILABLE(macos(10.12), ios(10.0)) CS_TVOS_UNAVAILABLE;
+CORESPOTLIGHT_EXPORT NSErrorDomain const CSSearchQueryErrorDomain API_AVAILABLE(macos(10.13), ios(10.0)) CS_TVOS_UNAVAILABLE;
 
 typedef NS_ENUM(NSInteger, CSSearchQueryErrorCode) {
     CSSearchQueryErrorCodeUnknown = -2000,
     CSSearchQueryErrorCodeIndexUnreachable = -2001,
     CSSearchQueryErrorCodeInvalidQuery = -2002,
     CSSearchQueryErrorCodeCancelled = -2003,
-} API_AVAILABLE(macos(10.12), ios(10.0)) CS_TVOS_UNAVAILABLE;
+} API_AVAILABLE(macos(10.13), ios(10.0)) CS_TVOS_UNAVAILABLE;
 
 typedef NS_OPTIONS(NSUInteger, CSSearchQuerySourceOptions) {
     CSSearchQuerySourceOptionDefault = 0,
@@ -25,7 +25,7 @@
 
 @class CSSearchableItem;
 
-API_AVAILABLE(macos(10.12), ios(10.0)) CS_TVOS_UNAVAILABLE
+API_AVAILABLE(macos(10.13), ios(10.0)) CS_TVOS_UNAVAILABLE
 @interface CSSearchQueryContext : NSObject<NSSecureCoding, NSCopying>
 
 @property (nonatomic, strong) NSArray<NSString *> *fetchAttributes;
@@ -35,13 +35,13 @@
 @property (nonatomic, assign) CSSearchQuerySourceOptions sourceOptions API_AVAILABLE(macos(13));
 @end
 
-API_AVAILABLE(macos(10.12), ios(10.0)) CS_TVOS_UNAVAILABLE
+API_AVAILABLE(macos(10.13), ios(10.0)) CS_TVOS_UNAVAILABLE
 @interface CSSearchQuery : NSObject
 
 - (instancetype)init NS_UNAVAILABLE;
 
 // queryString: The query string (e.g., 'contentType == "public.email-message" && subject != "Re:*"')
-- (instancetype)initWithQueryString:(NSString * _Nonnull)queryString queryContext:(CSSearchQueryContext * _Nullable)queryContext NS_DESIGNATED_INITIALIZER API_AVAILABLE(macos(10.13), ios(16.0)) CS_TVOS_UNAVAILABLE;
+- (instancetype)initWithQueryString:(NSString * _Nonnull)queryString queryContext:(CSSearchQueryContext * _Nullable)queryContext NS_DESIGNATED_INITIALIZER API_AVAILABLE(macos(13.0), ios(16.0)) CS_TVOS_UNAVAILABLE;
 
 // queryString: The query string (e.g., 'contentType == "public.email-message" && subject != "Re:*"')
 // attributes: The attributes to be fetched for the searchable items
diff -ruN /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h
--- /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h	2023-07-15 00:21:11
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableIndex.h	2023-08-01 12:18:57
@@ -41,6 +41,9 @@
 //Apps can set a default protection class for items in their entitlements.  You can alternately create an instance with a custom protection class to use on iOS.  It should be one of NSFileProtectionComplete, NSFileProtectionCompleteUnlessOpen, or NSFileProtectionCompleteUntilFirstUserAuthentication.
 - (instancetype)initWithName:(NSString *)name protectionClass:(nullable NSFileProtectionType)protectionClass;
 
+//Apps can set a default protection class for items in their entitlements.  You can alternately create an instance with a custom protection class to use on iOS.  It should be one of NSFileProtectionComplete, NSFileProtectionCompleteUnlessOpen, or NSFileProtectionCompleteUntilFirstUserAuthentication. You can also specify bundleIdentifier and options with type of CSIndexJobOptions in case of test purpose.
+- (instancetype)initWithName:(NSString *)name  protectionClass:(nullable NSFileProtectionType)protectionClass  bundleIdentifier:(NSString *)bundleIdentifier options:(NSInteger)options;
+
 // Call this method to add or update items in the index.
 // Completion handlers will be called once the data has been journaled by the index.  If the completion handler returns an error, the client should retry, as it was not journaled correctly.
 // reindexSearchableItemsWithIdentifiers will be called if the journaling completed successfully but the data was not able to be indexed for some reason.
diff -ruN /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItem.h /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItem.h
--- /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItem.h	2023-07-15 00:22:05
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSearchableItem.h	2023-07-30 23:27:00
@@ -43,7 +43,7 @@
                             attributeSet:(CSSearchableItemAttributeSet *)attributeSet;
 
 // For comparison of items ranked by the query
-- (NSComparisonResult)compareByRank:(CSSearchableItem *)other API_AVAILABLE(macos(10.13), ios(16.0)) CS_TVOS_UNAVAILABLE;
+- (NSComparisonResult)compareByRank:(CSSearchableItem *)other API_AVAILABLE(macos(13.0), ios(16.0)) CS_TVOS_UNAVAILABLE;
 
 // Should be unique to your application group.
 // REQUIRED since this is the way you will refer to the item to update the index / delete it from the index
diff -ruN /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSuggestion.h /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSuggestion.h
--- /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSuggestion.h	2023-07-15 00:22:05
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSSuggestion.h	2023-07-30 23:27:00
@@ -10,15 +10,16 @@
 NS_ASSUME_NONNULL_BEGIN
 
 NS_SWIFT_NAME(suggestionHighlight)
-CORESPOTLIGHT_EXPORT NSAttributedStringKey const CSSuggestionHighlightAttributeName API_AVAILABLE(macos(10.13), ios(16.0)) CS_TVOS_UNAVAILABLE;
+CORESPOTLIGHT_EXPORT NSAttributedStringKey const CSSuggestionHighlightAttributeName API_AVAILABLE(macos(13.0), ios(16.0)) CS_TVOS_UNAVAILABLE;
 
+API_AVAILABLE(macos(13.0), ios(16.0)) CS_TVOS_UNAVAILABLE
 typedef NS_ENUM(NSInteger, CSSuggestionKind) {
     CSSuggestionKindNone,
     CSSuggestionKindCustom,
     CSSuggestionKindDefault,
 } NS_SWIFT_NAME(CSSuggestion.SuggestionKind);
 
-API_AVAILABLE(macos(10.13), ios(16.0)) CS_TVOS_UNAVAILABLE
+API_AVAILABLE(macos(13.0), ios(16.0)) CS_TVOS_UNAVAILABLE
 @interface CSSuggestion : NSObject <NSSecureCoding, NSCopying>
 
 @property (nonnull, nonatomic, readonly) NSAttributedString *localizedAttributedSuggestion NS_REFINED_FOR_SWIFT;
diff -ruN /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSUserQuery.h /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSUserQuery.h
--- /Applications/Xcode_15.0.0-beta5.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSUserQuery.h	2023-07-15 00:22:05
+++ /Applications/Xcode_15.0.0-beta6.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS.sdk/System/Library/Frameworks/CoreSpotlight.framework/Headers/CSUserQuery.h	2023-07-30 23:26:59
@@ -10,7 +10,7 @@
 
 NS_ASSUME_NONNULL_BEGIN
 
-API_AVAILABLE(macos(10.13), ios(16.0)) CS_TVOS_UNAVAILABLE
+API_AVAILABLE(macos(13.0), ios(16.0)) CS_TVOS_UNAVAILABLE
 @interface CSUserQueryContext : CSSearchQueryContext
 
 + (CSUserQueryContext *)userQueryContext;
@@ -26,7 +26,7 @@
 
 @end
 
-API_AVAILABLE(macos(10.13), ios(16.0)) CS_TVOS_UNAVAILABLE
+API_AVAILABLE(macos(13.0), ios(16.0)) CS_TVOS_UNAVAILABLE
 @interface CSUserQuery : CSSearchQuery
 
 - (instancetype)initWithUserQueryString:(NSString * _Nullable)userQueryString userQueryContext:(CSUserQueryContext * _Nullable)userQueryContext NS_DESIGNATED_INITIALIZER;
Clone this wiki locally