mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-26 04:57:54 +00:00
Mark init methods as unavailable
This commit is contained in:
1 parent
31f6f512e1
commit
6e3cd6b313
2 files changed
+4
No files matched your search
+2
@@ -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<SUVersionComparison>)applicationVersionComparator standardVersionComparator:(SUStandardVersionComparator *)standardVersionComparator;
|
||||
|
||||
@end
|
||||
|
||||
Vendored
+2
@@ -65,6 +65,8 @@ SU_EXPORT @interface SUAppcastItem : NSObject<NSSecureCoding>
|
||||
// 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.");
|
||||
|
||||
Reference in new issue
Block a user