From 6e3cd6b313836aa8627c9e55591b6a42e211549f Mon Sep 17 00:00:00 2001 From: Zorg Date: Mon, 21 Jun 2021 00:11:06 -0700 Subject: [PATCH] Mark init methods as unavailable --- Sparkle/SPUAppcastItemStateResolver.h | 2 ++ Sparkle/SUAppcastItem.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Sparkle/SPUAppcastItemStateResolver.h b/Sparkle/SPUAppcastItemStateResolver.h index 1accdde5..e05779f7 100644 --- a/Sparkle/SPUAppcastItemStateResolver.h +++ b/Sparkle/SPUAppcastItemStateResolver.h @@ -25,6 +25,8 @@ NS_ASSUME_NONNULL_BEGIN // Class used to resolve Appcast Item properties that rely on external factors such as a host SU_EXPORT @interface SPUAppcastItemStateResolver : NSObject +- (instancetype)init NS_UNAVAILABLE; + - (instancetype)initWithHostVersion:(NSString *)hostVersion applicationVersionComparator:(id)applicationVersionComparator standardVersionComparator:(SUStandardVersionComparator *)standardVersionComparator; @end diff --git a/Sparkle/SUAppcastItem.h b/Sparkle/SUAppcastItem.h index 9e3af3cd..453c650c 100644 --- a/Sparkle/SUAppcastItem.h +++ b/Sparkle/SUAppcastItem.h @@ -65,6 +65,8 @@ SU_EXPORT @interface SUAppcastItem : NSObject // Returns the dictionary representing the appcast item; this might be useful later for extensions. @property (readonly, copy) NSDictionary *propertiesDictionary; +- (instancetype)init NS_UNAVAILABLE; + // Deprecated initializers - (nullable instancetype)initWithDictionary:(NSDictionary *)dict __deprecated_msg("Extended properties that depend on the system or application version are not supported when used with this deprecated initializer. Please adopt supported APIs instead or contact us to describe your use case."); - (nullable instancetype)initWithDictionary:(NSDictionary *)dict failureReason:(NSString * _Nullable __autoreleasing *_Nullable)error __deprecated_msg("Extended properties that depend on the system or application version are not supported when used with this deprecated initializer. Please adopt supported APIs instead or contact us to describe your use case.");