From 0eb5a706f8bb0418045fa85f72a73f6567a5ad5e Mon Sep 17 00:00:00 2001 From: Zorg Date: Fri, 30 Apr 2021 18:03:22 -0700 Subject: [PATCH] Add NS_UNAVAILABLE attributes to user driver classes --- Sparkle/SPUStandardUserDriver.h | 5 +++++ Sparkle/SUUpdatePermissionResponse.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Sparkle/SPUStandardUserDriver.h b/Sparkle/SPUStandardUserDriver.h index cb55acd6..d6fa3150 100644 --- a/Sparkle/SPUStandardUserDriver.h +++ b/Sparkle/SPUStandardUserDriver.h @@ -34,6 +34,11 @@ SU_EXPORT @interface SPUStandardUserDriver : NSObject */ - (instancetype)initWithHostBundle:(NSBundle *)hostBundle delegate:(nullable id)delegate; +/*! + Use initWithHostBundle:delegate: instead. + */ +- (instancetype)init NS_UNAVAILABLE; + @end NS_ASSUME_NONNULL_END diff --git a/Sparkle/SUUpdatePermissionResponse.h b/Sparkle/SUUpdatePermissionResponse.h index e53f866f..affa087e 100644 --- a/Sparkle/SUUpdatePermissionResponse.h +++ b/Sparkle/SUUpdatePermissionResponse.h @@ -29,6 +29,11 @@ SU_EXPORT @interface SUUpdatePermissionResponse : NSObject */ - (instancetype)initWithAutomaticUpdateChecks:(BOOL)automaticUpdateChecks sendSystemProfile:(BOOL)sendSystemProfile; +/* + Use -initWithAutomaticUpdateChecks:sendSystemProfile: instead. + */ +- (instancetype)init NS_UNAVAILABLE; + /*! A read-only property indicating whether automatic update checks are allowed or not. */